.photo-gallery-container {
    background: linear-gradient(
        135deg,
        rgb(94, 180, 174) 0%,
        rgb(69, 144, 150) 100%
    );
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
}

.gallery-track {
    display: flex;
    height: 100%;
    transition: transform 0.8s ease-in-out;
}

.gallery-item {
    flex-shrink: 0;
    width: 400px;
    height: 280px;
    margin: 10px 15px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-nav:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
    left: 20px;
}

.gallery-nav.next {
    right: 20px;
}

.gallery-expanded {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 1000;
    display: none;
    flex-direction: column;
}

.expanded-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
}

.expanded-image {
    max-width: 90%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background-color: #f0f0f0; /* Pour voir si l'élément existe */
    min-width: 200px; /* Taille minimum pour debug */
    min-height: 200px; /* Taille minimum pour debug */
}

.expanded-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.2);
    border: none;
    color: #333;
    font-size: 30px;
    padding: 20px 25px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.expanded-nav:hover {
    background: rgba(0, 0, 0, 0.4);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.expanded-nav.prev {
    left: 30px;
}

.expanded-nav.next {
    right: 30px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: #333;
    font-size: 40px;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s ease;
}

.close-btn:hover {
    transform: scale(1.2);
    color: #000;
}

.thumbnails-container {
    height: 120px;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    padding: 10px 20px;
    overflow: hidden;
    position: relative;
}

.thumbnails-track {
    display: flex;
    transition: transform 0.4s ease;
    gap: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.thumbnail:hover {
    border-color: #5eb4ae;
    transform: scale(1.1);
}

.thumbnail.active {
    border-color: #5eb4ae;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(94, 180, 174, 0.4);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
}
