/* ===== Gallery page additions (matcht je zalm-thema) ===== */

:root{
  --accent: #ff8a7a; /* zelfde vibe als je modal */
  --text: #222;
  --muted: #666;
  --card: #fff;
  --soft: rgba(0,0,0,.08);
}

.hero--compact{
  padding: 64px 0 54px;
}

.gallery{
  padding: 30px 0 60px;
}

.gallery-controls{
  display:flex;
  gap:16px;
  align-items:flex-end;
  justify-content:space-between;
  flex-wrap:wrap;
  margin-bottom: 14px;
}

.gallery-title{
  margin:0;
  font-size: 1.6rem;
}

.gallery-subtitle{
  margin:6px 0 0;
  color: var(--muted);
  max-width: 60ch;
}

.gallery-search{
  width: min(420px, 92vw);
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  outline: none;
}

.gallery-search:focus{
  border-color: rgba(255,138,122,.55);
  box-shadow: 0 0 0 4px rgba(255,138,122,.20);
}

.chipbar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin: 10px 0 20px;
}

.chip{
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  border-radius: 999px;
  padding: 9px 12px;
  cursor:pointer;
  font-weight: 600;
  font-size: .92rem;
  transition: transform .06s ease, box-shadow .2s ease, border-color .2s ease;
}

.chip:hover{
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
}

.chip:active{
  transform: translateY(1px);
}

.chip.is-active{
  border-color: rgba(255,138,122,.6);
  box-shadow: 0 10px 22px rgba(255,138,122,.18);
}

.gallery-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.gallery-item{
  grid-column: span 4;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.gi-fig{
  margin:0;
  border-radius: 16px;
  overflow:hidden;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0,0,0,.10);
  border: 1px solid rgba(0,0,0,.06);
  transition: transform .08s ease, box-shadow .2s ease;
}

.gallery-item:hover .gi-fig{
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(0,0,0,.14);
}

.gi-fig img{
  width:100%;
  height: 240px;
  display:block;
  object-fit: cover;
}

.gi-cap{
  padding: 12px 12px 14px;
}

.gi-title{
  display:block;
  font-weight: 700;
  color: var(--text);
  font-size: .98rem;
}

.gi-tags{
  display:block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .88rem;
}

.empty-state{
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px dashed rgba(0,0,0,.15);
}

.btn-reset{
  margin-top: 10px;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  background: var(--accent);
  color: #222;
  font-weight: 700;
  cursor:pointer;
}

.no-scroll{
  overflow:hidden;
}

/* ===== Lightbox ===== */
.lb-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  display:none;
  align-items:center;
  justify-content:center;
  padding: 12px;
  z-index: 2000;
}

.lb-backdrop[aria-hidden="false"]{
  display:flex;
}

.lb-card{
  width: min(96vw, 980px);
  max-height: 90vh;
  background: #111;
  border-radius: 16px;
  overflow:hidden;
  box-shadow: 0 22px 80px rgba(0,0,0,.55);
  position: relative;
  border: 1px solid rgba(255,255,255,.12);
}

.lb-figure{
  margin:0;
  display:flex;
  flex-direction:column;
}

.lb-figure img{
  width:100%;
  height: min(74vh, 720px);
  object-fit: contain;
  background: #0b0b0b;
}

.lb-caption{
  padding: 10px 12px 12px;
  color: rgba(255,255,255,.85);
  font-size: .95rem;
}

.lb-close{
  position:absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.45);
  cursor:pointer;
}

.lb-close:before{
  content: "✕";
  display:block;
  color:#fff;
  font-size: 18px;
  line-height: 40px;
  text-align:center;
}

.lb-nav{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.35);
  color:#fff;
  font-size: 34px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}

.lb-nav:disabled{
  opacity:.35;
  cursor:not-allowed;
}

.lb-prev{ left: 10px; }
.lb-next{ right: 10px; }

/* Responsive */
@media (max-width: 980px){
  .gallery-item{ grid-column: span 6; }
  .gi-fig img{ height: 220px; }
}

@media (max-width: 560px){
  .gallery-item{ grid-column: span 12; }
  .gi-fig img{ height: 230px; }
}

/* Accessibility helpers */
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
