/* Bericht Content Styles */
:root{
    /* declare variables */
    --obs_diagonal_radius_large: 30px;
    --border-radius-small: 6px;
    --border-radius-medium: 12px;

}
.afb_content {
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 3.5vw, 40px);
}

/* Tekstblok Layout */
.afb_tekstblok {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(15px, 2.5vw, 30px);
    align-items: start;
    align-content: start;
}

.afb_tekstblok.afb_full_width {
    grid-template-columns: 1fr;
}

.afb_tekstblok_foto img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-medium);
    object-fit: cover;
}

.afb_tekstblok_tekst {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 1.3vw, 15px);
}

/* Foto's Gallery Layout */
.afb_fotos {
    display: flex;
    flex-direction: column;
    gap: clamp(15px, 1.8vw, 20px);
}

.afb_fotos_header {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.afb_fotos_gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: clamp(15px, 3.5vw, 40px);
}

.afb_fotos_item {
    height: clamp(180px, 18vw, 220px);
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: var(--border-radius-medium);
}

.afb_fotos_item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-medium);
    transition: transform 0.3s ease;
}

.afb_fotos_item:hover img {
    transform: scale(1.05);
}

.afb_fotos_item_overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 80, 86, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.afb_fotos_item:hover .afb_fotos_item_overlay {
    opacity: 1;
}

.afb_fotos_item_overlay svg {
    color: #fff;
    width: 32px;
    height: 32px;
}

/* Banner Styles */
.afb_banner {
    position: relative;
    padding: clamp(25px, 4vw, 40px) clamp(15px, 4vw, 40px);
    border-radius: var(--obs_diagonal_radius_large);
    text-align: center;
    overflow: hidden;
}

.afb_banner.obs_banner_primary {
    background-color: var(--primary);
}

.afb_banner.obs_banner_secondary,
.afb_banner.obs_banner_bg {
    background-color: var(--secondary);
}

.afb_banner_bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.afb_banner_overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 80, 86, 0.85) 0%, rgba(6, 80, 86, 0.95) 100%);
    z-index: 2;
}

.afb_banner_content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 1.3vw, 15px);
    align-items: center;
    align-content: center;
    justify-content: center;
}

/* Lightbox Styles */
.afb_lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.afb_lightbox_container {
    height: calc(100% - var(--obs_header_size));
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: clamp(15px, 2vw, 20px);
    box-sizing: border-box;
}

/* Header */
.afb_lightbox_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
}

.afb_lightbox_counter {
    color: #fff;
    font-family: var(--bodyfont);
    font-size: clamp(12px, 1.1vw, 14px);
    opacity: 0.8;
}

.afb_lightbox_actions {
    display: flex;
    gap: 10px;
}

.afb_lightbox_btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: clamp(38px, 3.5vw, 44px);
    height: clamp(38px, 3.5vw, 44px);
    border-radius: var(--border-radius-small);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.afb_lightbox_btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Main Image Area */
.afb_lightbox_main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 0;
}

.afb_lightbox_image_wrapper {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.afb_lightbox_image {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: var(--border-radius-medium);
}

.afb_lightbox_nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: clamp(36px, 3vw + 22px, 50px);
    height: clamp(36px, 3vw + 22px, 50px);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.afb_lightbox_nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.afb_lightbox_prev { left: clamp(10px, 2vw, 20px); }
.afb_lightbox_next { right: clamp(10px, 2vw, 20px); }

/* Thumbnails */
.afb_lightbox_thumbs {
    padding-top: 20px;
    display: flex;
    justify-content: center;
}

.afb_lightbox_thumbs_track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px;
    max-width: 100%;
}

.afb_lightbox_thumb {
    flex-shrink: 0;
    width: clamp(45px, 6vw, 70px);
    height: clamp(32px, 4.5vw, 50px);
    border-radius: var(--border-radius-small);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border: 2px solid transparent;
}

.afb_lightbox_thumb:hover {
    opacity: 0.8;
}

.afb_lightbox_thumb_active {
    opacity: 1;
    border-color: #fff;
}

.afb_lightbox_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Animate.css duration override */
.afb_lightbox .animated {
    animation-duration: 0.3s;
}

.afb_banner.obs_banner_secondary > .afb_banner_content > .obs_moduleheader{
    color: var(--primary);
}
.afb_banner.obs_banner_primary > .afb_banner_content > .obs_subheader,
.afb_banner.obs_banner_secondary > .afb_banner_content > .obs_subheader,
.afb_banner.obs_banner_bg > .afb_banner_content > .obs_subheader{
    color: white !important;
    font-size: 22px;
}
.afb_banner.obs_banner_secondary > .afb_banner_content > .obs_text{
    color: var(--bg )!important;
}
.afb_banner.obs_banner_primary > .afb_banner_content > .obs_moduleheader{
    color: var(--secondary) !important;
    font-size: 30px;
}
.afb_banner.obs_banner_primary > .afb_banner_content > .obs_text {
    color: white;
}
.afb_banner.obs_banner_bg > .afb_banner_content > *{
    color: white !important;
}

.afb_backbtn > a {
    padding-left: 0;
    padding-top: 3px!important;
    float: left;
    cursor: pointer;
    text-decoration: underline;
    color: var(--primary)!important;
}

/* Responsive (structural layout only) */
@media (max-width: 768px) {
    .afb_tekstblok {
        grid-template-columns: 1fr;
    }

    .afb_tekstblok.obs_foto_links .afb_tekstblok_foto,
    .afb_tekstblok.obs_foto_rechts .afb_tekstblok_foto {
        order: -1;
    }

    .afb_lightbox_image {
        max-height: 45vh;
    }

    .obs_initiatieven_showmore {
        margin-top: 80px!important;
    }
}



a.obs_btn{
    border-radius: 40px;
    padding: 10px 20px;
    background-color: var(--secondary);
    color: white;
    font-weight: 800;
    font-size: 20px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    margin-bottom: 20px;
    margin-top: 20px;
}