/**
 * NextGEN Gallery — theme overrides (Dental Care Everywhere).
 *
 * Depends on dce-www-responsive + (when enqueued) nextgen_basic_album_style.
 * nextgen_basic_album.css gebruikt o.a. .ngg-albumoverview { display: block !important }
 * en .ngg-album-compact { float: left; padding !important }; overschrijven met
 * hogere specificiteit + !important waar de plugin dat zelf doet.
 */

.site .entry-content .ngg-albumoverview {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
    margin: 1.25rem 0 2rem !important;
    width: 100% !important;
    clear: both !important;
}

.site .entry-content .ngg-albumoverview.default-view {
    text-align: start !important;
}

.site .entry-content .ngg-albumoverview .ngg-album-compact {
    float: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    margin: 0 !important;
    padding: 1rem !important;
    width: auto !important;
    min-width: 0 !important;
    text-align: start !important;
    border-radius: var(--dce-radius, 12px);
    background: var(--dce-white, #ffffff);
    border: 1px solid rgba(13, 148, 136, 0.12) !important;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
    transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.site .entry-content .ngg-albumoverview.default-view .ngg-album-compact {
    float: none !important;
    display: flex !important;
    margin: 0 !important;
    padding: 1rem !important;
    border: 1px solid rgba(13, 148, 136, 0.12) !important;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

@media (prefers-reduced-motion: reduce) {
    .site .entry-content .ngg-albumoverview .ngg-album-compact {
        transition: none;
    }
}

.site .entry-content .ngg-albumoverview .ngg-album-compact:hover {
    border-color: rgba(13, 148, 136, 0.24) !important;
    box-shadow: 0 14px 40px rgba(13, 148, 136, 0.1);
}

/* Legacy dubbele rand / “schaduwstrepen” uit plugin compactbox */
.site .entry-content .ngg-album-compactbox::before,
.site .entry-content .ngg-album-compactbox::after {
    display: none !important;
    content: none !important;
}

.site .entry-content .ngg-album-compactbox {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 10px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    background: rgba(13, 148, 136, 0.04);
    overflow: hidden;
}

.site .entry-content .ngg-albumoverview.default-view .ngg-album-compactbox,
.site .entry-content .ngg-albumoverview.default-view .ngg-album-compactbox .Thumb {
    border: none !important;
}

.site .entry-content .ngg-album-link {
    overflow: hidden;
    border-radius: 10px;
    background: transparent;
}

.site .entry-content .ngg-album-link a.Link {
    display: block;
    line-height: 0;
}

.site .entry-content .ngg-album-compactbox .Thumb,
.site .entry-content .ngg-album-link img.Thumb {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 10px;
}

.site .entry-content .ngg-album-compact h4 {
    margin: 0.85rem 0 0.35rem !important;
    font-size: 1.05rem !important;
    font-weight: 600;
    font-family: var(--dce-font-heading, "Jost", system-ui, sans-serif);
    letter-spacing: -0.02em;
    line-height: 1.25;
}

/* Plugin: vaste hoogte op titel — voorkomt afkappen */
.site .entry-content .ngg-album-compact h4 .ngg-album-desc {
    height: auto !important;
    overflow: visible !important;
    box-shadow: none !important;
    letter-spacing: -0.02em !important;
}

.site .entry-content a.ngg-album-desc {
    color: var(--dce-ink, #121826);
    text-decoration: none !important;
    font-weight: 600;
    max-width: 100% !important;
}

.site .entry-content a.ngg-album-desc:hover,
.site .entry-content a.ngg-album-desc:focus {
    color: var(--dce-primary, #0d9488);
}

.site .entry-content .ngg-album-gallery-image-counter {
    margin: 0 !important;
    margin-top: auto;
    padding-top: 0.25rem;
    font-size: 0.875rem !important;
    color: var(--dce-muted, #5c6578);
}

.site .entry-content .ngg-album-gallery-image-counter strong {
    color: var(--dce-ink, #121826);
    font-weight: 600;
}

.site .entry-content ul.ngg-breadcrumbs {
    list-style: none !important;
    margin: 0 0 1rem !important;
    padding: 0 !important;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.6rem;
    align-items: center;
    font-size: 0.875rem;
    color: var(--dce-muted, #5c6578);
}

.site .entry-content ul.ngg-breadcrumbs li.ngg-breadcrumb {
    margin: 0 !important;
}

/* UX Vantage: kaart krijgt nadruk bij toetsenbordfocus binnen de tegel */
.site .entry-content .ngg-albumoverview .ngg-album-compact:focus-within {
    border-color: rgba(13, 148, 136, 0.38) !important;
    box-shadow: 0 16px 44px rgba(13, 148, 136, 0.12);
}

.site .entry-content a.ngg-album-desc:focus-visible {
    outline: 2px solid var(--dce-primary, #0d9488);
    outline-offset: 3px;
    border-radius: 4px;
}
