
/* Filter Buttons */
.gallery-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.filter-btn.active {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

/* Gallery Grid */
.gallery-grid {
    display: flex;
    gap: 15px;
    margin-bottom: 2rem;
    flex-direction: column;
}

/* Gallery Card */
.gallery-card {
    background: white;
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Gallery Card Image */
.gallery-card-image {
    display: block;
    position: relative;
    width: 30%;
    overflow: hidden;
    background: #f0f0f0;
}

.gallery-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-card-image img {
    transform: scale(1.05);
}

.video-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Gallery Overlay */
.gallery-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Type Badge */
.gallery-type-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    align-self: flex-start;
}

.gallery-type-badge.image {
    background: rgba(59, 130, 246, 0.9);
    color: white;
}

.gallery-type-badge.video {
    background: rgba(147, 51, 234, 0.9);
    color: white;
}

/* Play Icon */
.play-icon {
    margin-bottom: 2rem;
}

/* Gallery Card Content */
.gallery-card-content {
    padding: 1.5rem;
}

.gallery-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.gallery-card-title a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.gallery-card-title a:hover {
    color: #007bff;
}

.gallery-card-lead {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Meta Info */
.gallery-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.gallery-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* View Button */
.gallery-card-viewbtn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.gallery-card-viewbtn:hover {
    background: #0056b3;
}

/* No Gallery Message */
.no-gallery-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
}

.no-gallery-message svg {
    margin: 0 auto 1rem;
    color: #cbd5e0;
}

.no-gallery-message h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.no-gallery-message p {
    color: #718096;
}

/* Pagination */
.gallery-pagination {
    margin-top: 2rem;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .gallery-card {
        background: #2d3748;
    }

    .gallery-card-title a {
        color: #f7fafc;
    }

    .filter-btn {
        background: #2d3748;
        border-color: #4a5568;
        color: #f7fafc;
    }

    .filter-btn:hover {
        background: #4a5568;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }

    .gallery-card-image {
        height: 200px;
    }
}
