/* Gallery Section Styles */
.gallery-section {
    padding: 2rem 0;
}

.gallery-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.media-filter,
.category-filter {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.media-btn,
.filter-btn {
    padding: 0.6rem 1.2rem;
    border: 1px solid #5F9E4F;
    background-color: transparent;
    color: #5F9E4F;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.media-btn:hover,
.filter-btn:hover {
    background-color: #5F9E4F;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(95, 158, 79, 0.3);
}

.media-btn.active,
.filter-btn.active {
    background-color: #5F9E4F;
    color: white;
    box-shadow: 0 3px 8px rgba(95, 158, 79, 0.3);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.8rem;
    padding: 0 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 16/9;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 1.2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
}

.gallery-item-overlay h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.gallery-item-overlay p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Video Container Styles */
.video-container {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    transition: all 0.3s ease;
}

.video-play-button i {
    color: white;
    font-size: 24px;
    margin-left: 5px;
}

.video-container:hover .video-play-button {
    background-color: rgba(95, 158, 79, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-fullscreen-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
}

.video-fullscreen-btn:hover {
    background-color: rgba(95, 158, 79, 0.8);
    transform: scale(1.1);
}

.video-volume-control {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    padding: 6px 12px;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-container:hover .video-volume-control {
    opacity: 1;
}

.volume-icon {
    color: white;
    margin-right: 8px;
    cursor: pointer;
}
 ::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

 ::-webkit-slider-thumb:hover {
    background: #5F9E4F;
    transform: scale(1.2);
}

 ::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

 ::-moz-range-thumb:hover {
    background: #5F9E4F;
    transform: scale(1.2);
}

/* Fullscreen Modal Styles */
.fullscreen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fullscreen-modal.active {
    display: flex;
    opacity: 1;
}  

.fullscreen-content {
    position: relative;
    width: 90%;
    height: 90%;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fullscreen-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: none;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.fullscreen-video {
    height: 100%;
    object-fit: contain;
    display: none;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 10px;
    transition: transform 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
}

.fullscreen-close:hover {
    transform: scale(1.1);
    background-color: rgba(95, 158, 79, 0.8);
}

.image-nav {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    z-index: 1001;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: rgba(95, 158, 79, 0.8);
    transform: scale(1.1);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #5F9E4F;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #4a7c3d;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Music Toggle Button */
.music-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #5F9E4F;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.music-toggle:hover {
    background: #4a7c3d;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.music-toggle.active {
    background: #4a7c3d;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.2rem;
    }

    .gallery-item-overlay {
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
    }

    .gallery-item-overlay h3 {
        font-size: 1.1rem;
    }

    .gallery-item-overlay p {
        font-size: 0.85rem;
    }

    .video-play-button {
        width: 50px;
        height: 50px;
    }

    .video-play-button i {
        font-size: 20px;
    }

    .prev-btn,
    .next-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .gallery-controls {
        flex-direction: column;
        align-items: center;
    }

    .media-filter,
    .category-filter {
        width: 100%;
        justify-content: center;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .fullscreen-content {
        max-width: 95%;
        max-height: 95%;
    }
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.gallery-item.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
}

/* Accessibility Improvements */
.media-btn:focus,
.filter-btn:focus,
.video-play-button:focus,
.video-fullscreen-btn:focus,
.prev-btn:focus,
.next-btn:focus,
.back-to-top:focus,
.music-toggle:focus {
    outline: 2px solid #5F9E4F;
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .gallery-item,
    .gallery-item-overlay,
    .video-play-button,
    .video-fullscreen-btn,
    .prev-btn,
    .next-btn,
    .back-to-top,
    .music-toggle {
        transition: none;
    }

    .gallery-item:hover {
        transform: none;
    }
}

.language-switcher {
    position: relative;
    display: inline-block;
    margin-left: 20px;
}

.current-language {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.current-language:hover {
    background: rgba(255, 255, 255, 0.2);
}

.current-language span {
    margin-right: 8px;
}

.language-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    margin-top: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.language-switcher.open .language-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-item {
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    color: #333;
}

.language-item:hover {
    background-color: #f5f5f5;
}

.language-item.active {
    background-color: #e9ecef;
    font-weight: 500;
}



.fullscreen-content:hover{
    opacity: 1;
}

.volume-icon {
    color: white;
    margin-right: 10px;
    cursor: pointer;
}

 ::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

 ::-webkit-slider-thumb:hover {
    background: #5F9E4F;
    transform: scale(1.2);
}

 ::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

 ::-moz-range-thumb:hover {
    background: #5F9E4F;
    transform: scale(1.2);
} 