.media-section {
  color: var(--paper-light);
  background: radial-gradient(ellipse at 90% 0%, rgba(124, 33, 31, .15), transparent 55%), var(--night);
  scroll-margin-top: 68px;
}
.media-section__heading {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.5rem;
}
.media-section .eyebrow { color: #c7926e; }
.media-section__heading h2 { margin: 0; max-width: 15ch; }
.media-section__heading > p { max-width: 31rem; margin: 0; color: #baaa95; }
.media-video { margin: 0; border: 1px solid rgba(234, 219, 189, .18); background: #0b0a09; }
.media-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #080706; }
.media-video figcaption { display: flex; justify-content: space-between; gap: 1.25rem; align-items: center; padding: 1.3rem 1.5rem; }
.media-label { font-size: .65rem; letter-spacing: .16em; text-transform: uppercase; color: #baaa95; }
.media-video h3 { margin: .25rem 0 0; font-family: var(--serif); font-weight: 400; font-size: 1.65rem; }
.media-download { color: var(--paper-light); font-size: .75rem; text-underline-offset: .35em; cursor: pointer; }
.media-download:hover { color: #fff; }
.media-download span { margin-left: .4rem; }
.media-gallery__heading { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 3rem 0 1.25rem; }
.media-gallery__heading h3 { margin: 0; font-family: var(--serif); font-size: 1.55rem; font-weight: 400; }
.media-gallery__heading p { margin: 0; color: #baaa95; font-size: .75rem; }
.media-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem 1.25rem; }
.media-card { margin: 0; min-width: 0; }
.media-card__image { display: block; position: relative; overflow: hidden; border: 1px solid rgba(234, 219, 189, .18); background: #080706; }
.media-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
.media-card__zoom { position: absolute; bottom: .6rem; right: .6rem; display: grid; width: 2rem; height: 2rem; place-items: center; background: rgba(15, 11, 9, .85); color: #f0e4d0; }
.media-card__image:hover { border-color: #c7926e; }
.media-card figcaption { display: flex; gap: .75rem; padding-top: .8rem; font-size: .8rem; }
.media-card figcaption span { color: #c7926e; font-size: .7rem; font-variant-numeric: tabular-nums; padding-top: .05rem; }
.media-section :focus-visible, .media-lightbox :focus-visible { outline: 2px solid #f0c18c; outline-offset: 4px; }
html.media-viewer-open { overflow: hidden; }
.media-lightbox {
  width: min(1600px, 94vw);
  max-width: 94vw;
  max-height: 94vh;
  max-height: 94dvh;
  margin: auto;
  padding: 0;
  border: 1px solid rgba(234, 219, 189, .25);
  color: var(--paper-light);
  background: #100d0b;
  box-shadow: 0 1rem 5rem #0008;
}
.media-lightbox::backdrop { background: rgba(5, 5, 5, .94); }
.media-lightbox[open] { display: flex; flex-direction: column; }
.media-lightbox__bar, .media-lightbox__footer { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 1rem; }
.media-lightbox__bar p { margin: 0; font-family: var(--serif); font-size: 1.2rem; }
.media-lightbox__stage { min-height: 0; display: flex; justify-content: center; background: #080706; }
.media-lightbox__stage img { display: block; width: 100%; max-height: calc(94vh - 140px); max-height: calc(94dvh - 140px); object-fit: contain; }
.media-lightbox__navigation { display: flex; align-items: center; gap: .8rem; }
.media-lightbox__navigation span { min-width: 3rem; text-align: center; font-size: .75rem; font-variant-numeric: tabular-nums; }
.media-lightbox__button { width: 44px; height: 44px; padding: 0; border: 1px solid rgba(234, 219, 189, .2); color: var(--paper-light); background: transparent; font-size: 1.4rem; cursor: pointer; }
.media-lightbox__button:hover { background: #3c2921; }
@media (max-width: 850px) {
  .media-section__heading { grid-template-columns: 1fr; gap: 1rem; }
  .media-section__heading h2 { max-width: none; }
  .media-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .media-gallery { grid-template-columns: 1fr; }
  .media-gallery__heading, .media-video figcaption { align-items: flex-start; flex-direction: column; gap: .65rem; }
  .media-video figcaption { padding: 1rem; }
  .media-lightbox__bar, .media-lightbox__footer { padding: .5rem; gap: .4rem; }
  .media-lightbox__bar p { font-size: 1rem; }
  .media-lightbox__navigation { gap: .3rem; }
  .media-lightbox__footer .media-download { max-width: 8rem; text-align: right; font-size: .7rem; }
}
