/*
Theme Name: Museum Tower
Theme URI: 
Author: Francois Pagou
Author URI: https://www.linkedin.com/in/francois-pagou
Description: The Museum Tower is combining elegant design with corporate functionality. Built to showcase professional spaces, amenities, and brand presence, it supports seamless lead generation and refined client experiences.
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.0
Version: 1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: museum-tower
Tags: One Column, Custom Colors, custom-menu, Custom Logo, Editor Style, Featured Images, Site Editor, Block Editor Patterns, rtl-language-support, Sticky Post, threaded-comments, translation-ready, Wide Blocks, Block Editor Styles, Style Variations, Accessibility Ready, Blog, Portfolio, News

* {
    box-sizing: border-box;
}

/* Header */

* {
    box-sizing: border-box;
}

/* Header */
header .wp-block-search.wp-block-search__button-only .wp-block-search__inside-wrapper {
    position: relative;
}

header .wp-block-search.wp-block-search__button-only .wp-block-search__input {
    position: absolute;
    bottom: calc(-100% - 32px);
    right: 0;
    z-index: 999999;
    width: 23rem;
    border: 2px solid;
    outline: none;
    border-radius: 0;
	padding: 1rem;
}

header .wp-block-navigation-item__content {
    text-decoration: none;
}

header .wp-block-search__button-only .wp-block-search__button[aria-expanded=true] {
    max-width: 100%;
}

header .wp-block-search__button-only .wp-block-search__button:hover svg {
	fill: currentcolor;
}

header .header-black .wp-block-search__button-only .wp-block-search__button:hover svg {
	fill: #fff!important;
}

header:has(.header-black)  {
	position: fixed;
	top:0;
	left: 0;
	right: 0;
	z-index: 9;
}

.wp-site-blocks:has(header .header-black) {
	padding-top: calc(var(--header-height) - 2px);
}


@media screen and (max-width: 989px) {
    header > .wp-block-group:first-child {
        padding-top: 20px;
        padding-bottom: 20px;
    }
}


/* Change the WordPress default css to a 1023px media query */
@media (min-width: 990px) {
    .wp-block-navigation__responsive-container-open:not(.always-shown) {
        display: none !important;
    }
    .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
        display: block !important;
        width: 100%;
        position: relative;
        z-index: auto;
        background-color: inherit;
    }

    header .header-block-border {
        max-width: 150px;
        width: 100%;
    }
}

/* Remove the WordPress default for 600px */
@media (min-width: 600px) {
    .wp-block-navigation__responsive-container-open:not(.always-shown) {
        display: flex;
    }
    .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
        display: none;
    }
}

/* reset svg size */
:where(.wp-block-social-links.is-style-logos-only) .wp-social-link svg,
.wp-block-social-links .wp-social-link svg {
    width: initial;
    height: initial;
}

/*
** Banner with form 
*/
.banner-with-form .input-field {
    position: relative;
    border: 1px solid #D5D8DE;
    margin-bottom: 1rem;
}

.banner-with-form .input-field > p {
    margin: 0;
}

.banner-with-form .input-field label {
    position: absolute;
    top: 50%;
    left: 24px;
    font-size: 12px;
    z-index: 0;
    transform: translateY(-50%);
    text-transform: uppercase;
    color: #D5D8DE;
    transition: font-size 0.2s ease, top 0.2s ease;
}

.banner-with-form .input-field input,
.banner-with-form .input-field textarea,
.banner-with-form .input-field--select select {
    width: 100%;
    border: none;
    outline: none;
    padding: 28px 24px;
    padding-bottom: 14px;
    font-size: 0.8rem;
    color: #D5D8DE;
    background-color: transparent;
    position: relative;
    z-index: 9;
}

.banner-with-form .input-field.input-field--message label {
    top: 20px;
}

.banner-with-form .input-field textarea {
    padding-top: 35px;
}

.banner-with-form .input-field--select > p > span {
    display: block;
    width: 100%;
}

.banner-with-form .input-field:has(input:focus) label,
.banner-with-form .input-field:has(input:user-valid) label,
.banner-with-form .input-field:has(select:user-valid) label,
.banner-with-form .input-field--date:has(input:not(:placeholder-shown)) label  {
    font-size: 10px;
    top: 1rem;
    transition: font-size 0.2s ease, top 0.2s ease;
}

.input-field--date input::placeholder{
    color: transparent;
}

.banner-with-form .input-field--radio > span {
    display: block;
}

.banner-with-form .input-field--radio p {
    font-size: 12px;
    margin: 0;
}

.banner-with-form .submit {
    margin-top: 1rem;
}

.banner-with-form .submit p {
    margin: 0;
    font: 12px;
}

.banner-with-form .submit button {
    width: 100%;
    padding: 1.2rem;
    border: 0;
    outline: 0;
    text-transform: uppercase;
    color: var(--wp--preset--color--contrast);
    background-color: var(--wp--preset--color--base);
    cursor: pointer;
    transform: all 0.2s ease;
}

.banner-with-form .submit button:hover {
    transform: all 0.2s ease;
    color: var(--wp--preset--color--base);
    background-color: var(--wp--preset--color--contrast);
}

.banner-with-form .wpcf7-not-valid-tip {
    position: absolute;
    top: 48px;
    left: 0;
    width: 100%;
    font-size: 15px;
    color: white;
    background: #e75252;
    padding: 3px 16px;
    transform: translateY(-50%);
}

.banner-with-form .input-field:has(.wpcf7-not-valid-tip) {
    margin-bottom: 65px;
}
.banner-with-form .wpcf7-list-item {
    margin: 0;
    text-align: center;
}

.wp-block-epico-dynamic-year-block p {
    margin: 10px;
    font-size: 12px;
}

@media screen and (max-width: 989px) {
    .banner-with-form .form-wrapper-group {
        --wp--preset--spacing--60: 20px;
    }
    .banner-with-form .wp-block-columns {
        flex-direction: column-reverse;
    }
    .banner-with-form .form-group {
        padding-top: 100%!important;
    }

    .banner-with-form.contact-page .form-group {
        padding-top: 0!important;
    }
    .banner-with-form .form-wrapper-group {
        backdrop-filter: blur(5px);
        padding-bottom: 3rem!important;
        padding-top: 1rem!important;
    }
    .contact-page .form-wrapper-group {
        background-color: rgba(45, 49, 51, 0.478) !important;
        padding-top: 1.5rem!important;
        padding-bottom: 5rem!important;
    }
    .banner-with-form .terms-and-conditions {
        margin-top: 3rem!important;
    }
    .banner-with-form:not(.contact-page) .image-on-mobile {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
    }
    .banner-with-form .contact-slider {
        margin-top: 2rem;
    }
    .banner-with-form .wp-block-columns {
        flex-wrap: nowrap!important;
    }
    .banner-with-form .form-wrapper-group .form-title {
        position: absolute;
        left: 50%;
        top: -70px;
        transform: translate(-50%, -50%);
        width: 100%;
    }

    .contact-page .wp-block-cover  > image {
        display: none;
    }

    .contact-page .block-slide {
        display: none;
    }

    .contact-page > .wp-block-cover > .wp-block-cover__background {
        opacity: 1;
        background-color: #000!important;
    }

    .contact-page > .wp-block-cover > img{
        display: none;
    }

    /* .contact-page .image-on-mobile .wp-block-cover .wp-block-cover__background{
        opacity: ;
    } */

    .block-team-members .wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column {
        flex-basis: calc(50% - 3rem)!important;
    }
    .block-team-members .wp-block-columns {
        column-gap: 3rem;
    }
    .block-team-members .wp-block-column figure {
        padding: 0 1rem;
    }

    .picto-contact-page .wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column {
        flex-basis: 45%!important;
    }
}

/* Contact slider */
.contact-slider .swiper-button-next, 
.contact-slider .swiper-button-prev,
.banner-with-form .swiper-pagination  {
    position: static;
}
.banner-with-form .swiper-pagination {
    margin: 0;
    text-align: left;
}
.banner-with-form .swiper-pagination > span{
    width: 30px;
    border-radius: 0;
    background-color: #fff;
    height: 2px;
    transition: width 0.2s ease;
}
.banner-with-form .swiper-pagination > span.swiper-pagination-bullet-active {
    width: 100px;
    transition: width 0.2s ease;
}
.contact-slider .swiper-slide {
    height: auto;
}
.contact-slider .swiper-wrapper {
    align-items: flex-end;
}
.contact-slider-thumbnail .swiper-wrapper,
.contact-slider .swiper-wrapper {
    flex-wrap: nowrap;
    flex-direction: row;
    gap: 0;
}
.banner-with-form .swiper {
    height: 100%;
}
.slider-navigation {
    display: flex;
    column-gap: 1.5rem;
    margin-top: 2rem;
}
.slider-navigation > div::after {
    font-size: 18px;
    color: #fff;
}
.slider-navigation > div {
    width: 45px;
    height: 45px;
    border: 1px solid #fff;
    border-radius: 50%;
    right: initial;
    left: initial;
}
.contact-slider-thumbnail .swiper-pagination-bullets {
    line-height: 1;
}


@media screen and (min-width: 990px) {
    .banner-with-form .wp-block-columns {
        align-items: flex-end!important;
    }
    .banner-with-form .is-style-hidden-on-desktop:has(figure) {
        display: none!important;
    }
}

/* read more */
.wp-block-read-more:hover {
    background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}


/* Menu open close button */
.menuCloseBtn {
    display: none;
    padding: 0;
    outline: 0;
    border: 0;
    background-color: transparent;
}
.menuCloseBtn svg {
	fill: currentcolor;
}
.wp-block-navigation__responsive-container-close {
    display: none;
}

header nav:has(.is-menu-open) .wp-block-navigation__responsive-container-open {
    display: none;
}

header nav:has(.is-menu-open) .menuCloseBtn {
    display: flex;
}

.single .wp-block-post-excerpt__excerpt{
	font-size: inherit
}

.single .related__post {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
	margin-bottom: 1rem!important;
	margin-block-start: 0!important;
    background-color: var(--wp--preset--color--base-3);
}

.single .related__post .related__post-image {
    flex-basis: 33%;
    flex-shrink: 1;
	position: relative;
}

.single .related__post .related__post-image > a {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: 100%;
	z-index: 2;
	cursor: pointer;
}

.single .related__post .related__post-image img {
    width: 100%;
    height: 300px;
	display: block;
    object-fit: cover;
}

.single .related__post .related__post-details {
    flex-basis: 67%;
    flex-shrink: 1;
    padding: 2rem;
}

.related__post-title {
    font-family: var(--wp--preset--font-family--heading);
    font-size: 2rem;
    line-height: 1.2;
}

.related__post-date {
    text-transform: uppercase;
}

.related__post-title br {
    display: none;
}

.related__post-title:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

.related__posts {
    display: none!important;
}
.related__posts:has(.related__post) {
    display: block!important;
}

@media screen and (max-width: 780px) {
    .single .related__post .related__post-image,
    .single .related__post .related__post-details {
        flex-basis: 100%;
    }
    .related__post-title {
        font-size: 1.8rem;
    }
}

.contact-page .wp-block-column:first-child > .block-address {
    position: absolute;
    width: 100%;
    max-width: calc(var(--wp--style--global--wide-size) + 5rem);
    left: 50%;
    bottom: 10%;
    padding-left: 2.5rem;
    transform: translateX(-50%);
}

.contact-page .wp-block-column:first-child > .block-address * {
    margin-left: 0!important;
}

//Carousel
.eb-slider-wrapper .image .eb-slider-item img {
	width: auto;
	max-width: 100px;
	display: inline-block;
}

/* embbed video */
.embedded-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 30px;
    height: 0;
    overflow: hidden;
}

.embedded-video-wrapper > iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.gallery-box .wp-block-gallery figure.wp-block-image {
    height: 300px;
    overflow: hidden;
    border-radius: 1rem;
}

.gallery-box figure img {
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.gallery-box figure img:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease-in-out;
}

/* waitlist form */
.fabric-showroom-form {
    width: 100%;
}
.waitlist-form {
	width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.waitlist-form > div {
    margin-top: 0!important;
    margin-bottom: 0!important;
}

.waitlist-form .input-field--text {
    flex-grow: 2;
    border: 1px solid var(--wp--preset--color--contrast-2);
}

.waitlist-form .submit {
    flex-grow: 1;
}

.waitlist-form .input-field--text label,
.waitlist-form .input-field--text input {
    color: var(--wp--preset--color--contrast-2);
}

.waitlist-form .submit button {
    background-color: var(--wp--preset--color--contrast-2);
    color: var(--wp--preset--color--base);
    border: 1px solid var(--wp--preset--color--contrast-2);
}

.waitlist-form .submit button:hover {
    background-color: var(--wp--preset--color--base);
    color: var(--wp--preset--color--contrast-2);
}


/* scrolling text */

.scroll-wrapper {
    overflow: hidden;
	flex-wrap: nowrap;
}

.scroll-wrapper .scroll-content {
    animation: loop 50s linear infinite;
    column-gap: 10rem;
	padding-left: 5rem!important;
	padding-right: 5rem!important;
}

.scroll-wrapper, .scroll-wrapper .scroll-content {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    flex-shrink: 0;
}

.scroll-wrapper figure.wp-block-image img {
    width: fit-content!important;
}

.scroll-wrapper > figure {
    margin-bottom: 0!important;
}

@keyframes loop {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

.scroll-wrapper .wp-block-gallery figure.wp-block-image {
    margin-bottom: initial!important;
    width: auto!important;
}

@media screen and (max-width: 780px) {
	.scroll-wrapper .scroll-content {
		animation: loop 15s linear infinite;
		column-gap: 3rem;
		padding-left: 1.5rem!important;
		padding-right: 1.5rem!important;
	}
}

/* newsetter form */
footer .footer-newsletter {
	display: flex;
	align-items: center;
	border-bottom: 1px solid rgba(255, 255, 255, 0.7)
}

footer .footer-newsletter input[type="text"] {
	padding: 15px 15px 15px 0;
    width: 100%;
    color: #fff;
    background: transparent;
    border: none;
    outline: 0;
    font-size: 15px;
    opacity: 0.7;
	flex-grow: 3;
	font-family: Montserrat;
}

footer .footer-newsletter button[type="submit"] {
	flex-grow: 1;
	background: transparent;
    border: none;
    outline: none;
	cursor: pointer;
}

.single .wp-block-post-content a:not(.wp-block-button__link) {
	text-decoration: underline;
	text-underline-offset: 3px;
}


.newsletter-popup--container {
	display: none;
	position: fixed;
    background: rgba(0, 0, 0, 0.5);
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    z-index: 9;
}

.newsletter-popup--content {
	position: absolute;
    left: 50%;
    top: 50%;
    background-color: #fff;
    transform: translate(-50%, -50%);
	max-height: 90vh;
    max-width: 750px;
    width: calc(100% - 20px);
    padding: 0;
	overflow-y: auto;
}

.newsletter-popup--content .wp-block-safe-svg-svg-icon:has(.newsletter-popup__close-button) {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 35px;
	height: 35px;
	border-radius: 50%;
	display: flex;
    align-items: center;
    justify-content: center;
	background-color: #F0E9F3;
	cursor: pointer;
}

.newsletter-popup--content .waitlist-form {
	display: block;
	max-width: 280px;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
}

.newsletter-popup--content .waitlist-form .submit {
	margin-top: 1rem !important;
}

@media screen and (max-width: 750px) {
	.newsletter-popup--content .wp-block-column:first-child {
		display: none;
	}
}
