:root {
  --swiper-navigation-size: 28px !important;
}

body {
  background-color: #000;
}

a {
  word-break: break-all;
}

.nav {
  background-color: #000;
}

.main {
  /* padding: 0 1rem; */
}

.bkg {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #000;
  z-index: -1;
}

/* first block */
.hero {
  margin-bottom: 4rem;
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(100vh - 4rem);
  z-index: -1;
  background-color: #ddd;
  top: 0;
  left: 0;
  right: 0;
  bottom: 1rem;
}

@media screen and (min-width: 768px) {
  .hero {
    width: calc(100% - 2rem);
    left: 1rem;
    right: 1rem;
  }
}

.hero img,
.hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
}

.hero-image,
.hero-video {
  display: none;
}

@media screen and (min-width: 768px) {
  .hero-image,
  .hero-video {
    display: block;
  }
}

.hero-mobile-image,
.hero-mobile-video {
  display: block;
}

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

.hero article {
  position: absolute;
  bottom: 0rem;
  padding-bottom: 2rem;
  padding-top: 4rem;
  background-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 1)
  );
  left: 0rem;
  color: #fff;
  width: 100%;
}

.hero h1 {
  font-size: 2.5rem;
  text-transform: uppercase;
  max-width: 52rem;
  padding: 0 1rem;
}

.hero .intro {
  font-weight: 400;
  line-height: 1.3;
  max-width: 52rem;
  margin-top: 0.75rem;
  padding: 0 1rem;
}

/* text */
.text {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1rem;
  margin-bottom: 4rem;
}

.text > * {
  width: 100%;
}

/* synopsis */
.synopsis {
  color: #888;
  width: 780px;
  max-width: 100%;
}

.synopsis {
  margin-bottom: 4rem;
  /* font-weight: 500; */
}

.blocks-a:empty {
  display: none;
}

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

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

.extra-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  /* justify-content: space-between; */
}

.heading .share {
  align-items: center;
  align-self: flex-start;
  border-radius: 40px;
  /* border: 2px solid #000; */
  cursor: pointer;
  display: flex;
  font-size: 0.75em;
  font-weight: 400;
  gap: 0.5em;
  margin-bottom: 1em;
  margin-top: 1em;
  z-index: 20;
  background-color: #fff;
  /* padding: 2px 1em 2px 0.875em; */

  padding: 0.275em 0.75em 0.275em 0.5em;
  box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.2);
}

.heading .share img {
  width: 18px;
  height: 18px;
}

.heading .share-desktop {
  background-color: #fff;
  border-radius: 10px;
  /* border: 2px solid #000; */
  font-size: 0.75em;
  font-weight: 400;
  list-style-type: none;
  min-width: 160px;
  opacity: 1;
  padding: 0.5em 0;
  pointer-events: all;
  position: absolute;
  transform: translateY(-5px);
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.2);
}

.heading .share-desktop li {
  transition: background-color 0.3s;
  padding: 0.275em 0.75em;
  cursor: pointer;
  background-color: #fff;
}

.heading .share-desktop li:hover {
  color: #fff;
  background-color: #000;
}

.heading .share-desktop.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.heading .donate {
  align-items: center;
  align-self: flex-start;
  border-radius: 40px;
  cursor: pointer;
  display: flex;
  font-size: 0.75em;
  font-weight: 400;
  gap: 0.5em;
  margin-bottom: 1em;
  margin-top: 1em;
  z-index: 20;
  background-color: #fff;
  padding: 0.275em 0.75em 0.275em 0.5em;
  box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.2);
}

.heading .donate img {
  width: 18px;
  height: 18px;
}

/* time (subpage) */
.extra {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: -0.5em;
  margin-bottom: 1.5em;
  width: 100%;
}

.heading .reading-time,
.reading-time {
  align-self: flex-start;
  background-color: #fff;
  border-radius: 20px;
  /* border: 2px solid #000; */
  display: flex;
  font-size: 0.75em;
  font-weight: 400;
  gap: 0.5em;
  padding: 0.275em 0.75em 0.275em 0.5em;
  align-items: center;
  box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.2);
}

.heading .reading-time svg,
.reading-time svg {
  height: 18px;
  width: 18px;
}

/* blocks */
.blocks {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  align-items: center;
  padding-top: 5rem;
  margin-top: -5em;
}

.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%;
  height: auto;
}

.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;
}

/* highlight */
.block-highlight {
  position: relative;
}

.block-highlight:has([data-style='brackets']) {
  padding: 0.5rem 1rem;
  margin: 1rem 0;
}

.block-highlight:has([data-style='solid']) {
  align-items: center;
  background-color: #000;
  color: #fff;
  display: flex;
  justify-content: center;
  margin: 1rem -1rem 2rem -1rem;
  max-width: calc(100% + 2rem);
  padding: 1rem 0;
  width: calc(100% + 2rem);
}

.block-highlight:has([data-style='solid']) article {
  padding: 1rem 0;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.block-highlight .text {
  margin-bottom: 0;
}

.block-highlight:has([data-style='solid']) .text p {
  line-height: 1.2;
  font-weight: 500;
  font-size: 1.25rem;
}

.block-highlight:has([data-style='solid']) .cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  max-width: 100%;
  margin: 0 1rem;
}

.block-highlight:has([data-style='solid']) .cta > a {
  background-color: #fff;
  color: #000;
  font-weight: 600;
  width: 100%;
  max-width: 400px;
  padding: 4px 10px 2px 10px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.block-highlight:has([data-style='solid']) .cta img {
  width: 100%;
  height: auto;
  max-width: 400px;
}

.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:has([data-style='brackets']) :before,
.block-highlight:has([data-style='brackets']) :after {
  content: '';
  width: 1rem;
  top: -1rem;
  position: absolute;
  height: calc(100% + 2rem);
}

.block-highlight:has([data-style='brackets']) :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:has([data-style='brackets']) :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:has([data-style='brackets']) article .text {
  flex: 2;
  margin-bottom: 0;
  text-align: center;
  font-weight: 450;
  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;
}

/* solid hightlight */
.block-highlight:has([data-style='solid']) article {
  background-color: #000;
  color: #fff;
}

@media screen and (min-width: 768px) {
  .nav-lang {
    background-color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    mix-blend-mode: unset;
    color: unset;
    box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.2);
  }
}

.block-quote {
  margin-bottom: 2em;
}

.block-quote blockquote {
  padding-left: 2rem;
  font-size: 1.375rem;
  font-weight: 500;
  position: relative;
}

.block-quote footer {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 400;
}

.block-quote footer::before {
  content: '— ';
}
