.gallery-page { overflow-x: hidden; background: #edf7ff; }
.gallery-header { position: relative; z-index: 5; }
.gallery-header .language { cursor: default; }
.gallery-main { width: min(1280px, calc(100% - 36px)); }
.gallery-hero { display: grid; grid-template-columns: .78fr 1.42fr; min-height: min(780px, calc(100vh - 110px)); margin-bottom: 110px; overflow: hidden; border: 1px solid var(--line); border-radius: 34px; background: var(--surface); box-shadow: var(--shadow); }
.gallery-hero-copy { position: relative; display: flex; flex-direction: column; justify-content: center; padding: clamp(34px, 6vw, 78px); }
.gallery-hero-copy::before { content: ""; position: absolute; top: 52px; right: -28px; width: 58px; height: 58px; border-radius: 50%; background: var(--sun); z-index: 2; }
.gallery-hero h1 { max-width: 8ch; margin: 10px 0 28px; font-size: clamp(3.5rem, 7vw, 7.4rem); letter-spacing: -.075em; line-height: .84; }
.gallery-hero-copy > p:not(.section-kicker) { max-width: 520px; color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.25rem); }
.gallery-count { display: flex; align-items: center; gap: 14px; margin-top: 34px; color: var(--sea-deep); }
.gallery-count strong { font-size: 3.2rem; line-height: 1; }
.gallery-count span { font-size: .72rem; font-weight: 800; letter-spacing: .08em; line-height: 1.15; text-transform: uppercase; }
.gallery-photo { position: relative; display: block; min-width: 0; margin: 0; padding: 0; overflow: hidden; border: 0; border-radius: 26px; background: #cfe9f7; cursor: zoom-in; }
.gallery-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.65,.2,1), filter .4s ease; }
.gallery-photo:hover img { transform: scale(1.025); filter: saturate(1.05); }
.gallery-photo:focus-visible { outline: 4px solid var(--sun); outline-offset: 4px; }
.gallery-hero-photo { min-height: 620px; border-radius: 0; }
.gallery-hero-photo img { object-position: center; }
.gallery-photo-label { position: absolute; right: 22px; bottom: 22px; display: grid; gap: 2px; padding: 12px 16px; border-radius: 16px; color: #fff; background: color-mix(in srgb, var(--sea-deep) 76%, transparent); backdrop-filter: blur(10px); text-align: left; }
.gallery-photo-label small { opacity: .76; }
.gallery-chapter { margin-bottom: 120px; }
.gallery-chapter-heading { display: grid; grid-template-columns: 70px 1fr 1fr; gap: 28px; align-items: end; margin-bottom: 34px; }
.gallery-chapter-heading > span { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; color: var(--sea-deep); background: var(--sun); font-size: .78rem; font-weight: 900; }
.gallery-chapter-heading h2 { margin: 0; font-size: clamp(2.4rem, 5vw, 5rem); letter-spacing: -.055em; line-height: .92; }
.gallery-chapter-heading > p { max-width: 520px; margin: 0 0 5px; color: var(--muted); font-size: 1.05rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; gap: 16px; }
.gallery-grid .span-4 { grid-column: span 4; min-height: 460px; }
.gallery-grid .span-5 { grid-column: span 5; min-height: 580px; }
.gallery-grid .span-7 { grid-column: span 7; min-height: 580px; }
.gallery-grid .landscape img { object-position: center; }
.gallery-grid-day .span-7:first-child img { object-position: center 65%; }
.gallery-grid-port { padding: 18px; border-radius: 34px; background: var(--sea-deep); }
.gallery-grid-port .gallery-photo { border-radius: 20px; }
.gallery-chapter-blue .gallery-chapter-heading > span { color: var(--sun); background: var(--sea-deep); }
.gallery-grid-sunset .span-7 { min-height: 620px; }
.gallery-chapter-night { padding: clamp(28px, 5vw, 62px); border-radius: 38px; color: #fff; background: #082744; }
.gallery-chapter-night .section-kicker { color: var(--sun); }
.gallery-chapter-night .gallery-chapter-heading > p { color: #aac5da; }
.gallery-chapter-night .gallery-chapter-heading > span { color: #082744; }
.gallery-grid-night .gallery-photo { background: #071b2d; }
.gallery-signature { display: grid; place-items: center; min-height: 430px; margin-bottom: 90px; padding: 60px 24px; border-radius: 34px; color: #fff; background: linear-gradient(135deg, var(--sea-deep), #168dd0); text-align: center; }
.gallery-signature .section-kicker { color: var(--sun); }
.gallery-signature h2 { margin: 0; color: #fff; font-size: clamp(3rem, 7vw, 6.8rem); }
.gallery-signature p:last-child { max-width: 620px; color: #d8edfa; font-size: 1.1rem; }
.gallery-footer { width: min(1280px, calc(100% - 36px)); }
.gallery-lightbox { width: min(94vw, 1300px); max-width: none; height: min(92vh, 920px); max-height: none; margin: auto; padding: 0; overflow: hidden; border: 0; border-radius: 28px; color: #fff; background: #061d31; box-shadow: 0 35px 120px #00152dcc; }
.gallery-lightbox::backdrop { background: #00111fd9; backdrop-filter: blur(8px); }
.gallery-lightbox figure { display: grid; width: 100%; height: 100%; margin: 0; place-items: center; }
.gallery-lightbox img { display: block; max-width: 100%; max-height: calc(100% - 72px); object-fit: contain; }
.gallery-lightbox figcaption { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); font-weight: 750; white-space: nowrap; }
.gallery-lightbox-close, .gallery-lightbox-nav { position: absolute; z-index: 2; display: grid; place-items: center; border: 0; border-radius: 50%; color: #fff; background: #ffffff20; cursor: pointer; backdrop-filter: blur(8px); }
.gallery-lightbox-close { top: 18px; right: 18px; width: 46px; height: 46px; font-size: 1.8rem; }
.gallery-lightbox-nav { top: 50%; width: 50px; height: 50px; transform: translateY(-50%); font-size: 1.35rem; }
.gallery-lightbox-nav.previous { left: 18px; }
.gallery-lightbox-nav.next { right: 18px; }
.gallery-lightbox-count { position: absolute; right: 24px; bottom: 20px; color: #aac5da; font-size: .8rem; }
body.lightbox-open { overflow: hidden; }
@media (max-width: 800px) {
  .gallery-main, .gallery-footer { width: min(100% - 24px, 1280px); }
  .gallery-hero { grid-template-columns: 1fr; min-height: 0; margin-bottom: 76px; border-radius: 26px; }
  .gallery-hero-copy { min-height: 520px; }
  .gallery-hero-copy::before { right: 30px; bottom: -24px; top: auto; }
  .gallery-hero-photo { min-height: 72vh; }
  .gallery-chapter { margin-bottom: 78px; }
  .gallery-chapter-heading { grid-template-columns: 54px 1fr; gap: 18px 10px; align-items: start; }
  .gallery-chapter-heading > p { grid-column: 2; }
  .gallery-grid .span-4, .gallery-grid .span-5, .gallery-grid .span-7 { grid-column: 1 / -1; min-height: min(122vw, 680px); }
  .gallery-grid .landscape { min-height: min(78vw, 470px); }
  .gallery-chapter-night { padding: 22px 12px; border-radius: 28px; }
  .gallery-lightbox-nav { top: auto; bottom: 14px; transform: none; }
  .gallery-lightbox figcaption { bottom: 27px; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
  .gallery-lightbox-count { display: none; }
}
@media (prefers-reduced-motion: reduce) { .gallery-photo img { transition: none; } }
