.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

    .gallery-item img {
        width: 100%;
        height: 260px;
        object-fit: cover;
        transition: 0.4s ease;
    }

    .gallery-item:hover img {
        transform: scale(1.1);
    }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: .3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: #fff;
    font-size: 32px;
}

/* Pagination */
.gallery-pagination {
    list-style: none;
    display: inline-flex;
    gap: 10px;
    padding: 0;
}

    .gallery-pagination li {
        padding: 10px 16px;
        border: 1px solid #ddd;
        cursor: pointer;
    }

        .gallery-pagination li.active {
            background: #e63946;
            color: #fff;
        }

/* Modal */
#modalImage {
    max-height: 90vh;
    transition: transform .3s;
    cursor: zoom-in;
}

    #modalImage.zoomed {
        transform: scale(1.7);
        cursor: zoom-out;
    }

/* Navigation Arrows */
.nav-arrow {
    position: absolute;
    font-size: 60px;
    color: white;
    cursor: pointer;
    padding: 20px;
    user-select: none;
}

    .nav-arrow.prev {
        left: 20px;
    }

    .nav-arrow.next {
        right: 20px;
    }
