* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-container {
    width: 100%;
    height: 100%;
}

/* ======================== */
/* PHONE VERSION (Mobile) */
/* ======================== */

.phone-gallery {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    overscroll-behavior: contain;
}

.phone-gallery .slide {
    flex-shrink: 0;
    width: 100%;
    height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.phone-gallery .slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Hide desktop gallery on mobile */
.desktop-gallery {
    display: none;
}

/* ======================== */
/* TABLET VERSION (768px+) */
/* ======================== */

@media (min-width: 768px) {
    /* Show desktop gallery on tablet */
    .desktop-gallery {
        display: flex;
        flex-direction: column;
    }

    /* Hide phone gallery on tablet */
    .phone-gallery {
        display: none;
    }

    .desktop-gallery {
        height: 100%;
        overflow-y: scroll;
        scroll-snap-type: y mandatory;
        overscroll-behavior: contain;
    }

    .desktop-gallery .slide {
        flex-shrink: 0;
        width: 100%;
        height: 100vh;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .desktop-gallery .slide img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }
}

/* ======================== */
/* DESKTOP VERSION (1024px+) */
/* ======================== */

@media (min-width: 1024px) {
    .desktop-gallery {
        display: flex;
        flex-direction: column;
    }

    .desktop-gallery {
        height: 100%;
        overflow-y: scroll;
        scroll-snap-type: y mandatory;
        overscroll-behavior: contain;
    }

    .desktop-gallery .slide {
        flex-shrink: 0;
        width: 100%;
        height: 100vh;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .desktop-gallery .slide img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }
}

/* Hide scrollbar (optional - keep for better UX) */
.gallery::-webkit-scrollbar {
    width: 0;
    display: none;
}

.gallery {
    scrollbar-width: none;
}

/* Smooth scrolling behavior */
html {
    scroll-behavior: smooth;
}
