/* Gallery Section Styles */
.gallery {
    min-height: 100vh;
    height: 100vh;
    background: var(--white);
    display: flex;
    align-items: center;
}

/* Animated Gallery Grid */
.gallery-grid-animated {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
    height: 65vh;
    max-height: 500px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

.gallery-item-animated {
    position: relative;
    overflow: hidden;
    background: var(--silver);
    cursor: pointer;
    transition: all 0.5s ease-in-out;
    border-radius: 8px;
}

.gallery-item-animated img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.8s ease-in-out;
    opacity: 1;
}

.gallery-item-animated img.fade-out {
    opacity: 0;
}

.gallery-item-animated:hover {
    z-index: 10;
    box-shadow: inset 0 0 0 3px var(--lollipop);
}

/* Lightbox */
.gallery-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
}

.gallery-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 45px;
    color: var(--white);
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10001;
}

.lightbox-close:hover {
    color: var(--lollipop);
}

/* Lightbox Navigation Arrows */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 60px;
    padding: 20px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    border-radius: 5px;
    line-height: 1;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.4);
    color: var(--lollipop);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Gallery */
@media (max-width: 992px) {
    .gallery-grid-animated {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 8px;
        padding: 15px;
        height: 60vh;
    }
}

@media (max-width: 768px) {
    .gallery-grid-animated {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: 6px;
        padding: 10px;
        height: 55vh;
    }
    
    .lightbox-nav {
        font-size: 40px;
        padding: 15px 20px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
}
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .gallery-grid-animated {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(4, 1fr);
        height: 70vh;
    }
}
