/*
Theme Name: Myrage
Theme URI:
Author: Myrage
Author URI:
Description: Theme personnalise pour le site Chemins de Terre.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: myrage
Tags: custom-theme, blog, responsive-layout
*/

:root {
    --color-text: #1e1e1e;
    --color-bg: #ffffff;
    --color-accent: #a14a2f;
    --font-body: "Montserrat", Arial, sans-serif;
    --font-heading: "Italiana", "Times New Roman", serif;
}

* {
    box-sizing: border-box;
}

html {
  font-size: 16px; /* base actuelle */
}

body {
    margin: 0;
    padding: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
    body {
        animation: none;
        transition: none;
    }
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--color-accent);
    text-decoration: none;
}

a:hover,
a:focus {
    /* text-decoration: underline; */
    color: var(--color-accent);
}

.title-h2,
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin: 0 0 0.8rem;
    line-height: 1.2;
}

p {
    margin: 0 0 1rem;
}

.site-header,
.site-footer {
    padding: 2rem 0;
}

.site-header {
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    z-index: 10;
    height: 122px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-header .site-branding  .site-logo img {
    height:61px;
    width:auto;
}

.header-top {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.header-top-items {
    display: flex;
    justify-content: flex-end;
    gap: 1.2rem;
}

.header-top-item {
    color: var(--color-text);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.header-top-icon {
    font-size: 0.95rem;
}

.site-footer {
    /* border-top: 1px solid rgba(0, 0, 0, 0.1); */
    margin-top: 0rem;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.site-nav a {
    color: var(--color-text);
}

.site-nav a:hover,
.site-nav a:focus {
    color: var(--color-accent);
    text-decoration: none;
}

.site-nav .current-menu-item > a,
.site-nav .current-menu-ancestor > a,
.site-nav .current_page_item > a,
.site-nav .current_page_ancestor > a {
    color: var(--color-accent);
}

@media (min-width: 992px) {
    .site-nav .menu-item {
        position: relative;
    }

    .site-nav .menu-item-has-children > .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 360px;
        margin: 0;
        padding: 1.6rem 2rem;
        list-style: none;
        background: #fff;
        border: 1px solid #ece8e4;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(8px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
        z-index: 30;
    }

    .site-nav .menu-item-has-children > .sub-menu > li + li {
        margin-top: 1rem;
    }

    .site-nav .menu-item-has-children > .sub-menu a {
        display: block;
        color: var(--color-text);
        font-size: 1rem;
        line-height: 1.2;
        text-decoration: none;
    }

    .site-nav .menu-item-has-children:hover > a,
    .site-nav .menu-item-has-children:focus-within > a {
        color: var(--color-accent);
    }

    .site-nav .menu-item-has-children > .sub-menu a:hover,
    .site-nav .menu-item-has-children > .sub-menu a:focus {
        color: var(--color-accent);
    }

    .site-nav .menu-item-has-children:hover > .sub-menu,
    .site-nav .menu-item-has-children:focus-within > .sub-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .site-nav .sub-menu .menu-item-has-children > .sub-menu {
        top: 0;
        left: 100%;
        margin-left: 0.75rem;
    }

    .site-nav .menu-item-has-children > a[href="#pll_switcher"] + .sub-menu {
        min-width: 170px;
    }
}

.menu-toggle {
    display: none;
    width: 54px;
    height: 54px;
    padding: 6px;
    background: var(--color-accent);
    border: none;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-direction: column;
}

.menu-toggle-line {
    display: block;
    width: 20px;
    height: 2px;
    background: white;
}

.site-nav-overlay,
.site-nav-head {
    display: none;
}

.submenu-toggle {
    display: none;
}

.site-nav-subpanel {
    display: none;
}

.site-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-text);
}

.site-header .site-logo img {
    width: auto;
    height: auto;
    max-width: none;
}

.hero-text {
    max-width: 620px;
}

.hero-title-wrap {
    max-width: 680px;
}

.hero {
    background-color: #ffffff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 6rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.separator {
    padding: 2rem 0;
}

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

.hero-inner {
    background: rgba(250, 248, 244, 0.86);
    padding: 2.5rem;
}

.hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.hero-eyebrow {
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.4rem;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    font-size: 0.9rem;
}

.creations {
    padding: 4rem 0;
}

.creations-photo {
    margin-bottom: 81px;
}

.creations-photo img {
    display: block;
}

.creations-text {
    font-size: 1.6875rem;
    line-height: 1.613;
    font-weight: 300;
    margin-bottom:81px;
}

.creations-text-small {
    font-size: 1rem;
    line-height: 1.613;
    font-weight: 300;
    margin-bottom:81px;
} 

.creations-media {
    width: 100%;
}

.ateliers {
    padding: 4rem 0;
}

.ateliers .section-title .title-h2 {
    margin: 0 0 0.8rem;
}

.ateliers .ateliers-intro {
    margin-bottom: 81px;
}

.section-title {
    margin-bottom: 2rem;
}

.atelier-card {
    background: #f4efea;
    padding: 1rem;
}

.atelier-media {
    position: relative;
}

.atelier-tag {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    background: #fff;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.fullwidth-image img {
    width: 100%;
    display: block;
}

.transmission {
    padding: 4rem 0;
    text-align: center;
}

.transmission-content blockquote {
    position: relative;
    margin: 0 auto 1.5rem;
    padding-left: 3rem;
    /* max-width: 720px; */
}

.transmission-content blockquote::before {
    content: "\f10e";
    position: absolute;
    left: -50px;
    top: -3.7rem;
    font-size: 6rem;
    line-height: 1;
    color: #cbb4a1;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}



.galerie {
    padding: 2rem 0 0rem;
}

.galerie-grid {
    margin: 0;
}

.galerie-grid > [class*="col-"] {
    padding: 0;
}

.galerie-grid img {
    width: 100%;
    height: 351px;
    object-fit: cover;
    display: block;
}

.archive-header {
    padding: 3rem 0 1.5rem;
}

.archive-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    font-size: 0.75rem;
}

.atelier-title {
    margin: 0.6rem 0;
}

.atelier-excerpt {
    font-size: 0.95rem;
}

.footer-inner .site-logo {

}

.footer-inner .site-logo img {
 height:61px;
 width:auto;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-menu a {
    display: inline-block;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.2;
    text-decoration: none;
}

.footer-menu a:hover,
.footer-menu a:focus {
    color: var(--color-accent);
    text-decoration: none;
}

.footer-social {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.footer-social-link {
    color: var(--color-text);
    font-size: 1rem;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
}

.footer-info img {
    width: 138px;
    height: 138px;
    max-width: 100%;
    object-fit: contain;
}

.footer-address p {
    margin: 0 0 0.6rem;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
    padding-top: 2rem;
    font-size: 0.85rem;
}

.footer-bottom-row p {
    margin: 0;
}

.footer-bottom-copy,
.footer-bottom-links,
.footer-bottom-signature {
    color: #4a4a4a;
    font-size: 0.8rem !important;
    line-height: 1.2;
}

.footer-bottom-links {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    text-align: center;
}

.footer-bottom-links a {
    color: #4a4a4a;
    text-decoration: none;
}

.footer-bottom-links a:hover,
.footer-bottom-links a:focus {
    color: var(--color-accent);
}

.footer-bottom-sep {
    color: #676767;
}

.footer-bottom-signature {
    letter-spacing: 0.35em;
    font-size: 0.75rem;
}

@media (max-width: 991px) {
    .footer-bottom-row {
        text-align: center;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
    }
}

@media (min-width: 992px) {
    .page-content {
        margin-top: 200px;
    }

    .archive-header {
        margin-top: 200px;
    }
}

.ateliers-page {
    max-width: 1200px;
}

.ateliers-page-content {
    text-align: center;
}

.ateliers-page-title {
    font-size: clamp(2.2rem, 4vw, 4rem);
    margin-bottom: 2.2rem;
}

.ateliers-page-intro {
    max-width: 980px;
    margin: 0 auto 3rem;
}

.ateliers-page-intro p {
    margin-bottom: 1.3rem;
    color: #2f2f2f;
}

.ateliers-page-listing {
    margin-bottom: 3rem;
}

.ateliers-page-card {
    background: transparent;
}

.ateliers-home-card {
    position: relative;
    transition: opacity 0.28s ease;
}

.ateliers-home-card-link {
    position: absolute;
    inset: 0;
    z-index: 5;
}

.ateliers-home-card-link:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

.ateliers-home-card .ateliers-page-media img {
    transition: transform 0.35s ease;
}

@media (hover: hover) {
    .ateliers-grid:hover .ateliers-home-card {
        opacity: 0.5;
    }

    .ateliers-grid:hover .ateliers-home-card:hover {
        opacity: 1;
    }

    .ateliers-home-card:hover .ateliers-page-media img {
        transform: scale(1.035);
    }
}

.ateliers-page-media {
    position: relative;
    display: block;
    overflow: hidden;
}

.ateliers-page-media img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.ateliers-page-tag {
    position: absolute;
    right: 1rem;
    top: 1rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: rgba(242, 242, 242, 0.94);
    color: #252525;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ateliers-page-card-body {
    margin-top: 0.65rem;
}

.ateliers-page-date {
    margin: 0 0 0.55rem;
    font-size: 0.96rem;
    color: #4a4a4a;
}

.ateliers-page-card-title {
    margin: 0 0 2rem 0 !important;
    font-family: var(--font-body);
    font-size: clamp(1.3rem, 2.2vw, 1.7rem) !important;
    font-weight: 700;
    line-height: 1.1;
}

.ateliers-page-card-title a {
    color: var(--color-text);
}

.ateliers-page-pagination {
    margin-top: 2.2rem;
}

.ateliers-page-pagination ul {
    justify-content: center;
}

.single-atelier-content {
    margin-bottom: 4rem;
}

.single-atelier-header {
    text-align: center;
    margin-bottom: 2.2rem;
}

.single-atelier-title {
    font-size: clamp(2.2rem, 4vw, 4.2rem);
    margin-bottom: 1rem !important;
}

.single-atelier-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 0.45rem 1.2rem;
    border-radius: 999px;
    background: rgba(242, 242, 242, 0.96);
    color: #252525;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.single-atelier-media {
    margin-bottom: 1.3rem;
}

.single-atelier-media img {
    width: 100%;
    /* height: 380px; */
    object-fit: cover;
    display: block;
}

.single-atelier-meta {
    margin-bottom: 1.4rem;
}

.single-atelier-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin: 0 0 0.6rem;
    color: #2f2f2f;
    font-size: 0.98rem;
}

.single-atelier-meta-item i {
    margin-top: 0.15rem;
    width: 1rem;
}

.single-atelier-meta-value p {
    margin: 0;
}

.single-atelier-extra-title {
    font-family: var(--font-body);
    font-size: 1.12rem !important;
    font-weight: 700;
    margin-bottom: 0.75rem !important;
}

.single-atelier-extra-content {
    color: #3b3b3b;
    font-size: 0.98rem;
    line-height: 1.7;
}

.single-atelier-description {
    margin-bottom: 1.4rem;
    color: #323232;
    font-size: 1rem;
    line-height: 1.8;
}

.single-atelier-form {
    margin-top: 1.4rem;
}

.single-atelier-form .wpcf7 p {
    margin-bottom: 0;
}

.single-atelier-form .wpcf7-submit {
    margin-top: 0.4rem;
}

.apropos-page-title {
    text-align: center;
}

.apropos-layout {
    margin-bottom: 2.5rem;
}

.apropos-left {
    font-size: 1rem;
    line-height: 1.8;
}

.apropos-right img {
    width: 100%;
    height: auto;
    display: block;
}

@media (min-width: 992px) {
    .apropos-right {
        margin-right: calc(50% - 50vw);
        padding-right: 0;
    }

    .apropos-right img {
        width: 100%;
    }
}

.apropos-quote {
    max-width: 980px;
    margin: 0 auto;
    font-size: 1.25rem;
    line-height: 1.7;
    text-align: center;
}

.apropos-quote blockquote {
    position: relative;
    margin: 0 auto 1.5rem;
    padding-left: 3rem;
    /* max-width: 720px; */
}

.apropos-quote blockquote::before {
    content: "\f10e";
    position: absolute;
    left: -50px;
    top: -3.7rem;
    font-size: 6rem;
    line-height: 1;
    color: #cbb4a1;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.apropos-quote blockquote {
    margin: 0;
}

.creations-page-title {
    text-align: center;
}

.creations-masonry {
    column-count: 3;
    column-gap: 20px;
    margin-top: 48px;
    margin-bottom: 72px;
}

.creations-masonry-item {
    margin: 0 0 20px;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
}

.creations-masonry-item img {
    width: 100%;
    height: auto;
    display: block;
}

.creations-lightbox-trigger {
    display: block;
}

.creations-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.24s ease;
}

.creations-lightbox[hidden] {
    display: none;
}

.creations-lightbox-image {
    max-width: min(92vw, 1300px);
    max-height: 86vh;
    width: auto;
    height: auto;
    opacity: 1;
    transform: scale(0.96);
    transition: transform 0.24s ease, opacity 0.14s ease;
}

.creations-lightbox-image.is-switching {
    opacity: 0;
    transform: scale(0.985);
}

.creations-lightbox.is-active {
    opacity: 1;
}

.creations-lightbox.is-active .creations-lightbox-image {
    transform: scale(1);
}

.creations-lightbox-close,
.creations-lightbox-nav {
    position: absolute;
    border: 0;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    cursor: pointer;
    line-height: 1;
}

.creations-lightbox-close {
    top: 1.2rem;
    right: 1.2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.8rem;
}

.creations-lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 62px;
    font-size: 1.8rem;
    border-radius: 0.5rem;
}

.creations-lightbox-prev {
    left: 1.2rem;
}

.creations-lightbox-next {
    right: 1.2rem;
}

body.lightbox-open {
    overflow: hidden;
}

body.menu-open {
    overflow: hidden;
}

@media (max-width: 991px) {
    .site-header {
        position: static;
        top: auto;
        height: auto;
        padding: 1rem 0;
    }

    .header-top {
        display: none;
    }

    .header-top-items {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 0.7rem 1rem;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
        padding: 1rem 0;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .site-nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.34);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease, visibility 0.2s ease;
        z-index: 100;
        display: block;
    }

    .site-nav-overlay.is-open {
        opacity: 1;
        visibility: visible;
    }

    .site-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(88vw, 380px);
        height: 100vh;
        background: #fff;
        z-index: 110;
        transform: translateX(102%);
        transition: transform 0.24s ease;
        padding: 0rem 0 1.4rem 1.2rem;
        margin-top: 0;
        overflow: hidden;
    }

    .admin-bar .site-nav {
        top: 32px;
        height: calc(100vh - 32px);
    }

    .admin-bar .site-nav-overlay {
        top: 16px;
        height: calc(100vh - 16px);
    }

    @media (max-width: 782px) {
        .admin-bar .site-nav {
            top: 46px;
            height: calc(100vh - 46px);
        }

        .admin-bar .site-nav-overlay {
            top: 30px;
            height: calc(100vh - 30px);
        }
    }

    .site-nav.is-open {
        transform: translateX(0);
    }

    .site-nav-head {
        display: flex;
        justify-content: flex-end;
        margin-bottom: 1rem;
    }

    .site-nav-close {
        width: 54px;
        height: 54px;
        border: 0px solid #d9d9d9;
        background: var(--color-accent);
        color: white;
        border-radius: 0px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        line-height: 1;
    }
    

    .site-nav .menu {
        margin: 0;
        padding: 0;
        list-style: none;
        width: 100%;
        max-height: calc(100% - 68px);
        overflow-y: auto;
    }

    .site-nav .menu-item {
        width: 100%;
    }

    .site-nav .menu-item a {
        display: flex;
        align-items: center;
        height:54px;
        color: var(--color-text);
    }

    .site-nav .menu-item-has-children {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }

    .site-nav .menu-item-has-children > a {
        flex: 1;
        padding-right: 0.5rem;
    }

    .site-nav .submenu-toggle {
        width: 54px;
        height: 54px;
        border: 0px solid #d9d9d9;
        background: var(--color-accent);
        color: white;
        border-radius: 0px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        line-height: 1;
        padding: 0;
        cursor: pointer;
        transition: transform 0.2s ease;
    }

    .site-nav .submenu-toggle i {
        font-size: 0.9rem;
        line-height: 1;
    }

    .site-nav .menu-item-has-children > .sub-menu {
        display: none;
        width: 100%;
        margin: 0;
        padding-left: 0;
        list-style: none;
    }

    .site-nav .menu-item-has-children.is-expanded > .submenu-toggle {
        transform: rotate(180deg);
    }

    .site-nav .sub-menu li a {
        padding: 0.4rem 0;
        font-size: 0.95rem;
    }

    .site-nav-subpanel {
        position: absolute;
        inset: 0;
        background: #fff;
        z-index: 2;
        padding: 0rem 0rem 1.4rem 1.2rem;
        transform: translateX(101%);
        transition: transform 0.24s ease;
        display: block;
        overflow-y: auto;
    }

    .site-nav-subpanel.is-open {
        transform: translateX(0);
    }

    .site-nav-subpanel-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .site-nav-subpanel-list li a {
        display: block;
        padding: 0.55rem 0;
        color: var(--color-text);
        font-size: 1rem;
    }

    /* .site-header .site-logo img {
        max-width: 150px;
    } */

    .hero {
        min-height: auto;
        padding: 3rem 0;
    }

    .hero-text {
        max-width: 100%;
    }

    .separator {
        padding: 1rem 0;
    }

    .separator img {
        height: 220px;
    }

    .creations {
        padding: 2.2rem 0;
    }

    .creations-photo,
    .creations-text,
    .creations-text-small {
        margin-bottom: 1.4rem;
    }

    .creations-text {
        font-size: 1.35rem;
        line-height: 1.45;
    }

    .ateliers {
        padding: 2.4rem 0;
    }

    .atelier-card {
        padding: 0.8rem;
    }

    .single-atelier-header {
        margin-bottom: 1.5rem;
    }

    /* .single-atelier-page {
        padding-left: 30px;
        padding-right: 30px;
    } */

    .single-atelier-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .single-atelier-media img {
        height: 290px;
    }

    .single-atelier-description {
        font-size: 0.98rem;
        line-height: 1.7;
    }

    .single-atelier-layout {
        display: flex;
        flex-direction: column;
    }

    .single-atelier-left {
        display: contents;
    }

    .single-atelier-media {
        order: 1;
    }

    .single-atelier-right {
        display: contents;
    }

    .single-atelier-left-details {
        display: contents;
    }

    .single-atelier-meta {
        order: 2;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.7rem;
        margin-bottom: 1.1rem;
    }

    .single-atelier-meta-item {
        margin: 0;
        font-size: 0.9rem;
        align-items: center;
        justify-content: flex-start;
        gap: 0.45rem;
        flex-direction: column;
        text-align: center;
    }

    .single-atelier-meta-item i {
        width: auto;
        margin-top: 0;
    }

    .single-atelier-description {
        order: 3;
    }

    .single-atelier-extra {
        order: 4;
    }

    .single-atelier-form {
        order: 5;
    }

    .transmission {
        padding: 2.5rem 0;
        text-align: left;
    }

    .transmission-content blockquote {
        padding-left: 0;
    }

    .transmission-content blockquote::before {
        position: static;
        display: block;
        font-size: 2.6rem;
        margin-bottom: 0.6rem;
    }

    .galerie-grid img {
        height: 220px;
    }

    .title-h1 {
        font-size: clamp(2rem, 9vw, 3rem);
    }

    .title-h2 {
        font-size: clamp(2rem, 9vw, 3rem);
        margin-bottom: 1.8rem;
    }

    .creations-masonry {
        column-count: 2;
    }
}

@media (max-width: 575px) {
    .creations-masonry {
        column-count: 1;
    }
}

.title-h1 {
    font-size: 4rem;
}

.title-h2 {
    font-size: 4rem;
    margin-bottom: 81px;
}

.contact-page-content {
    margin-bottom: 72px;
}

.contact-page-title {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-left-title {
    font-family: var(--font-body);
    font-size: 2.8125rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.contact-info {
    margin-top: 1.4rem;
    margin-bottom: 1.6rem;
}

.contact-info p {
    margin-bottom: 0.35rem;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.contact-info a {
    color: var(--color-text);
}

.contact-address p {
    margin-bottom: 0.2rem;
    font-size: 1.125rem;
    font-weight: 400;
}

.contact-map img {
    width: 100%;
    height: 410px;
    object-fit: cover;
    display: block;
}

.contact-map iframe {
    width: 100%;
    height: 410px;
    border: 0;
    display: block;
}

.error404-page {
    max-width: 900px;
}

.error-404 {
    margin-top: 250px;
    margin-bottom: 120px;
}

.error404-code {
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-size: clamp(3rem, 12vw, 7rem);
    line-height: 1;
    color: var(--color-accent);
}

.error404-title {
    margin-bottom: 1.2rem;
}

.error404-text {
    max-width: 620px;
    margin: 0 auto 2rem;
}

.error404-button {
    margin-top: 0;
}

.contact-form-wrap .wpcf7 p {
    margin: 0;
}

.contact-form-wrap .wpcf7-form-control-wrap {
    display: block;
}

.contact-form-wrap input[type=\"text\"],
.contact-form-wrap input[type=\"email\"],
.contact-form-wrap input[type=\"tel\"],
.contact-form-wrap textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: block;
    border: 1px solid #7d7d7d;
    background: #fff;
    color: #1b1b1b;
    font-size: 1.45rem;
    font-weight: 300;
    padding: 12px 23px;
    line-height: 1.3;
    border-radius: 6px;
}

.contact-form-wrap .wpcf7-form-control {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.contact-form-wrap input[type="text"],
.contact-form-wrap input[type="email"],
.contact-form-wrap input[type="tel"] {
    /* min-height: 48px; */
    padding-left:20px;
    padding-top:5px;
    padding-bottom:5px;
    font-size: 1rem;
}

.contact-form-wrap textarea {
    min-height: 260px;
    resize: vertical;
    font-size: 1rem;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.3rem;
}

.contact-form-wrap .contact-form-row:first-of-type {
    grid-template-columns: 1fr 1fr;
}

.contact-form-wrap .contact-form-field {
    margin-bottom: 1.3rem;
}

.contact-form-wrap .wpcf7-list-item {
    margin: 0;
}

.contact-form-wrap .wpcf7-acceptance label {
    display: inline-flex;
    gap: 0.55rem;
    align-items: flex-start;
    font-size: 1rem;
    color: #555;
}

.contact-form-wrap input[type=\"checkbox\"] {
    margin-top: 0.2rem;
}

.contact-form-wrap .wpcf7-submit {
    width: auto;
    max-width: none;
    display: inline-block;
    border: 0;
    background: #9d5a2f;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    line-height: 1.2;
}

@media (max-width: 991px) {
    .contact-form-row {
        grid-template-columns: 1fr;
    }

    .contact-info p {
        font-size: 1.2rem;
    }

    .contact-address p {
        font-size: 1rem;
    }
}

.newsletter-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.22s ease;
}

.newsletter-modal[hidden] {
    display: none;
}

.newsletter-modal.is-open {
    opacity: 1;
}

.newsletter-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.newsletter-modal-dialog {
    position: relative;
    width: min(94vw, 1100px);
    background: #fff;
    border-radius: 0;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    transform: translateY(12px);
    transition: transform 0.22s ease;
}

.newsletter-modal.is-open .newsletter-modal-dialog {
    transform: translateY(0);
}

.newsletter-modal-dialog.has-media {
    display: grid;
    grid-template-columns: minmax(320px, 48%) minmax(360px, 52%);
}

.newsletter-modal-media {
    min-height: 620px;
    background: linear-gradient(155deg, #efefef 0%, #d9d9d9 100%);
}

.newsletter-modal-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.newsletter-modal-media.no-image::after {
    content: "Image newsletter";
    display: block;
    color: #606060;
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    padding-top: 50%;
}

.newsletter-modal-content {
    padding: 5.2rem 4.3rem 3.4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.newsletter-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    border: 0;
    background: transparent;
    font-size: 3rem;
    font-weight: 300;
    line-height: 1;
    color: #444;
    cursor: pointer;
}


.newsletter-modal-title {
    margin-bottom: 1.2rem;
    font-family: var(--font-body);
    font-size: 2.125rem;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    font-weight: 800;
}

.newsletter-modal-text {
    margin-bottom: 2.2rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #373737;
}

.newsletter-modal-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.newsletter-modal-form input[type=\"email\"],
.newsletter-modal-form input[type=\"text\"] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: block;
    box-sizing: border-box;
    border: 0;
    border-bottom: 2px solid #2a2a2a;
    border-radius: 0;
    background: #fff;
    color: #1b1b1b;
    font-size: 1rem;
    font-weight: 400;
    padding: 0.65rem 0 0.45rem;
    line-height: 1.3;
    margin-bottom: 1.6rem;
}

.newsletter-modal-form .wpcf7-email,
.newsletter-modal-form .wpcf7-text,
.newsletter-modal-form input[name="newsletter-email"] {
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    padding-left: 15px;
    padding-top:6px;
    padding-bottom: 6px;
}

.newsletter-modal-form .wpcf7-submit {
    width: 100%;
    border: 0;
    background: #111;
    color: #fff;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    padding: 0.7rem 1rem;
}

body.newsletter-open {
    overflow: hidden;
}

@media (max-width: 991px) {
    .newsletter-modal-dialog.has-media {
        grid-template-columns: 1fr;
    }

    .newsletter-modal-media {
        min-height: 220px;
        max-height: 220px;
    }

    .newsletter-modal-content {
        padding: 2.5rem 1.6rem 2rem;
    }

    .newsletter-modal-title {
        font-size: clamp(1rem, 8vw, 1.2rem);
    }

    .newsletter-modal-text {
        font-size: 1rem;
    }

    .newsletter-modal-form input[type=\"email\"],
    .newsletter-modal-form input[type=\"text\"] {
        font-size: 1rem;
    }

    .newsletter-modal-form .wpcf7-submit {
        font-size: 1rem;
    }
}
