html{
    --font-celtic:'Celtic', Arial, sans-serif;
    --font-arial:'Arial Rounded', Arial, sans-serif;
    --btn-color: #996533;
    --bg-color-brown: #996533;
    --white: #ffffff;
    --black: #000000;
    --dark-primary: #7a502a;
    --light-primary: #c49b76;
}

@font-face {
    font-family: 'Celtic';
    src: url('../fonts/CELTG___.TTF') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Arial Rounded';
    src: url('../fonts/arlrdbd.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}



header {
    color: var(--dark-primary);
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

h1 {
    font-family: var(--font-celtic);
    font-size: 2.5rem;
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.gallery-intro {
    text-align: center;
    margin-bottom: 2rem;
    background-color: var(--bg-color-brown);
    color: var(--white);
    font-family: var(--font-arial);
    padding: 1rem;
    border-radius: 10px;
}

.gallery-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-btn {
    background-color: var(--light-primary);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-arial);
    font-weight: bold;
    transition: background-color 0.3s;
}

.category-btn:hover, .category-btn.active {
    background-color: var(--dark-primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

..gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    position: relative;
}

.gallery-item:hover {
    transform: scale(1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.gallery-image-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease-in-out;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.5);
    object-fit: contain;
}

.gallery-caption {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s;
    z-index: 2;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}


.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-content {
    max-width: 80%;
    max-height: 80%;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    border: 3px solid var(--white);
}

.lightbox-caption {
    color: var(--white);
    padding: 1rem;
    text-align: center;
    font-size: 1.2rem;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 2rem;
    box-sizing: border-box;
}

.lightbox-prev, .lightbox-next {
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
    margin-top: -25px;
    transition: color 0.3s;
}

.lightbox-prev:hover, .lightbox-next:hover {
    color: var(--light-primary);
}

.gallery-intro-facebook{
    font-style: italic;
}
.coordonnee_item-facebook{
    text-decoration: none;
    color: var(--white);
    font-family: var(--font-arial);
    font-size: 1.6rem;
    padding: 1rem;
}

.coordonnee_item-facebook:hover{
    transition: color 0.3s;
    color: #c49b76;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .lightbox-content {
        max-width: 95%;
    }
}