/* 
Theme Name: Mediaapparat Theme
Description: Mediaapparat Theme is a child theme of Hello Elementor, designed for optimal performance and full compatibility with Elementor page builder.
Author: WP-Stars GmbH
Author URI: https://wp-stars.com
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
*/

* {
    outline: 1px solid yellow !important;
}

@view-transition {
    navigation: auto;
}

/* Hide the WPML staging site notice */
.otgs-development-site-front-end {
    display: none;
}

/*base variables*/
:root {
    --map-rd-corner-sm: 4px;
    --map-rd-corner: 8px;
    --map-rd-corner-lg: 12px;
    --Neutral-White: #FFFFFF;
    --Neutral-Black: #181818;
    --Neutral-8: #EDEDED;
    --Neutral-16: #DADADA;
    --Neutral-32: #B5B5B5;
    --Neutral-64: #6B6B6B;
    --Neutral-48: #909090;
    --Neutral-80: #262626;
    --Neutral-90: #121212;
    --highlight-viking: #5DDBD3;
    --ff-heading: "Inter Variable", serif;
    --btn-transition-duration: 400ms;
    --btn-transition-easing: ease-in-out;

}

body {
    font-family: var(--ff-heading);

}

* {
    word-break: break-word;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
p {
    margin: 0 0 6px 0;
}

p a,
ul li a {
    color: inherit !important;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    font-family: inherit;

    &:hover {
        color: var(--Neutral-White) !important;
    }
}

/*sometimes they use <ul> in textareas. we need some class surrounding this to not style the menu-items..*/
.elementor-widget-container ul {
    li {
        margin-left: 10px;
    }
}

.elementor-widget.elementor-widget-text-editor {
    & ul {
        padding-left: 20px;
    }
}


/*helper classes */

/* .container-boxed:
set a container in a full-width container to the elementor-content width (styles copied from .e-con)
example usage: custom-elementor-widget with a full-width background image (e.g.: map-services-widget.php
*/
@media screen and (min-width: 769px) {

    .full-width {
        /*there is a little padding on the parent container. and the bg-img wont stretch to the browser edges. this is how we solve that*/
        width: calc( 100% + 20px );
        transform: translatex(-10px);
        position: relative;

        & .container-boxed {
            margin: 0 auto;
            max-width: var(--content-width);
            padding-inline-end: 10px;
            padding-inline-start: 10px;
            width: 100%;
        }
    }
}

@media screen and (max-width: 768px) {
    .full-width  .container-boxed  > * {
        padding-left: 10px;
        padding-right: 10px;
    }
}

.map-vertical-text {
    writing-mode: sideways-lr;
    text-orientation: mixed;
}

/* Override vertical text to horizontal when text has 3+ lines (applied via JS) */
.map-vertical-text.map-horizontal-override {
    writing-mode: horizontal-tb;
    text-orientation: unset;
    text-align: left !important;
}

.map-rd-corner {
    border-radius: var(--map-rd-corner) !important;
}

.btn {
    /* Body 1/Medium */
    font-family: "Inter Variable";
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 28px;
    padding: 12px 20px;

    /* light - default*/
    color: var(--Neutral-Black) !important;
    border:1px solid var(--Neutral-White);
    background-color: var(--Neutral-White);
    border-radius: var(--map-rd-corner);
    transition: all var(--btn-transition-duration) var(--btn-transition-easing);

    /* the arrow needs some space */
    padding-right: 50px;
    display: flex;
    align-items: center;
    position: relative;

    min-width: 240px;

    &:after {
        content: "";
        display: inline-block;
        /* use SVG as mask , so that we can change the icon color via css.. */
        mask: url('/wp-content/themes/mediaapparat/assets/icons/arrow-up-dark.svg') no-repeat center;
        -webkit-mask: url('/wp-content/themes/mediaapparat/assets/icons/arrow-up-dark.svg') no-repeat center;
        background-color: currentColor;

        height: 32px;
        width: 32px;
        position: absolute;
        right: 12px;

        /* animation setup */
        transform: rotate(0deg);
        transform-origin: center;
        transition: transform var(--btn-transition-duration) var(--btn-transition-easing), background-color var(--btn-transition-duration) var(--btn-transition-easing);
    }

    &:hover {
        color: var(--Neutral-White) !important;
        background-color: var(--Neutral-Black);
        border-color: var(--Neutral-Black);

        &:after {
            transform: rotate(45deg);
        }
    }

    /* dark */
    &.dark {
        color: var(--Neutral-White) !important;
        background-color: var(--Neutral-Black);

        &:after {
            background-color: var(--Neutral-White);
        }

        &:hover {
            color: var(--highlight-viking) !important;
            border-color: var(--highlight-viking);

            &:after {
                background-color: var(--highlight-viking);
            }
        }
    }
}

.mrp-linear-gradiant-1:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1; /*dont change this, otherwise it might overlay some text content*/
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.80) 0%, rgba(0, 0, 0, 0.00) 32.03%) ;
}

/* header : usually on pageload on browser bottom, until on scroll sticky until scrolled to top - fixed */
header.elementor-location-header {
    position: fixed;
    bottom: 10px;
    z-index: 20;


    &.sticky {
        top: 10px;
        bottom: unset !important;
    }

    & .elementor-widget-theme-site-logo {
        margin-left: 22px;
    }

    /* we need to set the width to this container, ohterwise it will overflow*/
    & > .elementor-element {
        width: 100vw;
    }

    & nav.elementor-nav-menu__container ul{
        color: var(--Neutral-Black);
        gap: 8px;
        li a {
            padding: 6px 12px;
            transition: background-color 0.3s ease-in-out;

            &:hover,&:focus {
                padding: 6px 12px !important;
                line-height: inherit !important;
                background-color: var(--Neutral-White);
                border-radius: var(--map-rd-corner-sm);
                color: inherit !important;

                &:after {
                    content: unset!important;
                }
            }
        }
    }
    /* Initially hide the mobile close button */
    .menu-trigger-close {
        display: none;
    }

    .menu-trigger-open, 
    .menu-trigger-close {
        cursor: pointer;
    }    
}

.header-menu-align-top header.elementor-location-header {
    top:0;
    bottom: unset !important;
}
/* if the mobile-menu-popup is active and the header already is sticky to top ,
- we need to push the mobile menu-popup down a bit*/
body.popup-menu-enabled {
    header.elementor-location-header.sticky {
        top: unset !important;
        bottom: 10px !important;
    }
}
/* Show Reel Button */
.desktop-show-reel-sortcode {
    display: inline-flex;
}

.showreel-button {
    position: relative;
    display: inline-block;
    font-family: var(--ff-heading);
    font-size: 14px;
    font-weight: 500;
    color: var(--Neutral-Black);
    line-height: 28px;
    padding: 12px;
    background: var(--Neutral-8);
    border-radius: var(--map-rd-corner);
    cursor: pointer;
    transition: all 0.3s ease;
    word-break: keep-all;

    & video.hover-video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: inherit;
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 0;
    }

    & span {
        position: relative;
        z-index: 1;
        word-break: keep-all;
    }

    &:hover {

        & video.hover-video {
            opacity: 1;
        }

        & span {
            color: var(--Neutral-White);
        }
    }

    /*on mobile we need to see the video initially*/
    &.is-mobile {
        background: unset;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        display: flex;
        color: white;
        align-items: center;
        justify-content: center;

        & span {
            font-size: 18px
        }

        video.hover-video {
            opacity: unset;
            transition: unset;
        }
    }
}


/* Fullscreen Modal */
.showreel-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,1);
    justify-content: center;
    align-items: center;
    z-index: 9999;

    &.active {
        display: flex;
    }

    & .showreel-content {
        position: relative;
        max-width: 100%;
        max-height: 100%;

        & .showreel-full {
            width: 100%;
            height: auto;
            border-radius: 12px;
        }

        & .showreel-close {
            position: absolute;
            top: 1rem;
            right: 1rem;
            z-index: 10;
            background: var(--Neutral-8);
            border: none;
            border-radius: var(--map-rd-corner);
            color: var(--Neutral-80);
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s ease-in-out;

            &:hover, &:focus {
                background: var(--Neutral-80);
                color: var(--Neutral-White);
            }

            &:after {
                content: unset;
            }
        }
    }
}

@media screen and (max-width: 768px) {
    body.showreel-fullscreen-active {
        header.elementor-location-header {
            z-index: 0;
        }
    }
}

/* Make the modal truly fullscreen on mobile */
.showreel-modal.is-mobile.active {


    & .showreel-content {
        position: relative !important;
        width: 100vw !important;
        height: 100vh !important;

        @media (orientation: portrait) {
            & .showreel-full {
                position: absolute;
                top: 50%;
                left: 50%;
                /* height: 100vw; */
                transform: translate(-50%, -50%) rotate(90deg);
                max-width: unset !important;
                max-height: unset !important;
                width: 100vh !important;
            }

            & .mobile-rotate-container {
                display: block !important;
                position: relative;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                text-align: center;
            }
        }

        & .mobile-rotate-container {
           display: none;
        }

        & .btn.showreel-close {
            display: flex;
            padding: 12px;
            top: unset;
            bottom: 0;
            left: 50%;
            right: unset;
            transform: translate(-50%);
        }
    }
}

/* Map Back Button */
.map-back-btn-wrapper {
    width: fit-content;
    display: none;

    @media (min-width: 1024px) {
            display: block;
            margin-right: 400px;
        }
    & .map-back-button-container {
        min-height: 52px;
        min-width: 70px;
        display: flex;
        justify-content: center;
        align-items: center;   
        background-color: #EDEDED;
    }
}
.conditional-shortcode-col:has(.elementor-shortcode:empty) {
  display: none;
}

/* arrow icon rotate effect */
.map-arrow-hover-rotate {
  .map-arrow-icon {
    transition: all 0.3s ease-in-out;
    transform: rotate(0deg);
  }

  &:hover {
    .map-arrow-icon {
      transform: rotate(45deg);
    }
  }
}

/* header logo text size fix */
header .elementor-widget-image a img[src$=".svg"] {
    width: auto !important;
}