/* ----------------------------------------
Theme Name : Galerie Helene Havlik
version 3.0
------------------------------------------*/

/* General */

* {
    box-sizing: border-box;
    outline: none;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
}

body {
    color: #555;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    margin: 0;
}

a {
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins' sans-serif;
    color: #555;
    line-height: 1.2;
    letter-spacing: 1px;
}

h1 {
    font-size: 3rem;
    margin: 0;
    text-align: center;
}


.list-unstyled {
    list-style: none;
    margin: 0;
    padding: 0;
}

.container {
    padding: 1rem 0;
    margin: 0;
}


/* ------- Page de maintenance -----------*/

.maintenance {
    max-width: 500px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.5rem;
    margin: auto;
    text-align: center;
    margin-top: 100px;
}

/* ------- icone ----------*/
.fa-home {
    color: #555;
    font-size: 2rem;
}

.fa-home:hover {
    font-size: 3rem;
    transition: 0.5s;
}

/*-------- header - navbar ---------*/
header {
    background-color: white;
    width: 100%;
    box-shadow: 0 0 10px rgba(85, 85, 85, 0.6);
    position: fixed;
    top: 0;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
}

.menu {
    display: flex;
}

.sous-menu {
    display: flex;
}

.sous-menu a {
    color: #555;
    padding: 0 1.5rem;
    border-right: 1px solid #555;
}

.sous-menu a:hover {
    font-weight: bolder;
    font-size: 1.6rem;
    letter-spacing: 2px;
    transition: .5s;
    text-decoration: wavy;
}

.active {
    color: black;
    font-weight: bolder;
    transition: all .5s ease-in-out;

}


/* small devices */
@media screen and (max-width:749px) {
    .menu {
        overflow: hidden;
        display: flex;
        flex-direction: column;
        background-color: white;
        width: 0;
        top: 65px;
        right: 0;
        height: calc(100vh - 65px);
        /*--- 100vh taille de la fenêtre et non de l'écran ---*/
        position: absolute;
        transition: all .5s ease-in-out;
    }

    .open-navbar .menu {
        width: 100%;
    }

    .sous-menu {
        transform: translateX(101%);
    }

    .open-navbar .sous-menu {
        transform: translateX(0);
    }

    .sous-menu a {
        display: block;
        padding: 1rem;
        font-size: 1.6rem;
        border-right: none;
        transition: all .5s ease-in-out;
    }

    .sous-menu a:hover {
        padding-left: 2rem;
        letter-spacing: 3px;

    }

    /* toogle menu */
    .burger {
        display: block;
        background-color: #FFF;
        border: none;
        width: 35px;
        height: 35px;
        cursor: pointer;
        position: relative;
        margin: 0 auto;
    }

    .bar {
        display: block;
        width: 35px;
        height: 5px;
        border-radius: 3px;
        background-color: #555;
        transition: all .5s ease-in-out;
    }

    .open-navbar .bar {
        width: 0;
        background-color: transparent;
        transition: .5s;
    }

    .open-navbar .burger {
        margin: 0;
    }

    .bar::before,
    .bar::after {
        content: "";
        width: 35px;
        height: 5px;
        position: absolute;
        border-radius: 3px;
        left: 0;
        background-color: #555;
        transition: all .5s ease-in-out;
    }

    .bar::before {
        transform: translateY(-10px);
    }

    .bar::after {
        transform: translateY(10px)
    }

    .open-navbar .bar::before {
        transform: rotate(45deg);
    }

    .open-navbar .bar::after {
        transform: rotate(-45deg);
        transition: .5s;
    }

    .open-navbar .first {
        transition: all 1s ease-in-out;
    }

    .open-navbar .second {
        transition: all 1.1s ease-in-out;
    }

    .open-navbar .third {
        transition: all 1.2s ease-in-out;
    }

    .open-navbar .forth {
        transition: all 1.3s ease-in-out;
    }

    .open-navbar .fifth {
        transition: all 1.4s ease-in-out;
    }
}

@media screen and (min-width:850px) {
    .burger {
        display: none;
    }

    .sous-menu a {
        border-right: 1px #555 solid;
    }

}

/* general */
.section {
    width: 90%;
    display: flex;
    justify-content: center;
    margin: auto;
}

.grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 700px;
}


/* page d'accueil*/

.home {
    display: flex;
    flex-wrap: wrap;
    /* border: 1px dotted #555; */
    border: none;
    padding: 0 0.5rem;
}

.home img {
    width: 15rem;
    height: 15rem;
    max-width: 300px;
    max-height: 500px;
    object-fit: cover;
    border-radius: 50%;
}

.home img:hover {
    opacity: 0.7;
}

.home .dimension {
    font-size: 1rem;
    text-align: center;
}

.home .titre {
    font-size: 1rem;
    width: 15rem;
    text-align: center;
}

@media screen and (max-width:425px) {
    .home {
        border: none;
    }

    .home {
        max-width: 12rem;
        max-height: 12rem;
        object-fit: cover;

    }
}


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


    .home img {
        max-width: 10rem;
        max-height: 10rem;
        object-fit: cover;
    }

    .home .titre {
        max-width: 10rem;
    }

}


/* Huile et Alkyde */

.painting .painting_2 {
    display: flex;
    flex-wrap: wrap;
    /* border: 1px dotted #555; */
    border: none;
}


.painting img {
    width: 15rem;
    height: 15rem;
    max-width: 300px;
    max-height: 500px;
    object-fit: cover;
    cursor: pointer;
}

.painting_2 img {
    width: 20rem;
    height: 15rem;
}

.painting img:hover {
    opacity: 0.7;
}

.painting .dimension {
    font-size: 1rem;
    text-align: center;
}

.painting .titre {
    font-size: 1rem;
    width: 15rem;
    text-align: center;
}

.painting .ville {
    font-size: 1.3rem;
    max-width: 15rem;
    text-align: center;
    font-variant: small-caps;
}

.date {
    padding-top: 0;
    margin: 1rem 0;
    text-align: center;
    border-bottom: 1px solid #555;
    border-top: 1px solid #555;
}

.item h3 {
    font-size: 15rem;
}

@media screen and (max-width:425px) {
    .painting {
        border: none;
    }

    .painting img {
        max-width: 12rem;
        object-fit: cover;
    }

    .painting_2 img {
        max-width: 16rem;
        max-height: 10rem;
        object-fit: cover;
    }
}

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


    .painting img {
        width: 10rem;
        height: 10rem;
        object-fit: cover;
    }

    .painting_2 img {
        width: 13.33rem;
        height: 10rem;
        object-fit: cover;
    }

    .painting .titre {
        max-width: 10rem;
    }

}

.paragraphe {
    margin: 2rem 1rem 0 1rem;
    max-width: 800px;

}

.copyright {
    padding-top: 10rem;
    text-align: center;
    font-size: 9px;
}

/*Style de base du modal */

    .modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    overflow: scroll;
    background-color: rgba(30, 30, 30, 0.5);
    }

    .modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 900px;
    border-radius: 8px;
    }

.close {
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor:pointer;
    border: 1px solid #aaa;
    line-height: 0.85;
    padding: 3px;
    margin-left: 10px;
    border-radius: 50%;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration:none;
}

/* Contenu image + texte en ligne */
.modal-body {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* Colonne image */
.modal-image img {
    max-width: 450px;
    width: 100%;
    height: auto;
}


.modal-text {
    padding-top: 50px;
    flex: 1;}

.modal-text p{
    font-size: 12px;
    font-style: normal;
}