@import url('https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css');
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;600&display=swap');

@media screen and (min-width: 320px) and (max-width: 768px) {
    .swiper {
        width: 100%;
        height: 100%;
        top: 0;
    }
    .swiper-slide {
        width: 100%;
        height: 100%;
    }
    .overlay {
        height: 100px;
    }
    .overlay h1 {
        font-size: 1.5rem;
    }
    .overlay p {
        font-size: 0.8rem;
    }
}

.swiper {
    position: relative;
    width: 460px;
    height: 490px;
    top: 50px;
    font-family: 'Nunito', sans-serif;
}

.swiper-slide {
    position: relative;
    border: 1px solid #ffffff4d;
    background-position: center;
    background-size: cover;
    user-select: none;
    border-radius: 20px;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

.overlay {
    width: 100%;
    height: 150px;
    position: absolute;
    left: 0;
    bottom: 0;
    background: #5d5f9133;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 20px;
    backdrop-filter: blur(8px);
    border-top: 1px solid #ffffff4d;
    border-radius: 0 0 20px 20px;
    box-sizing: border-box;
}

.overlay h1 {
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
}

.overlay p {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.3;
    margin: 0;
}

.hidden {
    display: none;
    position: absolute;  
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}
