﻿/* override some defaul styling */
.container {
    padding: 0px;
}

body {
    margin: 0px;
}

main.pb-3 {
    padding-bottom: 0px !important;
}

footer {
    display: none;
}

/* swiper - see swiper docs for different variables */
.swiper {
    --swiper-pagination-color: #fff;
    --swiper-pagination-bullet-inactive-color: #fff;
    --swiper-scrollbar-size: 10px;
}

/* larger screens */
@media only screen and (min-width: 550px) {

    /* overide default style */
    .container {
        max-width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }

    .swiper {
        --swiper-pagination-fraction-color: #fff;
        --swiper-pagination-bottom: 3px;
    }

    #larger-view-gallery-videos-container,
    #larger-view-gallery-photos-container {
        display: block;
        position: relative;
        margin-bottom: 100px;
    }

    #mobile-view-gallery-container {
        display: none;
    }

    .swiper {
        height: 100%;
    }

    #gallery-videos-headline-and-paragraph {
        display: none;
    }

    #medium-view-videos-h2 {
        text-align: center;
    }

    #larger-view-video-swiper {
        height: calc(100vh - 231px); /* subtract top margin of main (125) plus h2 height (56) plus a little space at the bottom (50) = 231px */
        width: calc((100vh - 271px) * 9 / 16); /* subtract (231 from line above + padding-bottom of 40px) to get 271. To get aspect ratio of 9/16 we multiply height x 9 / 16 */
        padding-bottom: 40px;
    }

    .video-wrapper {
        height: 100%;
        width: 100%;
    }

    .gallery-video {
        height: 100%;
        width: 100%;
    }

    .swiper-videos-prev,
    .swiper-videos-next {
        color: white;
        position: absolute;
        bottom: 0px;
        padding: 5px 15px;
        text-align: center;
        font-size: 12px;
        color: white;
        border-radius: 10px;
        display: block;
        border: none;
        background-color: #145D66;
        z-index: 11;
    }

    .swiper-videos-prev {
        left: 0px;
    }

    .swiper-videos-next {
        right: 0px;
    } 

    /* photo section */

    #large-view-photo-section-headline {
        text-align: center;
    }

    #larger-view-photo-swiper .swiper-scrollbar {
        bottom: 4px;
        left: 0px;
        width: calc(100% - 25px); /* leave some space for play/pause button at the end */
        background-color: #4e4e4e;
    }

    #larger-view-photo-swiper .swiper-scrollbar-drag {
        cursor: grab;
        background-color: #a7a7a7;
    }

    #pause-play-photo-swiper-autoplay {
        position: absolute;
        bottom: 0px;
        right: 0px;
        font-size: 20px;
        padding: 0px;
        color: white;
        cursor: pointer;
        z-index: 60;
    }

    #larger-view-photo-swiper .swiper-wrapper {
        padding-bottom: 35px; /* get page scrollbar to show under images instead of overlapping */
        padding-top: 5px;
    }

    .swiper img {
        height: 100%;
        width: 100%;
        border-radius: 10px;
        box-shadow: #000 0px 1px 4px;
    }

    #larger-view-photo-swiper .swiper-slide {
        height: calc(100vh - 300px);
        width: calc((100vh - 300px) * 9 / 16);
    }

    /* footer */
    #large-view-gallery-footer {
        display: block;
        background-image: linear-gradient(#f5f5f7, #C0DEDF);
        color: #1d1d1f;
        padding: 55px 20px;
        margin-bottom: 20px;
        border-radius: 15px;
        text-align: center;
    }

    #large-view-gallery-footer .text-br {
        display: none;
    }

    #large-view-gallery-footer .sub-headline-type-2 {
        margin-top: 10px;
        margin-bottom: 20px;
    }

    #arrow-icon {
        margin: 0px 4px 0px 1px;
    }

    .go-back-home {
        display: block;
        margin: auto;
        margin-top: 10px;
        margin-bottom: 50px;
        text-decoration: none;
        color: #000;
        font-size: 14px;
    }

    .go-back-home:hover {
        color: #000;
    }

    #want-more-p {
        max-width: 670px;
        margin: auto;
        margin-bottom: 10px;
    }

    .social-media img {
        width: 35px;
        /*filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(154deg) brightness(105%) contrast(103%);*/
    }

    .social-media {
        display: flex;
        gap: 10px;
        justify-content: center;
        margin-bottom: 50px;
    }

    .contact-container {
        display: inline-block;
        margin: auto;
    }

    .contact-div {
        display: flex;
        gap: 10px;
        align-items: center;
        justify-content: start;
        margin-bottom: 5px
    }

    .contact-div p {
        margin-bottom: 0px;
        line-height: 1;
    }

}


@media only screen and (min-width: 1050px) {

    #medium-view-videos-h2 {
        display: none;
    }

    #gallery-videos-headline-and-paragraph {
        display: block;
        position: relative;
        width: 495px;
    }

    #sound-on-span {
        position: absolute;
        left: 0px;
        bottom: 65px;
        font-size: 18px;
    }

    #larger-view-gallery-videos-container {
        display: flex;
        justify-content: center;
        gap: 40px;
    }

    #larger-view-video-swiper {
        height: calc(100vh - 175px); /* subtract top margin of main (125) plus a little space at the bottom (50) = 175px */
        width: calc((100vh - 215px) * 9 / 16); /* subtract (175 from line above + padding-bottom of 40px) to get 215. To get aspect ratio of 9/16 we multiply height x 9 / 16 */
        margin: 0px;
    }
}


/* Mobile Fullscreen Scroll (Instagram Reels Style) */
@media only screen and (max-width: 550px) {

    /* override site style */
    main.pb-3 {
        margin-top: 0px;
    }

    #larger-view-gallery-videos-container,
    #larger-view-gallery-photos-container,
    #large-view-gallery-footer {
        display: none;
    }

    #mobile-view-gallery-container {
        display: block;
        height: 100vh;
        overflow-y: scroll;
        scroll-snap-type: y mandatory;
        padding: 0;
        margin: 0;
    }

    .gallery-item, #gallery-mobile-footer {
        position: relative;
        height: 100vh;
        scroll-snap-align: start;
    }

    #mobile-view-gallery-container .gallery-error-message {
        position: relative;
        height: 100vh;
        scroll-snap-align: start;
    }

    .gallery-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .video-wrapper {
        display: block;
        width: 100%;
        height: 100%;
    }

    .video-wrapper .progress-bar, .video-wrapper .sound-icon {
        position: fixed;
        bottom: -100%;
    }

    .active-video-wrapper .progress-bar {
        bottom: 0;
    }
    
    .active-video-wrapper .sound-icon {
        bottom: 20px;
        right: 20px;
    }

    .swiper {
        width: 100%;
        height: 100%;
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    #gallery-mobile-footer {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 35px;
        padding: 20px;
        text-align: center;
        background-image: linear-gradient(#f5f5f7, #C0DEDF);
        color: #1d1d1f;
    }

    #gallery-mobile-footer .sub-headline-type-2 {
        margin-top: 10px;
        margin-bottom: 20px;
        line-height: 1.7
    }

    .go-back-home {
        display: block;
        margin: auto;
        margin-top: 10px;
        text-decoration: none;
        color: #000;
    }

    .go-back-home:hover {
        color: #000;
    }

    .social-media img {
        width: 35px;
        /*filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(154deg) brightness(105%) contrast(103%);*/
    }

    .social-media {
        display: flex;
        gap: 10px;
        justify-content: center;
    }

    .contact-container {
        display: inline-block;
        margin: auto;
    }

    .contact-div {
        display: flex;
        gap: 10px;
        align-items: center;
        justify-content: start;
        margin-bottom: 5px
    }

    .contact-div p {
        margin-bottom: 0px;
        line-height: 1;
    }
}

.gallery-error-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: #999;
}

.gallery-error-message .sad-face {
    font-size: 50px;
}

.gallery-error-message p {
    margin: 4px 0;
    font-size: 1rem;
}

.gallery-error-message .social-media {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.gallery-error-message .social-media img {
    width: 30px;
    height: 30px;
    opacity: 0.7;
    transition: opacity 0.2s;
    filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(154deg) brightness(105%) contrast(103%);
}

.gallery-error-message .social-media img:hover {
    opacity: 1;
}

