/* Foto yang bisa diklik untuk diperbesar (lihat js/zoom-foto.js) */
img[data-zoom] {
    cursor: zoom-in;
    transition: transform .2s ease, box-shadow .2s ease;
}

img[data-zoom]:hover {
    transform: scale(1.015);
    box-shadow: 0 8px 22px -8px rgba(15, 51, 35, 0.45);
}

img[data-zoom]:focus-visible {
    outline: 3px solid #16a34a;
    outline-offset: 3px;
}

.zf-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 56px 16px 24px;
    background: rgba(8, 20, 14, 0.88);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}

.zf-overlay.zf-buka {
    opacity: 1;
    visibility: visible;
}

.zf-gambar {
    display: block;
    max-width: min(96vw, 1200px);
    max-height: calc(100vh - 130px);
    width: auto;
    height: auto;
    object-fit: contain;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.zf-keterangan {
    margin: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.zf-tutup {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.zf-tutup:hover {
    background: rgba(255, 255, 255, 0.3);
}
