/*
 Theme Name:     W. Mayer Theme
 Theme URI:      
 Description:    W. Mayer Theme
 Author:         Salted Ham
 Author URI:     
 Template:       hello-elementor
 Version:        1.0
*/


/* =Theme customization starts here
------------------------------------------------------- */

html {
    scroll-behavior: smooth !important;
}

.header_overlay_animation {
    overflow: hidden !important;
}

.elementor-editor-active .parallax_left {
    opacity: 1;
    left: 0;
}

.parallax_left {
    position: relative !important;
    left: 200px !important;
    opacity: 0;
    transition: left 800ms ease-in-out, opacity 0.5s ease-in-out !important;
}

.parallax_left.loaded {
    left: 0px !important;
    opacity: 1 !important;
}

.header_overlay_animation:after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    background-color: #000000;
    transition: transform 1.8s cubic-bezier(.18, .14, 0, .99);
    transform: translateX(0);
    z-index: 0;
}

.header_overlay_animation.active:after {
    transform: translateX(100%);
}


/* BANNER  BANNER  BANNER  BANNER  BANNER  BANNER  BANNER  BANNER  BANNER  BANNER  BANNER  BANNER */

.marquee {
    display: flex;
    block-size: var(--marquee-item-height);
    margin-block: 40px;
    position: relative;
    overflow-x: hidden;
    /* mask-image: linear-gradient( to right, hsl(0 0% 0% / 0), hsl(0 0% 0% / 1) 20%, hsl(0 0% 0% / 1) 80%, hsl(0 0% 0% / 0)); */
}

.marquee--12 {
    --marquee-item-width: 400px;
    --marquee-item-height: 100px;
    --marquee-duration: 120s;
    --marquee-items: 12;
    display: flex;
    align-items: center;
}

.marquee__item {
    margin: 0px 100px;
    height: auto;
    width: 200px;
    --marquee-item-offset: max( calc(var(--marquee-item-width) * var(--marquee-items)), calc(100% + var(--marquee-item-width)));
    --marquee-delay: calc(var(--marquee-duration) / var(--marquee-items) * (var(--marquee-items) - var(--marquee-item-index)) * -1);
    position: absolute;
    inset-inline-start: var(--marquee-item-offset);
    transform: translateX(-50%);
    animation: go linear var(--marquee-duration) var(--marquee-delay, 0s) infinite;
}


/* .marquee__item img {
    filter: grayscale(1) brightness(0);
    background-blend-mode: difference;
} */

.marquee--12 .marquee__item:nth-of-type(1) {
    --marquee-item-index: 1;
}

.marquee--12 .marquee__item:nth-of-type(2) {
    --marquee-item-index: 2;
}

.marquee--12 .marquee__item:nth-of-type(3) {
    --marquee-item-index: 3;
}

.marquee--12 .marquee__item:nth-of-type(4) {
    --marquee-item-index: 4;
}

.marquee--12 .marquee__item:nth-of-type(5) {
    --marquee-item-index: 5;
}

.marquee--12 .marquee__item:nth-of-type(6) {
    --marquee-item-index: 6;
}

.marquee--12 .marquee__item:nth-of-type(7) {
    --marquee-item-index: 7;
}

.marquee--12 .marquee__item:nth-of-type(8) {
    --marquee-item-index: 8;
}

.marquee--12 .marquee__item:nth-of-type(9) {
    --marquee-item-index: 9;
}

.marquee--12 .marquee__item:nth-of-type(10) {
    --marquee-item-index: 10;
}

.marquee--12 .marquee__item:nth-of-type(11) {
    --marquee-item-index: 11;
}

.marquee--12 .marquee__item:nth-of-type(12) {
    --marquee-item-index: 12;
}

@keyframes go {
    to {
        inset-inline-start: calc(var(--marquee-item-width) * -1);
    }
}

.horizontal_scroll_wrapper {
    transition: 0s !important;
    overscroll-behavior: none !important;
}


/* ENDE BANNER  ENDE BANNER  ENDE BANNER  ENDE BANNER  ENDE BANNER  ENDE BANNER  ENDE BANNER  ENDE BANNER */

div#threejs-container {
    width: 100%;
    aspect-ratio: 2/1;
    position: relative;
}

div#threejs-container canvas {
    position: absolute;
    width: 100%;
    height: 100%;
    /* Fill the entire container */
}


/* 
main,
html,
body {
    width: 100%;
    height: 100%;
}

#scroll_cotainer section {
    height: 100vh;
}

#scroll_cotainer .container {
    padding: 40px;
}

#scroll_cotainer .sticky_parent {
    height: 400vh;
}

#scroll_cotainer .sticky {
    overflow: hidden;
    position: sticky;
    top: 100px;
    height: 80vh;
}

#scroll_cotainer .scroll_section {
    position: absolute;
    top: 0;
    height: 100%;
    width: 400vw;
    will-change: transform;
    display: flex;
    align-items: center;
}

.corner-border {
    position: relative;
}

.corner-border::before,
.corner-border::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid black;
}

.corner-border::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.corner-border::after {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
} */


/* #scroll_cotainer .scroll_section::after {
    content: "";
    background-image: url(./assets/wmayer_green.svg);
    opacity: 0.2;
    aspect-ratio: 6 / 1;
    width: 400vw;
    height: 100%;
    background-size: cover;
    position: absolute;
    z-index: -1;
    background-size: auto;
} */


/* #scroll_cotainer img {
    width: 400px;
    height: 80%;
    object-fit: cover;
    object-position: center;
} */

.wmayer_sticky .wmayer_sticky_content {
    position: absolute !important;
    top: 200px;
    overflow: hidden;
    height: 60vh;
    max-width: 1400px;
}

.wmayer_sticky .wmayer_sticky_text {
    position: absolute !important;
    top: 100px;
}

.content_row_wrapper {
    position: relative;
}

.content_row {
    transition: height 0.1s linear, opacity 0.1s linear;
    overflow: hidden;
    background-color: white;
    overflow: hidden !important;
    height: 25%;
    position: absolute !important;
}

.wmayer_img_wrapper div:not(:first-child) {
    opacity: 0;
    top: 5% !important;
}

div#wmayer_glas_overlay {
    backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.1);
}

.scroll_gallery_link {
    display: flex;
    align-items: center !important;
}

.scroll_gallery_link:before {
    width: 20px;
    content: "";
    background: grey;
    height: 2px;
    top: 50%;
    margin-right: 10px;
    display: block;
}


/* .content_row p {
    transition: opacity 0.1s linear;
    opacity: 0;
} */