.ibaw-gallery-wrapper {
    width: 100%;
    background-color: #3d3c92;
    padding: 60px 40px;
    box-sizing: border-box;
}

.ibaw-gallery-header {
    text-align: center;
    margin-bottom: 40px;
}

.ibaw-gallery-main-title {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 300;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.ibaw-gallery-grid {
    display: flex;
    gap: 30px;
    width: 100%;
    align-items: stretch;
}

.ibaw-gallery-card {
    flex: 1;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.ibaw-card-img-wrap {
    width: 100%;
    /* Height is now managed dynamically via Elementor's style controls */
    overflow: hidden;
}

.ibaw-card-img-wrap img {
    width: 100%;
    height: 100%;
    /* Object-fit is now dynamically controlled in Elementor */
    display: block;
}

.ibaw-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ibaw-card-title {
    margin: 0 0 15px 0;
    font-size: 1.6rem;
    font-weight: 300;
    color: #111111;
}

.ibaw-card-desc {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #222222;
}

@media (max-width: 991px) {
    .ibaw-gallery-grid {
        flex-direction: column;
    }
    .ibaw-gallery-wrapper {
        padding: 40px 20px;
    }
    /* Dynamic height responsive control in Elementor replaces the hardcoded 300px here */
}