/* Selected AK Lookbook photography. */
.gallery-tile.has-photo {
  --zoom-x: 50%;
  --zoom-y: 50%;
  padding: 0;
  isolation: isolate;
  cursor: zoom-in;
}

.gallery-tile.has-photo::before {
  content: none;
}

.gallery-tile.has-photo::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, .86) 100%);
  pointer-events: none;
}

.gallery-tile.has-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
  transform: scale(1.01);
  transform-origin: var(--zoom-x) var(--zoom-y);
  filter: saturate(.86) contrast(1.04) brightness(.9);
  transition: transform .65s cubic-bezier(.2, .7, .2, 1), filter .45s ease;
  will-change: transform;
}

.gallery-tile.has-photo:hover img,
.gallery-tile.has-photo:focus-visible img {
  transform: scale(1.16);
  filter: saturate(1) contrast(1.06) brightness(1);
}

.gallery-tile.photo-pair img {
  opacity: 0;
  transition:
    opacity 1s ease,
    transform .65s cubic-bezier(.2, .7, .2, 1),
    filter .45s ease;
}

.gallery-tile.photo-pair img.is-active {
  opacity: 1;
}

.gallery-tile.has-photo span {
  right: 22px;
  left: 22px;
  font-size: clamp(22px, 2.6vw, 36px);
}

.gallery-tile.has-photo span::after {
  content: "";
  display: block;
  width: 34px;
  height: 1px;
  margin-top: 10px;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(200, 169, 106, .45);
}

.gallery-tile.has-photo small {
  display: block;
  margin-bottom: 7px;
  color: var(--gold);
  font: 600 9px/1.2 'DM Sans', sans-serif;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.gallery-grid {
  grid-auto-flow: dense;
}

.gallery .g1 {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery .g2,
.gallery .g3,
.gallery .g4,
.gallery .g5 {
  grid-column: span 1;
  grid-row: span 1;
}

.gallery .g6,
.gallery .g7 {
  grid-column: span 2;
  grid-row: span 1;
  width: 100%;
  justify-self: stretch;
}

.gallery .g7 img {
  object-position: center;
}

.lightbox-image {
  display: none;
}

.lightbox.has-image {
  width: min(900px, 92vw);
  height: min(880px, 88vh);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(200, 169, 106, .35);
  background: #070707;
}

.lightbox.has-image .lightbox-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightbox.has-image .lightbox-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: auto;
  padding: 72px 30px 26px;
  display: block;
  text-align: left;
  background: linear-gradient(transparent, rgba(0, 0, 0, .92));
}

.lightbox.has-image .lightbox-copy h2 {
  margin-top: 7px;
  font-size: clamp(36px, 5vw, 60px);
}

.lightbox.has-image .lightbox-copy span {
  display: block;
  margin-top: 9px;
  color: #c7c0b6;
  font-size: 13px;
}

@media (max-width: 850px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery .g1,
  .gallery .g6,
  .gallery .g7 {
    grid-column: span 2;
  }
}

@media (max-width: 500px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .gallery .g1,
  .gallery .g2,
  .gallery .g3,
  .gallery .g4,
  .gallery .g5,
  .gallery .g6,
  .gallery .g7 {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery-tile.has-photo {
    min-height: 260px;
  }

  .gallery .g7 {
    min-height: 170px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-tile.has-photo img {
    transition: none;
  }

  .gallery-tile.photo-pair img:not(.is-active) {
    display: none;
  }
}
