/* =========================================================
   Site-wide afbeelding-lightbox (PH Kompas)
   - Subtiel vergrootglas als hint bij elke inhoudsafbeelding
   - Klik opent de afbeelding schermvullend
   Geen afhankelijkheden; markup wordt door lightbox.js toegevoegd.
   ========================================================= */

/* Cursor-hint op zoombare afbeeldingen (klasse gezet via JS) */
img.ph-zoomable{ cursor:zoom-in; }

/* --- Zwevend vergrootglas-badge (volgt de gehoverde afbeelding) --- */
.ph-zoom-badge{
    position:fixed;
    z-index:9998;
    width:34px; height:34px;
    display:flex; align-items:center; justify-content:center;
    border-radius:999px;
    background:rgba(0,105,164,.55);            /* PH-blauw, subtiel transparant */
    color:#fff;
    box-shadow:0 2px 8px rgba(8,40,70,.25);
    backdrop-filter:blur(2px);
    opacity:0;
    transform:scale(.85);
    transition:opacity .18s ease, transform .18s ease;
    pointer-events:none;                       /* klik gaat door naar de afbeelding */
}
.ph-zoom-badge.is-visible{ opacity:1; transform:scale(1); }
.ph-zoom-badge svg{ width:18px; height:18px; display:block; }

/* --- Lightbox-overlay --- */
.ph-lightbox{
    position:fixed; inset:0;
    z-index:9999;
    display:flex; align-items:center; justify-content:center;
    padding:24px;
    background:rgba(12,20,28,.9);
    backdrop-filter:blur(4px);
    opacity:0;
    visibility:hidden;
    transition:opacity .25s ease, visibility .25s ease;
}
.ph-lightbox.is-open{ opacity:1; visibility:visible; }

.ph-lightbox__img{
    max-width:92vw;
    max-height:88vh;
    width:auto; height:auto;
    object-fit:contain;
    border-radius:12px;
    box-shadow:0 20px 60px rgba(0,0,0,.5);
    transform:scale(.96);
    transition:transform .25s ease;
}
.ph-lightbox.is-open .ph-lightbox__img{ transform:scale(1); }

/* Sluitknop */
.ph-lightbox__close{
    position:fixed;
    top:18px; right:18px;
    width:48px; height:48px;
    display:flex; align-items:center; justify-content:center;
    border:none; border-radius:999px; cursor:pointer;
    background:rgba(255,255,255,.12);
    color:#fff;
    transition:background .2s ease, transform .2s ease;
}
.ph-lightbox__close:hover,
.ph-lightbox__close:focus-visible{
    background:rgba(255,255,255,.25);
    transform:scale(1.05);
    outline:none;
}
.ph-lightbox__close svg{ width:26px; height:26px; display:block; }

/* Niets van de lightbox tonen bij afdrukken */
@media print{
    .ph-zoom-badge, .ph-lightbox{ display:none !important; }
}
