/*
Theme Name: Marijona Child Theme
Template: marijona
Author: Your Name
Description: A child theme for the Marijona theme.
Version: 1.0
Text Domain: marijona-child
*/

/* Add your custom styles below this line */




/* GENERAL */
:root {
    /* --color-primary: #f5f5f5;
    --color-secondary: #333;
    --color-tertiary: #f00;
    --color-quaternary: #f0f; */


    /* Loader */
    /* --loader-bg: #fff8f0;
    --loader-text: #1f1300;
    --loader-circle: #ff4e00;
    --loader-circle-accent: #bf3100; */
    --loader-bg: #fff8f0;
    --loader-text: #1f1300;
    /* --loader-circle: #ff934a;
    --loader-circle-accent: #bf3100; */



    --fuschia: #F86D68;
    --babypink: #F7D4D8;
    --bubblegum: #F691A9;
    --tangerine: #F4863E;
    --sunshine: #E3B055;
    --hotpink: #F43662;


    --loader-circle: var(--bubblegum);
    --loader-circle-accent: var(--hotpink);


    /* Colors */
    --color-primary: #111;
    --color-bg: #fff8f0;


    /* fonts */
    --font-h1: clamp(3.5em, 10vw, 10em);
    --font-h2: 40px;
    --font-h3: 30px;
    --font-h4: 20px;
    --font-h5: 16px;
    --font-h6: 14px;
    --font-p: 16px;
}

body,
html {
    margin: 0;
    padding: 0;
    background-color: var(--color-bg);
    color: var(--color-primary);
}

#masthead {
    display: none;
}


/* Sections */
* {
    box-sizing: border-box;
}

body,
html {
    margin: 0;
    padding: 0;
    /* Prevent default scrolling */
}

body.page-template-page-fp {
    /* overflow: hidden; */
}

.page-template-page-fp .section-wrapper {
    padding-inline: clamp(24px, 7vw, 96px);
    min-height: 100vh;
    /* Full viewport height */
    width: 100vw;
    /* Full viewport width */
    overflow: hidden;
    /* Prevent internal scrolling */
    position: relative;
}

.page-template-page-fp .section-wrapper .section {
    min-height: 100vh;
}

.section-wrapper .section {
    max-width: 1280px;
    margin-inline: auto;
}

.section-wrapper.hero .section.grid-2,
.section-wrapper .section.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 1em;
}

.flex {
    display: flex;
}

.flex.center {
    align-items: center;
    justify-content: center;
}

.flex.column {
    flex-direction: column;
}

.flex.gap {
    gap: 1.5em;
}

.text-center {
    text-align: center;
}


.section-wrapper+.section-wrapper {
    /* margin-top: 90px */
}

.section-wrapper.black,
.section-wrapper.black .section {
    background-color: var(--tangerine) !important;
    color: var(--color-bg);
}

.section-wrapper.colorful,
.section-wrapper.colorful .section {
    background-color: var(--loader-circle) !important;
    color: var(--color-bg);
}


/* FONTS */
body,
input,
textarea,
select {
    /* font-family: 'arial', sans-serif; */

    /* font-family: "Montserrat", sans-serif; */
    font-family: "marijonafont", sans-serif;
    font-style: fine;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    font-size: 1em;

    border: none !important;


}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-block: 0 1.5rem;
    font-family: "marijonafont", sans-serif;
    font-weight: 800;
}


h1 {
    font-size: var(--font-h1);
    font-weight: 900;
}

h2 {
    font-size: var(--font-h2);
}

h2.h1 {
    font-size: var(--font-h1);
    margin-bottom: 0;
}

h2.gform_title,
h3 {
    font-size: var(--font-h3);
}

h4 {
    font-size: var(--font-h4);
}

h5 {
    font-size: var(--font-h5);
}

h6 {
    font-size: var(--font-h6);
}



body {}


.languages {
    position: fixed;
    bottom: 0;
    right: -50px;
    transition: right .2s ease;
    z-index: 20;
    padding: .2em;
    display: flex;
    gap: .2em;
    /* left: calc(100% - 24px ); */
}

.languages:not(.show) {
    cursor: pointer;
}


.languages.show {
    right: 0;
}

.languages .first {
    order: -1;
}

.languages:not(.show) a {
    pointer-events: none;
}


.section-wrapper.hero.bottega .backgrounds .image.arch {
    /* transform: translateY(-50%);
    position: relative;
    top: 50%;
    max-height: 60vh; */
}



/* Loading animation */




/* div#circle {
    position: relative;
}

#circle::after {
    content: '';
    position: absolute;
    background: #7878dd;
    height: 2em;
    width: 2em;
    left: -1em;
    top: 4em;
    border-radius: 50%;
    filter: blur(.25em);
} */



/* Header */


/* HERO section */
.section-wrapper.hero {
    padding: 0;
}

.section-wrapper.hero .section {
    max-width: unset;
    background: var(--loader-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


/* images */
figure.wp-block-image {
    box-shadow: 1px 1px 6px 0px #0005;
    padding: 1.3em .85em 3em .85em;
    transform: rotate(5deg);
    background-color: #fff;
}

figure.wp-block-image img {
    aspect-ratio: 3/4;
    width: 180px;
    object-fit: cover;
}

.hero .images {
    position: relative;
}

.hero .images .image {
    /* position: absolute; */
}

.polaroid,
.hero .images .image {
    --img-width: clamp(80px, 14vw, 300px);
    box-shadow: 1px 1px 6px 0px #0005;
    padding: calc(0.13*var(--img-width)) calc(.085 * var(--img-width)) calc(0.3 * var(--img-width)) calc(.085 * var(--img-width));
    transform: rotate(5deg);
    background-color: #f2f2f2;
    width: min-content;
}

.polaroid img,
.hero .image img {
    width: var(--img-width);
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.polaroid:has(.text) {
    padding-bottom: calc(.085 * var(--img-width));
}

.polaroid .text {
    font-size: calc(.15 * var(--img-width));
    margin-bottom: 0;
    line-height: 1;
    padding-top: calc(.085 * var(--img-width));
    text-align: center;
}


.floating_images {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-around;
    gap: 50vw;
    align-items: center;
}

.floating_images img {
    max-width: 17vw;
}

.floating_images .image:first-child img.polaroid {
    transform: rotate(-6deg) translateY(-15vh);
}

.floating_images .image:last-child img.polaroid {
    transform: rotate(12deg) translateY(10vh);
}


/* .hero .images .image:nth-of-type(1) {
    right: 5%;
    top: 11%;
}

.hero .images .image:nth-of-type(2) {
    left: 10%;
    bottom: 10%;
}

.hero .images .image:nth-of-type(3) {
    left: 20%;
    top: 12%;
    transform: rotate(-5deg);
} */



/* bottega */
.section-wrapper.hero.bottega .section {
    /* max-width: 2500px; */
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    /* background-color: var(--loader-circle); */
    /* background-color: #fff; */
}

.section-wrapper.hero.bottega .backgrounds,
.section-wrapper.hero.bottega .foreground {
    grid-row: 1;
    grid-column: 1;
    height: 100%;
}

.section-wrapper.hero.bottega .backgrounds {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section-wrapper.hero.bottega .backgrounds .image {
    position: relative;
}

.section-wrapper.hero.bottega .backgrounds .image img {
    filter: grayscale(1);
}

.section-wrapper.hero.bottega h1 {
    font-family: 'marijonafont-intense', sans-serif;
    font-weight: 600 !important;
}

/* .section-wrapper.hero.bottega .backgrounds .image.arch {
    border-radius: 50vw 50vw 0 0;
    overflow: hidden;
    margin: 2em 0 2em 2em;
    box-shadow: 0.2em .1em 0em .25em #333;
} */

.section-wrapper.hero.bottega .backgrounds:has(.image.arch) {
    align-items: center;
    max-width: 1600px;
    margin-inline: auto;
}

.section-wrapper.hero.bottega .backgrounds .image.arch {
    border-radius: 50vw 50vw 0 0;
    overflow: hidden;
    margin: 2em 0.5em 2em;
    box-shadow: 0.2em .1em 0em .25em var(--hotpink);
    transform: translatex(-50%);
    position: relative;
    left: 50%;
    max-height: 60vh;
    aspect-ratio: 3/4;
    text-align: center;
}

.section-wrapper.hero.bottega .backgrounds .image.arch:last-child {
    margin: 2em 2em 2em 0;
}

.section-wrapper.hero.bottega .backgrounds .image img {
    position: absolute;
    inset: 0;
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.section-wrapper.hero.bottega .foreground {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    flex-direction: column;
    text-align: center;
    mix-blend-mode: difference;
    color: #fff;
}

/* .section-wrapper.hero.bottega .foreground::-moz-selection, */
.section-wrapper.hero.bottega .foreground ::selection {
    color: black;
    background: white;
}



.section-wrapper.hero.bottega .date_location {
    position: absolute;
    left: 0;
    bottom: 0;
    top: 0;
    display: flex;
    justify-content: space-between;
    gap: 1.5em;
    transform: rotate(180deg);
    writing-mode: vertical-lr;
    padding: 1.5em;
}

.section-wrapper.hero.bottega .date_location h3 {
    margin: 0;
}



.padding {
    padding: 1em max(2em, 5vw);
}



/* cursor follower*/
body {
    margin: 0;
    overflow-x: hidden;
    background: #fff;
    /* cursor: none; */

    /* Hide default cursor */
}

/* .cursor-circle {
    background: url('images/ringring.png');
    background-size: contain;
    position: fixed;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-repeat: no-repeat;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 100;
    transition: transform 0.1s ease-out;
    z-index: 200000;
} */

a {
    z-index: 101;
}


/* Form */




/* Buttons */

a.floating_back_btn {
    position: fixed;
    left: 0;
    top: 0em;
    font-size: 1em;
    padding: .5em 1.3em .5em .8em !important;
    border-radius: 0 0 2em 0;
}

a.btn {
    background: var(--loader-circle);
    color: #fff;
    padding: .25em 1em;
    text-decoration: none;
    transition: .25s ease;
    font-family: "marijonafont", sans-serif;
    font-weight: bold;
    font-size: 1.35em;
    display: inline-block;
}

a.btn.loading {
    background: var(--babypink) !important;
    cursor: progress;
}

a.btn:hover {
    background: var(--loader-circle-accent);
}


a.btn.del {
    font-size: .8em;
}







.code_form {
    position: fixed;
    inset: 0;
    z-index: 10;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-wrapper.arch {
    min-height: 100vh;
    background-color: var(--color-bg);
}

.section-wrapper.arch .section {
    max-width: min(90vw, 550px);
    /* padding: 2em; */
    margin-top: 2em;
    /* border-radius: 20vw 20vw 0 0; */
    /* background: #fff; */
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.carousel-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100vw;
    /* background-color: #f8f8f8; */
    padding: 10px 0;
    position: relative;

    /* option 1 */
    /* transform: skew(30deg, 10deg); */

    /* option 2 */
    transform: matrix(1, 0, -1, 5, 0, 0);
    z-index: 0;

    /* option 3 */
    /* transform: rotate(5deg); */
}

.carousel-content {
    display: inline-block;
    white-space: nowrap;
    animation: scrollText 15s linear infinite;
}

.carousel-container.reversed .carousel-content {
    animation: scrollText 15s linear infinite reverse;
}



.carousel-content span {
    display: inline-block;
    margin: 0;
    /* font-size: 24px; */
    font-weight: bold;
    color: #333;
}

@keyframes scrollText {
    from {
        transform: translateX(0%);
    }

    to {
        transform: translateX(calc(0px - (100% - 100vw)));
    }
}



.image-section .carousel-container {
    overflow: hidden;
    white-space: nowrap;
    width: 105vw;
    /* background-color: #f8f8f8; */
    padding: 10px 0;
    position: relative;
    transform: skew(10deg, 11deg);
    /* transform: matrix(-4, 1, -3, 3, 2, 2); */
    /* z-index: 0; */
    /* transform: rotate(5deg); */
    left: -5vw;
    top: 107px;
    line-height: 1;
}



/* ===== RSVP PAGE ===== */

/* form {
    padding: 3em 0;
    border-radius: 3em;
    background: #fff;
} */

input[type="submit"],
button[type="submit"] {
    font-size: 16px;
    margin-bottom: 0;
    margin-top: 0;
    padding: 8px 16px;
    border: none;
    outline: none;
    border-radius: 2px;
    background-color: #efefef;
    transition: background-color 0.3s ease;
    font-family: "marijonafont", sans-serif;
    font-weight: 900;
    color: #000 !important

}

input[type="submit"]:hover,
button[type="submit"]:hover {
    background-color: #efefef;
}

input[type="checkbox"] {
    visibility: hidden;
    padding: 0;
    margin: 0;
    width: 0;
    height: 0;
}

input[type="checkbox"]+label {
    position: relative;
    padding: 0.5em 1.5em 0.5em 2.5em;
    margin: 0 0 .5em;
    cursor: pointer;
    display: block !important;
    margin-bottom: 1em;
    /* font-size: 16px; */
    line-height: 1;
    border-radius: 2px;
    background-color: #efefef;
    transition: background-color 0.3s ease;
    flex-grow: 1;
    font-size: 1em !important;
    max-width: unset !important;


}

input[type="checkbox"]+label::before {
    content: '';
    position: absolute;
    left: .6em;
    top: .6em;
    bottom: .6em;
    padding: 0.2em;
    font-size: 0.8em;
    /* aspect-ratio: 1/1; */
    border: 1px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    width: .87em;
    border-radius: 2px;
}

input[type="checkbox"]:checked+label {
    background-color: #ff4e00;
    color: #fff;
    font-weight: 900;
}

input[type="checkbox"]:checked+label::before {
    content: 'x';
    font-family: helvetica;
    font-weight: 100;
}

.gchoice {
    margin-bottom: .5em;
    display: flex;
}



.rsvp-form form {
    display: flex;
    justify-content: center;
    gap: .5em;
    /* padding-inline: 2em; */
}

.rsvp-form form input[type="text"] {
    flex-grow: 1;
}


div#gform_wrapper_1 {
    background: #fff;
    padding: 2em;
}



.gform_wrapper.gravity-theme input[type=color],
.gform_wrapper.gravity-theme input[type=date],
.gform_wrapper.gravity-theme input[type=datetime-local],
.gform_wrapper.gravity-theme input[type=datetime],
.gform_wrapper.gravity-theme input[type=email],
.gform_wrapper.gravity-theme input[type=month],
.gform_wrapper.gravity-theme input[type=number],
.gform_wrapper.gravity-theme input[type=password],
.gform_wrapper.gravity-theme input[type=search],
.gform_wrapper.gravity-theme input[type=tel],
.gform_wrapper.gravity-theme input[type=text],
.gform_wrapper.gravity-theme input[type=time],
.gform_wrapper.gravity-theme input[type=url],
.gform_wrapper.gravity-theme input[type=week],
.gform_wrapper.gravity-theme select,
.gform_wrapper.gravity-theme textarea,
.gform_wrapper.gravity-theme .gfield input,
.gform_wrapper.gravity-theme .gfield textarea {
    box-shadow: 1px 1px 1px 1px #ccc;
    outline: 1px solid #ccc;
    border-radius: 1em;
    padding-inline: 1em;
    transition: all .25s ease;
}

.gform_wrapper.gravity-theme input[type=color]:hover,
.gform_wrapper.gravity-theme input[type=date]:hover,
.gform_wrapper.gravity-theme input[type=datetime-local]:hover,
.gform_wrapper.gravity-theme input[type=datetime]:hover,
.gform_wrapper.gravity-theme input[type=email]:hover,
.gform_wrapper.gravity-theme input[type=month]:hover,
.gform_wrapper.gravity-theme input[type=number]:hover,
.gform_wrapper.gravity-theme input[type=password]:hover,
.gform_wrapper.gravity-theme input[type=search]:hover,
.gform_wrapper.gravity-theme input[type=tel]:hover,
.gform_wrapper.gravity-theme input[type=text]:hover,
.gform_wrapper.gravity-theme input[type=time]:hover,
.gform_wrapper.gravity-theme input[type=url]:hover,
.gform_wrapper.gravity-theme input[type=week]:hover,
.gform_wrapper.gravity-theme select:hover,
.gform_wrapper.gravity-theme textarea .gform_wrapper.gravity-theme .gfield input:hover,
.gform_wrapper.gravity-theme .gfield textarea:hover {
    box-shadow: 1px 1px 7px 1px #ccc;
}

.gform_wrapper.gravity-theme #field_submit input {
    box-shadow: 1px 1px 1px 1px #ccc;
    color: #333 !important;
}

.rsvp_code_info img {
    max-width: 100%;
}


/* ===== END RSVP PAGE ===== */


/* ===== REGISTRY ===== */


.page-template-page-registry-php,
.page-template-page-registry-php .section-wrapper.hero .section {
    background-color: var(--babypink);
    /* color: #fff; */
    color: #F43662;
}

.registry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3em;
    padding: 2em;
    max-width: 1000px;
}



.registry-item {
    cursor: pointer;
    transition: 0.3s ease-in-out;
    aspect-ratio: 5 / 6;
    --bw: 100vw;
    border-radius: var(--bw) var(--bw) 0 0;
    overflow: hidden;
    position: relative;
    border: 0px solid var(--bubblegum);
    border-width: 0px;
    background-color: #fff;
    border-width: .5em .5em .25em .15em;

}


.registry-item:hover {
    /* border-width: .5em .5em .25em .15em; */
    border-width: 0;
}


.registry-item:hover img {
    /* transform: scale(1.0); */
    /* border: 12px solid red; */
    opacity: 1;
    transform: scale(1.05);
}

.registry-item img {
    width: 100%;
    height: 100%;
    /* height: 300px; */
    object-fit: cover;
    /* aspect-ratio: 5/6; */
    /* --bw: 100vw; */
    /* border-radius: var(--bw) var(--bw) 0 0; */
    transition: opacity 0.3s ease, transform 0.3s ease;
    /* border: 0px solid red; */
    opacity: .6;
}

.registry-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}


.popup-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
}

.popup-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
    max-height: min(300px, 47vh);
}

.popup-title {
    margin: 10px 0;
}

.popup-price {
    margin: 10px 0;
}

.popup-link {
    display: inline-block;
    padding: 10px 20px;
    background: #000;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 10px;
}

/* .registry-item:after {
    content: '';
    inset: 0;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--loader-circle);
    background: #ff4e0088;
    color: white;
    font-size: 2em;
    opacity: 0;
    transition: .275s ease;
    } 
*/

.registry-item:hover::after {
    opacity: 1;
}


.registry-item .reserved {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-weight: 800;
    font-size: 1.5em;
    color: var(--hotpink);
    opacity: 1;
    transition: opacity .3s ease;
}

.registry-item:hover .reserved {
    opacity: 0;
}

.amounts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0px, 1fr));
}

/* ===== END REGISTRY ===== */



/* ===== RESPONSIVE ===== */


@media screen and (max-width: 1800px) {
    .carousel-content {
        animation-duration: 12s;
    }
}

@media screen and (max-width: 1300px) {
    .carousel-content {
        animation-duration: 15s;
    }
}

@media screen and (max-width: 1200px) {
    :root {
        /* fonts */
        /* --font-h1: clamp(2.5em, 10vw, 10em); */
        --font-h2: 40px;
        --font-h3: 30px;
        --font-h4: 20px;
        --font-h5: 16px;
        --font-h6: 14px;
        --font-p: 16px;
    }

}

@media screen and (max-width: 959px) {

    :root {
        --font-h2: 30px;
        --font-h3: 22px;
        --font-h4: 18px;
        --font-h5: 14px;
        --font-h6: 13px;
    }


    h1 {
        /* font-size: 3em; */
    }

    .floating_images {
        flex-direction: column;
    }

    .floating_images img {
        max-width: max(135px, 26vw) !important;
    }

    body .floating_images .image:first-child img.polaroid {
        transform: rotate(-6deg) translate(-4vw, 3vh);
    }

    body .floating_images .image:last-child img.polaroid {
        transform: rotate(12deg) translate(12vw, -7vh);
    }

}

@media screen and (max-width: 900px) {
    .carousel-content {
        animation-duration: 20s;
    }
}

@media screen and (max-width: 767px) {

    .section-wrapper.hero .section.grid-2,
    .section-wrapper .section.grid-2 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .section-wrapper.hero.bottega .backgrounds:not(:has(.arch)) div {
        grid-column: 1/-1;
        grid-row: 1/-1;
    }

    .section-wrapper.hero.bottega .backgrounds:not(:has(.arch)) div.top {
        z-index: 2;
        background-color: #fff3;
    }




    .date_location {
        filter: contrast(.4);
    }


}

@media screen and (max-width: 767px) {

    :root {
        --font-h2: 25px;
        --font-h3: 20px;
        --font-h4: 16px;
        --font-h5: 13px;
        --font-h6: 12px;
    }

    .registry-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1em;
        padding: 1em;
    }
}

@media screen and (max-width: 639px) {


    /* @media screen and (max-width: 479px) { */
    .section-wrapper.hero.bottega .backgrounds:has(.image.arch) {
        /* grid-template-columns: 1fr; */
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .section-wrapper.hero.bottega .backgrounds .image.arch {
        width: max(200px, 40vw);
        margin: 1em auto !important;
        order: -1;
        transform: unset !important;
        top: unset !important;
        left: unset !important;
        aspect-ratio: 3/4;
    }

    .page-template-page-registry-php div#page {
        padding-top: 4em;
    }

    .section-wrapper.arch .section {
    max-width: unset;
    }

}

@media screen and (max-width: 560px) {
    :root {
        --font-h2: 20px;
        --font-h3: 17px;
        --font-h4: 14px;
        --font-h5: 12px;
        --font-h6: 12px;
    }

    .carousel-content {
        animation-duration: 35s;
    }
}

/* ===== END RESPONSIVE ===== */


.color {
    width: 4rem;
    aspect-ratio: 1/1;
    border-radius: 50%;
    display: inline-block;
}


