/* Gallery Grid Styles */
.gallery-grid {
    display: grid;
    gap: 16px;
    width: 80%;
    margin: 0 auto;
}

.gallery-image {
    overflow: hidden;
    position: relative;
}

.gallery-image img {
    width: 100%;
    transition: transform 0.8s;
}

.gallery-image:hover img {
    transform: scale(1.1);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.577);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    width: 80%;
    max-width: 1080px;
    margin: 0 auto;
    gap: 4rem;
    align-items: center;
}

.slider-container {
    position: relative;
}

.modal-image {
    max-width: 100%;
    max-height: 80vh;
}

.prev, .next, .close {
    position: absolute;
    cursor: pointer;
}

.close {
    top: 10px;
    right: 10px;
}

.prev {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.next {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.prev img, .next img {
    width: 45px;
    height: 45px;
}

.close img {
    width: 30px;
    height: 30px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .modal-content {
        display: flex;
        flex-direction: column-reverse;
        width: 90%;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 599px) {
    .gallery-grid {
        grid-template-columns: 1fr !important;
    }
}