/* R66.1 — quiet Gallery hero typography and natural-ratio photo viewer. */

/* Hero: keep the copy clear of the fixed navigation and use a restrained editorial placement. */
.gallery-page .gallery-hero-editorial {
  min-height: 340px !important;
  height: auto !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  box-sizing: border-box;
  padding: 132px clamp(28px, 7vw, 108px) 44px !important;
  text-align: left !important;
  background: #171513 !important;
}
.gallery-page .gallery-hero-copy {
  width: min(100%, 780px) !important;
  margin: 0 !important;
  text-align: left !important;
}
.gallery-page .gallery-hero-eyebrow {
  margin: 0 0 12px !important;
  font-size: 8px !important;
  letter-spacing: .2em !important;
}
.gallery-page .gallery-hero-copy h1 {
  margin: 0 !important;
  font-size: clamp(38px, 4.2vw, 58px) !important;
  line-height: 1.08 !important;
  letter-spacing: -.035em !important;
}
.gallery-page .gallery-hero-subtitle {
  margin: 12px 0 0 !important;
  font-size: 12px !important;
  letter-spacing: .025em !important;
}

/* The image remains the same portrait photograph; no zoom-to-fill or crop. */
.gallery-page .v13-gallery-card {
  cursor: zoom-in;
  background: #e2d8cc !important;
}
.gallery-page .v13-gallery-card img {
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
  transition: opacity .22s ease !important;
}
.gallery-page .v13-gallery-card:hover img {
  transform: none !important;
  opacity: .94;
}

/* Calm, framed lightbox: natural image proportions, not a full-screen video-like display. */
.gallery-page dialog.v13-lightbox {
  position: fixed;
  inset: 0;
  width: min( min(78vw, 980px), calc(100vw - 40px) );
  height: min(82vh, 900px);
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 46px 58px 38px;
  box-sizing: border-box;
  border: 1px solid rgba(69, 56, 45, .18);
  border-radius: 2px;
  background: #eee7de;
  color: #342d26;
  overflow: visible;
  box-shadow: 0 22px 70px rgba(25, 20, 16, .22);
}
.gallery-page dialog.v13-lightbox::backdrop {
  background: rgba(30, 26, 22, .62);
  backdrop-filter: blur(3px);
}
.gallery-page .v13-lightbox-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0 auto;
  object-fit: contain !important;
  object-position: center;
  background: transparent !important;
  border: 0;
  box-shadow: none;
}
.gallery-page .v13-lightbox-close,
.gallery-page .v13-lightbox-nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(69, 56, 45, .22);
  border-radius: 50%;
  background: rgba(238, 231, 222, .92);
  color: #342d26;
  font: 300 22px/1 "Jost", Arial, sans-serif;
  cursor: pointer;
  box-shadow: none;
}
.gallery-page .v13-lightbox-close {
  top: 12px;
  right: 12px;
  font-size: 24px;
}
.gallery-page .v13-lightbox-prev {
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
}
.gallery-page .v13-lightbox-next {
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}
.gallery-page .v13-lightbox-close:hover,
.gallery-page .v13-lightbox-nav:hover {
  background: #91452f;
  border-color: #91452f;
  color: #fff;
}
@media (max-width: 900px) {
  .gallery-page .gallery-hero-editorial {
    min-height: 310px !important;
    padding: 122px 36px 38px !important;
  }
  .gallery-page .gallery-hero-copy h1 { font-size: clamp(36px, 5.4vw, 48px) !important; }
  .gallery-page dialog.v13-lightbox {
    width: min(88vw, 760px);
    height: min(78vh, 780px);
    padding: 42px 48px 32px;
  }
}
@media (max-width: 650px) {
  .gallery-page .gallery-hero-editorial {
    min-height: 270px !important;
    padding: 112px 22px 30px !important;
  }
  .gallery-page .gallery-hero-eyebrow { font-size: 7px !important; margin-bottom: 10px !important; }
  .gallery-page .gallery-hero-copy h1 {
    font-size: clamp(32px, 8.4vw, 40px) !important;
    line-height: 1.1 !important;
  }
  .gallery-page .gallery-hero-subtitle { margin-top: 9px !important; font-size: 11px !important; }
  .gallery-page dialog.v13-lightbox {
    width: calc(100vw - 24px);
    height: min(78vh, 720px);
    padding: 42px 30px 28px;
  }
  .gallery-page .v13-lightbox-close { top: 8px; right: 8px; }
  .gallery-page .v13-lightbox-prev { left: 5px; }
  .gallery-page .v13-lightbox-next { right: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-page .v13-gallery-card img { transition: none !important; }
}
