/* =========================================================
   FOTO'S / FOTOALBUMS – FLAEIJEL CONSISTENT
========================================================= */

/* GRID */
.flaeijel-grid-photoalbums {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.4rem;
}

/* CARD */
.flaeijel-photoalbum-item {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;

    background: rgba(255,255,255,0.88);
    border: 1px solid var(--flaeijel-rand, rgba(0,0,0,0.08));
    border-radius: var(--flaeijel-radius, 18px);
    box-shadow: var(--flaeijel-schaduw, 0 12px 30px rgba(0,0,0,0.08));

    transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}

.flaeijel-photoalbum-item:hover,
.flaeijel-photoalbum-item:focus-within {
    transform: translateY(-3px);
    border-color: rgba(240,202,14,0.45);
    box-shadow:
        var(--flaeijel-schaduw, 0 12px 30px rgba(0,0,0,0.08)),
        0 0 18px rgba(240,202,14,0.2);
}

/* COVER */
.flaeijel-photoalbum-cover {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #111;
    text-decoration: none;
    color: inherit;
}

.flaeijel-photoalbum-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.flaeijel-photoalbum-item:hover .flaeijel-photoalbum-cover img,
.flaeijel-photoalbum-item:focus-within .flaeijel-photoalbum-cover img {
    transform: scale(1.05);
}

.flaeijel-photoalbum-placeholder {
    display: grid;
    place-items: center;
    height: 100%;
    min-height: 180px;
    padding: 1rem;
    background: linear-gradient(180deg, #171717, #050505);
    color: #fff;
    font-weight: 800;
    text-align: center;
}

/* OVERLAY */
.flaeijel-photoalbum-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.16),
        rgba(0,0,0,0.64)
    );
    pointer-events: none;
}

/* TITEL OP FOTO */
.flaeijel-photoalbum-cover h3 {
    position: absolute;
    inset: 0;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0;
    padding: 0.85rem;
    width: auto;
    min-height: 0;

    color: #fff;
    text-align: center;
    font-weight: 900;
    font-size: clamp(1rem, 2.2vw, 1.5rem);
    line-height: 1.15;
    letter-spacing: -0.03em;

    text-shadow:
        0 2px 8px rgba(0,0,0,0.7),
        0 1px 2px rgba(0,0,0,0.9);

    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    pointer-events: none;
}

/* Oude styling op h3-links neutraliseren wanneer een browser/template nog cachet */
.flaeijel-photoalbum-item > h3,
.flaeijel-photoalbum-item > h3 a {
    display: none !important;
}

/* META */
.flaeijel-photoalbum-item .flaeijel-meta {
    margin: 1rem 1.2rem 0.5rem;
    color: rgba(0,0,0,0.62);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

/* BUTTON */
.flaeijel-photoalbum-item p:last-child,
.flaeijel-flickr-album-actions {
    margin: auto 1.2rem 1.2rem;
    padding-top: 0.4rem;
    text-align: center;
}

.flaeijel-photoalbum-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.55rem 1rem;
    border-radius: 999px;

    background: #0b0b0b;
    color: #f0ca0e !important;
    border: 2px solid rgba(240,202,14,0.75);
    box-shadow:
        0 0 12px rgba(240,202,14,0.3),
        0 0 26px rgba(240,202,14,0.15);

    font-weight: 900;
    font-size: 0.85rem;
    line-height: 1;
    letter-spacing: 0.03em;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .25s ease, background .2s ease, color .2s ease, opacity .2s ease;
}

.flaeijel-photoalbum-link:hover,
.flaeijel-photoalbum-link:focus-visible {
    background: #000;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow:
        0 0 18px rgba(240,202,14,0.50),
        0 0 36px rgba(240,202,14,0.28),
        0 0 70px rgba(240,202,14,0.18);
}

.flaeijel-photoalbum-link:disabled {
    opacity: 0.72;
    cursor: wait;
    transform: none;
}

/* KRUIMELPAD */
.flaeijel-foto-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0 0 1.2rem;
    color: rgba(0,0,0,0.72);
    font-size: 0.9rem;
    font-weight: 800;
}

.flaeijel-foto-breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.flaeijel-foto-breadcrumbs a:hover,
.flaeijel-foto-breadcrumbs a:focus-visible {
    color: #000;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.flaeijel-foto-breadcrumbs span[aria-hidden="true"] {
    color: rgba(0,0,0,0.38);
}

/* FLICKR GRID */
.flaeijel-flickr-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px,1fr));
    gap: .75rem;
    margin: 1.5rem 0;
}

.flaeijel-flickr-photo {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 14px;
    background: #111;
    cursor: zoom-in;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.flaeijel-flickr-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.flaeijel-flickr-photo:hover img,
.flaeijel-flickr-photo:focus-visible img {
    transform: scale(1.05);
}

/* LIGHTBOX */
.flaeijel-flickr-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 3vw, 2rem);
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
}

.flaeijel-flickr-lightbox.is-open {
    display: flex;
}

body.flaeijel-flickr-lightbox-open {
    overflow: hidden;
}

.flaeijel-flickr-lightbox__figure {
    margin: 0;
    max-width: min(94vw, 1280px);
    max-height: 90vh;
    text-align: center;
}

.flaeijel-flickr-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: 82vh;
    width: auto;
    height: auto;
    margin: 0 auto;
    border-radius: 18px;
    box-shadow: 0 20px 70px rgba(0,0,0,0.45);
}

.flaeijel-flickr-lightbox__caption {
    margin-top: 0.8rem;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0,0,0,0.65);
}

.flaeijel-flickr-lightbox__close,
.flaeijel-flickr-lightbox__nav {
    position: absolute;
    z-index: 2;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,0.13);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background .2s ease, transform .2s ease;
}

.flaeijel-flickr-lightbox__close:hover,
.flaeijel-flickr-lightbox__nav:hover {
    background: rgba(255,255,255,0.24);
}

.flaeijel-flickr-lightbox__close {
    top: 1.2rem;
    right: 1.2rem;
    width: 48px;
    height: 48px;
    font-size: 2rem;
    line-height: 1;
}

.flaeijel-flickr-lightbox__nav {
    top: 50%;
    width: 52px;
    height: 52px;
    font-size: 2.1rem;
    line-height: 1;
    transform: translateY(-50%);
}

.flaeijel-flickr-lightbox__nav--prev {
    left: 1.2rem;
}

.flaeijel-flickr-lightbox__nav--next {
    right: 1.2rem;
}

/* MOBILE */
@media (max-width: 700px) {
    .flaeijel-grid-photoalbums {
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: .8rem;
    }

    .flaeijel-photoalbum-cover h3 {
        font-size: 0.95rem;
        padding: 0.6rem;
    }

    .flaeijel-photoalbum-item .flaeijel-meta {
        margin: 0.85rem 0.85rem 0.5rem;
        font-size: 0.78rem;
    }

    .flaeijel-photoalbum-item p:last-child {
        margin: auto 0.85rem 0.9rem;
    }

    .flaeijel-photoalbum-link {
        min-height: 36px;
        padding: 0.48rem 0.78rem;
        font-size: 0.78rem;
    }

    .flaeijel-flickr-photo-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .flaeijel-flickr-lightbox__nav {
        width: 42px;
        height: 42px;
        font-size: 1.7rem;
    }

    .flaeijel-flickr-lightbox__nav--prev {
        left: 0.5rem;
    }

    .flaeijel-flickr-lightbox__nav--next {
        right: 0.5rem;
    }

    .flaeijel-flickr-lightbox__close {
        top: 0.7rem;
        right: 0.7rem;
    }
}

/* =========================================================
   VIDEOALBUMS – zelfde basis als fotoalbums
========================================================= */
.flaeijel-grid-videos {
    margin: 1.5rem 0;
}

/* Videoalbum-tegels zijn albums: geen play-knop op het overzicht. */
.flaeijel-video-item .flaeijel-photoalbum-cover::before {
    content: none !important;
    display: none !important;
}


.flaeijel-vimeo-video-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
}

.flaeijel-vimeo-video-card {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #111;
}

.flaeijel-vimeo-video-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(0,0,0,0.08), rgba(0,0,0,0.72));
    pointer-events: none;
}

.flaeijel-vimeo-play {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    padding-left: 4px;
    border-radius: 999px;
    background: rgba(0,0,0,0.68);
    color: #f0ca0e;
    border: 2px solid rgba(240,202,14,0.85);
    box-shadow: 0 0 24px rgba(240,202,14,0.35);
    font-size: 1.1rem;
    line-height: 1;
}

.flaeijel-vimeo-video-title {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.8rem;
    color: #fff;
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0,0,0,0.75), 0 1px 2px rgba(0,0,0,0.9);
}


/* Vimeo lightbox video */
.flaeijel-flickr-lightbox.is-video .flaeijel-flickr-lightbox__figure {
    width: min(1100px, calc(100vw - 2rem));
    max-width: 1100px;
}

.flaeijel-flickr-lightbox__video {
    display: block;
    width: min(1100px, calc(100vw - 2rem));
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    border-radius: 18px;
    background: #000;
    box-shadow: 0 18px 60px rgba(0,0,0,0.55);
}

.flaeijel-flickr-lightbox.is-video .flaeijel-flickr-lightbox__image {
    display: none;
}

/* =========================================================
   FOTO'S & VIDEO'S VOORPORTAAL
========================================================= */
.flaeijel-media-portal {
    display: grid;
    gap: 2rem;
    margin: 1.5rem 0 3rem;
}

.flaeijel-media-portal__header {
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
}

.flaeijel-media-portal__header h2 {
    margin: 0;
    line-height: 1.05;
}

.flaeijel-media-portal__header p {
    margin: .65rem 0 0;
    font-weight: 700;
}

.flaeijel-media-portal__sections {
    display: grid;
    gap: 2rem;
}

@media (min-width: 900px) {
    .flaeijel-media-portal__sections {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }
}

.flaeijel-media-portal__section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
    padding: clamp(1rem, 2vw, 1.5rem);
    background: rgba(255,255,255,0.88);
    border: 1px solid var(--flaeijel-rand, rgba(0,0,0,0.08));
    border-radius: var(--flaeijel-radius, 18px);
    box-shadow: var(--flaeijel-schaduw, 0 12px 30px rgba(0,0,0,0.08));
}

.flaeijel-media-portal__section-head {
    display: block;
    padding-bottom: .8rem;
    text-align: center;
    border-bottom: 2px solid rgba(0,0,0,.08);
}

.flaeijel-media-portal__section-head h2 {
    margin: 0;
    line-height: 1.05;
    text-align: center;
}

.flaeijel-media-portal__grid {
    margin: 0;
}

.flaeijel-media-portal__empty {
    margin: 0;
    padding: 1rem;
    border-radius: 16px;
    background: rgba(255,255,255,.82);
    font-weight: 800;
    text-align: center;
}

.flaeijel-media-portal__actions {
    margin-top: auto;
    padding-top: .35rem;
    text-align: center;
}

.flaeijel-media-portal__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: .65rem 1.1rem;
    border-radius: 999px;
    background: #0b0b0b;
    color: #f0ca0e !important;
    border: 2px solid rgba(240,202,14,.75);
    box-shadow:
        0 0 12px rgba(240,202,14,.3),
        0 0 26px rgba(240,202,14,.15);
    font-weight: 900;
    font-size: .86rem;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .2s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
}

.flaeijel-media-portal__more:hover,
.flaeijel-media-portal__more:focus-visible {
    background: #000;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow:
        0 0 18px rgba(240,202,14,.50),
        0 0 36px rgba(240,202,14,.28),
        0 0 70px rgba(240,202,14,.18);
}

@media (max-width: 700px) {
    .flaeijel-media-portal {
        gap: 1.4rem;
    }

    .flaeijel-media-portal__section {
        padding: 1rem;
    }

    .flaeijel-media-portal__more {
        width: 100%;
    }
}
