@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -100%, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 99999;
}

.popup-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: transparent;
    padding: 150px;
    border-radius: 5px;
    max-width: 100%;
    width: 100%;
    text-align: center;
}

.close-popup {
    position: fixed;
    right: 30px;
    top: 30px;
    font-size: 36px;
    cursor: pointer;
    color: white;
    z-index: 2000000;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    transition: transform 0.3s ease;
}

.close-popup:hover {
    transform: rotate(90deg);
}

.slider-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 160px);
    overflow: hidden;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
}

.slide.active {
    display: block;
}

.slide.active.slideOutLeft {
    animation: slideOutLeft 0.6s ease-out forwards;
}

.slide.active.slideOutRight {
    animation: slideOutRight 0.6s ease-out forwards;
}

.slide.active.slideInRight {
    animation: slideInRight 0.6s ease-out forwards;
}

.slide.active.slideInLeft {
    animation: slideInLeft 0.6s ease-out forwards;
}

.slider-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2000000;
    transition: background-color 0.3s ease;
    border-radius: 50%;
}

.slider-nav:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.prev {
    left: 30px;
}

.next {
    right: 30px;
}

/* Mobile uyumlu düzenlemeler */
@media screen and (max-width: 768px) {
    .popup-content {
        padding: 20px;
    }

    .slider-container {
        height: calc(100vh - 100px);
    }

    .slide {
        object-fit: contain;
    }

    .close-popup {
        right: 15px;
        top: 15px;
        font-size: 28px;
        width: 30px;
        height: 30px;
        line-height: 30px;
    }

    /* Sağ ve sol ikonlarını gizle */
    .slider-nav {
        display: none;
    }
}

/* Daha küçük ekranlar için ek düzenlemeler */
@media screen and (max-width: 480px) {
    .popup-content {
        padding: 10px;
    }

    .slider-container {
        height: calc(100vh - 80px);
    }

    .slider-nav {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

/* Yatay mod (landscape) için düzenlemeler */
@media screen and (max-height: 480px) and (orientation: landscape) {
    .popup-content {
        padding: 10px 50px;
    }

    .slider-container {
        height: calc(100vh - 40px);
    }

    .close-popup {
        top: 5px;
        right: 5px;
    }
}