/* Gallery Hero Section */
.gallery-hero {
    background: linear-gradient(135deg, #062a30 0%, #0d4e58 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.gallery-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.gallery-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Gallery Container */
.gallery-container {
    padding: 80px 0;
    background: #f7fbfb;
}

/* Filter Section */
.filter-section {
    text-align: center;
    margin-bottom: 50px;
}

.filter-buttons {
    display: inline-flex;
    background: white;
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    gap: 8px;
}

.filter-btn {
    background: transparent;
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.filter-btn:hover {
    background: rgba(52, 214, 146, 0.12);
    color: #0b1f24;
}

.filter-btn.active {
    background: #0cac6b;
    color: white;
    box-shadow: 0 2px 8px rgba(12,172,107,0.30);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.gallery-item {
    cursor: pointer;
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.gallery-item-container {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Video Overlay */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.3), rgba(0,0,0,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button {
    background: rgba(255,255,255,0.9);
    color: #0cac6b;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.gallery-item:hover .play-button {
    transform: scale(1.1);
    background: #0cac6b;
    color: white;
}

/* Gallery Item Overlay */
.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 70%, transparent 100%);
    color: white;
    padding: 30px 25px 25px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
}

.gallery-item-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #0cac6b;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.gallery-item-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
    opacity: 0.9;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-item-date {
    font-size: 0.85rem;
    opacity: 0.7;
    font-weight: 500;
}

/* Gallery Item Badge */
.gallery-item-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.95);
    color: #0cac6b;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
}

.gallery-item:hover .gallery-item-badge {
    opacity: 1;
    transform: scale(1);
}

/* No Media Message */
.no-media-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.no-media-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.no-media-message h3 {
    font-size: 1.8rem;
    color: #0b1f24;
    margin-bottom: 15px;
}

.no-media-message p {
    color: #6b7280;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 80vh;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox img,
.lightbox video {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #0cac6b;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    color: #0cac6b;
    transition: all 0.3s ease;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    background: #0cac6b;
    color: white;
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: #0cac6b;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #0cac6b;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    user-select: none;
    backdrop-filter: blur(10px);
}

.lightbox-nav:hover {
    background: #0cac6b;
    color: white;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-info {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.8);
    padding: 25px 40px;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 80%;
}

.lightbox-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #0cac6b;
}

.lightbox-description {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 15px;
    opacity: 0.9;
}

.lightbox-date {
    font-size: 0.9rem;
    opacity: 0.7;
    font-weight: 500;
}

/* Fade out animation for filtering */
@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(20px) scale(0.95); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-hero {
        padding: 80px 0 60px;
    }
    
    .gallery-hero h1 {
        font-size: 2rem;
    }
    
    .gallery-hero p {
        font-size: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-item-container {
        height: 250px;
    }
    
    .filter-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    .lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 20px;
        top: 20px;
        right: 20px;
    }
    
    .lightbox-info {
        bottom: 20px;
        padding: 20px 25px;
        max-width: 90%;
    }
    
    .lightbox-title {
        font-size: 1.2rem;
    }
    
    .lightbox-description {
        font-size: 0.9rem;
    }
    
    .lightbox-date {
        font-size: 0.8rem;
    }
}

/* Animation for gallery items */
@keyframes galleryItemEnter {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.gallery-item {
    animation: galleryItemEnter 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }
.gallery-item:nth-child(n+7) { animation-delay: 0.7s; }
