#lightbox {
    /* overlay’ın en üstünde, tam ekran */
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
}

/* Açıldığında flex göster */
#lightbox.active {
    display: flex;
}

/* Ortadaki görsel */
#lightbox .lightbox-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    z-index: 10001;
}

/* Kapatma butonu zaten var… */

/* Ortamın soluna ve sağına oturan nav okları */
#lightbox .lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10002;
    transition: background 0.2s, transform 0.2s;
}

/* Sol ok */
#lightbox .lightbox-nav--prev {
    left: 16px;
}

/* Sağ ok */
#lightbox .lightbox-nav--next {
    right: 16px;
}

/* Hover / Active */
#lightbox .lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}
#lightbox .lightbox-nav:active {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1);
}

#lightbox .lightbox-close {
    display: none;
}

.timeline-carousel {
    position: relative;
}

/* B) Wrapper kaydırılabilir */
.timeline-carousel__item-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 1.5rem;
    padding: 2rem 0;
    cursor: grab;
}

/* C) Sabit nav butonları */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;               /* İçerik altında değil üstünde kalsın */
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

/* Solda ve sağda konum */
.slider-nav--prev {
    left: 8px;
}
.slider-nav--next {
    right: 8px;
}

/* Hover / Active efektleri */
.slider-nav:hover {
    background: rgba(0,0,0,0.7);
    transform: translateY(-50%) scale(1.1);
}
.slider-nav:active {
    background: rgba(0,0,0,0.9);
    transform: translateY(-50%) scale(1);
}

.timeline-carousel__item-wrapper {
    scrollbar-width: none;
    /* IE 10+ */
    -ms-overflow-style: none;
    position: relative;
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    cursor: grab;              /* fareyle sürükleme imleci */
}
.timeline-carousel__item-wrapper.active {
    cursor: grabbing;
}
.timeline-carousel__item {
    background: #23272b;
    color: #fff;
    border-radius: 20px;
    min-width: 270px;
    max-width: 270px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.15);
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}
.timeline-carousel__item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 6px 32px rgba(80,120,200,0.14);
    z-index: 2;
}
.timeline-carousel__image {
    width: 100%;
    height: 180px;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    position: relative;
}
.media-wrapper {
    width: 100%;
    height: 100%;
    background-size: cover !important;
    background-position: center !important;
}
.timeline-carousel__item-inner {
    /* mevcut özellikler… */
    padding: 0.75rem 0.75rem 0.75rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;

    /* yenisi: */
    height: 550px;
}
.timeline-carousel__item-inner .lightbox-trigger,
.timeline-carousel__item-inner img {
    display: block;
    width: 100%;
    height: 100%;
}
.timeline-carousel__item-inner img {
    object-fit: contain;
}
.timeline-carousel__item-inner .year {
    font-weight: 700;
    color: #20c997;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
}
.timeline-carousel__item-inner .month {
    font-weight: 600;
    color: #a5f3c6;
    font-size: 1.1rem;
}
.timeline-carousel__item-inner p {
    font-size: 0.98rem;
    color: #dee2e6;
    margin-bottom: 0.4rem;
}
.timeline-carousel__item-inner .read-more {
    color: #fff;
    background: #20c997;
    border-radius: 50px;
    padding: 0.4rem 1.2rem;
    text-decoration: none;
    align-self: flex-start;
    font-weight: 600;
    font-size: 0.97rem;
    transition: background 0.18s;
    margin-top: 0.2rem;
}
.timeline-carousel__item-inner .read-more:hover {
    background: #169b78;
    color: #fff;
}

/* Timeline pointer (optional) */
.timeline-carousel__item-inner .pointer {
    width: 22px;
    height: 250px;
    border-radius: 50%;
    background: #20c997;
    position: absolute;
    left: 50%;
    top: -11px;
    transform: translateX(-50%);
    box-shadow: 0 1px 6px rgba(32,201,151,0.15);
    border: 3px solid #fff;
}

/* Scrollbar Styling (optional) */
.timeline-carousel__item-wrapper::-webkit-scrollbar {
    height: 9px;
}
.timeline-carousel__item-wrapper::-webkit-scrollbar-thumb {
    background: #20c997;
    border-radius: 5px;
}
.timeline-carousel__item-wrapper::-webkit-scrollbar-track {
    background: #1a1d20;
    border-radius: 5px;
}

/* Responsive: Tablet & Mobile */
@media (max-width: 900px) {
    .timeline-carousel__item-wrapper {
        gap: 1.2rem;
        padding: 1.2rem 0;
    }
    .timeline-carousel__item {
        min-width: 280px;
        max-width: 280px;
    }
}
@media (max-width: 576px) {
    .timeline-carousel__item-wrapper {
        gap: 0.7rem;
        padding: 0.6rem 0;
    }
    .timeline-carousel__item {
        min-width: 230px;
        max-width: 230px;
        border-radius: 15px;
    }
    .timeline-carousel__item-inner {
        padding: 0.9rem 0.7rem 0.7rem 0.7rem;
    }
    .timeline-carousel__item-inner img {
        width: 100%;
        height: auto;
        object-fit: cover;
        display: block;
    }
    [data-js="timeline-carousel"] .slick-list {
        cursor: grab;
    }
    [data-js="timeline-carousel"] .slick-list:active {
        cursor: grabbing;
    }

    .timeline-carousel__item-wrapper img {
        -webkit-user-drag: none;    /* Chrome, Safari */
        user-drag: none;            /* future spec */
        pointer-events: none;       /* fare tıklaması wrapper’a geçsin */
        user-select: none;          /* metin seçimi de kapanır */
    }

    /* Görsellerin drag olayını bloke etmemesi için */
    [data-js="timeline-carousel"] img {
        pointer-events: none;
        user-select: none;
    }
    @media (max-width: 430px) {
        .timeline-carousel__item-inner img {
            max-height: 600px;    /* veya istediğiniz başka bir değer */
            object-fit: cover;    /* taşmayı engelle, kırp */
        }
    }

    .timeline-carousel__nav {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        margin-top: 1rem;
    }

    /* Butonları tamamen resetleyip modernleştiriyoruz */
    .timeline-carousel__nav > button.previous,
    .timeline-carousel__nav > button.next {
        all: unset;                     /* Tüm default browser stillerini sıfırla */
        box-sizing: border-box;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.72);
        backdrop-filter: blur(8px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
        color: #333;
        font-size: 1.6rem;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
        user-select: none;
        -webkit-user-select: none;
    }

    /* Odaklandığında görüntüyü koru */
    .timeline-carousel__nav > button.previous:focus,
    .timeline-carousel__nav > button.next:focus {
        outline: 2px solid #20c997;
        outline-offset: 2px;
    }

    /* Hover efekti */
    .timeline-carousel__nav > button.previous:hover,
    .timeline-carousel__nav > button.next:hover {
        background: rgba(255, 255, 255, 0.9);
        transform: scale(1.1);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    }

    /* Active (basılıyken) efekti */
    .timeline-carousel__nav > button.previous:active,
    .timeline-carousel__nav > button.next:active {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    .carousel-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 48px;
        height: 48px;
        border: none;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.5);
        color: #fff;
        font-size: 1.5rem;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background 0.2s, transform 0.2s;
        z-index: 5;
    }
    .carousel-nav--prev {
        left: 8px;
    }
    .carousel-nav--next {
        right: 8px;
    }
    .carousel-nav:hover {
        background: rgba(0, 0, 0, 0.7);
        transform: translateY(-50%) scale(1.1);
    }
    .carousel-nav:active {
        background: rgba(0, 0, 0, 0.9);
        transform: translateY(-50%) scale(1);
    }

    .timeline-carousel__item-wrapper button.previous.round,
    .timeline-carousel__item-wrapper button.next.round {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        border: none;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.5);
        color: #fff;
        font-size: 1.5rem;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10;
        transition: background 0.2s, transform 0.2s;
    }
    .timeline-carousel__item-wrapper button.previous.round {
        left: 8px;   /* sol kenardan boşluk */
    }
    .timeline-carousel__item-wrapper button.next.round {
        right: 8px;  /* sağ kenardan boşluk */
    }

    /* 4) Hover / Active efektleri */
    .timeline-carousel__item-wrapper button.previous.round:hover,
    .timeline-carousel__item-wrapper button.next.round:hover {
        background: rgba(0, 0, 0, 0.7);
        transform: translateY(-50%) scale(1.1);
    }
    .timeline-carousel__item-wrapper button.previous.round:active,
    .timeline-carousel__item-wrapper button.next.round:active {
        background: rgba(0, 0, 0, 0.9);
        transform: translateY(-50%) scale(1);
    }
}
