/* =========================================================
   GALERIE PHOTOS - CHARTE GRAPHIQUE GITE DE L'OLIVIER
   ========================================================= 

* {
    box-sizing: border-box;
}

html {
    background: #808000;
}

body {
    margin: 0;
    background: #808000;
    color: #5A3A22;
    font-family: "Palatino Linotype", Palatino, Georgia, serif;
    font-size: 16px;
}

.site-wrapper {
    width: 92%;
    max-width: 1250px;
    margin: 14px auto 0;
    background: #F5F5DC;
}

/* ---------- En-tête ---------- 

.banniere {
    min-height: 205px;
    background: #C2B280;
    display: grid;
    grid-template-columns: 270px 1fr 150px;
    align-items: center;
    padding: 14px 18px;
    gap: 18px;
}

.banniere-photo img {
    display: block;
    width: 270px;
    height: 180px;
    object-fit: cover;
}

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

.banniere-logo img {
    width: 300px;
    max-width: 100%;
    height: auto;
}

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

.banniere-label img:first-child {
    display: block;
    width: 100px;
    max-width: 100%;
    margin: 0 auto 8px;
}

.banniere-label img:last-child {
    width: 80px;
    max-width: 100%;
}

  ---------- Structure ---------- 

.content-layout {
    display: grid;
    grid-template-columns: 205px 1fr;
    align-items: stretch;
}

#navcontainer {
    background: #C2B280;
    padding: 20px 10px 25px;
}

.menu-titre {
    text-align: center;
    font-weight: bold;
    letter-spacing: 1px;
    margin: 0 8px 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(90, 58, 34, 0.35);
}

#navlist {
    list-style: none;
    margin: 0;
    padding: 0;
}

#navlist li a {
    display: block;
    padding: 9px 10px;
    color: #5A3A22;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

#navlist li a:hover {
    background: rgba(245, 245, 220, 0.45);
}

#navlist li a#current {
    background: #5A3A22;
    color: #F5F5DC;
    font-weight: bold;
    border-left: 4px solid #808000;
}

#navlist .menu-section {
    margin: 14px 8px 2px;
    padding: 7px 0 6px;
    border-bottom: 1px solid rgba(90, 58, 34, 0.35);
    color: #5A3A22;
    text-transform: uppercase;
    font-size: 0.88em;
    letter-spacing: 0.4px;
    font-weight: bold;
}

.menu-localisation {
    margin: 28px 4px 0;
    padding: 14px 8px 0;
    border-top: 1px solid rgba(90, 58, 34, 0.35);
    text-align: center;
    font-size: 0.84em;
    line-height: 1.45;
}

.menu-localisation strong,
.menu-localisation span {
    display: block;
}

.menu-localisation strong {
    color: #808000;
    margin-bottom: 3px;
}

 ---------- Contenu ---------- 

#page {
    background: #F5F5DC;
    padding: 15px 30px 35px;
    min-width: 0;
}

.page-interieur {
    max-width: 1000px;
    margin: 0 auto;
}

.titre-page {
    min-height: 52px;
    border: 1px solid #C2B280;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 8px 15px;
}

.titre-page h1 {
    margin: 0;
    color: #808000;
    font-size: 1.55em;
    text-align: center;
}

.titre-decoration {
    color: #5A3A22;
    font-size: 1.45em;
}

.sous-titre-page {
    margin-top: 9px;
    padding: 9px 14px;
    background: #808000;
    color: #F5F5DC;
    text-align: center;
    font-weight: bold;
}*/

.galerie-intro {
    margin: 22px 0 18px;
    text-align: center;
}

.galerie-intro h2 {
    margin: 0 0 7px;
    color: #808000;
    font-size: 1.35em;
}

.galerie-intro p {
    margin: 0;
    line-height: 1.5;
}

/* ---------- Galerie ---------- */

.galerie {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.photo-card {
    margin: 0;
    background: rgba(194, 178, 128, 0.18);
    border: 1px solid #C2B280;
    padding: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.photo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(90, 58, 34, 0.15);
}

.photo-button {
    position: relative;
    display: block;
    width: 100%;
    height: 205px;
    padding: 0;
    border: 0;
    background: #C2B280;
    cursor: zoom-in;
    overflow: hidden;
}

.photo-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.photo-button:hover img {
    transform: scale(1.04);
    opacity: 0.9;
}

.photo-zoom {
    position: absolute;
    right: 9px;
    bottom: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(90, 58, 34, 0.88);
    color: #F5F5DC;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
}

.photo-card figcaption {
    padding: 8px 4px 3px;
    text-align: center;
    font-size: 0.88em;
    line-height: 1.25;
    min-height: 32px;
}

/* ---------- Visionneuse ---------- */

.no-scroll {
    overflow: hidden;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(35, 27, 20, 0.93);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 55px 75px;
}

.lightbox.is-open {
    display: flex;
}

.lightbox-content {
    max-width: 92vw;
    max-height: 88vh;
    text-align: center;
}

.lightbox-content img {
    display: block;
    max-width: 92vw;
    max-height: 78vh;
    width: auto;
    height: auto;
    margin: 0 auto;
    border: 5px solid #F5F5DC;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

#lightbox-caption {
    margin-top: 10px;
    color: #F5F5DC;
    font-size: 1em;
}

#lightbox-counter {
    margin-top: 4px;
    color: #C2B280;
    font-size: 0.9em;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: fixed;
    z-index: 10000;
    border: 0;
    background: rgba(194, 178, 128, 0.9);
    color: #5A3A22;
    cursor: pointer;
    font-family: Georgia, serif;
}

.lightbox-close {
    top: 16px;
    right: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 32px;
    line-height: 38px;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 58px;
    font-size: 30px;
    border-radius: 3px;
}

.lightbox-prev {
    left: 18px;
}

.lightbox-next {
    right: 18px;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: #F5F5DC;
}


/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .galerie {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

  /*  .banniere {
        grid-template-columns: 220px 1fr 110px;
    }

    .banniere-photo img {
        width: 220px;
        height: 155px;
    }

    .banniere-logo img {
        width: 250px;
    }*/
}

@media (max-width: 700px) {


  /*  .banniere {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 10px;
        padding: 14px;
    }

    .banniere-photo img {
        width: 250px;
        height: 160px;
    }

    .banniere-logo img {
        width: 260px;
    }

    .banniere-label {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }

    .banniere-label img:first-child {
        margin: 0;
    }

    .content-layout {
        display: block;
    }

    #navcontainer {
        padding: 10px 12px 15px;
    }

    .menu-titre {
        margin-bottom: 6px;
    }

    #navlist {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    #navlist .menu-section {
        grid-column: 1 / -1;
        margin-top: 10px;
    }*/

    .menu-localisation {
        margin-top: 12px;
    }



    .galerie {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .photo-button {
        height: 150px;
    }

    .photo-card figcaption {
        font-size: 0.78em;
    }

    .lightbox {
        padding: 55px 45px;
    }

    .lightbox-content img {
        max-width: 88vw;
        max-height: 72vh;
    }

    .lightbox-prev {
        left: 6px;
    }

    .lightbox-next {
        right: 6px;
    }
}

@media (max-width: 430px) {
    #navlist {
        display: block;
    }

    .galerie {
        grid-template-columns: 1fr;
    }

    .photo-button {
        height: 220px;
    }

    .lightbox {
        padding: 55px 35px;
    }
}
