:root {
    --primary-color: #0b3b67;
    --border-radius: 14px;
}

/* dış boşluk (üst+yan) */
.gallery-shell {
    padding: clamp(6px, 2vw, 16px);
}

/* merkezleme ve köşeler */
.gallery-container {
    position: relative;
    margin: 0 auto;
    /*max-width: 1600px;*/
    border-radius: var(--border-radius);
    overflow: hidden;
}

/* SLIDER */
.gallery-slider {
    position: relative;
    width: 100%;
    height: 38vw;
    max-height: 650px;
    min-height: 300px;
    background: #f4f7fb;
}

.gallery-slides {
    position: absolute;
    inset: 0;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .8s ease-in-out;
    pointer-events: none;
    z-index: 0;
    background: #f4f7fb;
    overflow: hidden;
}

    .slide.active {
        opacity: 1;
        pointer-events: auto;
        z-index: 1;
    }

.slide-link {
    display: block;
    width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.slide.has-blur::before {
    content: "";
    position: absolute;
    inset: -20px; /* blur kenar kesmesini gizlemek için */
    background-image: var(--slide-bg);
    background-size: cover;
    background-position: center;
    filter: blur(22px) brightness(.95);
    transform: scale(1.12);
    z-index: 0;
    pointer-events: none; /* tıklamayı engellemesin */
}

/* Görsel üstte kalsın */
.slide.has-blur img {
    position: relative;
    z-index: 1;
}

.slide img.fit-contain {
    object-fit: contain;
}
/* dikeylere uygulanacak sınıf */

/* OKLAR */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,51,102,.85);
    color: #fff;
    border: none;
    cursor: pointer;
    z-index: 50;
    border-radius: 50%;
    transition: all .3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
}

    .slider-btn:hover {
        background-color: var(--primary-color);
        transform: translateY(-50%) scale(1.1);
    }

#prevBtn {
    left: 20px;
}

#nextBtn {
    right: 20px;
}

/* DOTS */
.gallery-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 50;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,.7);
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: all .3s ease;
}

    .dot.active {
        background-color: var(--primary-color);
        transform: scale(1.2);
    }

/* RESPONSIVE */
@media (min-width: 2000px) {
    .gallery-slider {
        height: 800px;
    }
}

@media (max-width: 1440px) {
    .gallery-container {
        max-width: 1400px;
    }

    .gallery-slider {
        max-height: 600px;
    }
}

@media (max-width: 1200px) {
    .gallery-container {
        max-width: 1100px;
    }

    .gallery-slider {
        height: 55vw;
    }
}

@media (max-width: 992px) {
    .gallery-container {
        max-width: 900px;
    }

    .slider-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    #prevBtn {
        left: 15px;
    }

    #nextBtn {
        right: 15px;
    }
}

@media (max-width: 768px) {
    .gallery-container {
        max-width: 700px;
        border-radius: calc(var(--border-radius)*.8);
    }

    .gallery-slider {
        height: 60vw;
        min-height: 250px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
    }

    .gallery-dots {
        bottom: 15px;
    }
}

@media (max-width: 576px) {
    .gallery-container {
        max-width: 100%;
        border-radius: 0;
    }

    .gallery-slider {
        height: 65vw;
        min-height: 220px;
    }

    .slider-btn {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    #prevBtn {
        left: 10px;
    }

    #nextBtn {
        right: 10px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }
}
