.gallery-page { background: var(--paper-light); }
.gallery-page .primary-nav a { position: relative; padding: 10px 0; color: inherit; text-decoration: none; font-size: 12px; letter-spacing: .04em; }
.gallery-page .primary-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 4px; height: 1px; background: currentColor; transition: right .2s ease; }
.gallery-page .primary-nav a:not(.nav-cta):hover::after { right: 0; }
.gallery-page .primary-nav .nav-cta { padding: 12px 17px; border: 1px solid currentColor; text-transform: uppercase; letter-spacing: .11em; font-size: 10px; }
.gallery-hero { position: relative; min-height: 92svh; display: flex; align-items: flex-end; overflow: hidden; color: var(--white); background: var(--ink); }
.gallery-hero > img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: 50% 43%; }
.gallery-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,8,.76), rgba(10,10,8,.08) 72%), linear-gradient(0deg, rgba(10,10,8,.53), transparent 58%); }
.gallery-hero-copy { position: relative; z-index: 2; max-width: 850px; padding: 18vh 7vw 10vh; }
.gallery-hero-copy h1 { margin: 0; font-family: var(--serif); font-size: clamp(64px, 9vw, 130px); font-weight: 400; line-height: .84; letter-spacing: -.055em; }
.gallery-hero-copy h1 em { color: #ded0bb; font-weight: 400; }
.gallery-hero-copy > p:last-child { max-width: 560px; margin: 30px 0 0; color: rgba(255,255,255,.82); font-family: var(--serif); font-size: clamp(18px, 1.6vw, 24px); line-height: 1.5; }
.pilot-badge { position: absolute; z-index: 2; right: 4vw; bottom: 5vh; margin: 0; color: rgba(255,255,255,.66); font-size: 9px; text-transform: uppercase; letter-spacing: .14em; }
.gallery-section { padding: 125px 5vw 150px; }
.gallery-intro { display: grid; grid-template-columns: .55fr 1.25fr 1fr; gap: 4vw; align-items: start; max-width: 1450px; margin: 0 auto 85px; }
.gallery-intro h2, .gallery-cta h2 { margin: 0; font-family: var(--serif); font-size: clamp(48px, 6vw, 88px); font-weight: 400; line-height: .94; letter-spacing: -.045em; }
.gallery-intro h2 em { color: var(--bronze); font-weight: 400; }
.gallery-intro > div { color: var(--ink-soft); font-size: 14px; line-height: 1.75; }
.gallery-intro > div p:first-child { margin-top: 3px; }
.gallery-tools { display: flex; align-items: center; justify-content: space-between; max-width: 1450px; margin: 0 auto 30px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gallery-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.gallery-filters button { padding: 9px 13px; border: 0; color: var(--ink-soft); background: transparent; cursor: pointer; font-size: 10px; text-transform: uppercase; letter-spacing: .11em; }
.gallery-filters button[aria-pressed="true"] { color: var(--paper-light); background: var(--ink); }
.gallery-tools > p { margin: 0; color: var(--ink-soft); font-family: var(--serif); font-size: 14px; }
.masonry-gallery { max-width: 1600px; margin: 0 auto; column-count: 3; column-gap: 12px; }
.gallery-card { display: block; width: 100%; margin: 0 0 12px; padding: 6px; break-inside: avoid; border: 0; background: #fff; cursor: zoom-in; overflow: hidden; }
.gallery-card[hidden] { display: none; }
.gallery-card-inner { position: relative; width: 100%; margin: 0; overflow: hidden; }
.gallery-card img { position: absolute; top: 0; left: 0; display: block; width: 100%; height: auto; max-width: none; transform-origin: center top; transition: transform .55s cubic-bezier(.2,.7,.3,1), filter .3s ease; }
.gallery-card:hover img { transform: scale(1.018); filter: brightness(.86); }
.gallery-card figcaption { position: absolute; inset: auto 0 0; display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 55px 18px 16px; color: var(--white); background: linear-gradient(transparent, rgba(0,0,0,.7)); opacity: 0; transform: translateY(8px); transition: opacity .25s ease, transform .25s ease; text-align: left; }
.gallery-card:hover figcaption, .gallery-card:focus-visible figcaption { opacity: 1; transform: translateY(0); }
.gallery-card figcaption strong { font-family: var(--serif); font-size: 16px; font-weight: 400; }
.gallery-card figcaption span { flex: 0 0 auto; font-size: 9px; letter-spacing: .12em; }
.gallery-card.is-entering { animation: cardIn .45s ease both; }
.gallery-cta { padding: 125px 7vw; text-align: center; color: var(--ink); background: var(--paper); }
.gallery-cta h2 { max-width: 900px; margin: 0 auto; }
.gallery-cta > p:not(.eyebrow) { max-width: 580px; margin: 28px auto 35px; color: var(--ink-soft); line-height: 1.7; }
.gallery-footer a:last-child { color: rgba(255,255,255,.6); text-decoration: none; }
.photo-dialog { position: fixed; inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: 100dvh; margin: 0; overflow: hidden; padding: 0; border: 0; color: var(--ink); background: #fff; }
.photo-dialog::backdrop { background: #fff; }
.photo-dialog-grid { position: absolute; inset: calc(48px + env(safe-area-inset-top)) 0 env(safe-area-inset-bottom); min-height: 0; }
.photo-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 0; overflow: hidden; background: #fff; }
.photo-frame { flex: none; overflow: hidden; visibility: hidden; }
.photo-stage img { display: block; width: 100%; height: auto; max-width: none; max-height: none; }
.photo-information { position: absolute; z-index: 2; inset: 0 0 0 auto; width: min(430px, 100%); min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; overflow-wrap: anywhere; padding: 30px; background: var(--paper-light); box-shadow: -12px 0 35px #0005; }
.photo-information[hidden] { display: none; }
.photo-toolbar { position: absolute; z-index: 3; inset: 0 0 auto; height: calc(48px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) max(8px, env(safe-area-inset-right)) 0 max(8px, env(safe-area-inset-left)); display: flex; align-items: center; gap: 8px; color: var(--ink); background: #fff; }
.photo-toolbar button { min-height: 44px; padding: 0 14px; border: 0; color: inherit; background: transparent; cursor: pointer; font-size: 13px; }
.photo-toolbar button:hover, .photo-toolbar button[aria-expanded="true"] { background: #0000000d; }
.photo-toolbar button:focus-visible { outline: 2px solid var(--ink); outline-offset: -3px; }
.photo-information h2 { margin: 0; font-family: var(--serif); font-size: clamp(35px, 3.7vw, 55px); font-weight: 400; line-height: .97; letter-spacing: -.035em; }
.photo-information > p:not(.eyebrow) { color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
.photo-information dl { margin: 22px 0; border-top: 1px solid var(--line); }
.photo-information dl div { padding: 13px 0; border-bottom: 1px solid var(--line); }
.photo-information dt { margin-bottom: 5px; color: var(--ink-soft); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.photo-information dd { margin: 0; color: var(--ink-soft); font-family: var(--serif); font-size: 13px; line-height: 1.5; }
.photo-information > a { align-self: flex-start; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); font-size: 11px; }
.photo-nav { display: flex; gap: 8px; margin-right: auto; }
.photo-toolbar .photo-close { width: 44px; padding: 0; font-size: 29px; line-height: 1; }
.date-note { display: block; margin-top: 8px; font-family: var(--sans); font-size: 12px; line-height: 1.5; }
.gallery-locations { display: flex; flex-wrap: wrap; justify-content: center; text-align: center; gap: 12px 26px; max-width: 1450px; margin: 0 auto 25px; }
.gallery-locations a { color: var(--ink); font-size: 1rem; text-underline-offset: 5px; padding: 8px 0; }
.gallery-locations a[aria-current="page"] { font-weight: 700; }
#gallery-empty { max-width: 1450px; margin: 28px auto; line-height: 1.6; }
@keyframes cardIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1020px) {
  .gallery-page .primary-nav a { padding: 15px 0; text-align: left; font-family: var(--serif); font-size: 21px; }
  .gallery-page .primary-nav .nav-cta { margin-top: 10px; padding: 15px; text-align: center; font-family: var(--sans); font-size: 10px; }
  .gallery-intro { grid-template-columns: 1fr 1fr; }
  .gallery-intro > .eyebrow { grid-column: 1 / -1; }
  .masonry-gallery { column-count: 2; }
}

@media (max-width: 700px) {
  .gallery-hero { min-height: 760px; }
  .gallery-hero > img { object-position: 48% center; }
  .gallery-hero-copy { padding: 150px 23px 90px; }
  .gallery-hero-copy h1 { font-size: 59px; }
  .pilot-badge { left: 23px; right: auto; bottom: 24px; }
  .gallery-section { padding: 80px 14px 90px; }
  .gallery-intro { grid-template-columns: 1fr; gap: 22px; padding: 0 9px; margin-bottom: 50px; }
  .gallery-intro > .eyebrow { grid-column: auto; }
  .gallery-intro h2 { font-size: 48px; }
  .gallery-tools { align-items: flex-start; flex-direction: column; gap: 14px; padding-left: 8px; padding-right: 8px; }
  .gallery-filters { flex-wrap: wrap; width: 100%; overflow: visible; }
  .gallery-filters::-webkit-scrollbar { display: none; }
  .gallery-filters button { flex: 0 0 auto; }
  .masonry-gallery { column-count: 1; column-gap: 0; }
  .gallery-card { margin-bottom: 8px; }
  .gallery-card figcaption { opacity: 1; transform: none; }
  .gallery-cta { padding: 90px 23px; }
  .gallery-cta h2 { font-size: 48px; }
  .photo-information { overflow-y: auto; padding: 24px; }
  .photo-toolbar button { padding: 0 9px; }
  .photo-nav { gap: 0; }
}

.gallery-image-notes { margin-top: 40px; border-top: 1px solid #ccc5b9; padding-top: 20px; }
.gallery-image-notes summary { cursor: pointer; font-size: 16px; }
.gallery-image-notes article { margin: 28px 0; max-width: 760px; }
.gallery-image-notes h3 { font-family: var(--serif); font-size: 24px; }
.gallery-image-notes p { font-size: 16px; line-height: 1.6; }

#sports-faq { scroll-margin-top: 120px; }

.gallery-cta .eyebrow.light { color: var(--bronze); }
.gallery-cta .button-light { color: var(--ink); border-color: var(--ink); background: transparent; }
.gallery-cta .button-light:is(:hover, :focus-visible) { color: #fff; background: var(--link-accent); border-color: var(--link-accent); }

/* This imported source is 800x630; only its upper 800x534 is the photograph.
   Scale that photo area to cover the hero, leaving the embedded footer outside it. */
.gallery-hero.decor-hero > img { width: 100%; height: calc(100% * 630 / 534); max-height: none; object-fit: cover; object-position: center top; }

/* Scale only the extra print footer beyond the hero's clipping boundary. */
.gallery-hero > img[src*="edina-couples-lifestyle"], .gallery-hero > img[src*="lake-lifestyle"], .gallery-hero > img[src*="eynix2ooexp"] { height:118.2%; object-position:center top; }
.gallery-hero > img[src*="engagement-01"] { height:calc(100% * 1200 / 1072); object-position:center top; }

.gallery-next-steps { display:flex; flex-wrap:wrap; justify-content:center; gap:16px; margin:32px auto 0; max-width:760px; }
.gallery-next-steps .button { display:flex; align-items:center; justify-content:center; flex:1 1 260px; min-height:60px; padding:16px; white-space:normal; line-height:1.5; }
.gallery-filters button { min-height:44px; font-size:13px; }
.photo-information > p:not(.eyebrow) { font-size:16px; }

.service-jump { display:flex; flex-wrap:wrap; justify-content:center; gap:16px 28px; }
.service-jump a { display:inline-block; padding:10px 0; }

.gallery-locations a { text-decoration:none; }
.gallery-locations a:hover, .gallery-locations a:focus-visible { text-decoration:underline; }
