/* ------------------------------------------------------------
Theme Name : Galerie Helene Havlik 
version 5.0 élaborée en coopération avec chat GPT
---------------------------------------------------------------*/

/* General */

* {
    outline: none;

}

html, body {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        -webkit-font-smoothing: antialiased;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
        font-size: 62.5%;
}

body {
    color: #555;
    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;
}

.signature {
    display: flex;
    justify-content: center;
}

.signature img {
    max-width: 150px;
}

/*-------- 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;
    }

}


/* -------------- Vignette ----------------- */

.label {
    display: block;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}


.label button {
    background-color: transparent;
    border: 1px solid rgb(190, 190, 190); 
    padding: 0;
    border-radius: 3px;
}

.label img {
    padding: 0;
    margin: 0;
}

.label figcaption {
    color: #797979;
    font-family: "Nunito", sans-serif;
    justify-content: center;
}


.label img {
    max-height: 20rem;
    width: auto;
}

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


.painting img {
    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 p {
    font-size: 12px;
    font-family: "Nunito", sans-serif;
}
.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;
}

/* ---------------------- MODAL ------------------------ */

/* -------- Overlay -------- */
.modal-overlay {
    position: fixed; 
    inset:0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
  }
  
  /* -------- Modal fenêtre -------- */
  .modal {
    background: white;
    max-width: 90vw;
    max-height: 90vh;
    width: 90vw;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    position: relative;
  }
  
  /* -------- Contenu défilable -------- */
  .modal-content {
    overflow-y: auto;
    max-height: 90vh;
    padding: 20px;
    box-sizing: border-box;
  }

  /* -------- Croix de fermeture -------- */
  .close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #eee;
    color: #333;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    cursor: pointer;
    font-size: 20px;
    transition: background 0.3s;
    z-index: 10;
  }
  
  .close:hover {
    background: #ccc;
  }
  
  /* -------- Corps du modal -------- */
  .modal-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  /* Image + titre côte à côte 
  .modal-header {
    display:flex;
    flex-direction: row;
    gap: 1rem;
    align-items: flex-start;
  }

/* ------------ Carrousel ----------------*/

.modal-image {
    position: relative;
}

/* .modal-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 3px;
    margin-bottom: 9px;
  } */

  /* zone carroussel */
.modal-image .main-image /*img*/ {
    max-width: 80%;
    height: auto;
    cursor: pointer;
    border-radius: 3px;
    display: block;
    margin: 0 auto;
  }

  /* miniature */
  .thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
  }

  @media screen and (min-width: 1023px) {
    .modal-image .main-image {
        max-width: 500px;
    }

  }
  
  .thumnbnails img {
    width: 80px;
    height: auto;
    opacity: 0.2;
    cursor: pointer;
    transition:0.3s ease;
    opacity: .3s;
    border-radius: 3px;
  }

  .thumbnails img.active {
    border: 1px solid #333;
  }

  .thumbnails img:hover {
    opacity: 1;
    transform: scale(1.05);
  }
  
  /* Flèches de navigation */
  .prev, .next {
    position: absolute;
    top: 45%;
    font-size: 2rem;
    color: #333333b2;
    background: rgba(255, 255, 255, 0.555);
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 50%;
    cursor: pointer;
    user-select:none;
    z-index: 5;
  }

  .prev {left: -10px;}
  .next {right: -10px;}

  .prev:hover, .next:hover {
    background: rgba(200, 200, 200, 0.7);
  }
  

  /* ------------ Mobile first : mobile S - 320px à mobil L - 425 px ----------*/
  /* Image responsive */

  
  /* Titres */

  .modal-titre h1, .modal-titre h2, .modal-titre h3, .modal-titre h4 {
    display: flex;
    justify-content: center;
    margin: 0.3rem 0;
    text-align: left;
  }

  .modal-titre h1 {
    font-size: 2.5rem;
    font-weight: lighter;
    color: #797979;
  }

  .modal-titre h2 {
    font-weight:700;
    font-style: italic;
    font-size: 1.5rem;
  }
    /* Titres à droite de l'image
  .modal-titre {
    display:flex;
    flex-direction: column;
    justify-content:center;
    text-align:left;
}
*/

    /* text, description et commentaire */

  
    .modal-text {
    /* display: grid;
    grid-template-columns: max-content 1fr;
    column-gap: 1rem;
    row-gap: 0.5rem;*/
    display: flex;
    flex-direction: column;
    font-family: "Nunito", sans-serif;
    font-size: 1.5rem;
    color: #797979; 
  }

    .modal-text p {
        margin: 0;
    }

    .legende { /* titre en gras dans le modal-text */
        font-weight:bold;
      }


  

  

  /*.modal-text .legende {
    white-space: nowrap;
    text-align: right;
  }*/

  /* Responsive : en mode portrait smartphone 
  @media (max-width: 768px) and (orientation: portrait) {
.modal-header {
    flex-direction: column;
    align-items: flex-start;
    text-align: center;
}

.modal-titre {
    margin-top: 1rem;
}

    .modal-body {
        flex-direction: column;
        align-items: flex-start;
        text-align:justify;
    }

    .modal-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .modal-text {
        grid-template-columns: 1fr;
        margin-top: 1rem;
    }

    .modal-text .legende {
        text-align: left;
        margin-top: 1rem;
    }
  } */



  
  
  
  /* -------- Responsive -------- */
  @media (max-width: 768px) {
    .modal-body {
      flex-direction: column;
    }
  }

  

  #test-img {
    background-color: transparent !important;
    border-radius: 0 !important;
    box-shadow:none !important;
  }
  