html {
    scrollbar-gutter: stable;
}

.regionFilters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.regionButton {
    appearance: none;
    background: none;
    border: none;
    padding: 5px 8px;
    text-transform: uppercase!important;
    font-family: inherit;
    font-size: 14px;

    font-weight: 800;
    line-height: 1.5;
    letter-spacing: normal;

    color: rgba(255,255,255,0.6);

    cursor: pointer;

    transition: color 0.2s ease;
    
}

.regionButton:hover {
    color: #fff;
}

.regionButton.active {
    color: #fff;
}

.brandButton.hiddenBrand {
    display: none;
}


@media screen and (max-width: 767px) {

    .regionFilters {
        gap: 12px;
        margin-bottom: 20px;
    }

    .regionButton {
        font-size: 14px;
        padding: 4px 6px;
        text-transform: uppercase;
    }

}


/* MAIN WRAPPER */

.brandShowcase {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}


/* LOGO NAVIGATION */

.brandLogos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    max-width: 1000px;
    margin: 0 auto 60px auto;
}

.brandButton {
    flex: 0 0 12%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    padding: 15px;
    cursor: pointer;
    box-sizing: border-box;
}


/* DEFAULT LOGO STATE = GREY */

.brandButton img {
    display: block;
    width: auto;
    height: 55px;
    max-width: 160px;
    object-fit: contain;

    opacity: 1;
    filter: brightness(0.45);

    transition:
        opacity 0.3s ease,
        filter 0.3s ease,
        transform 0.3s ease;
}


/* HOVER = LIGHTER */

.brandButton:hover img {
    filter: brightness(0.75);
    transform: scale(1.05);
}


/* SELECTED LOGO = WHITE */

.brandButton.active img,
.brandButton.initialActiveLogo img {
    filter: brightness(1) !important;
    transform: scale(1.08);
}


/* BRAND CONTENT */

.brandContent {
    display: none;
}

.brandContent.active {
    display: block;
    animation: fadeBrand 0.4s ease;
}

@keyframes fadeBrand {

    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* TEXT */

.brandContent h2 {
    color: white;
    font-size: 42px;
    margin-bottom: 20px;
}

.brandContent h3 {
    color: white;
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 10px;
}

.brandContent p {
    color: rgba(255,255,255,0.8);
    font-size: 18px;
    line-height: 1.7;
    max-width: 1500px;
}


/* STANDARD LANDSCAPE VIDEO */

.projectVideo {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin: 30px 0;
    background: #000;
}


/* CINEMASCOPE */

.projectVideo.cinema {
    aspect-ratio: 2.39 / 1;
}


/* OPTIONAL RATIOS */

.projectVideo.square {
    aspect-ratio: 1 / 1;
}

.projectVideo.vertical {
    aspect-ratio: 9 / 16;
}


.projectVideo iframe,
.projectVideo video {
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
    border: 0;
    object-fit: contain;
    background: #000;
}


/* VERTICAL REELS */

.reelGrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 30px 0;
    width: 100%;
}

.reelVideo {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    background: #000;
    overflow: visible;
}

.reelVideo video,
.reelVideo iframe {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000;
    border: 0;
}



.videoThumbGrid:has(> .videoThumb:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.naturzentrumReelGrid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* IMAGE GRID */

.brandImageGrid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.brandImageGrid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}


/* CLICKABLE YOUTUBE THUMBNAILS */

.videoThumbGrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 30px 0;
}

.videoThumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    border: 0;
    background: #000;
    overflow: hidden;
    cursor: pointer;
}

.videoThumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition:
        transform 0.35s ease,
        opacity 0.35s ease;
}

.videoThumb:hover img {
    transform: scale(1.035);
    opacity: 0.75;
}


/* PLAY BUTTON */

.videoPlay {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 72px;
    height: 72px;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.videoPlay::before {
    content: "";
    position: absolute;
    width: 68px;
    height: 68px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(0,0,0,0.72);
}

.videoPlay::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 54%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-left: 18px solid white;
}


/* VIDEO LIGHTBOX */

.videoLightbox {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(0,0,0,0.94);
}

.videoLightbox.active {
    display: flex;
}

.videoLightboxInner {
    position: relative;
    width: min(1200px, 95vw);
}

.videoLightboxVideo {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.videoLightboxVideo iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.videoLightboxClose {
    position: absolute;
    right: 0;
    top: -52px;
    z-index: 2;
    padding: 5px;
    border: 0;
    background: none;
    color: white;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
}

/* MOBILE */

@media screen and (max-width: 767px) {

    .hideOnMobile {
        display: none !important;
    }

    .brandLogos {
        gap: 4px;
        margin-bottom: 60px;
        max-width: 100%;
    }

    .brandButton {
        flex: 0 0 30%;
        padding: 5px;
    }

    .brandButton img {
        height: 28px;
        max-width: 75px;
        filter: brightness(0.45);
    }

    .brandButton:hover img {
        filter: brightness(0.75);
        transform: scale(1.03);
    }

    .brandButton.initialActiveLogo img,
    .brandButton.active img {
        filter: brightness(1) !important;
        transform: scale(1.04);
    }

    .brandContent h2 {
        font-size: 30px;
    }

    .brandContent h3 {
        font-size: 21px;
    }

    .brandContent p {
        font-size: 16px;
    }

    .reelGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .naturzentrumReelGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .videoThumbGrid,
    .videoThumbGrid:has(> .videoThumb:nth-child(2):last-child) {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .brandImageGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .videoPlay {
        width: 50px;
        height: 50px;
    }

    .videoPlay::before {
        width: 48px;
        height: 48px;
    }

    .videoPlay::after {
        border-top-width: 8px;
        border-bottom-width: 8px;
        border-left-width: 13px;
    }

    .videoLightbox {
        padding: 15px;
    }

    .videoLightboxInner {
        width: 100%;
    }
}
