/* BOCC – fotoalbums (bovenop stijl.css) */

/* ---------- albumpagina ---------- */
.album-kop { display: flex; justify-content: space-between; align-items: baseline; gap: 10px 30px; flex-wrap: wrap; margin: 10px 0 22px; }
.album-kop h1 { font: 20px/24px Helvetica, Arial, sans-serif; color: #707070; margin: 0; text-transform: none; }
.fotograaf { font: 21px/25px Helvetica, Arial, sans-serif; color: #949ea6; }
.album-intro { font-size: 14px; line-height: 18px; margin: -8px 0 20px; max-width: 760px; }
.leeg-album { text-align: center; padding: 40px 0; font-size: 15px; }

.galerij { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.galerij .cel { display: block; aspect-ratio: 189 / 158; overflow: hidden; cursor: zoom-in; }
.galerij .cel img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .25s, opacity .2s; }
.galerij .cel:hover img { transform: scale(1.04); }
.galerij .cel:focus-visible { outline: 2px solid var(--menu-hover); outline-offset: 2px; }
.album .terug { margin-top: 30px; }

/* ---------- overzicht van alle albums ---------- */
.overzicht-titel { font: 20px/24px Helvetica, Arial, sans-serif; color: #707070; margin: 10px 0 22px; }
.albums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 20px; }
.albums a { display: block; text-decoration: none; color: var(--tekst); text-align: center; }
.albums .omslag { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.albums .omslag img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .25s; }
.albums a:hover .omslag img { transform: scale(1.04); }
.albums .naam { display: block; font-size: 14px; line-height: 18px; margin-top: 7px; }
.albums a:hover .naam { text-decoration: underline; }
.albums .leeg-omslag { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: rgba(255,255,255,.6); font-size: 30px; color: #bbb; }

/* ---------- grote weergave ---------- */
html.lb-open, html.lb-open body { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 1000; background: rgba(15, 15, 15, .94); display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.lb[hidden] { display: none; }
.lb-beeld { margin: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 50px 70px; box-sizing: border-box; }
.lb-beeld img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 4px 30px rgba(0,0,0,.5); transition: opacity .15s; user-select: none; }
.lb.laden .lb-beeld img { opacity: .35; }
.lb-laden { display: none; position: absolute; width: 34px; height: 34px; border: 3px solid rgba(255,255,255,.25); border-top-color: #fff; border-radius: 50%; animation: lb-draai .8s linear infinite; }
.lb.laden .lb-laden { display: block; }
@keyframes lb-draai { to { transform: rotate(360deg); } }
.lb button { position: absolute; background: rgba(255,255,255,.08); color: #fff; border: 0; cursor: pointer; font: 300 44px/1 Helvetica, Arial, sans-serif; border-radius: 4px; transition: background .15s; }
.lb button:hover, .lb button:focus-visible { background: rgba(255,255,255,.22); outline: none; }
.lb-sluit { top: 10px; right: 12px; width: 46px; height: 46px; font-size: 36px !important; }
.lb-vorige, .lb-volgende { top: 50%; transform: translateY(-50%); width: 52px; height: 80px; }
.lb-vorige { left: 10px; }
.lb-volgende { right: 10px; }
.lb-teller { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #ccc; font: 13px Helvetica, Arial, sans-serif; letter-spacing: .05em; }

@media (max-width: 1000px) {
  .galerij { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .albums { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .album-kop { display: block; }
  .fotograaf { margin-top: 10px; }
  .galerij { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .albums { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .albums .naam { font-size: 13px; line-height: 16px; }
  .lb-beeld { padding: 50px 8px; }
  .lb-vorige, .lb-volgende { width: 40px; height: 64px; background: rgba(0,0,0,.25); }
}

/* tekst bovenaan het overzicht (enkel als die ingevuld is in het beheer) */
.overzicht-tekst { text-align: center; font-size: 14px; line-height: 19px; max-width: 760px; margin: 10px auto 30px; }
.overzicht-tekst a { color: var(--menu-hover); }

/* ---------- overzicht: groepen per jaar ---------- */
.jaren { text-align: center; font-size: 13px; margin: 0 0 6px; }
.jaren a { color: var(--tekst); text-decoration: none; padding: 2px 6px; }
.jaren a:hover { color: var(--menu-hover); text-decoration: underline; }
.jaren span { color: #bbb; }
.jaargroep { scroll-margin-top: 20px; }
.jaartal { display: flex; align-items: center; gap: 18px; margin: 34px 0 20px; font: normal 20px/24px Helvetica, Arial, sans-serif; color: #707070; letter-spacing: .08em; }
.jaartal::before, .jaartal::after { content: ""; flex: 1; height: 1px; background: #b5b5b5; }
.jaargroep:first-of-type .jaartal { margin-top: 18px; }
@media (max-width: 768px) {
  .jaargroep { scroll-margin-top: 60px; }   /* menubalk blijft bovenaan staan op de gsm */
  .jaartal { margin: 26px 0 16px; font-size: 18px; }
}
