:root{
  --bg:#f6f5fb;
  --card:#ffffff;
  --text:#2a2931;
  --muted:#7d7a88;
  --accent:#a7d8ff; /* pastel blue */
  --accent2:#ffd6e1; /* pastel pink */
  --shadow:0 8px 24px rgba(25, 23, 40, 0.06);
  --radius:16px;
}

*{ box-sizing:border-box; }
html, body { height:100%; }
body{
  margin:0;
  background:linear-gradient(180deg, var(--bg), #faf9ff);
  color:var(--text);
  font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

.wrap{ max-width:1200px; margin:auto; padding: 0 clamp(12px, 4vw, 24px); }

.site-header{
  position:sticky; top:0; z-index:10;
  background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(255,255,255,0.6));
  backdrop-filter: blur(6px);
  border-bottom:1px solid rgba(0,0,0,0.05);
}
.site-header .wrap{ padding-top:14px; padding-bottom:14px; }
h1{ margin:0; font-size: clamp(20px, 4vw, 36px); }
.sub{ margin:6px 0 0; color:var(--muted); }
.muted{ opacity:.8; }

.site-footer{
  margin-top:40px; padding:18px 0;
  border-top:1px solid rgba(0,0,0,0.06);
  background:#fff6;
  backdrop-filter: blur(6px);
}

.gallery{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(10px, 2.4vw, 16px);
  padding: clamp(10px, 2vw, 18px) 0;
}

.card{
  background:var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  transition: transform .2s ease;
}
.card:hover{ transform: translateY(-2px); }
.card button{
  appearance:none; background:transparent; border:0; padding:0; cursor:pointer; width:100%;
}
.card img{
  display:block;
  width:100%; height:auto;
  /* ensures landscape & portrait are same width (column width), auto height keeps full image */
}

.info{
  padding:10px 12px;
  display:flex; justify-content:space-between; align-items:center; gap:8px;
  color:var(--muted); font-size: 13px;
  border-top:1px dashed rgba(0,0,0,0.06);
  background: linear-gradient(0deg, rgba(167,216,255,0.12), transparent);
}
.info a{
  text-decoration:none; color:inherit; padding:6px 10px; border-radius:999px;
  border:1px solid rgba(0,0,0,0.08);
  background: #fff;
}
.info a:hover{ background:#fff; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }

.status{ text-align:center; color:var(--muted); padding: 8px 0 18px; }

/* Lightbox */
.lightbox{
  position:fixed; inset:0; display:none;
  align-items:center; justify-content:center;
  background: rgba(32,28,45,0.76);
  z-index: 999;
}
.lightbox[aria-hidden="false"]{ display:flex; }
.lightbox-inner{
  max-width: min(92vw, 1600px);
  max-height: 86vh;
  display:flex; flex-direction: column; align-items:center; gap:12px;
}
.lightbox img{
  max-width: 100%; max-height: 72vh; object-fit: contain; border-radius: 12px; background:#fff;
  box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}
.lightbox-actions{
  display:flex; gap:10px; flex-wrap:wrap; justify-content:center;
}
.lightbox-actions a{
  color:#1f1e25; text-decoration:none; background:#fff;
  padding:10px 14px; border-radius:12px; border:1px solid rgba(255,255,255,0.6);
}

.lightbox-close, .lightbox-prev, .lightbox-next{
  position:fixed; top:10px; background: #ffffffc9; border:0; width:44px; height:44px; border-radius:12px;
  box-shadow: var(--shadow); cursor:pointer; font-size:24px; line-height:1; display:grid; place-items:center;
}
.lightbox-close{ right:10px; }
.lightbox-prev{ left:10px; top: calc(50% - 22px); }
.lightbox-next{ right:10px; top: calc(50% - 22px); }
.lightbox-prev:hover, .lightbox-next:hover, .lightbox-close:hover{ background:#fff; }

@media (hover:none){
  .card:hover{ transform:none; }
}
