/*
Theme Name: Juanita
Author: Pol Clavell Masó
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

a {
    text-decoration: none !important;
}

p {
    line-height: 1;
}

#wpadminbar {
    opacity: 0.25;
    display: none;
}

#wpadminbar * {
    color: white !important;
}

.hide {
    display: none;
}

body {
    background: #efece7;
}

.content.main {
    padding-inline: 1%;
}

.nav {
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
}

h1,
h2,
p,
span,
button,
input,
a {
    font-family: AppleGaramond;
    color: #312f26;
    color: black;
    line-height: 1;
    font-weight: 100;
}

input {
    color: #a7a7a7;
}

input[type="submit"] {
    color: #312f26;
    color: black;
}

input::placeholder {
    color: #a7a7a7;
    text-decoration: underline;
}

h1 {
    font-size: 11.2vw;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

h2,
p,
span,
button,
input,
a,
input,
input::placeholder {
    font-size: 2rem;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #efece7 inset !important;
    -webkit-text-fill-color: #a7a7a7 !important;
}

input:focus,
textarea {
    outline: none !important;
}

@media screen and (max-width: 515px) {
    h1 {
        font-size: 20.4vw;
        line-height: 0.8;
    }

    h2,
    p,
    span,
    button,
    input,
    a,
    input::placeholder {
        font-size: 1.75rem;
    }

    body {
        padding-inline: 5%;
    }

    #wpadminbar {
        display: none;
    }
}

@media screen and (max-width: 415px) {
    h2,
    p,
    span,
    button,
    input,
    a,
    input::placeholder {
        font-size: 1.35rem;
    }
}

@font-face {
    font-family: "AppleGaramond";
    src: url("assets/fonts/appleGaramond/AppleGaramond.ttf");
}

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

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: black !important;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper {
    width: 100%;
    height: 300px;
    margin-left: auto;
    margin-right: auto;
}

.mySwiper2 {
    height: 80%;
    width: 100%;
    padding-bottom: 2rem !important;

    .swiper-slide {
        background: transparent;

        img {
            object-fit: contain !important;
            max-width: 85%;
            margin: auto;
        }
    }
}

.mySwiper {
    height: 20%;
    box-sizing: border-box;
    padding: 10px 0;

    .swiper-slide {
        width: max-content !important;
        height: max-content !important;
        margin-top: auto;
        margin-right: 5px !important;

        img {
            height: 5rem;
            width: auto;
        }
    }
}

@media (min-width: 992px) {
    .mySwiper {
        .swiper-slide {
            img {
                height: 6rem;
                width: auto;
            }
        }
    }
}

.mySwiper .swiper-slide {
    width: 25%;
    height: 100%;
    opacity: 0.4;
}

.mySwiper .swiper-slide-thumb-active {
    opacity: 1;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-gallery {
    height: 100%;
    padding-top: 5rem;
}

.swiper-button-prev:after,
.swiper-rtl .swiper-button-next:after {
    content: "" !important;
}

.swiper-button-prev,
.swiper-rtl .swiper-button-next {
    left: 1rem !important;
    right: auto;
    font-size: 25px;
    font-family: "AppleGaramond";
    width: auto !important;
}

.swiper-button-next:after,
.swiper-rtl .swiper-button-prev:after {
    content: "" !important;
}

.swiper-button-next,
.swiper-rtl .swiper-button-prev {
    right: 1rem !important;
    left: auto;
    font-size: 25px;
    font-family: "AppleGaramond";
    width: auto !important;
}

@media (max-width: 420px) {
    .swiper-button-prev,
    .swiper-rtl .swiper-button-next {
        left: 0rem !important;
    }

    .swiper-button-next,
    .swiper-rtl .swiper-button-prev {
        right: 0rem !important;
    }
}

.d-none {
    display: none;
}

.d-block {
    display: block;
}

@media (min-width: 768px) {
    .d-md-none {
        display: none;
    }

    .d-md-inline {
        display: inline;
    }
}

@media (min-width: 992px) {
    .swiper-button-prev,
    .swiper-rtl .swiper-button-next {
        font-size: 2rem;
    }

    .swiper-button-next,
    .swiper-rtl .swiper-button-prev {
        font-size: 2rem;
    }
}

.mySwiper img {
    object-fit: unset !important;
}
