/* ============================================================
   Vlettenrally Foyer Add-on — Foto-album (responsive masonry)
   ============================================================ */

.vrlg-album {
    /* Masonry via CSS-kolommen: robuust en zonder JS-libs. */
    column-count: var(--vrlg-cols, 4);
    column-gap: var(--vrlg-gap, 14px);
    width: 100%;
    box-sizing: border-box;
}

.vrlg-album-empty {
    column-span: all;
    text-align: center;
    opacity: 0.7;
    padding: 2em 0;
}

.vrlg-album-item {
    display: inline-block;
    width: 100%;
    margin: 0 0 var(--vrlg-gap, 14px);
    break-inside: avoid;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f2f2f2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    animation: vrlg-album-in 0.4s ease both;
}

.vrlg-album-item img {
    display: block;
    width: 100%;
    height: auto;
}

/* Onderschrift — subtiele gradient-overlay onderaan. */
.vrlg-album-cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 26px 12px 10px;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
    font-size: 0.85rem;
    line-height: 1.25;
}

.vrlg-album-team {
    font-weight: 700;
}

.vrlg-album-desc {
    font-weight: 400;
    opacity: 0.95;
}

.vrlg-album-time {
    font-size: 0.75em;
    opacity: 0.8;
}

@keyframes vrlg-album-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

/* ============================================================
   Album-overzicht (klikbare kaarten)
   ============================================================ */

.vrlg-album-overview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    width: 100%;
    box-sizing: border-box;
}

.vrlg-album-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.vrlg-album-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.vrlg-album-card-thumb {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #ececec;
    overflow: hidden;
}

.vrlg-album-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vrlg-album-card-noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #999;
    font-size: 0.9rem;
}

.vrlg-album-card-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px 12px;
}

.vrlg-album-card-title {
    font-weight: 700;
    line-height: 1.25;
}

.vrlg-album-card-count {
    font-size: 0.82rem;
    opacity: 0.7;
}

/* --- Album-weergave header / terug-link --- */

.vrlg-album-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.vrlg-album-back {
    text-decoration: none;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.06);
    color: inherit;
    transition: background 0.15s ease;
}

.vrlg-album-back:hover {
    background: rgba(0, 0, 0, 0.12);
}

.vrlg-album-heading {
    font-size: 1.3rem;
    font-weight: 700;
}

/* Responsive kolommen — override de ingestelde kolommen op kleinere schermen. */
@media (max-width: 1100px) { .vrlg-album { column-count: min(var(--vrlg-cols, 4), 3); } }
@media (max-width: 800px)  { .vrlg-album { column-count: 2; } }
@media (max-width: 480px)  { .vrlg-album { column-count: 1; } }
