.amenities-scroll-wrapper {
    overflow-x: auto;

    display: flex;
    align-items: center;
    gap: 3rem;

    width: 100%;
    white-space: nowrap;

    scroll-snap-type: x mandatory;
    padding: 1rem 0 4rem;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4rem;
    scrollbar-width: thin;
    /* For Firefox */
    scrollbar-color: #AE8363 #D8BFAA;
    /* Thumb and Track */
}

/* Remove scrollbar buttons (arrows) in WebKit browsers */
.amenities-scroll-wrapper::-webkit-scrollbar-button {
    display: none;
    height: 0;
    width: 0;
}

.amenities-scroll-wrapper::-webkit-scrollbar-thumb {
    background-color: #AE8363;
    border-radius: 4px;
}

.amenities-scroll-wrapper::-webkit-scrollbar-track {
    background-color: #D8BFAA;
    border-radius: 4px;
}

.amenities-gallery-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: inline-block;
}

/* Odd items: 420x620 */
.amenities-gallery-item:nth-child(even) .amenities-image {
    width: 420px;
    height: 620px;
}

/* Even items: 620x420 */
.amenities-gallery-item:nth-child(odd) .amenities-image {
    width: 620px;
    height: 420px;
}

.amenities-image {
    object-fit: cover;
    display: block;
}

@media (max-width: 1024px) {
    .amenities-scroll-wrapper {
        gap: 2rem;
        padding: 1rem 0 3rem;
    }

    .amenities-gallery-item:nth-child(even) .amenities-image,
    .amenities-gallery-item:nth-child(odd) .amenities-image {
        width: 400px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .amenities-scroll-wrapper {
        gap: 1.5rem;
        padding-bottom: 2.5rem;
    }

    .amenities-gallery-item:nth-child(even) .amenities-image,
    .amenities-gallery-item:nth-child(odd) .amenities-image {
        width: 320px;
        height: 340px;
    }
}

@media (max-width: 480px) {
    .amenities-scroll-wrapper {
        gap: 1rem;
        padding-bottom: 2rem;
    }

    .amenities-gallery-item:nth-child(even) .amenities-image,
    .amenities-gallery-item:nth-child(odd) .amenities-image {
        width: 260px;
        height: 280px;
    }
}