﻿

.gallery {
    display: flex;
    flex-wrap: wrap;
    /*gap: 10px;*/
    /*max-width: 600px;*/
    margin: auto;
}

    .gallery img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        cursor: pointer;
        border-radius: 5px;
        box-shadow: 0 0 5px rgba(0,0,0,0.3);
        transition: transform 0.2s;
    }

        .gallery img:hover {
            transform: scale(1.05);
        }

.popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

    .popup.active {
        display: flex;
    }

.popup-content {
    position: relative;
    max-width: 80vw;
    max-height: 80vh;
}

    .popup-content img {
        max-width: 100%;
        max-height: 100%;
        border-radius: 8px;
    }

.close-btn {
    position: absolute;
    top: -25px;
    right: -25px;
    background: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-weight: bold;
    font-size: 22px;
    color: #333;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.7);
    border: none;
    font-size: 30px;
    cursor: pointer;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    color: #333;
    user-select: none;
}

.prev-btn {
    left: -60px;
}

.next-btn {
    right: -60px;
}

.nav-btn:hover {
    background: #fff;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}
