/* =========================================
   NOIR MATIÈRE — EXPOSITION
   ========================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #000;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
}


/* =========================================
   HEADER
   ========================================= */

.site-header {
    width: 100%;
    padding: 28px 5vw;

    display: flex;
    align-items: center;
    justify-content: space-between;

    position: relative;
    z-index: 10;
}

.logo {
    color: #fff;
    text-decoration: none;

    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.18em;
}

.site-header nav {
    display: flex;
    gap: 32px;
}

.site-header nav a {
    color: #fff;
    text-decoration: none;

    font-size: 12px;
    letter-spacing: 0.14em;

    transition: opacity 0.25s ease;
}

.site-header nav a:hover,
.site-header nav a.active {
    opacity: 0.5;
}


/* =========================================
   INTRODUCTION
   ========================================= */

.exposition {
    width: min(1400px, 90%);
    margin: 0 auto;
}

.exposition-intro {
    padding: 100px 0 90px;
    max-width: 800px;
}

.surtitle {
    margin: 0 0 22px;

    font-size: 11px;
    letter-spacing: 0.3em;

    opacity: 0.5;
}

h1 {
    margin: 0;

    font-size: clamp(52px, 9vw, 130px);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: -0.04em;
}

.exposition-date {
    margin: 35px 0 0;

    font-size: 12px;
    letter-spacing: 0.18em;

    opacity: 0.65;
}

.intro-text {
    margin-top: 55px;

    max-width: 600px;

    font-size: 15px;
    line-height: 1.8;

    color: rgba(255,255,255,0.72);
}

.intro-text p {
    margin: 0 0 18px;
}


/* =========================================
   GALERIE
   ========================================= */

.gallery {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 70px 28px;

    padding-bottom: 120px;
}

.gallery-item {
    margin: 0;
}

.gallery-image {
    display: block;

    width: 100%;
    padding: 0;

    border: 0;

    background: transparent;

    cursor: zoom-in;

    overflow: hidden;
}

.gallery-image img {
    display: block;

    width: 100%;
    height: auto;

    transition:
        transform 0.6s cubic-bezier(.2,.7,.2,1),
        opacity 0.4s ease;
}

.gallery-image:hover img {
    transform: scale(1.025);
    opacity: 0.8;
}

.gallery-item figcaption {
    padding-top: 15px;

    display: flex;
    flex-direction: column;
    gap: 5px;

    font-size: 11px;
    letter-spacing: 0.08em;
}

.gallery-item figcaption strong {
    font-weight: 400;
}

.gallery-item figcaption span {
    opacity: 0.45;
}


/* =========================================
   LIGHTBOX
   ========================================= */

.lightbox {
    position: fixed;
    inset: 0;

    z-index: 100;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px;

    background: rgba(0,0,0,0.96);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    display: block;

    max-width: 88vw;
    max-height: 78vh;

    width: auto;
    height: auto;

    object-fit: contain;
}

#lightboxCaption {
    margin: 20px 0 0;

    color: rgba(255,255,255,0.65);

    font-size: 11px;
    letter-spacing: 0.12em;

    text-align: center;
}


/* =========================================
   FERMER
   ========================================= */

.lightbox-close {
    position: absolute;

    top: 22px;
    right: 30px;

    width: 50px;
    height: 50px;

    border: 0;
    background: transparent;

    color: #fff;

    font-size: 42px;
    font-weight: 200;
    line-height: 1;

    cursor: pointer;

    opacity: 0.7;

    transition: opacity 0.2s ease;
}

.lightbox-close:hover {
    opacity: 1;
}


/* =========================================
   PRECEDENT / SUIVANT
   ========================================= */

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;

    transform: translateY(-50%);

    width: 60px;
    height: 80px;

    border: 0;
    background: transparent;

    color: #fff;

    font-size: 60px;
    font-weight: 200;
    line-height: 1;

    cursor: pointer;

    opacity: 0.5;

    transition: opacity 0.2s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 1;
}

.lightbox-prev {
    left: 15px;
}

.lightbox-next {
    right: 15px;
}


/* =========================================
   TABLETTE
   ========================================= */

@media (max-width: 900px) {

    .site-header {
        padding: 25px 4vw;
    }

    .site-header nav {
        gap: 18px;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px 18px;
    }

    .exposition-intro {
        padding-top: 80px;
    }
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 600px) {

    .site-header {
        padding: 22px 5vw;

        flex-direction: column;
        align-items: flex-start;

        gap: 20px;
    }

    .site-header nav {
        width: 100%;

        justify-content: space-between;

        gap: 10px;
    }

    .site-header nav a {
        font-size: 10px;
    }

    .exposition {
        width: 90%;
    }

    .exposition-intro {
        padding: 65px 0 60px;
    }

    h1 {
        font-size: clamp(48px, 17vw, 80px);
    }

    .intro-text {
        margin-top: 40px;

        font-size: 14px;
        line-height: 1.7;
    }

    .gallery {
        grid-template-columns: 1fr;

        gap: 45px;

        padding-bottom: 80px;
    }

    .gallery-item figcaption {
        padding-top: 12px;
    }

    .lightbox {
        padding: 20px;
    }

    .lightbox-content img {
        max-width: 94vw;
        max-height: 75vh;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 60px;

        font-size: 45px;
    }

    .lightbox-prev {
        left: 0;
    }

    .lightbox-next {
        right: 0;
    }

    .lightbox-close {
        top: 10px;
        right: 12px;

        font-size: 36px;
    }

    #lightboxCaption {
        font-size: 10px;
        line-height: 1.5;
    }
}

