﻿.slider-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Full screen for desktop */
    overflow: hidden;
}

.swiper-container {
    width: 90%;
    max-width: 1000px;
    height: 100vh; /* Full height desktop */
    margin: 0 auto;
 
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: auto !important; /* Let Swiper calculate width */

}

    .swiper-slide img {
        width: auto;
        height: 100%;
        max-height: 100%;
        object-fit: contain;
        border-radius: 4px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    }

/* ------------------- Responsive tweaks ------------------- */
@media (max-width: 1024px) {
    .swiper-container {
        height: 80vh; /* Slightly smaller on tablets */
    }
}

@media (max-width: 768px) {
    .swiper-container {
        height: 60vh; /* Mobile height */
    }
    .slider-wrapper {
        height: 60vh;
    }
        .swiper-slide img {
        width: 100%;
        height: auto;
        max-height: 60vh;
    }
}

@media (max-width: 480px) {
    .swiper-container {
        height: 50vh; /* Smaller phones */
    }

    .swiper-slide img {
        width: 100%;
        height: auto;
        max-height: 50vh;
    }
}

/* Fixed advertisement block */
.fixed-ads-container {
    position: fixed;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
    border-radius: 12px;
    z-index: 99999;
    width: 60%; /* desktop */
}

    .fixed-ads-container img {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 8px;
    }

.close-ads {
    position: absolute;
    top: 2px;
    right: 4px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    z-index: 100000;
    display: flex; /* CENTER HORIZONTAL + VERTICAL */
    align-items: center; /* vertical center */
    justify-content: center;
}
.reklam-kapat-text{
    position:absolute;
    top:2px;
    right:28px;
    background:#000;
    color:#fff;
    font-size:10px;
    padding:4px 8px;
    border-radius:5px;
    cursor:pointer;
}

/* MOBILE: 100% width */
@media (max-width: 600px) {
    .fixed-ads-container {
        width: 100%;
        left: 50%;
        transform: translateX(-50%);
        bottom: 2px; /* optional */
    }
    .close-ads{
        font-size:9px;
        height:14px;
        width:14px;
    }
}



