body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

.lazy {
    display: block;
    width: 100%;
    height: auto;
}

.gallery-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.moment-section {
    margin-bottom: 40px;
}

.moment-section h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: #444;
}

.photos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.photo {
    flex-grow: 1;
    max-width: 200px;
    overflow: hidden;
}

.photo img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.photo img:hover {
    transform: scale(1.05);
}

.photo img.zoomed {
    position: fixed;
    top: 50%;
    left: 50%;
    width: auto;
    height: 80vh; /* Height set to 80% of the viewport height */
    transform: translate(-50%, -50%);
    z-index: 1000;
    border-radius: 0;
    cursor: zoom-out;
}

/* Overlay for zoomed image */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
    display: none;
	align-items: center;  /* Centrer verticalement */
    justify-content: center;  /* Centrer horizontalement */
	overflow: hidden;
}

@font-face {
    font-family: 'Cathalia';
    src: url('font/Cathalia.ttf') format('truetype');
}

.banner {
    position: relative;
    width: 100%;
    height: 300px;
    background: url('Banner.jpg') no-repeat center center;
    background-size: cover;
}

.banner h1 {
    font-family: 'Cathalia', sans-serif;
    color: white;
    font-size: 48px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
    padding: 20px;
    text-align: center;
    position: absolute;
    top: 0; /* Aligne le texte en haut de la bannière */
    left: 50%;
    transform: translateX(-50%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .banner {
        height: 200px;
    }

    .banner h1 {
        font-size: 36px;
    }

    .photo img {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .banner {
        height: 150px;
    }

    .banner h1 {
        font-size: 28px;
    }

    .photo img {
        height: 100px;
    }
}

.login-container {
    width: 90%;
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-container h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.login-container label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    color: #666;
}

.login-container input[type="password"] {
    width: 95%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.login-container button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.login-container button:hover {
    background-color: #0056b3;
}

.login-container .error {
    color: red;
    margin-bottom: 20px;
}

.loader-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	z-index: 1001;
}

.loader {
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid #3498db; /* Blue */
	border-radius: 50%;
	width: 60px;
	height: 60px;
	animation: spin 1s linear infinite;
	margin-bottom: 20px;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.loader-text {
	font-size: 18px;
}

.hidden {
	display: none;
}























.overlay img {
    max-width: 90%;
    max-height: 90%;
    transition: transform 0.3s ease;
	object-fit: contain; /* Assure que l'image est contenue dans l'overlay */
}

.zoomed {
    transform: scale(1.5);
    cursor: pointer;
    position: fixed;
    top: 50%;
    left: 50%;
    width: auto;
    height: 80vh; /* Height set to 80% of the viewport height */
    transform: translate(-50%, -50%);
    z-index: 1000;
    border-radius: 0;
    cursor: zoom-out;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1001;
}

.arrow.left {
    left: 10px;
}

.arrow.right {
    right: 10px;
}

@media (max-width: 768px) {
    .overlay img {
        max-width: 100%;
        max-height: 80%;
    }

    .arrow {
        padding: 8px;
    }
}
