/* ============================= */
/* SEKCJA */
/* ============================= */
.realizations-carousel {
    padding: 80px 0;
    overflow: hidden;
}

/* ============================= */
/* SWIPER – ANTY-MIGANIE */
/* ============================= */

/* Ukryj Swipera do momentu inicjalizacji */
.realizations-swiper {
    opacity: 0;
    transition: opacity .3s ease;
}

/* Po init – pokaz */
.realizations-swiper.swiper-initialized {
    opacity: 1;
}

/* ============================= */
/* SLIDE */
/* ============================= */
.realizations-swiper .swiper-slide {
    width: 300px;
    display: flex;
    justify-content: center;

    opacity: .55;
    transform: scale(.88);

    transition:
        transform .6s cubic-bezier(0.4, 0, 0.2, 1),
        opacity .6s cubic-bezier(0.4, 0, 0.2, 1);

    will-change: transform, opacity;
}

/* ============================= */
/* AKTYWNY (ŚRODEK) */
/* ============================= */
.realizations-swiper .swiper-slide-active {
    width: 420px;
    /* większy środek */
    opacity: 1;
    transform: scale(1);
    z-index: 3;
}

/* ============================= */
/* BOX Z OBRAZEM */
/* ============================= */
.slide-box {
    position: relative;
}

/* ============================= */
/* OBRAZ */
/* ============================= */
.slide-box img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 28px;
    transition: all .35s ease;
}

/* Aktywny – zielona ramka + większa wysokość */
.realizations-swiper .swiper-slide-active img {
    height: 500px;
    border: 4px solid #0b4d2c;
    padding: 8px;
}

/* LUPKA – DOMYŚLNIE UKRYTA */
.zoom-icon {
    position: absolute;
    bottom: 16px;
    right: 16px;

    width: 36px;
    height: 36px;

    background: #0b4d2c;
    color: #fff;

    border-radius: 50%;
    border: none;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;
    cursor: pointer;

    opacity: 0;
    pointer-events: none;

    transition: opacity .25s ease, transform .25s ease;
}

/* TYLKO AKTYWNY SLIDE */
.realizations-swiper .swiper-slide-active .zoom-icon {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

/* (opcjonalnie) hover */
.realizations-swiper .swiper-slide-active .zoom-icon:hover {
    transform: scale(1.1);
}

/* ============================= */
/* STRZAŁKI */
/* ============================= */
.swiper-button-prev,
.swiper-button-next {
    color: #0b4d2c;
    width: 44px;
    height: 44px;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 20px;
}

/* ============================= */
/* MOBILE – 1 SLIDE, SWIPE */
/* ============================= */
@media (max-width: 768px) {

    .realizations-swiper .swiper-slide,
    .realizations-swiper .swiper-slide-active {
        width: 100%;
        transform: none;
        opacity: 1;
    }

    .slide-box img,
    .realizations-swiper .swiper-slide-active img {
        height: 440px;
        border: none;
        border-radius: 20px;
    }

    .zoom-icon {
        display: none;
    }
}


.modal-image {
    max-width: 100%;
    max-height: 100vh;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1056;

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background-color: rgba(0, 0, 0, 0.65);
    /* 👈 TYLKO KOLOR */
    opacity: 1;
}

@media (max-width: 768px) {
    .modal-close {
        width: 48px;
        height: 48px;
        top: 12px;
        right: 12px;
        background-color: rgba(0, 0, 0, 0.75);
    }
}

.fullwidth-image-section {
    width: 100%;
    padding: 30px 24px;
    /* odstęp od krawędzi ekranu */
    box-sizing: border-box;
}

.fullwidth-image-section img {
    width: 100%;
    height: auto;
    display: block;

    border-radius: 24px;
    /* zaokrąglone rogi */
    object-fit: cover;

    /* zabezpieczenie przed miganiem */
    backface-visibility: hidden;
    transform: translateZ(0);
}

.swiper-button-prev,
.swiper-button-next {
    color: #809f89 !important;
}

.realizations-swiper .swiper-wrapper {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}