/* Stills page. Layout that differs by width lives in the two queries below. */

.stills-hero > p:not(.eyebrow) {
  margin-left: 0;
  margin-right: 0;
}

.stills-hero {
  position: relative;
  overflow: hidden;
}

.stills-hero__media,
.stills-hero__shade {
  position: absolute;
  inset: 0;
}

.stills-hero__media {
  z-index: 0;
  display: block;
  margin: 0;
}

.stills-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stills-hero__shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.86) 0%, rgba(5, 5, 5, 0.58) 46%, rgba(5, 5, 5, 0.34) 100%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.42) 0%, rgba(5, 5, 5, 0.18) 46%, rgba(5, 5, 5, 0.62) 100%);
}

.stills-hero > h1,
.stills-hero > p {
  position: relative;
  z-index: 2;
}

.stills-set {
  background: #0a0a0a;
  color: var(--white);
}

.stills-set__flyer {
  display: block;
  width: 100%;
  height: auto;
}

.stills-set__title {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-transform: uppercase;
}

.stills-set__text {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.stills-credits {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 22px 0 0;
  color: var(--white);
  font-weight: 400;
  line-height: 1.5;
}

.stills-credits a,
.stills-thanks__handles a,
.stills-set__text a,
.stills-lightbox__caption a {
  color: var(--pink);
  font-weight: 400;
  text-decoration: none;
}

.stills-credits a:hover,
.stills-thanks__handles a:hover,
.stills-set__text a:hover,
.stills-lightbox__caption a:hover {
  opacity: 0.68;
}

.stills-credits a:focus-visible,
.stills-thanks__handles a:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  opacity: 1;
}

.stills-gallery {
  display: flex;
  flex-direction: column;
  background: var(--black);
}

.stills-block {
  display: grid;
  align-items: start;
  margin: 0;
}

.stills-shot {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
  text-align: left;
}

.stills-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.stills-shot:hover img,
.stills-shot:focus-visible img {
  outline: 1px solid var(--pink);
  outline-offset: -1px;
}

.stills-shot:focus-visible {
  outline: none;
}

.stills-thanks {
  margin: 20px 0 0;
}

.stills-thanks__line {
  margin: 0;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.5;
}

.stills-keep {
  white-space: nowrap;
}

.stills-thanks__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 14px 0 0;
  padding: 8px 16px;
  border: 1px solid var(--pink);
  border-radius: 999px;
  background: transparent;
  color: var(--pink);
  font-weight: 400;
  line-height: 1.3;
  cursor: pointer;
}

.stills-thanks__toggle:hover {
  background: rgba(250, 81, 129, 0.1);
}

.stills-thanks__chevron {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .35s ease;
}

.stills-thanks__toggle[aria-expanded="true"] .stills-thanks__chevron {
  transform: translateY(2px) rotate(-135deg);
}

.stills-thanks__reveal {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}

.stills-thanks__reveal.is-open {
  grid-template-rows: 1fr;
}

.stills-thanks__reveal-inner {
  overflow: hidden;
}

.stills-thanks__handles {
  margin: 14px 0 2px;
  font-weight: 400;
  line-height: 1.5;
}

.stills-thanks__handles a {
  white-space: nowrap;
}

.stills-thanks__handles a:not(:last-child)::after {
  content: "\00a0·";
  color: rgba(255, 255, 255, 0.38);
  font-weight: 400;
}

.stills-lightbox button:focus-visible,
.stills-lightbox a:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}

body.stills-open {
  overflow: hidden;
}

.stills-lightbox[hidden] {
  display: none;
}

.stills-lightbox:not([hidden]) {
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: #050505;
  color: #fff;
}

.stills-lightbox__backdrop {
  position: absolute;
  inset: 0;
}

.stills-lightbox__close,
.stills-lightbox__prev,
.stills-lightbox__next {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: #080808;
  color: #fff;
  cursor: pointer;
}

.stills-lightbox__close:hover,
.stills-lightbox__prev:hover,
.stills-lightbox__next:hover {
  border-color: var(--pink);
  color: var(--pink);
}

.stills-lightbox__close {
  justify-self: end;
  padding: 11px 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stills-lightbox__prev,
.stills-lightbox__next {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-block: auto;
  padding: 0;
}

.stills-lightbox__prev span,
.stills-lightbox__next span {
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.stills-lightbox__prev span {
  transform: translateX(2px) rotate(-135deg);
}

.stills-lightbox__next span {
  transform: translateX(-2px) rotate(45deg);
}

.stills-lightbox__figure {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  margin: 0;
  touch-action: pan-y;
}

.stills-lightbox__img {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
}

.stills-lightbox__caption {
  margin: 14px 0 0;
  color: var(--white);
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
}

.stills-lightbox__caption a:hover {
  color: var(--pink);
}

.stills-lightbox__count {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  pointer-events: none;
}

@media (max-width: 680px) {
  .stills-hero {
    min-height: 0;
    align-items: flex-start;
  }

  .stills-hero__media img {
    object-position: center 46%;
  }

  .stills-set {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
    padding: var(--sy) var(--page-inline);
  }

  .stills-set__title {
    font-size: 32px;
  }

  .stills-set__text,
  .stills-credits,
  .stills-thanks__line,
  .stills-thanks__handles,
  .stills-thanks__toggle {
    font-size: 16px;
  }

  .stills-gallery {
    gap: 8px;
    padding: 12px var(--page-inline) var(--sy);
    overflow-x: hidden;
  }

  .stills-gallery.is-phone-rows > .stills-block {
    display: none;
  }

  .stills-row {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .stills-row .stills-shot {
    flex: 0 0 auto;
    width: auto;
    height: auto;
    min-width: 0;
    max-width: none;
    overflow: hidden;
  }

  .stills-row .stills-shot img {
    display: block;
    width: auto;
    height: auto;
    max-width: none;
    object-fit: contain;
  }

  .stills-lightbox:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 72px 12px 28px;
    background: #000;
  }

  .stills-lightbox__count {
    position: absolute;
    z-index: 2;
    top: 12px;
    top: max(12px, env(safe-area-inset-top));
    left: 12px;
    left: max(12px, env(safe-area-inset-left));
    right: auto;
    margin: 0;
    transform: none;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 44px;
  }

  .stills-lightbox__close {
    position: absolute;
    top: 12px;
    top: max(12px, env(safe-area-inset-top));
    right: 12px;
    right: max(12px, env(safe-area-inset-right));
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    font-size: 0;
  }

  .stills-lightbox__close::before {
    content: "×";
    font-size: 32px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1;
    text-transform: none;
  }

  .stills-lightbox__prev,
  .stills-lightbox__next {
    position: absolute;
    top: 50%;
    margin: -22px 0 0;
  }

  .stills-lightbox__prev {
    left: 8px;
  }

  .stills-lightbox__next {
    right: 8px;
  }

  .stills-lightbox__img {
    max-width: calc(100vw - 24px);
    max-height: calc(100svh - 150px);
  }
}

@media (min-width: 681px) {
  .stills-hero {
    min-height: 0;
    align-items: flex-start;
  }

  .stills-set {
    display: grid;
    grid-template-columns: minmax(200px, 320px) minmax(0, 1fr);
    column-gap: clamp(40px, 6vw, 96px);
    align-items: start;
    padding: var(--sy) var(--page-inline);
  }

  .stills-set__title {
    font-size: 36px;
  }

  .stills-set__text {
    max-width: 42em;
    font-size: 16px;
  }

  .stills-credits,
  .stills-thanks {
    max-width: 42em;
  }

  .stills-credits,
  .stills-credits a,
  .stills-thanks__handles,
  .stills-thanks__handles a,
  .stills-thanks__line,
  .stills-thanks__toggle {
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
  }

  .stills-hero__media img {
    object-position: center 32%;
  }

  .stills-gallery {
    gap: 16px;
    padding: 16px var(--page-inline) var(--sy);
  }

  .stills-block {
    gap: 16px;
  }

  .stills-block--land {
    grid-template-columns: 1fr 1fr;
  }

  .stills-block--port {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .stills-block--landport {
    grid-template-columns: minmax(0, 2.25fr) minmax(0, 1fr);
  }

  .stills-lightbox:not([hidden]) {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr) 84px;
    grid-template-rows: auto minmax(0, 1fr);
    align-items: center;
    padding: 22px 28px 28px;
  }

  .stills-lightbox__close {
    grid-column: 3;
    grid-row: 1;
    font-size: 12px;
  }

  .stills-lightbox__prev {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }

  .stills-lightbox__figure {
    grid-column: 2;
    grid-row: 2;
  }

  .stills-lightbox__next {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
  }

  .stills-lightbox__img {
    max-width: min(1100px, 100%);
    max-height: calc(100svh - 160px);
  }
}
