:root{
  --bg:#001348;
  --panel:#0a1f5c;
  --panel-border:#2a4a8f;
  --text:#e8ecf7;
  --muted:#9fb0d6;
  --accent:#ff3355;
  --heading:#ffd23f;
  --radius:10px;
  --maxw:1080px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--bg);
  color:var(--text);
  font-family:Verdana,Arial,Helvetica,sans-serif;
  font-size:16px;
  line-height:1.5;
  -webkit-text-size-adjust:100%;
}
img{max-width:100%;height:auto;display:block;border:0}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}

.wrap{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 8px;
}

.hero{
  text-align:center;
  padding:24px 0 4px;
}
.hero h1{
  font-size:clamp(18px,4.4vw,26px);
  line-height:1.25;
  margin:0 0 14px;
  color:var(--heading);
  font-weight:700;
}

.intro{
  background:var(--panel);
  border:1px solid var(--panel-border);
  border-radius:var(--radius);
  padding:16px;
  margin:0 0 18px;
}
.intro p{
  margin:0;
  color:var(--text);
  font-size:14px;
  line-height:1.65;
}

.gallery-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
  margin:0 0 22px;
}
.gallery-grid a{
  display:block;
  border-radius:8px;
  overflow:hidden;
  transition:transform .15s ease, box-shadow .15s ease;
}
.gallery-grid a:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(0,0,0,.4);
}
.gallery-grid img{
  width:100%;
  height:auto;
  display:block;
}

.related{
  margin:8px 0 22px;
}
.related h2{
  font-size:clamp(14px,3vw,17px);
  line-height:1.3;
  color:var(--heading);
  font-weight:700;
  margin:0 0 12px;
  text-align:center;
}
.related-list{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}
.related-list a{
  display:block;
  padding:12px 14px;
  border:1px solid var(--panel-border);
  border-radius:8px;
  background:rgba(255,255,255,.03);
  color:var(--text);
  font-size:14px;
  line-height:1.4;
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.related-list a:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(0,0,0,.35);
  border-color:var(--accent);
  text-decoration:none;
}

.gallery-nav{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
  margin:0 0 22px;
}
.gallery-nav a{
  display:inline-block;
  padding:12px 20px;
  border:1px solid var(--panel-border);
  border-radius:8px;
  background:rgba(255,255,255,.03);
  color:var(--text);
  font-size:14px;
  font-weight:700;
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.gallery-nav a:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(0,0,0,.35);
  border-color:var(--accent);
  text-decoration:none;
}
.gallery-nav a.join{
  background:var(--accent);
  border-color:var(--accent);
  color:#fff;
}

.lightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.92);
  display:none;
  z-index:9999;
  align-items:center;
  justify-content:center;
  padding:20px;
  cursor:zoom-out;
}
.lightbox.open{
  display:flex;
}
.lightbox img{
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  border-radius:6px;
  box-shadow:0 20px 60px rgba(0,0,0,.6);
}
.lightbox .close{
  position:absolute;
  top:14px;
  right:18px;
  width:40px;
  height:40px;
  border-radius:50%;
  background:rgba(255,255,255,.1);
  color:#fff;
  font-size:24px;
  line-height:40px;
  text-align:center;
  cursor:pointer;
  user-select:none;
}
.lightbox .close:hover{
  background:var(--accent);
}
.lightbox .prev,
.lightbox .next{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:48px;
  height:48px;
  border-radius:50%;
  background:rgba(255,255,255,.1);
  color:#fff;
  font-size:26px;
  line-height:48px;
  text-align:center;
  cursor:pointer;
  user-select:none;
}
.lightbox .prev{left:14px}
.lightbox .next{right:14px}
.lightbox .prev:hover,
.lightbox .next:hover{
  background:var(--accent);
}

.site-footer{
  margin:40px 0 30px;
  text-align:center;
  color:var(--muted);
  font-size:12px;
  line-height:1.6;
  padding:0 12px;
}
.site-footer a{color:var(--accent)}
.site-footer .copy{
  color:#8f9dbf;
  margin-top:18px;
}

@media (min-width:560px){
  .gallery-grid{
    grid-template-columns:1fr 1fr;
  }
  .related-list{
    grid-template-columns:1fr 1fr;
  }
}
@media (min-width:820px){
  .gallery-grid{
    grid-template-columns:1fr 1fr 1fr;
  }
}
@media (min-width:900px){
  .wrap{padding:0}
}