/* Infographic Section Styles */
.infographic {
    padding: 90px 0;
}

.infographic .row {
    margin-bottom: 30px;
}
section.infographic.sectionPadding {
    background-image: url(https://donkermedia.nl/wp-content/themes/donkermedia/dist/images/ourMethod-bg2.png);
    background-repeat: no-repeat;
    background-size: cover;
}
.infographic-item {
    margin: auto !important;
}
section.infographic.sectionPadding .col-md-4 {
    display: flex;
    flex-direction: column;
    grid-gap: 14px;
}
.infographic-item .img-wrap {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    height: auto;
    align-items: center;
    justify-content: center;
    overflow: hidden !important;
    border: 2px solid rgba(0, 0, 0, 0.07);
    border-radius: 12px !important;
}
.infographic-item.h-100 {
    width: 100%;
}
section.infographic.sectionPadding .col-md-4 {
    padding: 0 !important;
}
.infographic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 300px;
}
section.infographic.sectionPadding .row.gx-4 {
    display: flex;
    grid-gap: 14px;
    max-width: 100%;
    flex-wrap: nowrap;
}
.infographic-item .img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.infographic-item .img-wrap:hover .img-overlay {
    opacity: 1;
}


/* Middle column with full height image */
.infographic .col-md-4:nth-child(2) .infographic-item.h-100 img {
    max-height: 670px;
    height: 100%;
}
.infographic-item.h-100 a {
    width: 100%;
    height: 100%;
}

/* Responsive styles for infographic */
@media (max-width: 767px) {
    .infographic .row {
        flex-direction: column;
    }
    
    .infographic .col-md-4 {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .infographic-item {
        height: auto;
    }
    
    .infographic-item img {
        max-height: 250px;
    }
    
    /* Ensure middle image doesn't get too tall on mobile */
    .infographic .col-md-4:nth-child(2) .infographic-item.h-100 img {
        max-height: 350px;
    }
    section.infographic.sectionPadding .row.gx-4 {
        margin: auto !important;
    }
    .img-wrap.position-relative.rounded-3.overflow-hidden.h-100 {
        width: 100%;
    }
    .img-wrap.position-relative.rounded-3.overflow-hidden.h-100 a {
        width: 100%;
    }
    .img-wrap.position-relative.rounded-3.overflow-hidden.h-100 img {
        object-fit: cover;
    }
    .infographic-item, .infographic-item a {
        width: 100%;
    }
    .infographic-item img{
        width: 100%;
        object-fit: cover;
    }
}

/* Modal styles for infographic images */
#imageModal .modal-content {
    border-radius: 12px;
    overflow: hidden;
}

#imageModal .modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

#imageModal .modal-body {
    padding: 20px;
}

#imageModal .modal-body img {
    max-height: 80vh;
    width: auto;
    max-width: 100%;
} 