﻿.gallery-wrapper {
    padding: 16px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.gallery-photo {
    width: 100%;
    border-radius: 12px;
    cursor: pointer;
    transition: transform .3s ease, box-shadow .3s ease;
}

.gallery-photo:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 20px rgba(0,0,0,.2);
}


/* Lightbox container */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Lightbox image */
#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    animation: zoomIn .3s ease;
}

@keyframes zoomIn {
    from { transform: scale(.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Navigation arrows */
.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    padding: 10px;
    user-select: none;
}

.nav.prev { left: 20px; }
.nav.next { right: 20px; }

.nav:hover {
    color: #f1c40f;
}

/* Close button */
.close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    color: #fff;
    cursor: pointer;
}

.close:hover {
    color: #ff5e57;
}

/* Mobile friendly arrows */
@media (max-width: 600px) {
    .nav {
        font-size: 30px;
    }
}
