* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
   font-family: Arial, sans-serif;
   background-color: #f5f5f5;
}

.gallery-section {
   padding: 2rem;
   margin: 2rem;
   background: white;
   border-radius: 8px;
   box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.section-title {
   margin-bottom: 1rem;
   color: #333;
   font-size: 1.5rem;
}

.photo-grid {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
   gap: 1rem;
}

.photo-item {
   cursor: pointer;
   overflow: hidden;
   border-radius: 4px;
   height: 200px;
}

.photo-item img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   transition: transform 0.3s ease;
}

.photo-item:hover img {
   transform: scale(1.05);
}

/* Nouveau style pour le modal */
.modal {
   display: none;
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-color: rgba(0,0,0,0.8);
   z-index: 1000;
   display: flex;
   justify-content: center;
   align-items: center;
}

.modal-content {
   position: relative;
   width: 90%;
   max-width: 800px;
   max-height: 90vh;
   background-color: white;
   border-radius: 8px;
   overflow: hidden;
   display: flex;
   flex-direction: column;
}

.modal-header {
   padding: 1rem;
   background-color: #f8f8f8;
   border-bottom: 1px solid #eee;
   display: flex;
   justify-content: space-between;
   align-items: center;
}

.modal-body {
   flex: 1;
   display: flex;
   justify-content: center;
   align-items: center;
   padding: 1rem;
   background-color: #fff;
   min-height: 400px;
   overflow: hidden;
}

.modal-main-image {
   max-height: 50vh;
   max-width: 100%;
   object-fit: contain;
}

.modal-footer {
   background: #f8f8f8;
   padding: 1rem;
   display: flex;
   gap: 0.5rem;
   overflow-x: auto;
   border-top: 1px solid #eee;
}

.modal-thumbnail {
   width: 80px;
   height: 80px;
   object-fit: cover;
   cursor: pointer;
   opacity: 0.6;
   transition: opacity 0.3s ease;
   border-radius: 4px;
}

.modal-thumbnail:hover {
   opacity: 1;
}

.modal-thumbnail.active {
   opacity: 1;
   border: 2px solid #007bff;
}

.close-modal {
   cursor: pointer;
   font-size: 1.5rem;
   color: #666;
   transition: color 0.3s ease;
   width: 30px;
   height: 30px;
   display: flex;
   align-items: center;
   justify-content: center;
   border-radius: 50%;
   background-color: #eee;
}

.close-modal:hover {
   color: #333;
   background-color: #ddd;
}

@media (max-width: 768px) {
   .modal-content {
       width: 95%;
       height: 95vh;
   }
}