/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* General Body Style */
body {
    font-family: "Helvetica", monospace;
    background-color: #212121;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 20px;
    max-width: 1200px;
}

h1 {
    font-size: 24px;
}

#contactButton {
    background-color: #f0a500;
    color: #212121;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-family: "Helvetica", monospace;
}

/* Gallery Grid */
/* Gallery Masonry Layout */
#gallery {
    column-count: 3; /* Nombre de colonnes maximum */
    column-gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 20px;
}

#gallery img {
    width: 100%; /* Ajuster l'image à la largeur de la colonne */
    margin-bottom: 20px;
    display: block;
    transition: transform 0.3s ease;
    cursor: pointer;
}

/* Hover Effect */
#gallery img:hover {
    transform: scale(1.05);
}

/* Modal Styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 100;
    padding-top: 1%;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    display: block;
    margin: auto;
    width: auto;
    height: 96vh; /* Maximiser la hauteur pour utiliser presque tout l'écran */
    max-width: 90vw; /* Limiter la largeur pour éviter le débordement */
    object-fit: contain; /* Ajuster l'image pour qu'elle garde son ratio d'origine */
}

body.modal-open header {
    display: none;
}	

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

/* Previous and Next buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: #fff;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s;
    user-select: none;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.prev:hover, .next:hover {
    color: #f0a500;
}

