* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-container {
    width: 100%;
    height: 100%;
}

/* Phone gallery (default) */
.phone-gallery {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
}

.phone-gallery .slide {
    flex-shrink: 0;
    width: 100%;
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.phone-gallery .slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Desktop gallery (hidden by default) */
.desktop-gallery {
    display: none;
}

/* Tablet and Desktop (768px+) */
@media (min-width: 768px) {
    .phone-gallery {
        display: none;
    }

    .desktop-gallery {
        display: flex;
        flex-direction: column;
        height: 100%;
        overflow-y: scroll;
        scroll-snap-type: y mandatory;
    }

    .desktop-gallery .slide {
        flex-shrink: 0;
        width: 100%;
        height: 100vh;
        scroll-snap-align: start;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .desktop-gallery .slide img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

/* Hide scrollbars */
.gallery::-webkit-scrollbar {
    display: none;
}

.gallery {
    scrollbar-width: none;
}
