* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cormorant', serif;
}

header {
    text-align: center;
    padding: 20px;
    background-color: #FCF8F2;
    color: rgb(0, 0, 0);
}

header.cover {
    height: 100vh;
}
.lazy {
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.5s ease, filter 0.5s ease;
}

.lazy.loaded {
    opacity: 1;
    filter: blur(0);
}

.cover-media {
    height: 70vh;
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: rgb(0, 0, 0);
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    align-items: center;
}

.cover-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.cover-date,
.cover-photographer {
    font-size: 1.2rem;
    margin: 0.2rem 0;
}

.cover-date {
    margin-top: 30px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
}

.scroll-button {
    margin: 15px;
    padding: 15px;
    background-color: #304b34; /* Vert foncé */
    color: white; /* Texte blanc */
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s, transform 0.3s; /* Ajoute une transition pour le hover */
}

.scroll-button:hover {
    background-color: #032603; /* Vert plus foncé au survol */
    transform: scale(1.05); /* Légère agrandissement du bouton */
    color: white; /* Texte toujours en blanc */
}


nav {
    text-align: center;
}
.Hello {
    
    color: inherit;         /* Prend la couleur du texte environnant */
  }

nav button {
    margin: 15px;
    padding: 15px;
    color: rgb(0, 0, 0);
    border: none;
    cursor: pointer;
    font-size: 1.1em;
}

nav button:hover {
    background-color: #444;
    color: white;
}

nav :last-child {
    border-radius: 5px;
    background-color: white;
    border: solid 1px;
}

/* Styles pour rendre la barre de filtre fixe */
nav {
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease-in-out;
}

nav.sticky {
    background-color: #FCF8F2; /* Changez la couleur du fond lorsque le filtre devient fixe */
}

html {
    scroll-behavior: smooth;
}

main {
    padding: 20px;
}

#gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    justify-items: center;
}

.photo {
    position: relative;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px;
    display: inline-block;
    max-width: 100%; /* Assurez-vous que les photos ne dépassent pas de leur conteneur */
}

.photo img, .photo video {
    width: auto;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

.download-btn, .fullscreen-btn {
    position: absolute;
    bottom: 10px;
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    cursor: pointer;
}

.download-btn {
    left: 10px;
}

.fullscreen-btn {
    right: 10px;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: white;
}

/* Style for the fullscreen overlay */
.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.fullscreen-overlay {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.fullscreen-overlay img {
    width: 100%;
    height: auto;
    max-height: 80vh;
}

.fullscreen-overlay video {
    width: 100%;
    height: auto;
    max-height: 80vh;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 10px;
    background: rgba(255, 0, 0, 0.7);
    color: white;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
}

.close-btn:hover {
    background: rgba(255, 0, 0, 0.9);
}

/* Media queries pour les petits écrans */
@media screen and (max-width: 768px) {
    header {
        padding: 10px;
    }

    .cover-title {
        font-size: 2.5rem;
    }

    .cover-date,
    .cover-photographer {
        font-size: 1rem;
    }

    .cover-content {
        flex-direction: column;
    }

    nav button {
        font-size: 1em;
        padding: 10px;
    }

    #gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .scroll-button {
        padding: 12px;
        font-size: 1em;
    }
}

/* Media queries pour les très petits écrans (téléphones mobiles) */
@media screen and (max-width: 480px) {
    header {
        padding: 5px;
    }

    .cover-title {
        font-size: 2rem;
    }

    .cover-content {
        margin-top: 10px;
        flex-direction: column;
    }

    .cover-date,
    .cover-photographer {
        font-size: 0.9rem;
    }

    nav button {
        padding: 8px;
        font-size: 0.9em;
    }

    .scroll-button {
        padding: 10px;
        font-size: 0.9em;
    }

    #gallery {
        grid-template-columns: 1fr; /* Une seule colonne pour les petits écrans */
    }
}
