.gallery-section {
    position: relative;
}

.gallery-item {
    position: relative;
    height: 100%;
}

.gallery-item .thumb {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
    transition: transform .22s ease, box-shadow .22s ease;
    background: #fff;
}

.gallery-item .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item .overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .35);
    opacity: 0;
    transition: opacity .22s ease;
    border-radius: 20px;
    pointer-events: none;
}

.gallery-item .overlay i {
    font-size: 22px;
    color: #fff;
}

.gallery-item:hover .thumb {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .08);
}

.gallery-item:hover .overlay {
    opacity: 1;
}

/* ratio fallback */
.ratio {
    position: relative;
    width: 100%;
}

.ratio-1x1::before {
    content: "";
    display: block;
    padding-top: 100%;
}

.ratio>* {
    position: absolute;
    inset: 0;
}

/* Mobile paddings & title sizing */
@media (max-width: 667px) {
    .gallery-section.pt-90 {
        padding-top: 60px !important;
    }

    .gallery-section.pb-90 {
        padding-bottom: 60px !important;
    }

    .title-area h2.title {
        font-size: 26px !important;
        line-height: 1.25;
    }
}