.gallery-page-hero {
    background: linear-gradient(135deg, #5B2C6F 0%, #7B4397 50%, #5B2C6F 100%);
    padding: 80px 24px 60px;
    text-align: center;
    color: #fff;
}

.gallery-page-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
}

.gallery-page-hero p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 32px;
    opacity: 0.92;
    line-height: 1.6;
}

.gallery-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.gallery-stat {
    text-align: center;
}

.gallery-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #FABB0E;
    display: block;
}

.gallery-stat-label {
    font-size: 0.85rem;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gallery-main {
    padding: 60px 24px 100px;
    max-width: 1280px;
    margin: 0 auto;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.gallery-filter-btn {
    padding: 10px 22px;
    border: 2px solid #5B2C6F;
    border-radius: 50px;
    background: transparent;
    color: #5B2C6F;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
    background: #5B2C6F;
    color: #fff;
}

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

.gallery-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #f5f0f0;
    box-shadow: 0 4px 20px rgba(91, 44, 111, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(91, 44, 111, 0.2);
}

.gallery-card-media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.gallery-card-media img,
.gallery-card-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-card-media img,
.gallery-card:hover .gallery-card-media video {
    transform: scale(1.05);
}

.gallery-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(91, 44, 111, 0.85) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

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

.gallery-card-title {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
}

.gallery-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #FABB0E;
    color: #5B2C6F;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.gallery-card-badge.video {
    background: #5B2C6F;
    color: #FABB0E;
}

.gallery-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5B2C6F;
    font-size: 1.2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Lightbox */
.gallery-lightbox-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.gallery-lightbox-modal.open {
    display: flex;
}

.gallery-lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.gallery-lightbox-content img,
.gallery-lightbox-content video {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 12px;
    object-fit: contain;
}

.gallery-lightbox-close {
    position: absolute;
    top: -48px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.gallery-lightbox-close:hover {
    opacity: 1;
}

.gallery-lightbox-caption {
    text-align: center;
    color: #fff;
    margin-top: 16px;
    font-size: 1.1rem;
    font-weight: 500;
}

.gallery-cta {
    text-align: center;
    margin-top: 60px;
    padding: 48px 24px;
    background: linear-gradient(135deg, #f1c376 0%, #FABB0E 100%);
    border-radius: 20px;
}

.gallery-cta h2 {
    color: #5B2C6F;
    margin-bottom: 12px;
}

.gallery-cta p {
    color: #5B2C6F;
    opacity: 0.85;
    margin-bottom: 24px;
}

[data-theme="dark"] .gallery-filter-btn {
    color: #C9A0DC;
    border-color: #C9A0DC;
}

[data-theme="dark"] .gallery-filter-btn:hover,
[data-theme="dark"] .gallery-filter-btn.active {
    background: #C9A0DC;
    color: #1a1a2e;
}

[data-theme="dark"] .gallery-card {
    background: #2a2a3e;
}

@media (max-width: 768px) {
    .gallery-page-hero {
        padding: 60px 16px 40px;
    }

    .gallery-main {
        padding: 40px 16px 80px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }

    .gallery-stats {
        gap: 24px;
    }
}
