.gallery-section .gallery-item,
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.gallery-section .gallery-item img,
.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: 0.4s;
}

.gallery-section .gallery-item:hover img,
.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-section .gallery-overlay,
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.3s;
}

.gallery-section .gallery-item:hover .gallery-overlay,
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 30px;
    color: #fff;
}

.custom-nav {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.nav-width {
    display: flex;
    gap: 25px;
    background: #fa03011a;
    border-radius: 47px;
    padding: 16px 10px;
    align-items: center;
    justify-content: center;
}

.nav-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    transition: 0.3s;
    position: relative;
}

.nav-btn i {
    font-size: 14px;
    color: #000;
}

.nav-btn:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.nav-btn:hover i {
    color: #fff;
}

.custom-nav .swiper-button-next:after,
.custom-nav .swiper-button-prev:after {
    display: none;
}

.gallerySwiper {
    padding-bottom: 20px;
}

@media (max-width: 767px) {
    .gallery-item img {
        height: 250px;
    }

    .custom-nav {
        justify-content: center;
    }

    .nav-width {
        width: auto;
    }
}