/* ===================================================
   VV CUIJK FOTOALBUM – stijl passend bij theme
   Kleuren: groen #024452  |  beige #ddd5bf
   =================================================== */

/* ── ALBUMS OVERZICHT ─────────────────────────────── */
.vvc-albums-overzicht {
    padding: 10px 0;
}

.vvc-albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}

.vvc-album-card {
    text-decoration: none;
    color: inherit;
    background: #ddd5bf;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,.10);
    transition: transform .25s ease, box-shadow .25s ease;
    display: block;
}

.vvc-album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(2, 68, 82, .20);
}

.vvc-album-thumb {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #024452;
}

.vvc-album-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.vvc-album-card:hover .vvc-album-thumb img {
    transform: scale(1.06);
}

.vvc-album-no-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    background: #ddd5bf;
}

.vvc-album-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 14px;
    background: linear-gradient(transparent, rgba(2,68,82,.80));
}

.vvc-album-count {
    color: #ddd5bf;
    font-size: .85em;
    font-weight: 600;
}

.vvc-album-meta {
    padding: 16px 18px;
}

.vvc-album-meta h3 {
    margin: 0 0 6px;
    color: #024452;
    font-size: 1.1em;
}

.vvc-album-meta p {
    margin: 0;
    color: #666;
    font-size: .9em;
}

/* ── ALBUM DETAIL ─────────────────────────────────── */
.vvc-album-detail {
    padding: 10px 0;
}

.vvc-album-header {
    margin-bottom: 24px;
}

.vvc-terug {
    display: inline-block;
    margin-bottom: 16px;
    font-size: .9em;
}

.vvc-album-header h2 {
    color: #024452;
    margin: 0 0 6px;
}

.vvc-album-omschrijving {
    color: #555;
    margin: 0 0 8px;
}

.vvc-foto-teller {
    font-size: .85em;
    color: #888;
}

.vvc-foto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.vvc-foto-item {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    background: #ddd5bf;
    transition: transform .2s ease, box-shadow .2s ease;
}

.vvc-foto-item:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 18px rgba(2,68,82,.25);
}

.vvc-foto-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── LIGHTBOX ─────────────────────────────────────── */
.vvc-lb-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .88);
    z-index: 9998;
    cursor: pointer;
}

.vvc-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.vvc-lb-content {
    pointer-events: all;
    max-width: 90vw;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.vvc-lb-content img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 6px;
    object-fit: contain;
    box-shadow: 0 8px 40px rgba(0,0,0,.6);
    user-select: none;
}

.vvc-lb-teller {
    color: #ddd5bf;
    font-size: .9em;
}

/* Navigatie knoppen */
.vvc-lb-prev,
.vvc-lb-next,
.vvc-lb-close {
    position: fixed;
    background: rgba(2,68,82,.80);
    color: transparent;        /* verberg origineel karakter */
    font-size: 0;              /* verberg origineel karakter */
    border: 2px solid #ddd5bf;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    cursor: pointer;
    pointer-events: all;
    transition: background .2s ease, transform .2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 0;
    user-select: none;
}

/* Pijlen via CSS — altijd perfect gecentreerd */
.vvc-lb-prev::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-left: 2.5px solid #ddd5bf;
    border-bottom: 2.5px solid #ddd5bf;
    transform: rotate(45deg);
    margin-left: 4px;
}

.vvc-lb-next::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2.5px solid #ddd5bf;
    border-top: 2.5px solid #ddd5bf;
    transform: rotate(45deg);
    margin-right: 4px;
}

.vvc-lb-close::after {
    content: '✕';
    font-size: 16px;
    color: #ddd5bf;
    line-height: 1;
}

.vvc-lb-prev:hover,
.vvc-lb-next:hover,
.vvc-lb-close:hover {
    background: #024452;
    transform: scale(1.1);
}

.vvc-lb-prev  { left: 20px;  top: 50%; transform: translateY(-50%); }
.vvc-lb-prev:hover  { transform: translateY(-50%) scale(1.1); }
.vvc-lb-next  { right: 20px; top: 50%; transform: translateY(-50%); }
.vvc-lb-next:hover  { transform: translateY(-50%) scale(1.1); }
.vvc-lb-close { top: 18px;   right: 18px; font-size: 1.1em; }

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 768px) {
    .vvc-foto-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }

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

@media (max-width: 480px) {
    .vvc-albums-grid {
        grid-template-columns: 1fr;
    }

    .vvc-foto-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
