/*!
Theme Name: RosaLux Geneva
Theme URI: https://gitlab.com/partnerandpartners/partner-starter
Author: Partner & Partners — Logan, Zach, Greg
Author URI: https://partnerandpartners.com
Description: Default
Version: 1.0.0
Tested up to: 7.4
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: partner-starter
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
!*/

* {
    padding: 0;
    margin: 0;
    top: 0;
    box-sizing: border-box !important;
    scroll-margin-top: calc(var(--header-height) + 2rem);}

::selection {
    background-color: var(--rls-red-tint) !important;
}

* a:hover {
    text-decoration-color: var(--rls-red) !important;
    color: inherit !important;
}
      
.site-main {
    padding-left: 2.5%;
    padding-right: 2.5%;
    margin-left: 15vw !important}

/* Language */
.lang-select-desktop .wpml-ls-display,
.lang-select-mobile .wpml-ls-display {
    display: none;
}

.mobile-wrap {
    display: none;
}

.desktop-wrap {
    position: sticky; position: -webkit-sticky;
    display: flex;
    bottom: 2.5%;
    left: 2.5%;
    transform: translateX(-15vw);
    -ms-transform: translateX(-15vw);
    -webkit-transform: translateX(-15vw);
    z-index: 999;
}

.lang-select-desktop {
    display: flex;
    flex-direction: column-reverse;
    text-transform: uppercase;
    color: var(--rls-red);
    max-height: 3.6rem;
    font-size: 2.4rem !important;
    margin-right: 1rem;
    border: 1px solid var(--rls-red) !important;
    background: white;
    overflow: hidden;
}

/* For .lang-select-desktop */
.open-select {
    max-height: fit-content;
}

.lang-select-desktop ul {
    list-style: none;
    margin: 0;
}

.lang-select-desktop ul.main-switcher {
    padding: 1rem;
}

.lang-select-desktop.span + .lang-select-desktop.sub-menu {
    margin: 10rem;
}

.lang-select-desktop ul.sub-menu > li {
    margin-bottom: 1rem;
}

.lang-select-desktop .main-switcher > li {
    display: flex;
    flex-direction: column-reverse;
}

.lang-select-desktop .main-switcher > li > span,
.lang-select-desktop ul.sub-menu > li {
    height: 2.4rem;
    line-height: 2.4rem;
}

.lang-select-desktop .main-switcher > li > span {
    margin-bottom: -10px;
}

.lang-select-desktop .main-switcher > li > span::after {
    content: '';
    position: relative;
    display: inline;
    border-right: solid 0.9rem transparent;
    border-bottom: solid 1.8rem var(--rls-red);
    border-left: solid 0.9rem transparent;
    top: -2.5rem;
    margin-left: 0.5rem;
}

.lang-select-desktop .sub-menu .active {
    display: none;
}

/* Single.php Share Buttons */
.share-options {
    display: flex;
    flex-direction: column;
}

.share-options > a::before {
    content: '';
    position: absolute;
    width: calc(1rem * 0.5333);
    height: 1rem;
    background-color: red;
    margin-left: -1rem;
}

.share-options > a {
    margin-left: 1rem;
    margin-top: 0.5rem;
}

/* General */
.wp-block-separator {
    position: relative;
    display: inline-block;
    height: 1px !important;
    min-width: 100% !important;
    background-color: var(--rls-red);
    border-bottom: none !important;
    margin-top: 2rem;
    margin-bottom: 2rem;}

.mx-auto a,
.styled-link {
    color: var(--rls-red) !important;
    text-decoration: underline;}

.wp-block-button {
    display: flex;
    flex-direction: row;
    align-items: baseline;}

.wp-block-button > * {
    display: inline-block;}

.wp-block-buttons .wp-block-button a.wp-block-button__link {
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0) !important;
    border-radius: none !important;
    padding: 0 !important;
    font-size: inherit !important;
    color: #767676;
    margin-top: 2rem;
}

.wp-block-button:after {
    content: '';
    width: 0;
    height: 0;
    border-top: 0.75rem solid transparent;
    border-left: 1.5rem solid #767676;
    border-bottom: 0.75rem solid transparent;
}

/* Single.php */
.hero-container {
    position: relative;
    height: calc(100vh - var(--header-height));
    width: 100%;}

.matte-layer,
.image-layer,
.noise-layer,
.gradient-layer {
    position: absolute;
    height: 100%;
    width: 100%;}

.matte-layer {
    background-color: black;
    z-index: 1;}

.image-layer {
    opacity: 0.85;
    z-index: 2;
    background-size: cover;
    background-position: center;}

.gradient-layer {
    background-image: linear-gradient(to bottom, rgba(255,0,0,0), var(--rls-red));
    z-index: 3;}

.noise-layer {
    background-image: url('./img/red-noise.png');
    background-size: 35%;
    background-repeat: repeat;
    z-index:4;}

.text-layer {
    text-align: center;
    position: absolute;
    width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
    height: auto !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);-ms-transform: translate(-50%,-50%);-webkit-transform: translate(-50%,-50%);
    z-index: 5;}

.splash-text-container {
    width: 100%;
    padding: 5rem 30rem;
}

.single-template .wp-block-image.size-large {
    margin-top: 4rem !important;
    margin-bottom: 4rem !important;}

.wp-block-file,
.wp-block-button__link {
    text-align: center;
    color: #767676 !important;
    border: 0 !important;}

.wp-block-button::after {
    display: none;
}

.wp-block-file::after,
.wp-block-button__link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    margin-top: 2px;
    margin-left: 1rem;
    border-top: 1rem solid transparent;
    border-left: 2rem solid #767676;
    border-bottom: 1rem solid transparent;}

.wp-block-file__button {
    display: none;}

.wp-block-media-text {
    grid-gap: 2rem !important;
}

.wp-block-media-text__media {
    margin-bottom: 2rem;
}

.wp-block-media-text * {
    top: 0 !important;
    align-self: flex-start !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.wp-block-media-text p {
    padding: 0rem !important;
    font-size: inherit !important;
}

.wp-block-pullquote {
    border-top: 1px solid var(--rls-red) !important;
    border-bottom: 1px solid var(--rls-red) !important;
    color: black !important;
    padding: 2rem 0rem !important;
    margin-top: 4rem !important;
    margin-bottom: 4rem !important;
}

.wp-block-pullquote p {
   margin-bottom: 0rem !important;
}

.wp-block-quote {
    margin-right: 10%;
    margin-left: 10%;
    padding: 5%;
    margin-bottom: 2rem;
    border-left: 1px solid var(--rls-red);
}

.wp-block-quote p {
    padding-left: 0% !important;
    padding-right: 0% !important;
    margin-bottom: 0 !important;
}

.wp-block-quote p br:first-child {
    display: none;
}

/* Archive.php */
.archive-container {
    position: relative;
    height: calc(75vh - var(--header-height));
    width: 100%;}

/* Image */
.portrait-image {
    width: 100%;
    padding-top: 187.5%;
    background-color: var(--gray);
    background-size: cover;
    background-position: center;}

.landscape-image {
    width: 100%;
    padding-top: 53.333%;
    background-color: #767676;
    background-size: cover;
    background-position: center;}

.square-image {
    width: 100%;
    padding-top: 100%;
    background-color: #767676;
    background-size: cover;
    background-position: center;}

.hero-image {
    position: relative;
    display: block;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-size: cover;
    background-position: center;}

.work-hero {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;}

.work-hero::after {
    display: block;
    content: '';
    padding-bottom: 53.333%;
}

.work-hero > img {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
}

/* Front Page */
.work-meta {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    flex-flow: wrap;}

.rect-divider {
    height: 1.6rem;
    width: calc(1.6rem * 1.875);
    background-color: var(--rls-red);}

.latest-image {
    padding-top: 100%;
    background-size: cover;
    background-position: center;
    background-color: #767676;}

.inline-shape {
    display: flex;
    flex-direction: row;
    align-items: baseline;}

.inline-shape * {
    display: inline-block !important;}

.big-tri {
    width: 0;
    height: 0;
    border-top: 1.5rem solid transparent;
    border-left: 3rem solid var(--rls-red);
    border-bottom: 1.5rem solid transparent;}

.small-tri {
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 0.75rem solid transparent;
    border-left: 1.5rem solid #767676;
    border-bottom: 0.75rem solid transparent;
}

/* Newsletter Module */
/* Add div enclosing the form */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus textarea:-webkit-autofill,
textarea:-webkit-autofill:hover textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px var(--rls-red) inset !important;
    box-shadow: 0 0 0px 1000px var(--rls-red) inset !important;
    -webkit-text-fill-color: #ffffff;}

#mce-EMAIL,
#mc-embedded-subscribe {
    width: 100% !important;}
    
#mce-EMAIL, #mce-EMAIL:focus {
    background: none;
    border: 1px solid white;
    outline: none !important;
    text-align: center;
    color: white !important;}

#mce-EMAIL::placeholder {
    color: white !important;}

#mc-embedded-subscribe {
    background: white;
    border: none;
    outline: none !important;
    text-align: center;
    color: var(--rls-red) !important;}

/* WMPL */
.wpml-ls-statics-shortcode_actions {
    padding: 0rem !important;
}

.wpml-ls-statics-shortcode_actions li {
    display: block !important;
}

.wpml-ls-statics-shortcode_actions li * {
    align-self: flex-start !important;
    padding-left: 0rem !important;
}

.wpml-ls-statics-shortcode_actions li:not(:last-child) {
    display: block;
    margin-bottom: 1rem;
}

.wpml-ls-current-language a::before{
    content: '';
    position: absolute;
    left: 0rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: var(--rls-red); 
}

.wpml-ls-item a:not(.wpml-ls-current-language)::before{
    content: '';
    position: absolute;
    left: 0rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 1px solid var(--rls-red);
}

/* Order Form Styling */
.order-form input[type=text] {
    width: 100%;
    padding: 0.5rem 1rem 0rem 1rem;
    border-radius: 0rem;
    border: 1px solid black;
}

.order-form input[type=submit] {
    border: 1px solid var(--rls-red);
    color: var(--rls-red);
    padding: 0.5rem 1rem 0rem 1rem;
    background: none;
    transition: all 0.2s ease;
}

.order-form input[type=submit]:hover {
    border: 1px solid var(--rls-red);
    color: white;
    padding: 0.5rem 1rem 0rem 1rem;
    background: var(--rls-red);
}

.order-form input:focus {
    outline: none !important;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus textarea:-webkit-autofill,
textarea:-webkit-autofill:hover textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus,
input:-webkit-autofill::first-line {
    -webkit-box-shadow: 0 0 0px 1000px white inset !important;
    box-shadow: 0 0 0px 1000px white inset !important;
    -webkit-text-fill-color: black;
    font-family: "Univers",-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-size: 2rem;
}

@media (max-width: 991px) {

    h2 {
        position: relative;
        display: block;
        top: 0;
    }

    .site-main {
        padding-left: 2.5%;
        padding-right: 2.5%;
        margin-left: 0vw !important}

    .big-tri {
        border-top: 0.875rem solid transparent;
        border-left: 1.75rem solid var(--rls-red);
        border-bottom: 0.875rem solid transparent;}

    .small-tri {
        display: inline-block;
        width: 0;
        height: 0;
        border-top: 0.5625rem solid transparent;
        border-left: 1.125rem solid #767676;
        border-bottom: 0.5625rem solid transparent;}

    .splash-text-container {
        padding: 5rem 5rem;
    }

    /* Language */
    .mobile-wrap {
        display: flex;
        align-items: center;
        max-height: var(--header-height);
    }

    .desktop-wrap{
        display: none;
    }

    .lang-select-mobile {
        display: flex;
        text-transform: uppercase;
        color: var(--rls-red);
        max-height: 3.6rem;
        margin-right: 1rem;
        overflow: hidden;
    }

    /* For .lang-select-mobile */
    .open-select {
        overflow: visible !important;
    }

    .lang-select-mobile ul {
        list-style: none;
        margin: 0;
    }

    .lang-select-mobile ul.main-switcher {
        padding: 1rem;
        margin-top: -1rem;
        border: 1px solid transparent;
    }

    /* For ul.main-switcher */
    .open-switcher {
        background: white;
        border-color: var(--rls-red) !important;
    }

    .lang-select-mobile .main-switcher > li > span::after {
        content: '';
        position: relative;
        display: inline;
        border-top: solid 1.8rem var(--rls-red);
        border-right: solid 0.9rem transparent;
        border-bottom: solid 1.8rem transparent;
        border-left: solid 0.9rem transparent;
        top: 1.7rem;
        margin-left: 0.5rem;
    }

    .lang-select-mobile .sub-menu .active {
        display: none;
    }

    /* Single.php Share Buttons */
    .share-options {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .share-options::after {
        content: '';
        position: relative;
        display: block;
        width: 100%;
        height: 1px;
        background-color: var(--rls-red);
        margin-top: 1rem;
    }

    .share-options span {
        width: 100%;
    }

    .share-options * {
        font-size: 2rem !important;
    }
    
    .share-options > a::before {
        content: '';
        position: absolute;
        width: calc(1.5rem * 0.5333);
        height: 1.5rem;
        background-color: red;
        margin-left: -1rem;
        margin-top: 4px;
    }
    
    .share-options > a:not(:first-child) {
        margin-left: 1rem;
        margin-right: 2rem;
        margin-top: 0rem;
    }

    /* WMPL */
    .wpml-ls-statics-shortcode_actions {
        font-size: 1.5rem !important;
    }

    .wpml-ls-statics-shortcode_actions ul::before,
    .wpml-ls-statics-shortcode_actions ul::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 1px;
        background: var(--rls-red);
        left: 0rem !important;
    }

    .wpml-ls-statics-shortcode_actions li:first-child {
        padding-top: 2rem;
    }

    .wpml-ls-statics-shortcode_actions li:last-child {
        padding-bottom: 2rem;
    }

    .wpml-ls-statics-shortcode_actions li * {
        display: flex;
        align-self: flex-start !important;
        top: 0rem !important;
        padding-left: 0rem !important;
    }
    
    .wpml-ls-current-language a::before{
        content: '';
        align-self: flex-start;
        position: absolute;
        margin-top: 7px;
        left: 0rem;
        width: 1rem;
        height: 1rem;
        border-radius: 50%;
        background-color: var(--rls-red); 
    }

    .wpml-ls-item a:not(.wpml-ls-current-language)::before{
        content: '';
        align-self: flex-start;
        position: absolute;
        margin-top: 7px;
        left: 0rem;
        width: 1rem;
        height: 1rem;
        border-radius: 50%;
        border: 1px solid var(--rls-red);
    }
}

/**********************
Mapbox Theme CSS
***********************/

.marker {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	cursor: pointer;
    background-color: var(--rls-red);
    transition: all 0.5s ease-in-out;
}

.marker:hover, .marker:focus, .marker:focus-within, .marker:active {
  background-color: var(--rls-red);
  width: 15px;
  height: 15px;
}

.mapboxgl-popup-content {
    font-family: 'Univers';
    padding: 2rem;
}

.mapboxgl-popup-content h6 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.mapboxgl-popup-content .city-state,
.mapboxgl-popup-content .country {
    font-size: 1.5rem;
}

button.mapboxgl-popup-close-button {
    padding: 2rem;
    font-size: 2rem;
    transition: all 0.1s ease-in-out;
}

button.mapboxgl-popup-close-button:hover {
    background: none !important;
    color: var(--rls-red);
}