.popup-gallery {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
}

.popup-gallery.active {
    display: flex;
}

.popup-content {
    position: relative;
    width: 550px;
    padding: 0 50px;
}

.popup-content img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 8px;
}

.popup-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 1;
}

.swiper.popup-swiper {
    z-index: 2;
}

.swiper-button-next,
.swiper-button-prev {
    color: white;
    z-index: 3;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 36px;
    color: white;
    cursor: pointer;
    z-index: 3;
}

.popup-swiper-main {
    width: 100%;
    margin-bottom: 20px;
    z-index: 2;
}

.main-swiper-wrapper{
    position: relative;
    padding: 0 50px;
}

.popup-swiper-thumbs {
    width: 100%;
    padding: 10px 0;
    box-sizing: border-box;
}

.popup-swiper-thumbs .swiper-slide {
    width: auto;
    height: 80px;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.2s ease-in-out;
}

.popup-swiper-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border: 2px solid #fff;
}

.popup-swiper-thumbs img {
    height: 100%;
    width: auto;
    border-radius: 4px;
    object-fit: contain;
}

