body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
      background-image: 
                linear-gradient(to right, rgba(0, 0, 0, 0.1) 0.02vw, transparent 0.1vw),
                linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0.02vw, transparent 0.1vw);
            background-size: 1.3vw 1.3vw; /
    background-color: #f0f0f0;
    cursor: none;
}

@font-face{
    font-family: 'Tranche';
    src: url(Font/Tranchetype-Regular.woff) format('woff'),
         url(Font/Tranchetype-Regular.woff2) format('woff2'),
    font-weight: normal;
    font-style: normal;
}

@font-face{
    font-family: 'IBMP';
    src: url(Font/IBMPlexMono-Light.woff) format('woff'),
         url(Font/IBMPlexMono-Light.woff2) format('woff2'),
         url(Font/IBMPlexMono-Light.ttf) format('truetype'),
         url(Font/IBMPlexMono-Light.eot) format('eot');
    font-weight: normal;
    font-style: normal;
}

.overlay-content {
    text-align: center;
    max-width: 90vw; /* Limite la taille globale */
    padding: 20px;
    box-sizing: border-box;
    z-index: 10;
}

.caption {
    text-align: center;
    margin-top: 5vw;
    font-family: 'IBMP';
    font-size: 0.8vw;
    color: #fff;
}


        .vertical-line {
            position: fixed;
            top: 0;
            bottom: 0;
            width: 0.1vw;
                        background-color: black;
            left: 50%;
            transform: translateX(-50%);
            pointer-events: none;
        }

        .horizontal-line {
            position: fixed;
            left: 0;
            right: 0;
            height: 0.1vw;
            background-color: black;
            top: 50%;
            transform: translateY(-50%);
            pointer-events: none;
        }

        .arrow {
            position: absolute;
            z-index: 9;
    font-family: 'IBMP';
            font-size: 5vw; /* Taille de la flèche */
                left: 4vw;
                bottom: 2.3vw;
        }

        .arrow a{
            color: black;
            text-decoration: none;
        }

        .arrow a:hover{
        color: rgba(0, 12, 255, 1);
        }

        .datetime{
                font-family: 'IBMP';
                    font-size: 0.9vw;
        }

        #date{
            position: absolute;
    right: 3.8vw;
                    bottom: 4vw;
        }

        #time{
            position: absolute;
                right: 3.8vw;
                                bottom: 5.4vw;
        }



.titre{
    top: 1vw;
    font-size: 6.7vw;
    left: 1.85vw;
    position: absolute;
font-family: 'Tranche';
}

.texte{
    color: rgba(0, 12, 255, 1);
    line-height: 1.35vw;
    left: 3.9vw;
    top: 13vw;
    width: 16vw;
    font-family: 'IBMP';
    font-size: 0.9vw;
    position: absolute;
}

.site{
    right: 3.8vw;
    top: 13vw;
    font-family: 'IBMP';
    font-size: 0.9vw;
    position: absolute;
    z-index: 9;
}

.site a{
    text-decoration: none;
    color: black;
}

.site a:hover{
color: rgba(0, 12, 255, 1);
}

.gallery {
    padding: 0;
    margin: 0;
    position: relative;
}


@keyframes fall {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(0);
    }
}

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

.photo {
    position: relative; /* Nécessaire pour positionner les images absolument */
    overflow: hidden;
    display: inline-block;
}

.photo img {
    width: 100%; /* Remplit le conteneur en largeur */
    height: auto; /* Conserve les proportions */
    object-fit: contain; /* Ajuste pour éviter les coupures */
    display: block; /* Retire les espaces indésirables autour des images */
}


.photo.active {
    z-index: 10;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.8); /* blanc transparent */
    display: none; /* Assurez-vous que l'overlay est caché par défaut */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.overlay img {
    max-width: 90%;
    max-height: 80%; /* Laisse de la place pour la légende */
    object-fit: contain;
}

.caption {
    margin-top: 5vw;
    font-family: 'IBMP'; /* Assurez-vous que cette police est chargée */
    font-size: 0.8vw;
    color: black;
    text-align: center;
    max-width: 90%;
}


