/**
 * Ferry Recycling - Styles spécifiques pour la galerie
 */

/* Gallery Hero Section */
#gallery-hero {
    padding: 180px 0 80px;
    background: linear-gradient(to right, rgba(26, 101, 158, 0.8), rgba(59, 148, 94, 0.8)), url('../images/gallery-hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

#gallery-hero h1 {
    color: white;
    margin-bottom: 30px;
}

/* Gallery Filter Section */
#gallery-filter {
    padding: 40px 0;
    background-color: white;
    text-align: center;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.filter-btn {
    background-color: #F9F9F9;
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #e9e9e9;
}

.filter-btn.active {
    background-color: #1A659E;
    color: white;
}

/* Gallery Grid Section */
#gallery-grid {
    padding: 0 0 80px;
    background-color: white;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(20px);
}

.gallery-item.show {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.7));
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay-content {
    color: white;
    text-align: left;
}

.overlay-content h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: white;
}

.overlay-content p {
    font-size: 0.9rem;
    margin: 0;
}

.gallery-load-more {
    text-align: center;
    margin-top: 50px;
}

/* Video Section */
#video-section {
    padding: 80px 0;
    background-color: #F9F9F9;
}

.video-container {
    max-width: 800px;
    margin: 40px auto 0;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .filter-buttons {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
        justify-content: flex-start;
    }
    
    .filter-btn {
        flex: 0 0 auto;
    }
}

@media (max-width: 576px) {
    .gallery-container {
        grid-template-columns: 1fr;
    }
}
