/* ============================================================
   Carnival Gallery - Frontend Styles
   ============================================================ */

/* Reset & Custom Properties */
.cg-gallery-page {
    --cg-gold: #FFFFFF;
    --cg-gold-dark: #E2E8F0;
    --cg-navy: #0F172A;
    --cg-navy-light: #1E293B;
    --cg-bg: #0F172A;
    --cg-bg-card: #1E293B;
    --cg-text: #FFFFFF;
    --cg-text-muted: #94A3B8;
    --cg-text-light: #CBD5E1;
    --cg-border: rgba(255, 255, 255, 0.1);
    --cg-border-light: rgba(255, 255, 255, 0.2);
    --cg-blur: 12px;
    --cg-radius: 16px;
    --cg-radius-sm: 8px;
    --cg-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --cg-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --cg-max-width: 1280px;

    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--cg-bg);
    color: var(--cg-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.cg-gallery-page *,
.cg-gallery-page *::before,
.cg-gallery-page *::after {
    box-sizing: border-box;
}

/* ============================================================
   LIGHT MODE THEME
   ============================================================ */
.cg-gallery-page.cg-light {
    --cg-gold: #FFFFFF;
    --cg-gold-dark: #E2E8F0;
    --cg-navy: #1E293B;
    --cg-navy-light: #334155;
    --cg-bg: #F8FAFC;
    --cg-bg-card: #FFFFFF;
    --cg-text: #0F172A;
    --cg-text-muted: #64748B;
    --cg-text-light: #475569;
    --cg-border: rgba(0, 0, 0, 0.08);
    --cg-border-light: rgba(0, 0, 0, 0.15);
    --cg-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.cg-gallery-page.cg-light .cg-hero-overlay {
    background: linear-gradient(
        to bottom,
        rgba(248, 250, 252, 0.1) 0%,
        rgba(248, 250, 252, 0.4) 50%,
        rgba(248, 250, 252, 1) 100%
    );
}

.cg-gallery-page.cg-light .cg-hero-title {
    background: linear-gradient(135deg, var(--cg-navy) 0%, var(--cg-gold) 50%, var(--cg-navy) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@supports not (-webkit-background-clip: text) {
    .cg-gallery-page.cg-light .cg-hero-title {
        color: var(--cg-navy);
        text-shadow: none;
    }
}

.cg-gallery-page.cg-light .cg-hero-subtitle {
    color: var(--cg-text-light);
    text-shadow: none;
}

.cg-gallery-page.cg-light .cg-hero:not([style*="background-image"]),
.cg-gallery-page.cg-light .cg-hero[style*="background-image: url('');"] {
    background: linear-gradient(135deg,
        #F8FAFC 0%,
        #EDE9FE 25%,
        #FEF3C7 50%,
        #EDE9FE 75%,
        #F8FAFC 100%
    );
    background-size: 400% 400%;
    animation: cgHeroGradient 15s ease infinite;
}

.cg-gallery-page.cg-light .cg-hero-back {
    color: var(--cg-navy);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
}

.cg-gallery-page.cg-light .cg-hero-back:hover {
    color: var(--cg-navy);
    background: rgba(255, 255, 255, 0.9);
}

.cg-gallery-page.cg-light .cg-hero-particle {
    background: var(--cg-gold-dark);
}

.cg-gallery-page.cg-light .cg-controls {
    background: rgba(248, 250, 252, 0.9);
    border-bottom-color: var(--cg-border);
}

.cg-gallery-page.cg-light .cg-controls.cg-controls-stuck {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.cg-gallery-page.cg-light .cg-filter-btn:hover {
    background: rgba(0, 0, 0, 0.04);
}

.cg-gallery-page.cg-light .cg-filter-cat.active {
    background: var(--cg-navy);
    border-color: var(--cg-navy);
    color: #fff;
}

.cg-gallery-page.cg-light .cg-gallery-item {
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.cg-gallery-page.cg-light .cg-gallery-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.cg-gallery-page.cg-light .cg-item-overlay {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.15) 40%, transparent 70%);
}

/* Keep overlay text white even in light mode */
.cg-gallery-page.cg-light .cg-item-title,
.cg-gallery-page.cg-light .cg-item-meta,
.cg-gallery-page.cg-light .cg-item-photographer {
    color: inherit;
}

.cg-gallery-page.cg-light .cg-hof-card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cg-gallery-page.cg-light .cg-btn-load-more {
    background: rgba(0, 0, 0, 0.04);
    border-color: var(--cg-border);
    color: var(--cg-text);
}

.cg-gallery-page.cg-light .cg-btn-load-more:hover {
    background: var(--cg-navy);
    color: #fff;
    border-color: var(--cg-navy);
}

.cg-gallery-page.cg-light .cg-empty-state {
    border-color: var(--cg-border);
}

.cg-gallery-page.cg-light .cg-video-card {
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ============================================================
   LQIP BLUR-UP PLACEHOLDERS
   ============================================================ */
.cg-gallery-item.cg-has-lqip {
    position: relative;
    overflow: hidden;
}

/* Tiny placeholder image: scaled up with blur */
.cg-lqip-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(20px);
    transform: scale(1.1); /* Prevent blur edge artifacts */
    z-index: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

/* Real image sits above placeholder, starts transparent */
.cg-gallery-item.cg-has-lqip .cg-gallery-img {
    position: relative;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Once loaded, show the real image and fade out the placeholder */
.cg-gallery-item.cg-has-lqip.cg-lqip-loaded .cg-gallery-img {
    opacity: 1;
}

.cg-gallery-item.cg-has-lqip.cg-lqip-loaded .cg-lqip-placeholder {
    opacity: 0;
    pointer-events: none;
}

/* ============================================================
   CONTENT PROTECTION
   ============================================================ */
.cg-gallery-page img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: auto;
    -webkit-touch-callout: none;
}

/* Transparent overlay on gallery images to block save-as */
.cg-gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: transparent;
}

/* Keep the hover overlay above the protection layer */
.cg-item-overlay {
    z-index: 2;
}

/* Transparent overlay on Hall of Fame cards */
.cg-hof-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: transparent;
}

.cg-hof-card-overlay,
.cg-hof-card-info {
    z-index: 2;
}

/* Transparent overlay on video thumbnails */
.cg-video-card-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    background: transparent;
}

.cg-video-play-overlay {
    z-index: 4;
}

/* Protection on lightbox images */
.cg-lightbox-image {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

/* Disable video downloads in player modal */
.cg-video-player-container video::-webkit-media-controls-enclosure {
    overflow: hidden;
}

.cg-video-player-container video::-webkit-media-controls-panel {
    width: calc(100% + 30px);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.cg-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    max-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: var(--cg-navy);
}

/* Animated gradient fallback when no hero image is set */
.cg-hero:not([style*="background-image"]),
.cg-hero[style*="background-image: url('');"] {
    background: linear-gradient(135deg,
        #0F172A 0%,
        #1a1040 15%,
        #2d1b4e 30%,
        #1a1040 45%,
        #0F172A 55%,
        #0a1628 70%,
        #1a1040 85%,
        #0F172A 100%
    );
    background-size: 400% 400%;
    animation: cgHeroGradient 15s ease infinite;
}

@keyframes cgHeroGradient {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

/* Decorative corner accents for hero */
.cg-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    z-index: 0;
    animation: cgHeroPulse 8s ease-in-out infinite;
}

.cg-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    z-index: 0;
    animation: cgHeroPulse 10s ease-in-out infinite reverse;
}

@keyframes cgHeroPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
}

@supports (-webkit-touch-callout: none) {
    .cg-hero {
        background-attachment: scroll;
    }
}

.cg-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 23, 42, 0.3) 0%,
        rgba(15, 23, 42, 0.6) 50%,
        rgba(15, 23, 42, 1) 100%
    );
    z-index: 1;
}

.cg-hero-texture {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    mix-blend-mode: overlay;
    z-index: 2;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2px,
        rgba(255,255,255,0.03) 2px,
        rgba(255,255,255,0.03) 4px
    );
}

/* Floating particles container */
.cg-hero-particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.cg-hero-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--cg-gold);
    opacity: 0;
    animation: cgParticleFloat linear infinite;
}

.cg-hero-particle:nth-child(1) { left: 10%; animation-duration: 12s; animation-delay: 0s; width: 3px; height: 3px; }
.cg-hero-particle:nth-child(2) { left: 25%; animation-duration: 10s; animation-delay: 2s; width: 5px; height: 5px; }
.cg-hero-particle:nth-child(3) { left: 40%; animation-duration: 14s; animation-delay: 4s; width: 3px; height: 3px; }
.cg-hero-particle:nth-child(4) { left: 55%; animation-duration: 11s; animation-delay: 1s; width: 4px; height: 4px; }
.cg-hero-particle:nth-child(5) { left: 70%; animation-duration: 13s; animation-delay: 3s; width: 6px; height: 6px; }
.cg-hero-particle:nth-child(6) { left: 85%; animation-duration: 9s;  animation-delay: 5s; width: 3px; height: 3px; }
.cg-hero-particle:nth-child(7) { left: 15%; animation-duration: 15s; animation-delay: 6s; width: 4px; height: 4px; }
.cg-hero-particle:nth-child(8) { left: 50%; animation-duration: 10s; animation-delay: 7s; width: 5px; height: 5px; }
.cg-hero-particle:nth-child(9) { left: 65%; animation-duration: 12s; animation-delay: 2.5s; width: 3px; height: 3px; }
.cg-hero-particle:nth-child(10) { left: 80%; animation-duration: 11s; animation-delay: 4.5s; width: 4px; height: 4px; }
.cg-hero-particle:nth-child(11) { left: 35%; animation-duration: 14s; animation-delay: 1.5s; width: 3px; height: 3px; }
.cg-hero-particle:nth-child(12) { left: 92%; animation-duration: 13s; animation-delay: 3.5s; width: 5px; height: 5px; }

@keyframes cgParticleFloat {
    0% { bottom: -10%; opacity: 0; transform: translateX(0); }
    10% { opacity: 0.6; }
    50% { opacity: 0.3; }
    90% { opacity: 0.5; }
    100% { bottom: 110%; opacity: 0; transform: translateX(40px); }
}

.cg-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
    animation: cgFadeInUp 0.8s ease-out;
}

.cg-hero-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cg-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 12px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 20px;
    border-radius: 9999px;
    margin-bottom: 24px;
    transition: var(--cg-transition);
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.2);
}

.cg-hero-back:hover {
    color: var(--cg-text);
    border-color: var(--cg-text);
    background: rgba(255, 255, 255, 0.1);
}

.cg-hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 20px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 50%, #FFFFFF 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: cgTitleShimmer 4s ease-in-out infinite;
    text-shadow: none;
}

@keyframes cgTitleShimmer {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

/* Fallback for browsers that don't support background-clip: text */
@supports not (-webkit-background-clip: text) {
    .cg-hero-title {
        color: var(--cg-text);
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
}

.cg-hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--cg-text-light);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: cgFadeInUp 0.8s ease-out 0.3s both;
}

/* Decorative divider below subtitle */
.cg-hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    animation: cgFadeInUp 0.8s ease-out 0.5s both;
}

.cg-hero-divider-line {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cg-gold), transparent);
}

.cg-hero-divider-diamond {
    width: 8px;
    height: 8px;
    background: var(--cg-gold);
    transform: rotate(45deg);
    flex-shrink: 0;
}

/* Scroll indicator at bottom of hero */
.cg-hero-scroll {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--cg-text-muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.6;
    transition: opacity var(--cg-transition);
    cursor: pointer;
    animation: cgFadeInUp 0.8s ease-out 0.7s both;
}

.cg-hero-scroll:hover {
    opacity: 1;
    color: var(--cg-gold);
}

.cg-hero-scroll-mouse {
    width: 24px;
    height: 36px;
    border: 2px solid currentColor;
    border-radius: 12px;
    position: relative;
    display: flex;
    justify-content: center;
}

.cg-hero-scroll-wheel {
    width: 3px;
    height: 8px;
    background: currentColor;
    border-radius: 2px;
    margin-top: 6px;
    animation: cgScrollWheel 2s ease-in-out infinite;
}

@keyframes cgScrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(6px); opacity: 0.3; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Photo count badge on hero */
.cg-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--cg-gold);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 9999px;
    margin-top: 20px;
    animation: cgFadeInUp 0.8s ease-out 0.4s both;
}

/* ============================================================
   HALL OF FAME
   ============================================================ */
.cg-hof-section {
    position: relative;
    z-index: 10;
    margin-top: -64px;
    margin-bottom: 48px;
}

.cg-hof-wrapper {
    max-width: var(--cg-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.cg-hof-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-left: 4px;
    color: var(--cg-gold);
}

.cg-hof-header h3 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0;
    color: var(--cg-gold);
}

.cg-hof-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 24px;
    scrollbar-width: none;
    cursor: grab;
}

.cg-hof-scroll::-webkit-scrollbar {
    display: none;
}

.cg-hof-scroll:active {
    cursor: grabbing;
}

.cg-hof-card {
    flex: 0 0 288px;
    height: 192px;
    scroll-snap-align: start;
    border-radius: var(--cg-radius);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--cg-border);
    box-shadow: var(--cg-shadow);
    cursor: pointer;
}

.cg-hof-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.cg-hof-card:hover img {
    transform: scale(1.1);
}

.cg-hof-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
}

.cg-hof-card-info {
    position: absolute;
    bottom: 16px;
    left: 16px;
}

.cg-hof-card-year {
    display: inline-block;
    background: var(--cg-gold);
    color: var(--cg-navy);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 4px;
    margin-bottom: 4px;
}

.cg-hof-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--cg-text);
    margin: 4px 0 0;
}

/* ============================================================
   CONTROLS BAR (STICKY)
   ============================================================ */
.cg-controls {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--cg-border);
    transition: box-shadow var(--cg-transition);
}

.cg-controls.cg-controls-stuck {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.cg-controls-inner {
    max-width: var(--cg-max-width);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.cg-controls-divider {
    width: 1px;
    height: 32px;
    background: var(--cg-border);
}

.cg-filter-group {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    flex-shrink: 0;
}

.cg-filter-group::-webkit-scrollbar {
    display: none;
}

.cg-filter-btn {
    padding: 8px 18px;
    border: 1px solid var(--cg-border-light);
    border-radius: 9999px;
    background: transparent;
    color: var(--cg-text-muted);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: all var(--cg-transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}

.cg-filter-btn:hover {
    color: var(--cg-text);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

/* Year filter active */
.cg-filter-year.active {
    background: var(--cg-gold);
    border-color: var(--cg-gold);
    color: var(--cg-navy);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* Category filter active */
.cg-filter-cat.active {
    background: var(--cg-navy-light);
    border-color: var(--cg-navy-light);
    color: var(--cg-text);
    font-weight: 600;
}

.cg-filter-icon {
    display: none;
}

.cg-filter-cat.active .cg-filter-icon {
    display: inline-block;
}

/* ============================================================
   MASONRY GALLERY GRID
   ============================================================ */
.cg-gallery-section {
    max-width: var(--cg-max-width);
    margin: 0 auto;
    padding: 32px 24px 64px;
}

.cg-gallery-grid {
    column-count: 3;
    column-gap: 20px;
    transition: opacity var(--cg-transition);
}

.cg-gallery-grid.cg-loading {
    opacity: 0.4;
    pointer-events: none;
}

.cg-gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: var(--cg-radius);
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: box-shadow var(--cg-transition), transform var(--cg-transition);
    animation: cgFadeInUp 0.5s ease-out both;
    background: var(--cg-bg-card);
}

.cg-gallery-item:hover {
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.1);
}

.cg-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s ease;
}

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

/* Hover Overlay */
.cg-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(15, 23, 42, 0.9) 0%,
        rgba(15, 23, 42, 0.2) 40%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity var(--cg-transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

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

.cg-item-overlay-top {
    display: flex;
    justify-content: flex-end;
}

.cg-item-zoom {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    color: var(--cg-text);
    transform: translateY(-8px);
    opacity: 0;
    transition: all var(--cg-transition);
}

.cg-gallery-item:hover .cg-item-zoom {
    transform: translateY(0);
    opacity: 1;
}

.cg-item-info {
    transform: translateY(12px);
    transition: transform var(--cg-transition);
}

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

.cg-item-meta {
    display: block;
    color: var(--cg-gold);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.cg-item-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--cg-text);
    margin: 0;
    line-height: 1.3;
}

.cg-item-photographer {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--cg-text-muted);
    margin-top: 4px;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.cg-empty-state {
    text-align: center;
    padding: 80px 24px;
    border: 2px dashed var(--cg-border);
    border-radius: 24px;
    color: var(--cg-text-muted);
}

.cg-empty-state svg {
    color: #475569;
    margin-bottom: 16px;
}

.cg-empty-state h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--cg-text);
    margin: 0 0 8px;
}

.cg-empty-state p {
    margin: 0 0 24px;
}

.cg-btn-reset {
    background: none;
    border: none;
    color: var(--cg-gold);
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.cg-btn-reset:hover {
    color: var(--cg-gold-dark);
}

/* Gallery Footer */
.cg-gallery-footer {
    text-align: center;
    margin-top: 48px;
}

.cg-photo-count {
    color: var(--cg-text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.cg-btn-load-more {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--cg-border);
    color: var(--cg-text-muted);
    font-weight: 700;
    font-size: 15px;
    padding: 14px 36px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all var(--cg-transition);
    font-family: inherit;
}

.cg-btn-load-more:hover {
    background: var(--cg-text);
    color: var(--cg-navy);
    border-color: var(--cg-text);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.cg-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cg-lightbox.cg-lightbox-open {
    opacity: 1;
    visibility: visible;
}

.cg-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

/* Close Button */
.cg-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--cg-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--cg-transition);
}

.cg-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Nav Buttons */
.cg-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--cg-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    transition: all var(--cg-transition);
}

.cg-lightbox-prev {
    left: 16px;
}

.cg-lightbox-next {
    right: 16px;
}

.cg-lightbox-nav:hover {
    background: var(--cg-gold);
    color: var(--cg-navy);
}

.cg-lightbox-nav:hover svg {
    transform: translateX(0);
}

.cg-lightbox-prev:hover svg {
    transform: translateX(-2px);
}

.cg-lightbox-next:hover svg {
    transform: translateX(2px);
}

/* Lightbox Stage */
.cg-lightbox-stage {
    position: relative;
    z-index: 5;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cg-lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--cg-radius-sm);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
}

/* Progress Bar */
.cg-lightbox-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--cg-gold);
    width: 0;
    border-radius: 2px;
    z-index: 6;
    opacity: 0;
    transition: opacity 0.3s;
}

.cg-lightbox-progress.cg-progress-active {
    opacity: 1;
    animation: cgProgressFill 3s linear infinite;
}

@keyframes cgProgressFill {
    from { width: 0; }
    to { width: 100%; }
}

/* Lightbox Info */
.cg-lightbox-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
    padding: 80px 32px 32px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    opacity: 0;
    transition: opacity var(--cg-transition);
}

.cg-lightbox:hover .cg-lightbox-info {
    opacity: 1;
}

.cg-lightbox-info-left {
    flex: 1;
}

.cg-lightbox-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.cg-lightbox-badge-year {
    display: inline-block;
    background: var(--cg-gold);
    color: var(--cg-navy);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 4px;
}

.cg-lightbox-badge-cat {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: var(--cg-text);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.cg-lightbox-title {
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--cg-text);
    margin: 0 0 4px;
    line-height: 1.2;
}

.cg-lightbox-photographer {
    font-size: 14px;
    color: var(--cg-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Lightbox Actions */
.cg-lightbox-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.cg-lightbox-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--cg-transition);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--cg-text);
    font-family: inherit;
}

.cg-lightbox-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cg-lightbox-action-btn.cg-playing {
    background: var(--cg-gold);
    color: var(--cg-navy);
}

.cg-lightbox-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--cg-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--cg-transition);
}

.cg-lightbox-btn:hover {
    background: var(--cg-text);
    color: var(--cg-navy);
}

/* Social Share Group */
.cg-lightbox-share-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cg-share-facebook:hover {
    background: #1877F2 !important;
    color: #fff !important;
}

.cg-share-twitter:hover {
    background: #000 !important;
    color: #fff !important;
}

.cg-share-whatsapp:hover {
    background: #25D366 !important;
    color: #fff !important;
}

/* Tooltip */
.cg-lightbox-tooltip {
    position: absolute;
    bottom: 100px;
    right: 32px;
    z-index: 20;
    background: var(--cg-text);
    color: var(--cg-navy);
    padding: 8px 16px;
    border-radius: var(--cg-radius-sm);
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: cgFadeInUp 0.3s ease;
}

/* ============================================================
   VIDEO GALLERY
   ============================================================ */
.cg-video-section {
    max-width: var(--cg-max-width);
    margin: 0 auto;
    padding: 0 24px 64px;
}

.cg-video-wrapper {
    border-top: 1px solid var(--cg-border);
    padding-top: 48px;
}

.cg-video-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    color: var(--cg-text);
}

.cg-video-section-header h2 {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.02em;
}

/* Video Year Filters */
.cg-video-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.cg-video-filters::-webkit-scrollbar {
    display: none;
}

.cg-filter-video-year {
    padding: 8px 18px;
    border: 1px solid var(--cg-border-light);
    border-radius: 9999px;
    background: transparent;
    color: var(--cg-text-muted);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: all var(--cg-transition);
    font-family: inherit;
}

.cg-filter-video-year:hover {
    color: var(--cg-text);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.cg-filter-video-year.active {
    background: var(--cg-gold);
    border-color: var(--cg-gold);
    color: var(--cg-navy);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.cg-gallery-page.cg-light .cg-filter-video-year:hover {
    background: rgba(0, 0, 0, 0.04);
}

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

.cg-video-card {
    border-radius: var(--cg-radius);
    overflow: hidden;
    background: var(--cg-bg-card);
    border: 1px solid var(--cg-border);
    box-shadow: var(--cg-shadow);
    cursor: pointer;
    transition: all var(--cg-transition);
}

.cg-video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.cg-video-card-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.cg-video-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.cg-video-card:hover .cg-video-card-thumb img {
    transform: scale(1.05);
}

.cg-video-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cg-bg-card);
    color: var(--cg-text-muted);
}

.cg-video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity var(--cg-transition);
}

.cg-video-card:hover .cg-video-play-overlay {
    opacity: 1;
}

.cg-video-play-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--cg-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform var(--cg-transition);
}

.cg-video-card:hover .cg-video-play-btn {
    transform: scale(1.1);
}

.cg-video-play-btn svg {
    margin-left: 4px;
}

.cg-video-type-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.cg-video-type-youtube {
    background: #FF0000;
    color: #fff;
}

.cg-video-type-vimeo {
    background: #1AB7EA;
    color: #fff;
}

.cg-video-type-media {
    background: var(--cg-gold);
    color: var(--cg-navy);
}

.cg-video-card-info {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cg-video-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--cg-text);
    margin: 0;
    flex: 1;
}

.cg-video-card-year {
    font-size: 12px;
    font-weight: 600;
    color: var(--cg-text-muted);
    background: var(--cg-border);
    padding: 3px 10px;
    border-radius: 4px;
    flex-shrink: 0;
    margin-left: 12px;
}

/* Video Player Modal */
.cg-video-player-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cg-video-player-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.cg-video-player-container {
    position: relative;
    z-index: 5;
    width: 90vw;
    max-width: 1100px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--cg-radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.cg-video-player-container iframe,
.cg-video-player-container video {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes cgFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered grid animation */
.cg-gallery-item:nth-child(1)  { animation-delay: 0.0s; }
.cg-gallery-item:nth-child(2)  { animation-delay: 0.05s; }
.cg-gallery-item:nth-child(3)  { animation-delay: 0.1s; }
.cg-gallery-item:nth-child(4)  { animation-delay: 0.15s; }
.cg-gallery-item:nth-child(5)  { animation-delay: 0.2s; }
.cg-gallery-item:nth-child(6)  { animation-delay: 0.25s; }
.cg-gallery-item:nth-child(7)  { animation-delay: 0.3s; }
.cg-gallery-item:nth-child(8)  { animation-delay: 0.35s; }
.cg-gallery-item:nth-child(9)  { animation-delay: 0.4s; }
.cg-gallery-item:nth-child(10) { animation-delay: 0.45s; }
.cg-gallery-item:nth-child(11) { animation-delay: 0.5s; }
.cg-gallery-item:nth-child(12) { animation-delay: 0.55s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ---------- Tablet landscape / small desktop ---------- */
@media (max-width: 1024px) {
    .cg-gallery-grid {
        column-count: 2;
    }

    .cg-lightbox-nav {
        width: 44px;
        height: 44px;
    }

    .cg-lightbox-prev { left: 8px; }
    .cg-lightbox-next { right: 8px; }
}

/* ---------- Tablet portrait / large phone ---------- */
@media (max-width: 768px) {
    .cg-hero {
        height: 50vh;
        min-height: 300px;
        max-height: 500px;
        background-attachment: scroll;
    }

    .cg-hero-title {
        font-size: clamp(2rem, 7vw, 3rem);
        margin-bottom: 12px;
    }

    .cg-hero-subtitle {
        font-size: 0.95rem;
        max-width: 90%;
    }

    .cg-hero-scroll {
        display: none;
    }

    .cg-hero::before,
    .cg-hero::after {
        display: none;
    }

    .cg-hero-content {
        padding: 0 16px;
    }

    .cg-hero-back {
        font-size: 10px;
        padding: 6px 14px;
        margin-bottom: 16px;
    }

    .cg-hero-badge {
        font-size: 11px;
        padding: 5px 12px;
    }

    .cg-hero-divider {
        margin-top: 16px;
    }

    .cg-hero-divider-line {
        width: 28px;
    }

    .cg-controls-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 16px;
        gap: 10px;
    }

    .cg-controls-divider {
        display: none;
    }

    .cg-filter-group {
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .cg-filter-group::-webkit-scrollbar {
        display: none;
    }

    .cg-filter-btn {
        font-size: 12px;
        padding: 6px 14px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .cg-gallery-section {
        padding: 24px 12px 48px;
    }

    .cg-gallery-grid {
        column-count: 2;
        column-gap: 10px;
    }

    .cg-gallery-item {
        margin-bottom: 10px;
        border-radius: 10px;
    }

    .cg-item-overlay {
        padding: 12px;
    }

    .cg-item-meta {
        font-size: 9px;
    }

    .cg-item-title {
        font-size: 12px;
    }

    .cg-item-photographer {
        font-size: 10px;
    }

    .cg-item-zoom {
        width: 32px;
        height: 32px;
    }

    .cg-item-zoom svg {
        width: 16px;
        height: 16px;
    }

    .cg-hof-card {
        flex: 0 0 200px;
        height: 140px;
    }

    .cg-hof-wrapper {
        padding: 0 12px;
    }

    .cg-hof-section {
        margin-top: -48px;
        margin-bottom: 32px;
    }

    .cg-video-section {
        padding: 0 12px 48px;
    }

    .cg-video-section-header h2 {
        font-size: 22px;
    }

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

    .cg-video-card {
        border-radius: 10px;
    }

    .cg-lightbox-info {
        flex-direction: column;
        align-items: flex-start;
        padding: 60px 16px 16px;
    }

    .cg-lightbox-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .cg-lightbox-play-label {
        display: none;
    }

    .cg-lightbox-title {
        font-size: 16px;
    }

    .cg-lightbox-badge-year,
    .cg-lightbox-badge-cat {
        font-size: 10px;
        padding: 2px 8px;
    }

    .cg-lightbox-stage {
        padding: 12px;
    }

    .cg-lightbox-image {
        max-height: 65vh;
        border-radius: 6px;
    }

    /* Social sharing buttons in lightbox */
    .cg-lightbox-share-group {
        gap: 6px;
    }

    .cg-lightbox-btn {
        width: 36px;
        height: 36px;
    }

    .cg-gallery-footer {
        padding: 24px 0;
    }

    .cg-photo-count {
        font-size: 12px;
    }

    .cg-btn-load-more {
        font-size: 13px;
        padding: 10px 28px;
    }
}

/* ---------- Mobile phones ---------- */
@media (max-width: 480px) {
    .cg-hero {
        height: 45vh;
        min-height: 260px;
        max-height: 400px;
    }

    .cg-hero-title {
        font-size: clamp(1.6rem, 8vw, 2.5rem);
        margin-bottom: 10px;
    }

    .cg-hero-subtitle {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .cg-hero-back {
        font-size: 9px;
        padding: 5px 12px;
        gap: 5px;
        margin-bottom: 12px;
    }

    .cg-hero-back svg {
        width: 10px;
        height: 10px;
    }

    .cg-hero-particle {
        display: none;
    }

    .cg-hero-particles {
        display: none;
    }

    .cg-gallery-grid {
        column-count: 2;
        column-gap: 8px;
    }

    .cg-gallery-item {
        margin-bottom: 8px;
        border-radius: 8px;
    }

    .cg-gallery-section {
        padding: 16px 8px 40px;
    }

    .cg-item-overlay {
        padding: 8px;
    }

    .cg-item-overlay-top {
        display: none;
    }

    .cg-item-info {
        gap: 2px;
    }

    .cg-item-meta {
        font-size: 8px;
        letter-spacing: 0.08em;
    }

    .cg-item-title {
        font-size: 11px;
        line-height: 1.3;
    }

    .cg-item-photographer {
        display: none;
    }

    .cg-controls-inner {
        padding: 10px 8px;
        gap: 8px;
    }

    .cg-filter-btn {
        font-size: 11px;
        padding: 5px 10px;
    }

    .cg-video-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cg-video-section {
        padding: 0 8px 40px;
    }

    .cg-video-section-header {
        margin-bottom: 20px;
    }

    .cg-video-section-header h2 {
        font-size: 18px;
    }

    .cg-video-section-header svg {
        width: 18px;
        height: 18px;
    }

    .cg-video-card-title {
        font-size: 14px;
    }

    .cg-hof-card {
        flex: 0 0 180px;
        height: 120px;
    }

    .cg-hof-wrapper {
        padding: 0 8px;
    }

    .cg-hof-section {
        margin-top: -40px;
        margin-bottom: 24px;
    }

    .cg-hof-header h3 {
        font-size: 11px;
    }

    .cg-lightbox-nav {
        width: 36px;
        height: 36px;
    }

    .cg-lightbox-nav svg {
        width: 24px;
        height: 24px;
    }

    .cg-lightbox-prev { left: 4px; }
    .cg-lightbox-next { right: 4px; }

    .cg-lightbox-close {
        top: 8px;
        right: 8px;
        width: 36px;
        height: 36px;
    }

    .cg-lightbox-close svg {
        width: 20px;
        height: 20px;
    }

    .cg-lightbox-info {
        padding: 50px 12px 12px;
    }

    .cg-lightbox-title {
        font-size: 14px;
    }

    .cg-lightbox-image {
        max-height: 55vh;
        border-radius: 4px;
    }

    .cg-lightbox-stage {
        padding: 8px;
    }

    .cg-lightbox-btn {
        width: 32px;
        height: 32px;
    }

    .cg-lightbox-share-group {
        gap: 4px;
    }

    .cg-lightbox-action-btn {
        padding: 6px 10px;
        font-size: 11px;
    }

    .cg-gallery-footer {
        padding: 20px 0;
    }

    .cg-photo-count {
        font-size: 11px;
    }

    .cg-btn-load-more {
        font-size: 12px;
        padding: 10px 24px;
    }

    .cg-empty-state svg {
        width: 36px;
        height: 36px;
    }

    .cg-empty-state h3 {
        font-size: 16px;
    }

    .cg-empty-state p {
        font-size: 13px;
    }

    .cg-btn-reset {
        font-size: 12px;
        padding: 8px 20px;
    }

    /* Video filter pills */
    .cg-video-filters {
        gap: 6px;
        margin-bottom: 16px;
    }

    .cg-filter-video-year {
        font-size: 12px;
        padding: 6px 14px;
    }

    /* Video player modal */
    .cg-video-player-container {
        width: 96vw;
        border-radius: 8px;
    }
}

/* ---------- Very small phones (320px) ---------- */
@media (max-width: 360px) {
    .cg-hero-title {
        font-size: 1.5rem;
    }

    .cg-hero-subtitle {
        font-size: 0.8rem;
    }

    .cg-gallery-grid {
        column-gap: 6px;
    }

    .cg-gallery-item {
        margin-bottom: 6px;
        border-radius: 6px;
    }

    .cg-gallery-section {
        padding: 12px 6px 32px;
    }

    .cg-item-meta {
        display: none;
    }

    .cg-item-title {
        font-size: 10px;
    }
}
