
#screenshots {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    margin-bottom: 50px;
}

.slider-wrapper {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* om du vill att det ska radbrytas vid behov */
    width: 100%;
    max-width: 1200px;
}

.screenshot-slide {
    width: 23%;
    aspect-ratio: 9 / 16;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.screenshot-slide img {
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.slider-btn {
    display: none;
}

.screenshot-text {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 0;
    font-family: Quicksand;
    z-index: 2;
}


@media (max-width: 768px) {

    #screenshots {
        max-width: 400px;
        margin: 50px auto; 
        padding: 0;
        background: none;
    }

    .slider-wrapper {
        position: relative;
        width: 100%;
        aspect-ratio: 9 / 16;
        overflow: visible;
        margin: 0 50px; 
    }

    .screenshot-slide {
        display: none;
        width: 100%;
        position: relative;
    }

    .screenshot-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .screenshot-text {
        position: absolute;
        bottom: 10px;
        width: 100%;
        text-align: center;
        color: #fff;
        background: rgba(0, 0, 0, 0.5);
        padding: 8px 0;
        font-family: Quicksand;
        z-index: 2;
    }

    .slider-btn {
        display: block;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background-color: rgba(0,0,0,0);
        color: rgb(0, 0, 0);
        border: none;
        padding: 10px 15px;
        cursor: pointer;
        z-index: 10;
        font-size: 24px;
    }

    .slider-btn.left {
        left: -50px;
    }

    .slider-btn.right {
        right: -50px; 
    }
}
