.sq-grid-wrapper-03bef26d {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    margin: 0;
    padding: 0;
}

.sq-grid-item-03bef26d {
    position: relative;
    flex: 1 1 25%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.sq-grid-img-wrapper-03bef26d {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.sq-grid-image-03bef26d {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Default, overridden by control */
    transition: transform 0.4s ease;
    display: block;
}

.sq-grid-item-03bef26d:hover .sq-grid-image-03bef26d {
    transform: scale(1.08);
}

.sq-grid-item-03bef26d.has-overlay::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
    z-index: 1;
}

.sq-grid-heading-03bef26d {
    position: absolute;
    bottom: 20px;
    left: 20px;
    margin: 0;
    z-index: 2;
    color: #ffffff;
    font-weight: 600;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .sq-grid-wrapper-03bef26d {
        flex-wrap: wrap;
    }
    .sq-grid-item-03bef26d {
        flex: 1 1 50%;
    }
}

@media (max-width: 767px) {
    .sq-grid-item-03bef26d {
        flex: 1 1 100%;
    }
}
