/* Bericht Content Styles */
.afb_content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Tekstblok Layout */
.afb_tekstblok {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 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: 15px;
}

/* Foto's Gallery Layout */
.afb_fotos {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.afb_fotos_gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.afb_fotos_item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: var(--border-radius-medium);
}

.afb_fotos_item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.afb_fotos_item_overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 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: 40px;
    border-radius: var(--af_diagonal_radius_large);
    text-align: center;
    overflow: hidden;
}

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

.afb_banner.af_banner_secondary {
    background-color: var(--secondary);
}

.afb_banner.af_banner_bg {
    background-color: var(--secondary);
}

.afb_banner_bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.afb_banner_overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 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: 15px;
}

/* Lightbox Styles */
.afb_lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: calc(100% - var(--af_header_size));
    top: var(--af_header_size);
}

.afb_lightbox_container {
    height: calc(100% - var(--af_header_size));
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 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: 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: 44px;
    height: 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: 50px;
    height: 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: 20px;
}

.afb_lightbox_next {
    right: 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: 70px;
    height: 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.af_banner_secondary > .afb_banner_content > .af_moduleheader{
    color: var(--primary);
}
.afb_banner.af_banner_primary > .afb_banner_content > .af_subheader,
.afb_banner.af_banner_secondary > .afb_banner_content > .af_subheader,
.afb_banner.af_banner_bg > .afb_banner_content > .af_subheader{
    color: white !important;
}
.afb_banner.af_banner_secondary > .afb_banner_content > .af_text{
    color: var(--bg )!important;
}
.afb_banner.af_banner_primary > .afb_banner_content > .af_moduleheader{
    color: var(--secondary) !important;
}
.afb_banner.af_banner_primary > .afb_banner_content > .af_text {
    color: var(--dark) !important;
}
.afb_banner.af_banner_bg > .afb_banner_content > *{
    color: white !important;
}

.afb_backbtn > a {
    padding-left: 0;
    padding-top: 3px!important;
    float: left;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
    .afb_content {
        gap: 30px;
    }
    
    .afb_tekstblok {
        gap: 25px;
    }
    
    .afb_fotos_gallery {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 15px;
    }
    
    .afb_fotos_item img {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .afb_content {
        gap: 25px;
    }
    
    .afb_tekstblok {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .afb_tekstblok.af_foto_links .afb_tekstblok_foto,
    .afb_tekstblok.af_foto_rechts .afb_tekstblok_foto {
        order: -1;
    }
    
    .afb_tekstblok_tekst {
        gap: 12px;
    }
    
    .afb_fotos {
        gap: 15px;
    }
    
    .afb_fotos_gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .afb_fotos_item img {
        height: 200px;
    }
    
    .afb_banner {
        padding: 30px 20px;
    }

    .afb_banner_content {
        gap: 12px;
    }

    .afb_lightbox_container {
        padding: 15px;
    }

    .afb_lightbox_nav {
        width: 40px;
        height: 40px;
    }

    .afb_lightbox_prev {
        left: 10px;
    }

    .afb_lightbox_next {
        right: 10px;
    }

    .afb_lightbox_image {
        max-height: 50vh;
    }

    .afb_lightbox_thumb {
        width: 50px;
        height: 35px;
    }
    .af_initiatieven_showmore{
        margin-top: 80px!important;
    }
}

@media (max-width: 480px) {
    .afb_content {
        gap: 20px;
    }
    
    .afb_tekstblok {
        gap: 15px;
    }
    
    .afb_fotos_gallery {
        grid-template-columns: 1fr;
    }
    
    .afb_fotos_item img {
        height: 180px;
    }
    
    .afb_banner {
        padding: 25px 15px;
    }
    
    .afb_lightbox_btn {
        width: 38px;
        height: 38px;
    }
    
    .afb_lightbox_nav {
        width: 36px;
        height: 36px;
    }
    
    .afb_lightbox_image {
        max-height: 45vh;
    }
    
    .afb_lightbox_thumb {
        width: 45px;
        height: 32px;
    }
}

