.container-gallery {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.gallery-grid img {
    width: 150px;
    height: auto;
    cursor: pointer;
    border-radius: 6px;
    transition: transform 0.3s;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

#preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

#preview-overlay.active {
    display: flex;
}

.preview-content {
    position: relative;
    width: 80%;
    max-width: 1000px;
}

.preview-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.nav-btn,
.close-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    font-size: 2rem;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 1;
}

.prev {
    left: -50px;
}

.next {
    right: -50px;
}

.close-btn {
    top: -40px;
    right: -40px;
    transform: none;
    font-size: 1.5rem;
}

.preview-counter {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-weight: bold;
}