.article-detail {
  background: var(--white);
  color: var(--brown);
}

.site-main.article > .article-detail {
  padding-top: 0;
}

.article-hero {
  padding-top: 0;
  padding-bottom: 72px;
}

.article-hero__content {
  display: grid;
  justify-items: center;
  row-gap: 12px;
  max-width: var(--container-narrow);
  margin: 0 auto;
  text-align: center;
}

.article-title {
  max-width: 940px;
  color: var(--brown);
  font-family: var(--font-main);
  font-size: 45px;
  font-weight: normal;
  line-height: 1.05;
}

.article-title--main {
  margin-top: 63px;
}

.article-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
  color: var(--brown);
  font-family: var(--font-main);
  font-size: 12px;
  line-height: 1.2;
  text-transform: uppercase;
}

.article-categories a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 17px;
  padding: 1px 10px 2px;
  background-color: #f5eeea;
}

.article-categories a:hover,
.article-categories a:focus-visible {
  background-color: #eaded8;
}

.article-date,
.article-intro,
.article-share__link,
.article-related time,
.article-related__item .cta-link,
.article-all,
.article-adjacent time {
  font-family: var(--font-special);
  font-size: var(--fs-14);
  line-height: 1.2;
}

.article-meta-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  width: min(100%, var(--container-narrow));
  margin: 0 auto 24px;
  text-align: left;
}

.article-date {
  flex: 0 0 auto;
  text-align: left;
}

.article-intro {
  max-width: 760px;
  margin-top: 18px;
  font-family: var(--font-special-italic);
  font-size: 24px;
  font-style: italic;
}

.article-cover {
  margin: 0;
  width: 100%;
}

.article-cover--hero {
  position: relative;
  margin-bottom: 0;
  background: var(--black);
  overflow: hidden;
}

.article-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-cover--hero img {
  opacity: 0.45;
}

.article-detail--reflection .article-hero > .container {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.article-detail--reflection .article-hero__content {
  position: relative;
  max-width: none;
  row-gap: 0;
}

.article-detail--reflection .article-cover--hero {
  position: relative;
  width: 100vw;
  height: 100dvh;
}

.article-detail--reflection .article-cover--hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--black);
  opacity: 0.45;
  pointer-events: none;
}

.article-detail--reflection .article-cover__title {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: min(calc(100% - var(--container-padding) * 2), 940px);
  color: var(--white);
  font-family: var(--font-main);
  font-size: 45px;
  font-weight: normal;
  line-height: 1.05;
  text-align: center;
  transform: translate(-50%, -50%);
}

.article-detail--reflection.is-cover-scrolled .article-cover__title {
  display: none;
}

.article-detail--reflection .article-cover--hero img {
  position: absolute;
  top: -43.97%;
  left: 0;
  width: 100%;
  height: 174.19%;
  min-height: 640px;
  aspect-ratio: auto;
  object-fit: cover;
  opacity: 1;
  transform: translate3d(0, -18%, 0);
  will-change: transform;
}

.article-detail--reflection .article-meta-row,
.article-detail--reflection .article-title,
.article-detail--reflection .article-intro {
  position: relative;
  z-index: 2;
  width: min(calc(100% - var(--container-padding) * 2), var(--container-narrow));
}

.article-detail--reflection .article-meta-row {
  margin-top: 0;
  padding-top: 20px;
}

.article-detail--reflection .article-body,
.article-detail--reflection .article-footer {
  position: relative;
  z-index: 2;
  background: var(--white);
}

.article-cover figcaption {
  margin-top: 10px;
  color: rgba(69, 9, 9, 0.55);
  font-family: var(--font-main);
  font-size: 12px;
  line-height: 1.3;
}

.article-body {
  padding-top: 78px;
}

.article-body__layout {
  display: grid;
  gap: 32px;
}

.article-prose {
  order: 1;
  color: var(--brown);
  max-width: var(--container-narrow);
  width: 100%;
  margin: 0 auto;
}

.article-prose p,
.article-prose li,
.article-prose blockquote {
  font-family: var(--font-special);
  font-size: var(--fs-18);
  font-weight: normal;
  line-height: 1.55;
}

.article-prose em,
.article-prose i {
  font-family: var(--font-special-italic);
  font-style: italic;
}

.article-prose strong,
.article-prose b {
  font-family: var(--font-main-bold);
  font-weight: normal;
}

.article-prose h2,
.article-prose h3,
.article-prose h4,
.article-prose h5 {
  color: var(--brown);
  font-family: var(--font-main);
  font-weight: normal;
  line-height: 1.05;
}

.article-title strong,
.article-title b,
.article-title em,
.article-title i,
.article-prose h2 strong,
.article-prose h2 b,
.article-prose h2 em,
.article-prose h2 i,
.article-prose h3 strong,
.article-prose h3 b,
.article-prose h3 em,
.article-prose h3 i,
.article-prose h4 strong,
.article-prose h4 b,
.article-prose h4 em,
.article-prose h4 i,
.article-prose h5 strong,
.article-prose h5 b,
.article-prose h5 em,
.article-prose h5 i {
  font-family: var(--font-main);
  font-style: normal;
  font-weight: normal;
}

.article-prose h2 {
  font-size: 27px;
  margin-top: 60px;
}

.article-prose h3 {
  font-size: 24px;
}

.article-prose h4 {
  font-size: 20px;
}

.article-prose h5 {
  font-size: 16px;
}

.article-prose figure {
  margin: 44px 0;
}

.article-prose figure img {
  width: 100%;
  max-height: 70vh;
  object-fit: cover;
}

.article-prose .video {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: var(--w, 16) / var(--h, 9);
  background: var(--black);
  overflow: hidden;
}

.article-prose .video iframe,
.article-prose .video video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.article-prose .article-gallery__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
}

.article-prose .article-gallery__grid li {
  margin: 0;
}

.article-gallery__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: rgba(69, 9, 9, 0.08);
  cursor: pointer;
}

.article-gallery__thumb picture,
.article-gallery__thumb img {
  display: block;
  width: 100%;
  height: 100%;
}

.article-gallery__thumb img {
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.article-gallery__thumb:hover img,
.article-gallery__thumb:focus-visible img {
  transform: scale(1.04);
}

.article-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(21, 21, 21, 0.92);
  color: var(--white);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.article-gallery-lightbox.is-active {
  opacity: 1;
  visibility: visible;
}

.article-gallery-lightbox__figure {
  display: grid;
  gap: 14px;
  max-width: min(1200px, calc(100vw - 140px));
  max-height: calc(100dvh - 80px);
}

.article-gallery-lightbox__image {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 150px);
  object-fit: contain;
}

.article-gallery-lightbox__caption {
  color: rgba(252, 246, 243, 0.75);
  font-family: var(--font-special);
  font-size: var(--fs-14);
  line-height: 1.35;
  text-align: center;
}

.article-gallery-lightbox__button,
.article-gallery-lightbox__close {
  position: absolute;
  color: var(--white);
}

.article-gallery-lightbox__close {
  top: 24px;
  right: 28px;
  font-family: var(--font-special);
  font-size: var(--fs-14);
}

.article-gallery-lightbox__button {
  top: 50%;
  width: 46px;
  height: 46px;
  transform: translateY(-50%);
}

.article-gallery-lightbox__button--prev {
  left: 28px;
}

.article-gallery-lightbox__button--next {
  right: 28px;
}

.article-carousel {
  display: grid;
  gap: 14px;
}

.article-carousel__viewport {
  overflow: hidden;
}

.article-carousel__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.article-carousel__slide {
  flex: 0 0 100%;
}

.article-carousel__slide img {
  display: block;
  width: 100%;
}

.article-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--brown);
  font-family: var(--font-special);
  font-size: var(--fs-14);
}

.article-carousel__button {
  position: relative;
  width: 38px;
  height: 22px;
  color: var(--brown);
}

.article-arrow-icon {
  display: block;
  width: 15.5px;
  height: 7.5px;
  margin: auto;
  background: currentColor;
  mask: center / contain no-repeat;
  -webkit-mask: center / contain no-repeat;
}

.article-gallery-lightbox__button--prev .article-arrow-icon,
.article-carousel__button--prev .article-arrow-icon {
  mask-image: url("../../icons/article-arrow-left.svg");
  -webkit-mask-image: url("../../icons/article-arrow-left.svg");
}

.article-gallery-lightbox__button--next .article-arrow-icon,
.article-carousel__button--next .article-arrow-icon {
  mask-image: url("../../icons/article-arrow-right.svg");
  -webkit-mask-image: url("../../icons/article-arrow-right.svg");
}

.article-audio {
  padding: 18px;
  border: 1px solid rgba(69, 9, 9, 0.35);
}

.article-audio__title {
  margin-bottom: 12px;
  color: var(--brown);
  font-family: var(--font-main-bold);
  font-size: var(--fs-18);
}

.article-audio__player {
  width: 100%;
}

.article-audio__caption {
  margin-top: 12px;
  font-family: var(--font-special);
  font-size: var(--fs-14);
  line-height: 1.35;
}

.article-prose figcaption,
.article-prose .img-caption {
  margin-top: 10px;
  color: rgba(69, 9, 9, 0.55);
  font-family: var(--font-main);
  font-size: 12px;
  line-height: 1.3;
}

.article-footer {
  padding-top: 86px;
  padding-bottom: 120px;
}

.article-chapters {
  display: none;
}

.article-chapters__sticky {
  position: sticky;
  top: 33vh;
  display: grid;
  gap: 22px;
}

.article-chapters__title {
  color: var(--brown);
  font-family: var(--font-main-bold);
  font-size: var(--fs-14);
  font-weight: normal;
  line-height: 1.2;
}

.article-chapters__list {
  display: grid;
  gap: 9px;
  max-width: 220px;
  color: var(--brown);
  font-family: var(--font-special);
  font-size: var(--fs-14);
  line-height: 1.2;
}

.article-chapters__link {
  color: inherit;
}

.article-chapters__link:hover,
.article-chapters__link:focus-visible {
  font-family: var(--font-special-italic);
}

.article-chapters__share {
  position: relative;
  z-index: 20;
  margin-top: 52px;
  box-sizing: border-box;
  width: 118px;
  color: var(--brown);
}

.article-share {
  position: relative;
  z-index: 20;
  order: 2;
  width: min(100%, var(--container-narrow));
  margin: 12px auto 0;
  justify-self: stretch;
  align-self: start;
}

.article-share__sticky {
  position: static;
  z-index: 20;
  box-sizing: border-box;
  width: 118px;
  color: var(--brown);
}

.article-share.active .article-share__sticky,
.article-chapters__share.active {
  padding: 8px 12px 14px;
  border: 1px solid currentColor;
}

.article-share__toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid currentColor;
  color: var(--brown);
  font-family: var(--font-main-bold);
  font-size: var(--fs-14);
  font-weight: normal;
  line-height: 1.2;
}

.article-share.active .article-share__toggle,
.article-chapters__share.active .article-share__toggle {
  padding: 0;
  border: 0;
}

.article-share__toggle::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
}

.article-share__toggle:hover::before,
.article-share__toggle:focus-visible::before,
.article-share.active .article-share__toggle::before,
.article-chapters__share.active .article-share__toggle::before {
  animation: none;
}

.article-share__menu {
  display: grid;
  gap: 8px;
  min-width: 96px;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition:
    max-height 0.25s ease,
    margin-top 0.25s ease,
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease;
}

.article-share.active .article-share__menu,
.article-chapters__share.active .article-share__menu {
  max-height: 160px;
  margin-top: 10px;
  overflow: visible;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.article-share__link {
  position: relative;
  width: max-content;
  color: var(--brown);
  font-family: var(--font-special);
  font-size: var(--fs-14);
  line-height: 1.2;
  text-align: left;
}

.article-share__link:hover,
.article-share__link:focus-visible {
  font-family: var(--font-special-italic);
}

.article-share__feedback {
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  z-index: 30;
  isolation: isolate;
  padding: 4px 6px 3px;
  border: 0;
  background: #fbf5f1;
  filter: drop-shadow(0 0 1px rgba(69, 9, 9, 0.09));
  color: rgba(69, 9, 9, 0.72);
  font-family: var(--font-main);
  font-size: 9px;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(calc(-50% - 4px));
  transition: visibility 0.2s ease, transform 0.2s ease;
}

.article-share__feedback::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -1;
  background: #fbf5f1;
}

.article-share__feedback.is-visible {
  visibility: visible;
  transform: translateY(-50%);
}

.article-related {
  margin-bottom: 70px;
}

.article-related__title {
  margin-bottom: 34px;
  color: var(--brown);
  font-family: var(--font-special);
  font-size: var(--fs-14);
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.article-related__grid {
  display: grid;
  gap: 20px;
}

.article-related__item {
  display: grid;
  gap: 16px;
  min-height: 210px;
  padding: 24px;
  background: var(--black);
  color: var(--white);
  text-align: center;
}

.article-related__item h3 {
  align-self: center;
  font-family: var(--font-special);
  font-size: var(--fs-21);
  font-weight: 400;
  line-height: 1.1;
}

.article-related__item .cta-link {
  justify-self: center;
}

.article-all {
  display: flex;
  margin: 0 auto;
}

.article-adjacent {
  display: grid;
  gap: 42px;
  width: min(100%, var(--container-narrow));
  margin: 196px auto 0;
}

.article-adjacent__item {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  color: var(--brown);
  transition: opacity 0.25s ease;
}

.article-adjacent__preview,
.article-adjacent__item > picture {
  position: absolute;
  left: 0;
  bottom: calc(100% + 20px);
  width: 108px;
  height: 81px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.article-adjacent__preview {
  object-fit: cover;
}

.article-adjacent__item > picture .article-adjacent__preview {
  position: static;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 1;
  transition: none;
}

.article-adjacent:has(.article-adjacent__item:hover) .article-adjacent__item:not(:hover),
.article-adjacent:has(.article-adjacent__item:focus-visible) .article-adjacent__item:not(:focus-visible) {
  opacity: 0.45;
}

.article-adjacent__item:hover .article-adjacent__preview,
.article-adjacent__item:focus-visible .article-adjacent__preview,
.article-adjacent__item:hover > picture,
.article-adjacent__item:focus-visible > picture {
  opacity: 1;
}

.article-adjacent__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.article-adjacent__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--brown);
  font-family: var(--font-main);
  font-size: 12px;
  line-height: 1.2;
  text-transform: uppercase;
}

.article-adjacent__categories li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 17px;
  padding: 1px 10px 2px;
  background-color: #f5eeea;
}

.article-adjacent time {
  flex: 0 0 auto;
  text-align: left;
}

.article-adjacent__categories {
  justify-content: flex-end;
  margin-left: auto;
}

.article-adjacent__line {
  display: block;
  width: 100%;
  height: 1px;
  background: currentColor;
}

.article-adjacent__title {
  color: var(--brown);
  font-family: var(--font-main);
  font-size: 27px;
  font-weight: normal;
  line-height: 1.05;
}

@media (min-width: 1200px) {
  .article-body__layout {
    width: 100%;
    margin: 0 auto;
    grid-template-columns: minmax(0, 1fr) minmax(0, var(--container-narrow)) minmax(0, 1fr);
    column-gap: 0;
    align-items: stretch;
  }

  .article-share {
    order: 0;
    width: auto;
    grid-column: 1;
    justify-self: end;
    align-self: stretch;
    margin-right: 20px;
  }

  .article-share__sticky {
    position: sticky;
    top: 33vh;
  }

  .article-prose {
    order: 0;
    grid-column: 2;
    margin: 0;
  }

  .article-detail--reflection .article-body__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, var(--container-narrow)) minmax(0, 1fr);
    column-gap: 0;
  }

  .article-detail--reflection .article-chapters {
    grid-column: 1;
    grid-row: 1;
    display: block;
    justify-self: start;
    align-self: stretch;
    margin-right: 0;
  }

  .article-detail--reflection .article-share {
    display: none;
  }

  .article-detail--reflection .article-prose {
    grid-column: 2;
  }

}

@media (min-width: 800px) {
  .article-title {
    font-size: 45px;
  }

  .article-related__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .article-adjacent {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 50px;
  }

  .article-adjacent__item--previous {
    grid-column: 1;
  }

  .article-adjacent__item--next {
    grid-column: 2;
  }
}

@media (max-width: 999px) {
  .article-prose .article-gallery__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 599px) {
  .article-prose .article-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .article-gallery-lightbox {
    padding: 18px;
  }

  .article-gallery-lightbox__figure {
    max-width: calc(100vw - 36px);
  }

  .article-gallery-lightbox__button {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .article-gallery-lightbox__button--prev {
    left: 18px;
  }

  .article-gallery-lightbox__button--next {
    right: 18px;
  }
}

@media (min-width: 1200px) {
  .article-title {
    font-size: 45px;
  }
}
