.main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* text */
.text {
  display: flex;
  flex-direction: column;
  /* align-items: center; */
  padding: 0 1rem;
  margin-bottom: 6rem;
  /* flex: 1; */
  width: calc(780px + 2rem);
  margin-top: 3rem;
  max-width: 100%;
}

.text h1 {
  margin-bottom: 1rem;
}

.text > * {
  width: 100%;
  max-width: 780px;
  flex: 1;
}

.extra {
  width: 100%;
  max-width: 780px;
  margin-top: 3rem;
}

.is-small {
  font-size: 0.75rem;
}

.staff {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  max-width: 1100px;
  width: 100%;
  gap: 1rem 1rem;
  margin-bottom: 4rem;
}

.staff-item {
  font-size: 0.75rem;
  padding: 1rem;
  transition: background-color 0.3s, color 0.3s;
}

.staff-item:hover {
  background-color: #000;
  color: #fff;
}

.staff-item figure {
  height: 80px;
  width: 80px;
  background-color: #000;
  margin-bottom: 1rem;
  overflow: hidden;
}
.staff-item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

/* title + intro */
.heading {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin-bottom: 4rem;
  max-width: 780px;

  padding-top: 4rem;
  margin-top: -4em;
}

.heading h1 {
  font-size: 1.875rem;
}

.heading .intro {
  color: #999;
  font-size: 1.25rem;
  font-weight: 450;
  line-height: 1.4;
}

/* blocks */
.blocks {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  align-items: center;
  width: 100%;
  padding: 0 1rem;
  margin-bottom: 6rem;
  margin-top: 3rem;
}

.blocks > * {
  flex: 1;
}

.is-narrow {
  /* width: 780px; */
  width: 780px !important;
  max-width: 100%;
}

.is-large {
  width: 1100px !important;
  max-width: 100%;
  /* max-width: 100%; */
}

.is-full {
  width: 100%;
  max-width: 100%;
}

.blocks:not(:first-of-type) {
  margin-top: 0rem;
}

.block-heading {
  width: 100%;
}

.block-text {
  width: 100%;
}

.block-text p {
  margin-bottom: 1.25em;
}

.block-text ul {
  margin-bottom: 1em;
  margin-left: 0.975rem;
}

.block-text li p {
  margin-bottom: 0;
}

.block-image {
  margin: 0.5em 0;
}

.block-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.block-image figure.is-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.block-image figure.is-vertical img {
  height: 45vw;
  /* max-height: 500px; */
  max-width: 80vh;
  width: auto;
}

.block-image figcaption {
  font-size: 0.75rem;
  margin-top: 0.5rem;
  padding: 0 20px;
  margin-bottom: 1rem;
  border-left: 2px solid;
}

.block-gallery {
  margin: 20px 0;
  position: relative;
}

.block-gallery .swiper {
  height: 45vw;
  /* max-height: 500px; */
  max-height: 80vh;
  width: 100%;
  position: relative;
}

.block-gallery img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* object-position: top left; */
  object-position: center;
}

.block-gallery .swiper-pagination {
  display: flex;
  bottom: 0 !important;
  padding: 0;
  display: none;
}

.block-gallery .swiper-pagination .swiper-pagination-bullet {
  background-color: #fff !important;
  border-radius: 0 !important;
  flex: 1;
  height: 3px;
  margin: 0 !important;
  opacity: 1 !important;
}

.block-gallery .swiper-pagination .swiper-pagination-bullet-active {
  background-color: #000 !important;
}

.block-gallery .swiper-button-next,
.block-gallery .swiper-button-prev {
  color: #000;
  z-index: 10;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.block-gallery .swiper-button-next svg,
.block-gallery .swiper-button-prev svg {
  width: 30px;
  height: 30px;
}

.block-gallery .swiper-button-next::after,
.block-gallery .swiper-button-prev::after {
  display: none;
}

.block-gallery .swiper-button-prev {
  left: 0;
}

.block-gallery .swiper-button-next {
  right: 0;
}

.block-gallery .swiper-slide {
  display: flex;
  flex-direction: column;
}

.block-gallery .swiper-slide > * {
  width: 100%;
}

.block-gallery .swiper-slide figcaption {
  border-left: 2px solid;
  font-size: 0.75rem;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
  padding: 0 20px;
}

.block-gallery figcaption {
  border-left: 2px solid;
  font-size: 0.75rem;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
  padding: 0 20px;
}

.block-video,
.block-localvideo {
  width: 100%;
}

.block-localvideo video {
  width: 100%;
}

.block-video iframe {
  width: 100%;
  aspect-ratio: 16/9;
}

.block-video figcaption,
.block-localvideo figcaption {
  border-left: 2px solid;
  font-size: 0.75rem;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
  padding: 0 20px;
}

.block-localvideo .desktop-video {
  display: none;
}

@media screen and (min-width: 768px) {
  .block-localvideo .desktop-video {
    display: block;
  }
}

.block-localvideo .mobile-video {
  display: block;
}

@media screen and (min-width: 768px) {
  .block-localvideo .mobile-video {
    display: none;
  }
}

.block-localvideo {
  position: relative;
}

.block-localvideo .audio {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 20px;
  height: 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.block-localvideo .audio svg {
  color: #fff;
}

.block-localvideo:hover .audio {
  opacity: 1;
}

.block-localvideo .audio .audio-on,
.block-localvideo .audio .audio-off {
  position: absolute;
  width: 20px;
  height: 20px;
}

.block-localvideo .audio .audio-on.is-hidden,
.block-localvideo .audio .audio-off.is-hidden {
  opacity: 0;
}

.block-code {
  width: 100%;
}

.block-code iframe {
  width: 100%;
  /* aspect-ratio: 16/9; */
}

#map-canvas {
  pointer-events: none;
}

iframe {
  border: none;
}

.block-line {
  /* display: none; */
  width: 100%;
}

.block-line hr {
  /* display: none; */
  border: 0;
  background-color: #000;
  height: 2px;
  outline: none;
  width: 100%;
}

.block-line + .block-text {
  font-size: 0.75rem;
}

.block-highlight {
  padding: 0.5rem 1rem;
  position: relative;
  margin: 1rem 0;
}

.block-highlight article {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-direction: column;
}

@media screen and (min-width: 520px) {
  .block-highlight article {
    flex-direction: row;
    gap: 0.5rem;
  }
}

.block-highlight :before,
.block-highlight :after {
  content: '';
  width: 1rem;
  top: -1rem;
  position: absolute;
  height: calc(100% + 2rem);
}

.block-highlight :before {
  border-bottom: 2px solid;
  border-left: 2px solid;
  border-top: 2px solid;
  left: 0;
}

@media screen and (min-width: 768px) {
  .block-highlight :before {
    left: -1rem;
  }
}

.block-highlight :after {
  border-bottom: 2px solid;
  border-right: 2px solid;
  border-top: 2px solid;
  right: 0;
}

@media screen and (min-width: 768px) {
  .block-highlight :after {
    right: -1rem;
  }
}

.block-highlight article .image {
  flex: 1;
}

.block-highlight article .text {
  flex: 2;
  margin-bottom: 0;
  text-align: center;
  font-weight: 500;
  font-size: 0.875rem;
}

.block-highlight article .text a {
  border-bottom: 2px solid;
}

.block-highlight article .text p:not(:last-of-type) {
  margin-bottom: 0.75rem;
}
