/* ILM v60 gallery — uses the site's navy/cyan/gold identity, editorial layouts. */
.gallery-page { display:block; background:#f5f8fa; overflow:hidden; }
.gallery-page *, .gallery-page *::before, .gallery-page *::after { box-sizing:border-box; }
.gallery-page .gallery-hero { padding:165px 0 79px; position:relative; isolation:isolate; background:radial-gradient(circle at 85% 8%,rgba(18,143,186,.19),transparent 38%),linear-gradient(130deg,#061b28,#0c3549 68%,#0e4052); }
.gallery-hero::before { content:""; position:absolute; inset:0; z-index:-1; opacity:.25; background-image:radial-gradient(rgba(120,227,250,.33) 1px,transparent 1px);background-size:26px 26px; mask-image:linear-gradient(90deg,transparent,#000); }
.gallery-hero-grid { display:grid; grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr); gap:clamp(30px,6vw,90px); align-items:center; }
.gallery-logo-panel { position:relative; padding:27px 25px 20px; min-height:430px; background:linear-gradient(145deg,#fff,#f6f9fd); border:1px solid rgba(255,255,255,.8); border-radius:27px; box-shadow:0 22px 65px rgba(0,0,0,.24); display:flex; flex-direction:column; align-items:center; justify-content:center; }
.gallery-logo-panel::after { content:""; position:absolute; inset:12px; pointer-events:none; border:1px solid #e8edf2; border-radius:19px; }
.gallery-logo-panel img { display:block; object-fit:contain; width:min(100%,365px); height:auto; max-height:345px; margin:auto; }
.gallery-logo-top,.gallery-logo-bottom { position:relative; z-index:1; align-self:flex-start; font-weight:800; font-size:.63rem; letter-spacing:.19em; color:#44616d; }
.gallery-logo-bottom { color:#627b89; align-self:flex-end; }
.gallery-hero-copy { min-width:0; color:#edf9ff; }
.gallery-eyebrow { color:#78e7f8; font-size:.69rem; letter-spacing:.17em; font-weight:850; margin:0 0 19px; line-height:1.5; }
.gallery-hero-copy .gallery-eyebrow span { display:inline-block; width:28px; height:1px; background:#e6bf71; margin:0 8px 4px; }
.gallery-hero-copy h1 { margin:0 0 22px; font-size:clamp(2.9rem,5.6vw,5.4rem); line-height:.99; letter-spacing:-.055em; font-weight:850; }
.gallery-hero-copy h1 span { display:block; margin-top:10px; font-size:clamp(1.45rem,2.8vw,2.45rem); letter-spacing:-.028em; font-weight:550; color:#a0e6f2; line-height:1.18; }
.gallery-hero-lead { font-size:1.04rem; line-height:1.65; color:#d2e5ef; max-width:560px; margin:0 0 25px; }
.gallery-story { max-width:590px; padding:21px 23px; background:rgba(255,255,255,.065); border:1px solid rgba(164,229,244,.19); border-left:3px solid #dfbc70; border-radius:12px; }
.gallery-story strong { display:block; font-size:.67rem; letter-spacing:.17em; color:#e5c783; margin-bottom:8px; }
.gallery-story p { margin:0; font-size:.83rem; line-height:1.85; color:#c3d7df; }
.gallery-topics { display:flex; flex-wrap:wrap; gap:8px; margin-top:18px; }
.gallery-topics span { font-size:.7rem; padding:7px 10px; border:1px solid rgba(169,235,247,.25); border-radius:999px; color:#d2eef7; }
.gallery-collection { background:#f5f8fa; color:#0d2b3b; padding:76px 0 94px; }
.gallery-section-heading { display:flex; justify-content:space-between; align-items:end; gap:35px; margin-bottom:28px; }
.gallery-section-heading>div:first-child { max-width:655px; }
.gallery-section-heading .gallery-eyebrow { color:#0a849b; margin-bottom:12px; }
.gallery-section-heading h2 { color:#0a2e40; font-size:clamp(2rem,3.7vw,3.55rem); line-height:1.07; letter-spacing:-.052em; margin:0 0 15px; }
.gallery-section-heading p:not(.gallery-eyebrow) { margin:0; color:#5e7180; font-size:.9rem; line-height:1.72; max-width:600px; }
.gallery-filters { display:flex; flex-wrap:wrap; gap:7px; justify-content:flex-end; align-items:center; }
.gallery-filters button { appearance:none; border:1px solid #d9e5eb; background:white; color:#4a6573; font:750 .75rem/1.15 Inter,system-ui,sans-serif; padding:11px 15px; border-radius:999px; white-space:nowrap; cursor:pointer; transition:background .18s,color .18s,border-color .18s; }
.gallery-filters button:is(.is-active,:hover,:focus-visible) { background:#0d3b50; color:white; border-color:#0d3b50; }
.gallery-grid { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:17px; }
.gallery-card { min-width:0; grid-column:span 4; height:270px; position:relative; border-radius:19px; overflow:hidden; background:#0c3548; box-shadow:0 10px 28px rgba(11,49,66,.11); }
.gallery-card:nth-child(1) { grid-column:span 7; height:374px; }
.gallery-card:nth-child(2) { grid-column:span 5; height:374px; }
.gallery-card[hidden] { display:none!important; }
.gallery-card-action { display:block; width:100%; height:100%; padding:0; margin:0; border:0; background:transparent; color:white; cursor:zoom-in; text-align:left; position:relative; isolation:isolate; }
.gallery-card-action img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; transform:scale(1); transition:transform .36s ease; }
.gallery-card:nth-child(3) img,.gallery-card:nth-child(4) img { object-position:center 28%; }
.gallery-card-action:is(:hover,:focus-visible) img { transform:scale(1.045); }
.gallery-card-action:focus-visible { outline:3px solid #5be4f7; outline-offset:-3px; }
.gallery-card-shade { position:absolute; z-index:1; inset:0; background:linear-gradient(to bottom,rgba(4,17,27,.38) 0%,transparent 38%,rgba(2,15,24,.84) 100%); }
.gallery-card-category { position:absolute; z-index:2; top:18px; left:18px; border:1px solid rgba(255,255,255,.45); background:rgba(7,35,47,.55);backdrop-filter:blur(8px);padding:7px 11px;border-radius:999px;font-size:.67rem;line-height:1.2;letter-spacing:.07em;font-weight:780; }
.gallery-card-details { position:absolute; z-index:2; bottom:21px; left:20px; right:52px; }
.gallery-card-details strong { display:block; font-size:clamp(1.15rem,1.55vw,1.55rem); line-height:1.22; letter-spacing:-.025em; margin-bottom:6px; }
.gallery-card-details small { display:block; max-width:560px; color:#d9e7eb; line-height:1.5; font-size:.72rem; }
.gallery-card-expand { position:absolute; z-index:2; bottom:21px; right:18px; display:grid; place-items:center; width:31px; height:31px; border:1px solid rgba(255,255,255,.55); border-radius:50%; font-size:1.1rem; }
.gallery-bottom { display:flex; align-items:center; justify-content:space-between; gap:25px; margin-top:26px; padding:22px 24px; border:1px solid #dde7ea; border-radius:15px; background:#fff; }
.gallery-bottom strong { display:block; font-size:1.1rem; color:#143746; }
.gallery-bottom span { display:block; font-size:.77rem; color:#69808a; margin-top:4px; }
.gallery-bottom a { flex:none; display:inline-flex; gap:12px; align-items:center; border-radius:999px; background:#0c4056; color:#fff; font-size:.79rem; font-weight:800; padding:12px 18px; }
.gallery-bottom a span { color:#fff; font-size:.9rem; margin:0; }
.gallery-lightbox { width:min(1100px,95vw); max-width:1100px; max-height:92dvh; border:0; padding:0; border-radius:17px; overflow:hidden; background:#061b28; color:#fff; box-shadow:0 25px 90px rgba(0,0,0,.45); }
.gallery-lightbox::backdrop { background:rgba(0,11,20,.84); backdrop-filter:blur(5px); }
.gallery-lightbox-inner { position:relative; text-align:center; padding:12px 12px 9px; }
.gallery-lightbox img { display:block; width:auto; max-width:100%; height:auto; max-height:calc(92dvh - 75px); object-fit:contain; margin:auto; border-radius:8px; }
.gallery-lightbox-caption { margin:8px 0 2px; color:#c5dae3; font-size:.83rem; }
.gallery-lightbox-close { position:absolute; top:18px; right:19px; z-index:3; width:39px; height:39px; border:1px solid rgba(255,255,255,.45); border-radius:50%; color:#fff; background:rgba(5,27,39,.85); font-size:1.8rem;line-height:1; cursor:pointer; }
@media(max-width:960px) {
  .gallery-page .gallery-hero { padding-top:125px; padding-bottom:65px; }
  .gallery-hero-grid { grid-template-columns:.75fr 1.25fr; gap:30px; }
  .gallery-logo-panel { min-height:330px; padding:20px; }
  .gallery-hero-copy h1 { font-size:clamp(2.25rem,5.5vw,3.65rem); }
  .gallery-section-heading { display:block; }
  .gallery-filters { margin-top:22px; justify-content:flex-start; }
  .gallery-card:nth-child(1),.gallery-card:nth-child(2) { height:325px; }
}
@media(max-width:680px) {
  .gallery-page .gallery-hero { padding:116px 0 50px; }
  .gallery-hero-grid { grid-template-columns:1fr; gap:26px; }
  .gallery-logo-panel { max-width:450px; width:100%; margin:auto; min-height:220px; padding:15px 22px 12px; }
  .gallery-logo-panel img { max-height:205px; width:min(100%,220px); }
  .gallery-logo-top,.gallery-logo-bottom { font-size:.57rem; }
  .gallery-hero-copy h1 { font-size:clamp(2.55rem,10vw,3.65rem); }
  .gallery-hero-copy h1 span { font-size:clamp(1.38rem,5.8vw,2rem); }
  .gallery-hero-lead { font-size:.93rem; }
  .gallery-story { padding:17px 18px; }
  .gallery-collection { padding:54px 0 66px; }
  .gallery-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; }
  .gallery-card,.gallery-card:nth-child(1),.gallery-card:nth-child(2) { grid-column:span 2; height:245px; border-radius:14px; }
  .gallery-card:first-child { height:275px; }
  .gallery-card-category { top:13px; left:13px; }
  .gallery-card-details { left:15px; bottom:17px; right:50px; }
  .gallery-card-details strong { font-size:1.18rem; }
  .gallery-bottom { align-items:start; flex-direction:column; padding:18px; }
}
@media(max-width:390px) {
  .gallery-filters button { padding:10px 11px; font-size:.7rem; }
  .gallery-page .gallery-eyebrow { font-size:.61rem; }
  .gallery-hero-copy h1 { font-size:2.45rem; }
}
@media(prefers-reduced-motion:reduce) {
  .gallery-card-action img,.gallery-filters button { transition:none!important; }
  .gallery-card-action:hover img { transform:none; }
}
