.stom-foto-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.stom-foto-carousel .swiper-wrapper {
    align-items: stretch;
}

.stom-foto-carousel .swiper-slide {
    width: auto !important;
    height: var(--stom-carousel-height-desktop, 550px);
}

.stom-foto-carousel .stom-carousel-lightbox,
.stom-foto-carousel .stom-carousel-image-wrap {
    display: block;
    width: auto;
    height: var(--stom-carousel-height-desktop, 550px);
    border-radius: var(--stom-radius, 15px);
    overflow: hidden;
}

.stom-foto-carousel .stom-carousel-lightbox {
    cursor: zoom-in;
}

.stom-foto-carousel .stom-carousel-foto {
    display: block;
    width: auto;
    height: var(--stom-carousel-height-desktop, 550px);
    max-width: none;
    object-fit: contain;
    border-radius: var(--stom-radius, 15px);
    transition: opacity 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .stom-foto-carousel .stom-carousel-lightbox:hover .stom-carousel-foto {
        opacity: 0.9;
    }
}

.stom-foto-carousel .swiper-button-prev,
.stom-foto-carousel .swiper-button-next {
    width: var(--stom-arrow-size, 46px);
    height: var(--stom-arrow-size, 46px);
    margin-top: calc(var(--stom-arrow-size, 46px) / -2);
    border: 0;
    border-radius: 50%;
    background: var(--stom-arrow-bg, #ffffff);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.stom-foto-carousel .swiper-button-prev::after,
.stom-foto-carousel .swiper-button-next::after {
    font-size: calc(var(--stom-arrow-size, 46px) * 0.39);
    font-weight: 700;
    color: var(--stom-arrow-color, #222222);
}

.stom-foto-carousel .swiper-button-prev { left: 15px; }
.stom-foto-carousel .swiper-button-next { right: 15px; }

.stom-foto-carousel .swiper-pagination {
    position: relative;
    left: auto;
    bottom: auto;
    margin-top: 18px;
}

.stom-foto-carousel .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    opacity: 0.35;
    background: #222;
}

.stom-foto-carousel .swiper-pagination-bullet-active {
    opacity: 1;
}

.stom-foto-carousel.stom-no-arrows .swiper-button-prev,
.stom-foto-carousel.stom-no-arrows .swiper-button-next,
.stom-foto-carousel.stom-no-pagination .swiper-pagination {
    display: none !important;
}

.glightbox-container .goverlay { background: rgba(0, 0, 0, 0.92); }
.glightbox-container .gslide-image img {
    max-width: 95vw;
    max-height: 90vh;
    width: auto;
    height: auto;
}
.glightbox-container .gclose,
.glightbox-container .gnext,
.glightbox-container .gprev {
    background-color: rgba(0, 0, 0, 0.55);
    border-radius: 50%;
}
.glightbox-container .gslide-description { background: rgba(0, 0, 0, 0.75); }
.glightbox-container .gdesc-inner { color: #fff; }

@media (max-width: 980px) {
    .stom-foto-carousel .swiper-slide,
    .stom-foto-carousel .stom-carousel-lightbox,
    .stom-foto-carousel .stom-carousel-image-wrap,
    .stom-foto-carousel .stom-carousel-foto {
        height: var(--stom-carousel-height-tablet, 450px);
    }
}

@media (max-width: 767px) {
    .stom-foto-carousel .swiper-slide,
    .stom-foto-carousel .stom-carousel-lightbox,
    .stom-foto-carousel .stom-carousel-image-wrap,
    .stom-foto-carousel .stom-carousel-foto {
        height: var(--stom-carousel-height-mobile, 350px);
    }
}
