:root{--ga-deep:#010b18;--ga-navy:#03182c;--ga-cyan:#13d8ef;--ga-text:#f7fbff;--ga-muted:#b7c8d8;--ga-line:rgba(91,218,241,.24)}
.gallery-page{min-height:70vh;background:var(--ga-deep);color:var(--ga-text)}
.gallery-hero{padding:38px 5% 42px;text-align:center;background:radial-gradient(circle at 75% 20%,rgba(19,216,239,.14),transparent 32%),linear-gradient(135deg,#031d35,#010b18)}
.gallery-hero-content{width:min(100%,760px);margin:auto}.gallery-hero-content>span{color:var(--ga-cyan);font-size:.8rem;font-weight:800;letter-spacing:.15em;text-transform:uppercase}.gallery-hero h1{margin:7px 0 9px;font-size:clamp(2.35rem,4vw,3.8rem);line-height:1}.gallery-hero p{color:var(--ga-muted);font-size:1rem}
.gallery-page .gallery-container{width:100%;max-width:none;box-sizing:border-box;margin:0;padding:42px 5% 68px;border-radius:0;background:linear-gradient(180deg,#010b18,#03182c);box-shadow:none}
.gallery-section-heading{text-align:center;margin-bottom:22px}.gallery-section-heading h2{font-size:clamp(1.65rem,2.5vw,2.3rem)}.gallery-section-heading p{margin-top:7px;color:var(--ga-muted)}
.gallery-buttons{width:min(100%,1180px);margin:0 auto 28px;gap:9px}.gallery-buttons .filter-btn{padding:10px 17px;border:1px solid var(--ga-line);border-radius:999px;background:rgba(255,255,255,.04);color:#fff;animation:none;box-shadow:none;font-size:.9rem}.gallery-buttons .filter-btn:hover,.gallery-buttons .filter-btn.active{background:var(--ga-cyan);color:#001321;border-color:var(--ga-cyan);transform:none}
.gallery-page .gallery-grid{width:min(100%,1180px);margin:auto;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:210px;gap:14px}.gallery-page .gallery-item{width:100%;height:100%;border-radius:13px;background:#09243d;box-shadow:0 10px 28px rgba(0,0,0,.22);border:1px solid rgba(255,255,255,.07)}.gallery-page .gallery-item img{border-radius:13px}.gallery-page .gallery-item:hover{transform:translateY(-3px);box-shadow:0 15px 34px rgba(0,0,0,.3)}.gallery-page .gallery-item:hover img{transform:scale(1.045)}
.pagination-container .page-btn{min-width:40px;padding:9px 13px;border:1px solid var(--ga-line);border-radius:8px;background:#06223c;color:#fff}.pagination-container .page-btn.active,.pagination-container .page-btn:hover{background:var(--ga-cyan);color:#001321;border-color:var(--ga-cyan)}
.lightbox{z-index:5000;background:rgba(0,7,16,.94);backdrop-filter:blur(8px)}.lightbox-img{max-width:min(92%,1280px);max-height:82vh;border-radius:12px;box-shadow:0 25px 80px rgba(0,0,0,.55)}.close{top:20px;right:30px;font-size:2.6rem;line-height:1}.lightbox-controls{top:auto;bottom:24px}.lightbox-controls button{padding:10px 16px;border:1px solid rgba(255,255,255,.25);border-radius:9px;background:rgba(2,20,36,.9);color:#fff;cursor:pointer}.lightbox-controls button:hover{background:var(--ga-cyan);color:#001321}
body.light-mode header{background:#f8fbfe!important;color:#102235!important;border-bottom:1px solid rgba(2,45,76,.13)!important;box-shadow:0 5px 22px rgba(6,35,59,.09)!important}body.light-mode #main-nav a{color:#102235!important}body.light-mode .mobile-menu-btn span{background:#102235!important}body:not(.light-mode) header{background:#010b18!important;border-bottom:1px solid rgba(255,255,255,.08)!important}
body.light-mode .gallery-page{background:#f3f8fc;color:#102235}body.light-mode .gallery-hero{background:radial-gradient(circle at 75% 20%,rgba(19,216,239,.17),transparent 32%),linear-gradient(135deg,#edf8ff,#dbeef8)}body.light-mode .gallery-hero p,body.light-mode .gallery-section-heading p{color:#52697d}body.light-mode .gallery-page .gallery-container{background:linear-gradient(180deg,#f7fbfe,#e8f4f9)}body.light-mode .gallery-buttons .filter-btn{background:#fff;color:#102235;border-color:rgba(9,121,147,.22)}body.light-mode .gallery-buttons .filter-btn:hover,body.light-mode .gallery-buttons .filter-btn.active{background:var(--ga-cyan);color:#001321}body.light-mode .gallery-page .gallery-item{background:#dbeaf3;border-color:rgba(9,121,147,.18);box-shadow:0 10px 28px rgba(26,66,94,.12)}body.light-mode .pagination-container .page-btn{background:#fff;color:#102235;border-color:rgba(9,121,147,.22)}
@media(max-width:980px){.gallery-page .gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:190px}}
@media(max-width:680px){.gallery-hero{padding:28px 18px 32px}.gallery-hero h1{font-size:2.45rem}.gallery-page .gallery-container{padding:32px 14px 52px}.gallery-page .gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:150px;gap:9px}.gallery-buttons{justify-content:flex-start;overflow:visible;flex-wrap:wrap;padding-bottom:0}.gallery-buttons .filter-btn{flex:0 1 auto}.lightbox-controls{bottom:15px;gap:6px}.lightbox-controls button{padding:9px 12px}.close{right:18px}}

/* Rotating featured project */
.featured-gallery{position:relative;width:min(90%,1180px);margin:28px auto 0}
.featured-gallery-card{position:relative;width:100%;height:clamp(260px,35vw,430px);padding:0;overflow:hidden;border:1px solid var(--ga-line);border-radius:16px;background:#071b2e;cursor:pointer;text-align:left;box-shadow:0 18px 48px rgba(0,0,0,.3)}
.featured-gallery-card img{width:100%;height:100%;display:block;object-fit:cover;opacity:0;transform:scale(1.025);transition:opacity .55s ease,transform 6s linear}
.featured-gallery-card img.visible{opacity:1;transform:scale(1.07)}
.featured-gallery-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(1,11,24,.88),rgba(1,11,24,.25) 62%,rgba(1,11,24,.05))}
.featured-gallery-copy{position:absolute;left:clamp(22px,5vw,62px);bottom:clamp(22px,5vw,54px);display:flex;flex-direction:column;align-items:flex-start;color:#fff}
.featured-gallery-copy small{color:var(--ga-cyan);font-size:.75rem;font-weight:800;letter-spacing:.13em;text-transform:uppercase}
.featured-gallery-copy strong{margin:8px 0;font-size:clamp(1.7rem,3.5vw,3.25rem);line-height:1.05}
.featured-gallery-copy em{font-style:normal;font-weight:700}
.featured-gallery-progress{height:3px;margin:10px 12px 0;border-radius:99px;background:rgba(91,218,241,.14);overflow:hidden}
.featured-gallery-progress span{display:block;width:0;height:100%;background:var(--ga-cyan)}
.featured-gallery-progress span.running{animation:featuredProgress 6s linear forwards}
@keyframes featuredProgress{from{width:0}to{width:100%}}
@media(max-width:680px){.featured-gallery{width:calc(100% - 28px);margin-top:18px}.featured-gallery-card{height:260px}.featured-gallery-shade{background:linear-gradient(0deg,rgba(1,11,24,.9),rgba(1,11,24,.12) 72%)}}

/* Compact introduction: preview left, album selection right */
.gallery-page .gallery-container{padding-top:42px}
.gallery-intro-layout{display:grid;grid-template-columns:minmax(280px,390px) minmax(0,1fr);gap:clamp(34px,6vw,82px);align-items:start;width:min(100%,1180px);margin:0 auto 34px}
.gallery-intro-left{min-width:0}
.gallery-intro-layout .gallery-section-heading{text-align:left;margin:0 0 18px}
.gallery-intro-layout .gallery-section-heading>span{color:var(--ga-cyan);font-size:.76rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
.gallery-intro-layout .gallery-section-heading h1{margin:5px 0 8px;font-size:clamp(2.25rem,4vw,3.6rem);line-height:1}
.gallery-intro-layout .gallery-section-heading p{max-width:390px;margin:0;color:var(--ga-muted);font-size:.95rem}
.gallery-album-panel{padding-top:25px}
.gallery-album-panel h2{margin:0 0 7px;font-size:clamp(1.45rem,2.2vw,2rem)}
.gallery-album-panel>p{margin:0 0 18px;color:var(--ga-muted);font-size:.95rem}
.gallery-album-panel .gallery-buttons{width:100%;margin:0;justify-content:flex-start;align-content:flex-start}
.gallery-intro-layout .featured-gallery{width:100%;margin:0}
.gallery-intro-layout .featured-gallery-card{height:190px;border-radius:13px;box-shadow:0 12px 30px rgba(0,0,0,.24)}
.gallery-intro-layout .featured-gallery-shade{background:linear-gradient(0deg,rgba(1,11,24,.9),rgba(1,11,24,.08) 78%)}
.gallery-intro-layout .featured-gallery-copy{left:17px;right:17px;bottom:15px}
.gallery-intro-layout .featured-gallery-copy small{font-size:.66rem}
.gallery-intro-layout .featured-gallery-copy strong{max-width:100%;margin:4px 0;overflow:hidden;font-size:1.2rem;line-height:1.1;text-overflow:ellipsis;white-space:nowrap}
.gallery-intro-layout .featured-gallery-copy em{font-size:.78rem}
.gallery-intro-layout .featured-gallery-progress{margin:7px 8px 0}
body.light-mode .gallery-album-panel>p{color:#52697d}
@media(max-width:760px){
  html,body{max-width:100%;overflow-x:hidden}
  .gallery-page .gallery-container{padding-top:30px}
  .gallery-intro-layout{grid-template-columns:1fr;gap:27px;margin-bottom:28px}
  .gallery-intro-layout .gallery-section-heading p{max-width:100%}
  .gallery-intro-layout .featured-gallery{width:100%;margin:0}
  .gallery-intro-layout .featured-gallery-card{height:175px}
  .gallery-album-panel{padding-top:0}
  .gallery-album-panel .gallery-buttons{overflow:visible;flex-wrap:wrap;padding-bottom:0}
}

/* Larger preview with its album information below the photograph */
.gallery-intro-layout{grid-template-columns:minmax(340px,480px) minmax(0,1fr);gap:clamp(34px,5vw,68px)}
.gallery-intro-layout .featured-gallery-card{height:auto;background:#061b2e}
.gallery-intro-layout .featured-gallery-card img{height:250px}
.gallery-intro-layout .featured-gallery-shade{display:none}
.gallery-intro-layout .featured-gallery-copy{position:static;display:grid;grid-template-columns:1fr auto;grid-template-areas:"label action" "album action";gap:3px 18px;padding:13px 16px 14px;background:#061b2e;color:#fff}
.gallery-intro-layout .featured-gallery-copy small{grid-area:label}
.gallery-intro-layout .featured-gallery-copy strong{grid-area:album;margin:0;font-size:1.15rem}
.gallery-intro-layout .featured-gallery-copy em{grid-area:action;align-self:center;color:var(--ga-cyan);white-space:nowrap}
body.light-mode .gallery-intro-layout .featured-gallery-card,
body.light-mode .gallery-intro-layout .featured-gallery-copy{background:#fff;color:#102235}
@media(max-width:900px) and (min-width:761px){
  .gallery-intro-layout{grid-template-columns:minmax(310px,420px) minmax(0,1fr);gap:30px}
  .gallery-intro-layout .featured-gallery-card img{height:225px}
  .gallery-intro-layout .featured-gallery-copy{grid-template-columns:1fr;grid-template-areas:"label" "album" "action"}
}
@media(max-width:760px){
  .gallery-intro-layout{grid-template-columns:1fr}
  .gallery-intro-layout .featured-gallery{width:min(100%,360px);margin:0 auto}
  .gallery-intro-layout .featured-gallery-card img{height:160px}
  .gallery-intro-layout .featured-gallery-copy{grid-template-columns:1fr;grid-template-areas:"label" "album" "action";padding:11px 13px 12px}
  .gallery-intro-layout .featured-gallery-copy small{display:none}
  .gallery-intro-layout .featured-gallery-copy strong{font-size:1rem}
  .gallery-intro-layout .featured-gallery-copy em{font-size:.74rem}
  .gallery-page{max-width:100%;overflow-x:hidden}
  .gallery-intro-left,.gallery-album-panel{width:100%;max-width:100%;min-width:0}
  .gallery-album-panel .gallery-buttons{width:100%;max-width:100%;overflow:visible;flex-wrap:wrap;justify-content:flex-start;padding:0}
  .gallery-album-panel .gallery-buttons .filter-btn{flex:0 1 auto;max-width:100%;box-sizing:border-box;white-space:normal;text-align:center}
}
