/*
Theme Name: Sainte Chérie Tattoo
Theme URI: https://saintecherie.fr
Author: Quentin Lafon - QL Studio
Version: 1.0
Description: Le thème personnalisé "Sainte Chérie Tattoo" a été créé sur mesure afin de présenter une magnifique grille d'images et de flashs proposés par le salon de tatouage de Sainte Chérie Tattoo fondé par Andréa Pillais - Tatoueuse professionnelle à Saint-Malo en Bretagne.
*/

*,
*:before,
*:after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'MyUglyHandwriting';
    src: url('assets/fonts/MyUglyHandwriting-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@import url('https://fonts.googleapis.com/css2?family=Questrial&family=Roboto+Slab:wght@100..900&display=swap');

body {
    width: 100%;
    height: auto;
    font-family: 'Questrial', sans-serif;
    margin: 0;
    padding: 0;
    background: #ffffff;
}

header {
    text-align: center;
    padding: 20px;
    min-height: 325px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.social-box {
    width: max-content;
    min-width: auto;
    max-width: min-content;
    height: auto;
    min-height: auto;
    max-height: min-content;
    position: absolute;
    top: 10%;
    right: 10%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
}

a.insta_link {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    text-decoration: none;
    color: #000000;
    cursor: pointer;
}

.social-box img {
    width: auto;
    min-width: auto;
    max-width: 225px;
    height: auto;
    min-height: auto;
    max-height: -webkit-fill-available;
    transform: rotate(5deg);
}

.insta {
    font-family: 'MyUglyHandwriting';
    font-size: 42px;
    line-height: 1.2em;
    width: auto;
    min-width: min-content;
    max-width: -webkit-fill-available;
}

h1 {
    line-height: 1.2;
    margin: 0;
    display: inline-block;
    font-family: "MyUglyHandwriting";
    font-weight: 100;
    color: #000000;
    font-size: 72px;
    position: relative;
}

canvas {
    display: block;
    width: -webkit-fill-available;
    min-width: 275px;
    max-width: 300px;
    margin: 0 auto;
    position: relative;
    top: 0px;
}

/* Gallery Link Overlay */

.wpr-grid-media-hover {
    border-radius: 4px;
}

.wpr-grid-media-hover .wpr-animation-wrap:hover {
    opacity: 1;
}

/* Gallery Overlay Text */

.wpr-grid-media-hover a {
    font-size: 24px;
    font-weight: 700;
}

.wpr-grid-media-hover a:before,
.wpr-grid-media-hover a:after {
    content: '';
    position: absolute;
    height: 2px;
    min-height: 2px;
    max-height: 2px;
    width: 0;
    background: #ffffff;
    transition: width 0.3s ease-out .2s;
}

.wpr-grid-media-hover:hover a:before,
.wpr-grid-media-hover:hover a:after {
    content: '';
    position: absolute;
    height: 2px;
    min-height: 2px;
    max-height: 2px;
    width: 0;
    background: #ffffff;
    transition: width 0.3s ease-out .2s;
}

.wpr-grid-media-hover a:before {
    top: 0;
    left: 0;
}

.wpr-grid-media-hover a:after {
    bottom: 0;
    right: 0;
}

.wpr-grid-media-hover:hover a:before,
.wpr-grid-media-hover:hover a:after {
    width: 100%;
}

i.fas.fa-search {
    display: none;
}

/* Gallery Image */

.wpr-grid-image-wrap {
    border-color: #E8E8E8;
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-radius: 4px !important;
}

.wpr-grid-media-hover-middle.wpr-animation-wrap {
    border-radius: 4px;
}


@media screen and (min-width: 1440px) {

    .social-box {
        width: max-content;
        min-width: auto;
        max-width: min-content;
        height: auto;
        min-height: auto;
        max-height: min-content;
        position: absolute;
        top: 5%;
        right: 10%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0;
    }

    a.insta_link {
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
        text-decoration: none;
        color: #000000;
        cursor: pointer;
    }

    .social-box img {
        width: auto;
        min-width: auto;
        max-width: 225px;
        height: auto;
        min-height: auto;
        max-height: -webkit-fill-available;
        transform: rotate(5deg);
    }

    .insta {
        font-family: 'MyUglyHandwriting';
        font-size: 42px;
        line-height: 1.2em;
        width: auto;
        min-width: min-content;
        max-width: -webkit-fill-available;
    }

    /* Gallery Overlay Text */

    .wpr-grid-media-hover a {
        position: relative;
        line-height: 1.8rem;
        display: inline-flex;
        font-size: smaller;
        margin-left: 50px;
        margin-right: 50px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .wpr-grid-media-hover a:before,
    .wpr-grid-media-hover a:after {
        content: '';
        position: absolute;
        height: 2px;
        min-height: 2px;
        max-height: 2px;
        width: 0;
        background: #ffffff;
        transition: width 0.3s ease-out .2s;
    }

    .contact-dm {
        width: 100%;
        min-width: auto;
        max-width: 1024px;
        min-height: 100px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: auto;
    }

    .contact-dm p {
        font-family: "Questrial", sans-serif;
        font-size: 18px;
        line-height: 1.8em;
        text-align: center;
        padding-left: 25px;
        padding-right: 25px;
        padding-bottom: 25px;
    }

    footer p {
        font-size: 18px;
    }

}

@media screen and (max-width: 1440px) and (min-width: 960px) {

    .social-box {
        width: max-content;
        min-width: auto;
        max-width: min-content;
        height: auto;
        min-height: auto;
        max-height: min-content;
        position: absolute;
        top: 0%;
        right: 0%;
        margin-top: 8%;
        margin-right: 5%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0;
    }

    a.insta_link {
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
        text-decoration: none;
        color: #000000;
        cursor: pointer;
    }

    .social-box img {
        width: auto;
        min-width: auto;
        max-width: 150px;
        height: auto;
        min-height: auto;
        max-height: -webkit-fill-available;
        transform: rotate(5deg);
    }

    .insta {
        font-family: 'MyUglyHandwriting';
        font-size: 32px;
        line-height: 1.2em;
        width: auto;
        min-width: min-content;
        max-width: -webkit-fill-available;
    }

    /* Gallery Overlay Text */

    .wpr-grid-media-hover a {
        position: relative;
        line-height: 1.5rem;
        display: inline-flex;
        font-size: smaller;
        margin-left: 25px;
        margin-right: 25px;
        padding-right: 10px;
        padding-left: 10px;
    }

    .wpr-grid-media-hover a:before,
    .wpr-grid-media-hover a:after {
        content: '';
        position: absolute;
        height: 2px;
        min-height: 2px;
        max-height: 2px;
        width: 0;
        background: #ffffff;
        transition: width 0.3s ease-out .2s;
    }

    .contact-dm {
        width: 100%;
        min-width: auto;
        max-width: 975px;
        min-height: 100px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: auto;
    }

    .contact-dm p {
        font-family: "Questrial", sans-serif;
        font-size: 22px;
        line-height: 1.8em;
        text-align: center;
        padding-left: 25px;
        padding-right: 25px;
        padding-bottom: 25px;
    }

    footer p {
        font-size: 22px;
    }

}

@media screen and (max-width: 700px) and (min-width: 225px) {


    .social-box {
        display: none;
    }

    a.insta_link {
        display: none;
    }

    .social-box img {
        display: none;
    }

    .insta {
        display: none;
    }

    .wpr-grid-media-hover:hover a:before,
    .wpr-grid-media-hover:hover a:after {
        content: '';
        position: absolute;
        height: 2px;
        min-height: 2px;
        max-height: 2px;
        width: 0;
        background: #ffffff;
        transition: width 0.3s ease-out .2s;
    }

    .wpr-grid-media-hover a:before {
        top: 0;
        left: 0;
    }

    .wpr-grid-media-hover a:after {
        bottom: 0;
        right: 0;
    }

    .wpr-grid-media-hover:hover a:before,
    .wpr-grid-media-hover:hover a:after {
        width: 100%;
    }
}

@media screen and (max-width: 960px) and (min-width: 425px) {

    header {
        text-align: center;
        padding: 20px;
        min-height: 200px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .social-box {
        width: max-content;
        min-width: auto;
        max-width: min-content;
        height: auto;
        min-height: auto;
        max-height: min-content;
        position: absolute;
        top: 0%;
        right: 0%;
        margin-top: 8%;
        margin-right: 5%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0;
    }

    a.insta_link {
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
        text-decoration: none;
        color: #000000;
        cursor: pointer;
    }

    .social-box img {
        width: auto;
        min-width: auto;
        max-width: 125px;
        height: auto;
        min-height: auto;
        max-height: -webkit-fill-available;
        transform: rotate(5deg);
    }

    .insta {
        font-family: 'MyUglyHandwriting';
        font-size: 22px;
        line-height: 1.2em;
        width: auto;
        min-width: min-content;
        max-width: -webkit-fill-available;
    }

    h1 {
        line-height: 1.2;
        margin: 0;
        display: inline-block;
        font-family: "MyUglyHandwriting";
        font-weight: 100;
        color: #000000;
        font-size: 52px;
        position: relative;
    }

    canvas {
        display: block;
        width: -webkit-fill-available;
        min-width: 175px;
        max-width: 200px;
        margin: 0 auto;
        position: relative;
        top: 0px;
    }

    .wpr-grid-media-hover:hover a:before,
    .wpr-grid-media-hover:hover a:after {
        content: '';
        position: absolute;
        height: 2px;
        min-height: 2px;
        max-height: 2px;
        width: 0;
        background: #ffffff;
        transition: width 0.3s ease-out .2s;
    }

    .wpr-grid-media-hover a:before {
        top: 0;
        left: 0;
    }

    .wpr-grid-media-hover a:after {
        bottom: 0;
        right: 0;
    }

    .wpr-grid-media-hover:hover a:before,
    .wpr-grid-media-hover:hover a:after {
        width: 100%;
    }


    .wpr-grid-media-hover a {
        position: relative;
        line-height: 1.5rem;
        display: inline-flex;
        font-size: 16px;
        margin-right: 25px;
        margin-left: 25px;
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .wpr-grid-media-hover a:before,
    .wpr-grid-media-hover a:after {
        content: '';
        position: absolute;
        height: 2px;
        min-height: 2px;
        max-height: 2px;
        width: 0;
        background: #ffffff;
        transition: width 0.3s ease-out .2s;
    }

    .contact-dm {
        width: 100%;
        min-width: auto;
        max-width: 780px;
        min-height: 100px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: auto;
        position: relative;
        z-index: 100;
    }

    .contact-dm p {
        font-family: "Questrial", sans-serif;
        font-size: 18px;
        line-height: 1.8em;
        text-align: center;
        padding-right: 25px;
        padding-left: 25px;
        padding-bottom: 25px;
    }

    footer {
        width: 100%;
        height: auto;
        min-height: 75px;
        max-height: 90px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-top: solid 1px #F4F4F4;
        position: relative;
        z-index: 100;
    }

    footer p {
        font-size: 18px;
    }

}

@media screen and (max-width: 425px) and (min-width: 250px) {

    header {
        text-align: center;
        padding: 20px;
        min-height: 115px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    h1 {
        line-height: 1.2;
        margin: 0;
        display: inline-block;
        font-family: "MyUglyHandwriting";
        font-weight: 100;
        color: #000000;
        font-size: 42px;
        position: relative;
    }

    canvas {
        display: block;
        width: -webkit-fill-available;
        min-width: 175px;
        max-width: 200px;
        margin: 0 auto;
        position: relative;
        top: 0px;
    }

    .wpr-grid-item-lightbox.wpr-anim-transparency {
        display: none;
    }


    .wpr-grid-media-hover a {
        position: relative;
        line-height: 1.2rem;
        display: inline-flex;
        font-size: 12px;
        margin-left: 15px;
        margin-right: 15px;
        text-align: center;
        justify-content: center;
        align-items: center;
        box-sizing: border-box;
        text-shadow: 0px 0px 6px #00000075;
    }

    .wpr-grid-media-hover a:before,
    .wpr-grid-media-hover a:after {
        content: '';
        position: absolute;
        height: 2px;
        min-height: 2px;
        max-height: 2px;
        width: 0;
        background: #ffffff;
        transition: width 0.3s ease-out .2s;
    }

    .wpr-grid-media-hover:hover a:before,
    .wpr-grid-media-hover:hover a:after {
        content: '';
        position: absolute;
        height: 1px;
        min-height: 1px;
        max-height: 1px;
        width: 0;
        background: #ffffff;
        transition: width 0.3s ease-out .2s;
    }

    .wpr-grid-media-hover a:before {
        top: 0;
        left: 0;
    }

    .wpr-grid-media-hover a:after {
        bottom: 0;
        right: 0;
    }

    .wpr-grid-media-hover:hover a:before,
    .wpr-grid-media-hover:hover a:after {
        width: 100%;
    }


    .contact-dm {
        position: relative;
    }

    .contact-dm p {
        font-family: "Questrial", sans-serif;
        font-size: 10px;
        line-height: 2.5em;
        text-align: center;
        padding-right: 25px;
        padding-left: 25px;
        padding-bottom: 25px;
    }

    footer {
        position: relative;
    }

    footer p {
        font-size: 10px;
    }

}

a.bottomLink {
    text-decoration: underline;
    color: #000000;
}

a.email {
    text-decoration: underline;
    color: black;
}

a.telephone {
    text-decoration: underline;
    color: black;
}

footer {
    position: relative;
    bottom: 0;
    width: 100%;
    height: auto;
    min-height: 75px;
    max-height: 100%;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 25px;
}


.copyright {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    max-height: 75px;
    border-top: solid 1px #F4F4F4;
}

/* TRANSITION */

/* Style du préchargement */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

/* Style du loader (un cercle qui tourne) */
.loader {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

/* Animation de rotation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Lorsque le préchargement est terminé */
#loading-screen.loaded {
    opacity: 0;
    pointer-events: none;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f5f5f5;
    /* Blanc cassé */
}

::-webkit-scrollbar-thumb {
    background: #aaa;
    /* Gris moyen */
    border-radius: 8px;
    border: 1px solid transparent;
}

::-webkit-scrollbar-thumb:hover {
    background: #777;
    /* Gris foncé */
}