:root{
  --navy:#061a3b;
  --navy-2:#0a2e65;
  --gold:#f5c65a;
  --gold-2:#e7a72f;
  --bg:#f3f6fa;
  --card:#ffffff;
  --text:#172033;
  --muted:#6f788a;
  --line:#dfe6ef;
  --shadow:0 24px 70px rgba(6,26,59,.14);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Be Vietnam Pro",Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
}
button,input{font:inherit}
button{cursor:pointer}
img{max-width:100%;display:block}
.gallery-shell{width:min(1240px,calc(100% - 32px));margin:auto}
.gallery-hero{
  position:relative;
  overflow:hidden;
  padding:82px 0 76px;
  color:#fff;
  background:
    radial-gradient(circle at 12% 12%,rgba(245,198,90,.22),transparent 28%),
    radial-gradient(circle at 86% 18%,rgba(31,79,151,.55),transparent 30%),
    linear-gradient(145deg,#031126,#071c41 54%,#0b326d);
}
.gallery-hero::after{
  content:"";
  position:absolute;
  inset:auto -8% -90px auto;
  width:360px;
  height:360px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:50%;
  box-shadow:0 0 0 45px rgba(255,255,255,.025),0 0 0 90px rgba(255,255,255,.018);
}
.gallery-hero__inner{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:1fr auto;
  gap:44px;
  align-items:end;
}
.gallery-kicker{
  display:inline-flex;
  padding:8px 13px;
  border:1px solid rgba(245,198,90,.35);
  border-radius:999px;
  color:#ffe6a5;
  background:rgba(255,255,255,.055);
  font-size:11px;
  font-weight:900;
  letter-spacing:.16em;
}
.gallery-hero h1{
  margin:22px 0 0;
  font-size:clamp(52px,7vw,92px);
  line-height:.92;
  letter-spacing:-.065em;
  font-weight:950;
}
.gallery-hero h1 span{color:var(--gold)}
.gallery-hero p{
  max-width:720px;
  margin:25px 0 0;
  color:rgba(255,255,255,.72);
  font-size:17px;
  line-height:1.8;
}
.gallery-hero__stats{
  display:grid;
  grid-template-columns:repeat(2,minmax(150px,1fr));
  gap:14px;
}
.gallery-hero__stats div{
  min-width:155px;
  padding:22px 24px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:22px;
  background:rgba(255,255,255,.075);
  backdrop-filter:blur(14px);
}
.gallery-hero__stats strong{
  display:block;
  color:var(--gold);
  font-size:38px;
  line-height:1;
  font-weight:950;
}
.gallery-hero__stats span{
  display:block;
  margin-top:9px;
  color:rgba(255,255,255,.68);
  font-size:12px;
}
.gallery-toolbar-wrap{
  position:relative;
  z-index:3;
  margin-top:-31px;
}
.gallery-toolbar{
  display:grid;
  grid-template-columns:1fr auto;
  gap:12px;
  padding:14px;
  border:1px solid rgba(222,230,239,.95);
  border-radius:22px;
  background:rgba(255,255,255,.93);
  box-shadow:0 20px 58px rgba(6,26,59,.12);
  backdrop-filter:blur(16px);
}
.gallery-search{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  padding:0 15px;
  border:1px solid var(--line);
  border-radius:15px;
  background:#f7f9fc;
}
.gallery-search span{
  color:var(--gold-2);
  font-size:26px;
  transform:rotate(-18deg);
}
.gallery-search input{
  width:100%;
  min-width:0;
  padding:15px 0;
  border:0;
  outline:0;
  color:var(--navy);
  background:transparent;
  font-size:14px;
}
.gallery-refresh{
  padding:0 23px;
  border:0;
  border-radius:15px;
  color:#13213c;
  background:linear-gradient(135deg,var(--gold-2),var(--gold));
  font-size:13px;
  font-weight:900;
}
.gallery-status-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:11px 4px 0;
  color:var(--muted);
  font-size:11px;
}
.gallery-section{padding:35px 0 72px}
.album-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}
.album-card{
  position:relative;
  overflow:hidden;
  min-height:355px;
  border:1px solid var(--line);
  border-radius:26px;
  background:#fff;
  box-shadow:0 15px 42px rgba(6,26,59,.08);
  transition:transform .25s ease,box-shadow .25s ease;
}
.album-card:hover{
  transform:translateY(-5px);
  box-shadow:var(--shadow);
}
.album-card__cover{
  position:relative;
  height:255px;
  overflow:hidden;
  background:linear-gradient(145deg,#0a2e65,#061a3b);
}
.album-card__cover img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .6s cubic-bezier(.2,.65,.2,1);
}
.album-card:hover .album-card__cover img{transform:scale(1.055)}
.album-card__cover::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent 48%,rgba(3,17,39,.72));
}
.album-card__badge{
  position:absolute;
  z-index:2;
  top:16px;
  right:16px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:8px 10px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:999px;
  color:#fff;
  background:rgba(4,19,43,.54);
  backdrop-filter:blur(10px);
  font-size:10px;
  font-weight:850;
}
.album-card__class{
  position:absolute;
  z-index:2;
  left:19px;
  bottom:17px;
  color:#fff;
  font-size:28px;
  font-weight:950;
  letter-spacing:-.035em;
}
.album-card__body{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:center;
  padding:20px;
}
.album-card__body p{
  margin:5px 0 0;
  color:var(--muted);
  font-size:11px;
}
.album-card__open{
  flex:0 0 auto;
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:50%;
  color:var(--navy);
  background:#fff0c5;
  font-size:22px;
  font-weight:900;
}
.gallery-loading-card,
.gallery-empty{
  grid-column:1/-1;
  padding:70px 20px;
  border:1px dashed #cad4df;
  border-radius:26px;
  color:var(--muted);
  background:#fff;
  text-align:center;
}
.gallery-spinner{
  width:38px;
  height:38px;
  margin:auto;
  border:4px solid #e9edf3;
  border-top-color:var(--gold-2);
  border-radius:50%;
  animation:spin .8s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}
.gallery-empty div{font-size:42px}
.gallery-empty h2{margin:14px 0 8px;color:var(--navy)}
.gallery-empty p{margin:0}
.album-modal{
  position:fixed;
  z-index:1000;
  inset:0;
  display:none;
}
.album-modal.is-open{display:block}
.album-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(3,13,30,.72);
  backdrop-filter:blur(8px);
}
.album-modal__panel{
  position:absolute;
  inset:4vh 3vw;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border-radius:28px;
  background:#f4f7fb;
  box-shadow:0 35px 100px rgba(0,0,0,.38);
}
.album-modal__header{
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:flex-start;
  padding:24px 28px;
  color:#fff;
  background:linear-gradient(135deg,var(--navy),var(--navy-2));
}
.album-modal__eyebrow{
  color:var(--gold);
  font-size:10px;
  font-weight:900;
  letter-spacing:.14em;
}
.album-modal h2{
  margin:6px 0 0;
  font-size:30px;
}
.album-modal p{
  margin:6px 0 0;
  color:rgba(255,255,255,.62);
  font-size:11px;
}
.album-modal__close,
.lightbox__close{
  width:44px;
  height:44px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:50%;
  color:#fff;
  background:rgba(255,255,255,.08);
  font-size:29px;
  line-height:1;
}
.photo-grid{
  flex:1;
  overflow:auto;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  grid-auto-rows:220px;
  gap:10px;
  padding:12px;
}
.photo-card{
  position:relative;
  overflow:hidden;
  border:0;
  border-radius:15px;
  background:#dce4ed;
  cursor:zoom-in;
}
.photo-card:nth-child(7n+1){grid-row:span 2}
.photo-card:nth-child(11n+4){grid-column:span 2}
.photo-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .45s ease;
}
.photo-card:hover img{transform:scale(1.045)}
.photo-card::after{
  content:"";
  position:absolute;
  inset:0;
  border:1px solid rgba(255,255,255,.16);
  border-radius:inherit;
  pointer-events:none;
}
.lightbox{
  position:fixed;
  z-index:1200;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
  color:#fff;
  background:rgba(0,0,0,.94);
}
.lightbox.is-open{display:flex}
.lightbox__figure{
  margin:0;
  max-width:min(1200px,88vw);
  max-height:90vh;
  text-align:center;
}
.lightbox__figure img{
  max-width:100%;
  max-height:82vh;
  margin:auto;
  border-radius:10px;
  object-fit:contain;
}
.lightbox figcaption{
  display:flex;
  justify-content:space-between;
  gap:18px;
  padding-top:12px;
  color:rgba(255,255,255,.72);
  font-size:12px;
}
.lightbox__close{
  position:absolute;
  top:18px;
  right:18px;
}
.lightbox__nav{
  position:absolute;
  top:50%;
  width:50px;
  height:66px;
  border:0;
  border-radius:15px;
  color:#fff;
  background:rgba(255,255,255,.1);
  font-size:44px;
  transform:translateY(-50%);
}
.lightbox__nav--prev{left:18px}
.lightbox__nav--next{right:18px}
@media(max-width:980px){
  .gallery-hero__inner{grid-template-columns:1fr}
  .gallery-hero__stats{max-width:400px}
  .album-grid{grid-template-columns:repeat(2,1fr)}
  .photo-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:680px){
  .gallery-shell{width:min(100% - 22px,1240px)}
  .gallery-hero{padding:58px 0 72px}
  .gallery-hero h1{font-size:53px}
  .gallery-hero p{font-size:14px}
  .gallery-hero__stats{grid-template-columns:1fr 1fr;gap:8px}
  .gallery-hero__stats div{min-width:0;padding:16px}
  .gallery-hero__stats strong{font-size:29px}
  .gallery-toolbar{grid-template-columns:1fr}
  .gallery-refresh{padding:14px 18px}
  .gallery-status-row{display:grid}
  .album-grid{grid-template-columns:1fr}
  .album-card{min-height:320px}
  .album-card__cover{height:235px}
  .album-modal__panel{inset:0;border-radius:0}
  .album-modal__header{padding:18px}
  .album-modal h2{font-size:24px}
  .photo-grid{grid-template-columns:repeat(2,1fr);grid-auto-rows:170px;padding:6px;gap:6px}
  .photo-card:nth-child(11n+4){grid-column:span 1}
  .lightbox{padding:10px}
  .lightbox__nav{top:auto;bottom:20px;width:48px;height:48px;border-radius:50%;font-size:34px}
  .lightbox__nav--prev{left:calc(50% - 60px)}
  .lightbox__nav--next{right:calc(50% - 60px)}
  .lightbox figcaption{padding-bottom:72px}
}
