/*
Theme Name: Gjon Mili IVAF Theme
Theme URI: https://gjonmili-ivaf.com
Description: Custom WordPress theme with integrated Homepage Builder for the Gjon Mili International Video Art Festival. Features drag-and-drop sections, flexible column layouts, custom post types (Films, Artists, Events), responsive controls, and cinematic design.
Version: 1.0.0
Author: Gjon Mili IVAF
Author URI: https://gjonmili-ivaf.com
Text Domain: gjonmili
Requires at least: 6.0
Requires PHP: 8.0
*/

/* ===== CSS VARIABLES ===== */
:root {
    --gm-black: #0a0a0a;
    --gm-dark: #141414;
    --gm-darker: #1a1a1a;
    --gm-gray-900: #212121;
    --gm-gray-800: #2a2a2a;
    --gm-gray-700: #3a3a3a;
    --gm-gray-600: #555;
    --gm-gray-500: #777;
    --gm-gray-400: #999;
    --gm-gray-300: #bbb;
    --gm-gray-200: #ddd;
    --gm-gray-100: #eee;
    --gm-white: #fafafa;
    --gm-accent: #e63946;
    --gm-accent-hover: #ff4d5a;
    --gm-gold: #d4a843;
    --gm-gold-hover: #e6bc5a;
    --gm-blue: #1d3557;
    --gm-teal: #2ec4b6;
    --gm-font-display: 'Instrument Serif', Georgia, serif;
    --gm-font-heading: 'Inter Tight', 'Helvetica Neue', sans-serif;
    --gm-font-body: 'Instrument Sans', 'Helvetica Neue', sans-serif;
    --gm-font-accent: 'Space Grotesk', 'Arial', sans-serif;
    --gm-font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --gm-container: 1280px;
    --gm-container-wide: 1440px;
    --gm-radius: 4px;
    --gm-radius-lg: 8px;
    --gm-gap: 20px;
    --gm-gap-md: 14px;
    --gm-hero-frame: #c5d5cb;
    --gm-hero-bg: #f5f0eb;
    --gm-shadow: 0 2px 20px rgba(0,0,0,0.3);
    --gm-shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
    --gm-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gm-transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--gm-font-body);
    background: var(--gm-black);
    color: var(--gm-gray-200);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gm-accent); text-decoration: none; transition: color var(--gm-transition); }
a:hover { color: var(--gm-accent-hover); }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--gm-font-heading);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.15;
    color: var(--gm-white);
    font-weight: 600;
}
h1 { font-weight: 700; letter-spacing: 0.04em; }

/* ===== CONTAINER ===== */
.gm-container { max-width: var(--gm-container); margin: 0 auto; padding: 0 24px; }
.gm-container-wide { max-width: var(--gm-container-wide); margin: 0 auto; padding: 0 24px; }

/* ===== HEADER ===== */
.gm-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(10,10,10,0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background var(--gm-transition);
}
.gm-header-inner {
    display: flex; align-items: center; justify-content: space-between;
    max-width: var(--gm-container-wide); margin: 0 auto;
    padding: 0 24px; height: 110px;
}
.gm-logo { display: flex; align-items: center; gap: 12px; }
.gm-logo img, .gm-logo-img { height: 96px; width: auto; }
.gm-logo a { display: flex; align-items: center; }
.gm-logo-text {
    font-family: var(--gm-font-display);
    font-size: 1.4rem; color: var(--gm-white);
    letter-spacing: 0.01em; font-weight: 400;
    font-style: italic;
}
.gm-logo-text span { color: var(--gm-accent); }

/* Navigation */
.gm-nav { display: flex; align-items: center; gap: 0; }
.gm-nav a {
    display: block; padding: 8px 18px;
    font-family: var(--gm-font-heading);
    font-size: 0.85rem; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--gm-gray-300);
    position: relative; transition: color var(--gm-transition);
}
.gm-nav a::after {
    content: ''; position: absolute; bottom: 0; left: 18px; right: 18px;
    height: 2px; background: var(--gm-accent);
    transform: scaleX(0); transition: transform var(--gm-transition);
}
.gm-nav a:hover, .gm-nav a.active { color: var(--gm-white); }
.gm-nav a:hover::after, .gm-nav a.active::after { transform: scaleX(1); }

.gm-nav-cta {
    margin-left: 12px; padding: 10px 24px !important;
    background: var(--gm-accent); color: var(--gm-white) !important;
    border-radius: var(--gm-radius); font-weight: 600;
}
.gm-nav-cta:hover { background: var(--gm-accent-hover); }
.gm-nav-cta::after { display: none !important; }

/* Mobile menu */
.gm-hamburger {
    display: none; background: none; border: none; cursor: pointer;
    width: 32px; height: 24px; position: relative;
}
.gm-hamburger span {
    display: block; width: 100%; height: 2px;
    background: var(--gm-white); position: absolute; left: 0;
    transition: var(--gm-transition);
}
.gm-hamburger span:nth-child(1) { top: 0; }
.gm-hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.gm-hamburger span:nth-child(3) { bottom: 0; }
.gm-hamburger.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.gm-hamburger.active span:nth-child(2) { opacity: 0; }
.gm-hamburger.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* ===== HOMEPAGE SECTIONS (Frontend) ===== */
.gm-section {
    position: relative; overflow: hidden;
}
.gm-section-fullwidth .gm-section-inner { max-width: 100%; padding: 0; }
.gm-section-boxed .gm-section-inner { max-width: var(--gm-container); margin: 0 auto; padding: 0 24px; }
.gm-section-wide .gm-section-inner { max-width: var(--gm-container-wide); margin: 0 auto; padding: 0 24px; }

/* Section backgrounds */
.gm-section-bg {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 0;
}
.gm-section-bg img, .gm-section-bg video {
    width: 100%; height: 100%; object-fit: cover;
}
.gm-section-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
}
.gm-section-content { position: relative; z-index: 2; }

/* Section title */
.gm-section-title {
    font-family: var(--gm-font-display);
    font-size: 2.8rem; margin-bottom: 1rem;
    color: var(--gm-white);
}
.gm-section-subtitle {
    font-size: 1.1rem; color: var(--gm-gray-400);
    max-width: 680px; margin-bottom: 2rem;
}

/* Dark/Light mode sections */
.gm-section-dark { background-color: var(--gm-dark); color: var(--gm-gray-200); }
.gm-section-light { background-color: var(--gm-white); color: var(--gm-gray-900); }
.gm-section-light h1, .gm-section-light h2, .gm-section-light h3 { color: var(--gm-black); }

/* ===== BLOCKS & COLUMNS ===== */
.gm-block-row {
    display: flex; flex-wrap: wrap; gap: 24px;
}
.gm-block-row > .gm-col { min-width: 0; }
.gm-col-1 { flex: 0 0 100%; max-width: 100%; }
.gm-col-50 { flex: 0 0 calc(50% - 12px); max-width: calc(50% - 12px); }
.gm-col-70 { flex: 0 0 calc(70% - 12px); max-width: calc(70% - 12px); }
.gm-col-30 { flex: 0 0 calc(30% - 12px); max-width: calc(30% - 12px); }
.gm-col-33 { flex: 0 0 calc(33.333% - 16px); max-width: calc(33.333% - 16px); }
.gm-col-25 { flex: 0 0 calc(25% - 18px); max-width: calc(25% - 18px); }
.gm-col-20 { flex: 0 0 calc(20% - 19.2px); max-width: calc(20% - 19.2px); }

/* ===== HERO SECTION ===== */
.gm-hero {
    min-height: 100vh; display: flex; align-items: center;
    justify-content: center; text-align: center;
    position: relative;
}
.gm-hero-content { position: relative; z-index: 3; padding: 40px 24px; }
.gm-hero-overline {
    font-family: var(--gm-font-heading);
    font-size: 0.9rem; letter-spacing: 0.3em;
    text-transform: uppercase; color: var(--gm-gold);
    margin-bottom: 1.5rem; display: block;
}
.gm-hero h1 {
    font-family: var(--gm-font-display);
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    font-weight: 700; line-height: 1.05;
    margin-bottom: 1.5rem; color: var(--gm-white);
}
.gm-hero h1 em {
    font-style: italic; color: var(--gm-accent);
}
.gm-hero-desc {
    font-size: 1.2rem; color: var(--gm-gray-300);
    max-width: 640px; margin: 0 auto 2.5rem;
    line-height: 1.8;
}
.gm-hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.gm-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: var(--gm-radius);
    font-family: var(--gm-font-heading);
    font-size: 0.85rem; text-transform: uppercase;
    letter-spacing: 0.15em; font-weight: 600;
    cursor: pointer; border: none;
    transition: all var(--gm-transition);
}
.gm-btn-primary {
    background: var(--gm-accent); color: var(--gm-white);
}
.gm-btn-primary:hover {
    background: var(--gm-accent-hover); color: var(--gm-white);
    transform: translateY(-2px); box-shadow: 0 6px 24px rgba(230,57,70,0.4);
}
.gm-btn-outline {
    background: transparent; color: var(--gm-white);
    border: 1px solid rgba(255,255,255,0.3);
}
.gm-btn-outline:hover {
    border-color: var(--gm-white); color: var(--gm-white);
    background: rgba(255,255,255,0.05);
}
.gm-btn-gold {
    background: var(--gm-gold); color: var(--gm-black);
}
.gm-btn-gold:hover {
    background: var(--gm-gold-hover);
    transform: translateY(-2px); box-shadow: 0 6px 24px rgba(212,168,67,0.4);
}

/* ===== FILM CARDS ===== */
.gm-films-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.gm-film-card {
    position: relative; border-radius: var(--gm-radius-lg);
    overflow: hidden; background: var(--gm-gray-900);
    transition: transform var(--gm-transition), box-shadow var(--gm-transition);
    cursor: pointer;
}
.gm-film-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--gm-shadow-lg);
}
.gm-film-poster {
    aspect-ratio: 2/3; overflow: hidden;
    position: relative;
}
.gm-film-poster img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform var(--gm-transition-slow);
}
.gm-film-card:hover .gm-film-poster img { transform: scale(1.08); }
.gm-film-poster-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, transparent 50%);
    display: flex; align-items: flex-end; padding: 20px;
    opacity: 0; transition: opacity var(--gm-transition);
}
.gm-film-card:hover .gm-film-poster-overlay { opacity: 1; }
.gm-film-play {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--gm-accent); display: flex;
    align-items: center; justify-content: center;
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform var(--gm-transition);
}
.gm-film-card:hover .gm-film-play { transform: translate(-50%, -50%) scale(1); }
.gm-film-play svg { width: 20px; height: 20px; fill: white; margin-left: 2px; }
.gm-film-info { padding: 16px 20px; }
.gm-film-category {
    font-family: var(--gm-font-accent);
    font-size: 0.7rem; text-transform: uppercase;
    letter-spacing: 0.15em; color: var(--gm-accent);
    margin-bottom: 6px; font-weight: 500;
}
.gm-film-title {
    font-family: var(--gm-font-display);
    font-size: 1.1rem; color: var(--gm-white);
    margin-bottom: 4px; text-transform: none;
    letter-spacing: 0;
}
.gm-film-meta {
    font-size: 0.8rem; color: var(--gm-gray-500);
}
.gm-film-meta span + span::before { content: ' · '; }

/* ===== ARTIST CARDS ===== */
.gm-artists-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}
.gm-artist-card {
    text-align: center; padding: 32px 20px;
    background: var(--gm-gray-900); border-radius: var(--gm-radius-lg);
    transition: transform var(--gm-transition);
}
.gm-artist-card:hover { transform: translateY(-4px); }
.gm-artist-photo {
    width: 140px; height: 140px; border-radius: 50%;
    overflow: hidden; margin: 0 auto 20px;
    border: 3px solid var(--gm-gray-700);
    transition: border-color var(--gm-transition);
}
.gm-artist-card:hover .gm-artist-photo { border-color: var(--gm-accent); }
.gm-artist-photo img { width: 100%; height: 100%; object-fit: cover; }
.gm-artist-name {
    font-family: var(--gm-font-display);
    font-size: 1.2rem; color: var(--gm-white);
    margin-bottom: 4px; text-transform: none;
    letter-spacing: 0;
}
.gm-artist-role { font-size: 0.85rem; color: var(--gm-gold); margin-bottom: 8px; }
.gm-artist-country { font-size: 0.8rem; color: var(--gm-gray-500); }

/* ===== EVENT / SCHEDULE ===== */
.gm-schedule-list { display: flex; flex-direction: column; gap: 2px; }
.gm-schedule-item {
    display: grid; grid-template-columns: 120px 1fr auto;
    gap: 24px; padding: 20px 24px; align-items: center;
    background: var(--gm-gray-900);
    transition: background var(--gm-transition);
}
.gm-schedule-item:hover { background: var(--gm-gray-800); }
.gm-schedule-item:first-child { border-radius: var(--gm-radius-lg) var(--gm-radius-lg) 0 0; }
.gm-schedule-item:last-child { border-radius: 0 0 var(--gm-radius-lg) var(--gm-radius-lg); }
.gm-schedule-time {
    font-family: var(--gm-font-mono);
    font-size: 0.9rem; color: var(--gm-gold);
    white-space: nowrap;
}
.gm-schedule-title {
    font-family: var(--gm-font-display);
    font-size: 1.05rem; color: var(--gm-white);
    text-transform: none; letter-spacing: 0;
}
.gm-schedule-venue { font-size: 0.8rem; color: var(--gm-gray-500); margin-top: 2px; }
.gm-schedule-tag {
    padding: 4px 12px; border-radius: 20px;
    font-size: 0.7rem; text-transform: uppercase;
    letter-spacing: 0.1em; font-weight: 600;
}
.gm-schedule-tag-screening { background: rgba(230,57,70,0.15); color: var(--gm-accent); }
.gm-schedule-tag-workshop { background: rgba(46,196,182,0.15); color: var(--gm-teal); }
.gm-schedule-tag-panel { background: rgba(212,168,67,0.15); color: var(--gm-gold); }

/* ===== VIDEO SLIDER ===== */
.gm-video-slider {
    display: flex; gap: 20px; overflow-x: auto;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    padding: 4px 0; scrollbar-width: none;
}
.gm-video-slider::-webkit-scrollbar { display: none; }
.gm-video-slide {
    flex: 0 0 420px; scroll-snap-align: start;
    border-radius: var(--gm-radius-lg); overflow: hidden;
    background: var(--gm-gray-900);
}
.gm-video-thumb {
    aspect-ratio: 16/9; position: relative;
    overflow: hidden; cursor: pointer;
}
.gm-video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gm-video-slide-info { padding: 16px; }
.gm-video-slide-title {
    font-family: var(--gm-font-display);
    font-size: 1rem; color: var(--gm-white);
    text-transform: none; letter-spacing: 0;
}

/* ===== GALLERY GRID ===== */
.gm-gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 4px;
}
.gm-gallery-item {
    aspect-ratio: 1; overflow: hidden;
    cursor: pointer; position: relative;
}
.gm-gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform var(--gm-transition-slow);
}
.gm-gallery-item:hover img { transform: scale(1.1); }

/* ===== CTA SECTION ===== */
.gm-cta-block {
    text-align: center; padding: 80px 40px;
    background: linear-gradient(135deg, var(--gm-accent) 0%, #c1121f 100%);
    border-radius: var(--gm-radius-lg);
}
.gm-cta-block h2 {
    font-family: var(--gm-font-display);
    font-size: 2.5rem; margin-bottom: 1rem;
}
.gm-cta-block p {
    font-size: 1.15rem; color: rgba(255,255,255,0.85);
    max-width: 560px; margin: 0 auto 2rem;
}

/* ===== SPONSORS ===== */
.gm-sponsors-grid {
    display: flex; flex-wrap: wrap; justify-content: center;
    align-items: center; gap: 40px;
}
.gm-sponsor-logo {
    height: 48px; opacity: 0.5;
    filter: grayscale(100%) brightness(2);
    transition: all var(--gm-transition);
}
.gm-sponsor-logo:hover { opacity: 1; filter: none; }

/* ===== TESTIMONIALS ===== */
.gm-testimonial {
    text-align: center; padding: 40px;
    max-width: 720px; margin: 0 auto;
}
.gm-testimonial-text {
    font-family: var(--gm-font-display);
    font-size: 1.5rem; font-style: italic;
    color: var(--gm-gray-200); line-height: 1.6;
    margin-bottom: 1.5rem;
}
.gm-testimonial-author { color: var(--gm-gold); font-weight: 600; }

/* ===== NEWS CARDS ===== */
.gm-news-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.gm-news-card {
    background: var(--gm-gray-900); border-radius: var(--gm-radius-lg);
    overflow: hidden; transition: transform var(--gm-transition);
}
.gm-news-card:hover { transform: translateY(-4px); }
.gm-news-thumb { aspect-ratio: 16/9; overflow: hidden; }
.gm-news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gm-news-body { padding: 20px; }
.gm-news-date { font-size: 0.75rem; color: var(--gm-gray-500); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.1em; }
.gm-news-title {
    font-family: var(--gm-font-display);
    font-size: 1.15rem; color: var(--gm-white);
    text-transform: none; letter-spacing: 0;
    margin-bottom: 8px;
}
.gm-news-excerpt { font-size: 0.9rem; color: var(--gm-gray-400); }

/* ===== COUNTDOWN ===== */
.gm-countdown {
    display: flex; gap: 24px; justify-content: center;
}
.gm-countdown-unit {
    text-align: center; min-width: 80px;
}
.gm-countdown-number {
    font-family: var(--gm-font-heading);
    font-size: 3.5rem; color: var(--gm-white);
    line-height: 1;
}
.gm-countdown-label {
    font-size: 0.75rem; text-transform: uppercase;
    letter-spacing: 0.2em; color: var(--gm-gray-500);
    margin-top: 6px;
}

/* ===== NEWSLETTER ===== */
.gm-newsletter-form {
    display: flex; gap: 12px; max-width: 480px;
    margin: 0 auto;
}
.gm-newsletter-form input {
    flex: 1; padding: 14px 20px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--gm-radius);
    color: var(--gm-white); font-size: 0.95rem;
    font-family: var(--gm-font-body);
}
.gm-newsletter-form input::placeholder { color: var(--gm-gray-500); }
.gm-newsletter-form input:focus {
    outline: none; border-color: var(--gm-accent);
}

/* ===== FOOTER ===== */
.gm-footer {
    background: var(--gm-black); padding: 60px 0 30px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.gm-footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px; margin-bottom: 40px;
}
.gm-footer-about p { color: var(--gm-gray-500); font-size: 0.9rem; margin-top: 16px; }
.gm-footer h4 {
    font-family: var(--gm-font-heading);
    font-size: 0.8rem; letter-spacing: 0.15em;
    color: var(--gm-gray-300); margin-bottom: 16px;
}
.gm-footer ul { list-style: none; }
.gm-footer li { margin-bottom: 8px; }
.gm-footer li a { color: var(--gm-gray-500); font-size: 0.9rem; }
.gm-footer li a:hover { color: var(--gm-white); }
.gm-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 24px; text-align: center;
    font-size: 0.8rem; color: var(--gm-gray-600);
}

/* ===== PARALLAX ===== */
.gm-parallax .gm-section-bg { transform: translateZ(0); will-change: transform; }

/* ===== ANIMATIONS ===== */
.gm-animate { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.4,0,0.2,1); }
.gm-animate.gm-visible { opacity: 1; transform: translateY(0); }
.gm-animate-fade { opacity: 0; transition: opacity 0.8s ease; }
.gm-animate-fade.gm-visible { opacity: 1; }
.gm-animate-slide-left { opacity: 0; transform: translateX(-40px); transition: all 0.8s cubic-bezier(0.4,0,0.2,1); }
.gm-animate-slide-left.gm-visible { opacity: 1; transform: translateX(0); }
.gm-animate-slide-right { opacity: 0; transform: translateX(40px); transition: all 0.8s cubic-bezier(0.4,0,0.2,1); }
.gm-animate-slide-right.gm-visible { opacity: 1; transform: translateX(0); }

/* ===== LAZY LOADING ===== */
.gm-lazy { opacity: 0; transition: opacity 0.4s ease; }
.gm-lazy.gm-loaded { opacity: 1; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .gm-col-25, .gm-col-20 { flex: 0 0 calc(50% - 12px); max-width: calc(50% - 12px); }
    .gm-footer-grid { grid-template-columns: 1fr 1fr; }
    .gm-schedule-item { grid-template-columns: 100px 1fr auto; }
}

@media (max-width: 768px) {
    .gm-nav { display: none; }
    .gm-nav.active {
        display: flex; flex-direction: column;
        position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
        background: rgba(10,10,10,0.98);
        padding: 40px 24px; align-items: flex-start;
    }
    .gm-hamburger { display: block; }
    .gm-block-row { gap: 16px; }
    .gm-col-50, .gm-col-70, .gm-col-30,
    .gm-col-33, .gm-col-25, .gm-col-20 {
        flex: 0 0 100%; max-width: 100%;
    }
    .gm-hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
    .gm-section-title { font-size: 2rem; }
    .gm-countdown { gap: 12px; }
    .gm-countdown-number { font-size: 2.2rem; }
    .gm-newsletter-form { flex-direction: column; }
    .gm-footer-grid { grid-template-columns: 1fr; }
    .gm-schedule-item { grid-template-columns: 1fr; gap: 8px; }
    .gm-video-slide { flex: 0 0 300px; }
    .gm-films-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

/* ===== DEVICE VISIBILITY ===== */
.gm-hide-desktop {}
.gm-hide-tablet {}
.gm-hide-mobile {}
@media (min-width: 1025px) { .gm-hide-desktop { display: none !important; } }
@media (min-width: 769px) and (max-width: 1024px) { .gm-hide-tablet { display: none !important; } }
@media (max-width: 768px) { .gm-hide-mobile { display: none !important; } }

/* ===== LIGHTBOX ===== */
.gm-lightbox {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.95); display: none;
    align-items: center; justify-content: center;
}
.gm-lightbox.active { display: flex; }
.gm-lightbox-close {
    position: absolute; top: 20px; right: 24px;
    background: none; border: none; color: white;
    font-size: 2rem; cursor: pointer; z-index: 10;
}
.gm-lightbox-content { max-width: 90vw; max-height: 90vh; }
.gm-lightbox-content iframe { width: 80vw; height: 45vw; max-height: 80vh; border: none; }

/* ===== EMBED RESPONSIVE ===== */
.gm-embed-responsive {
    position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
}
.gm-embed-responsive iframe, .gm-embed-responsive video {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; border: 0;
}

/* ===== DISPLAY MODES: Featured Layout ===== */
.gm-featured-layout {
    display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px;
}
.gm-featured-main { grid-row: 1 / 2; }
.gm-featured-main a { display: block; text-decoration: none; }
.gm-featured-image {
    position: relative; overflow: hidden; border-radius: var(--gm-radius);
    aspect-ratio: 16/10;
}
.gm-featured-image img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s;
}
.gm-featured-main:hover img { transform: scale(1.03); }
.gm-featured-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, transparent 60%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 30px;
}
.gm-featured-title {
    font-family: var(--gm-font-display); font-size: 1.8rem;
    color: var(--gm-white); margin-bottom: 8px; line-height: 1.2;
}
.gm-featured-excerpt {
    color: var(--gm-gray-300); font-size: 0.9rem; line-height: 1.5;
    margin-top: 8px;
}
.gm-featured-sidebar {
    display: flex; flex-direction: column; gap: 12px;
}
.gm-featured-small a {
    display: flex; gap: 14px; text-decoration: none;
    padding: 12px; background: var(--gm-dark);
    border-radius: var(--gm-radius); border: 1px solid var(--gm-gray-800);
    transition: border-color 0.2s;
}
.gm-featured-small:hover a { border-color: var(--gm-gray-600); }
.gm-featured-small-thumb {
    width: 100px; min-width: 100px; aspect-ratio: 16/10;
    overflow: hidden; border-radius: 4px;
}
.gm-featured-small-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gm-featured-small-info { flex: 1; }
.gm-featured-small-info h4 {
    font-family: var(--gm-font-heading); font-size: 0.85rem;
    color: var(--gm-white); text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 4px;
}
.gm-featured-small-info span {
    color: var(--gm-gray-500); font-size: 0.75rem;
}

@media (max-width: 768px) {
    .gm-featured-layout { grid-template-columns: 1fr; }
    .gm-featured-title { font-size: 1.4rem; }
}

/* ===== DISPLAY MODES: List Layout ===== */
.gm-films-list, .gm-artists-list, .gm-news-list {
    display: flex; flex-direction: column; gap: 2px;
}
.gm-list-item a {
    display: flex; gap: 20px; align-items: center;
    text-decoration: none; padding: 16px;
    background: var(--gm-dark); border-radius: var(--gm-radius);
    transition: background 0.2s;
}
.gm-list-item:hover a { background: var(--gm-gray-900); }
.gm-list-thumb {
    width: 160px; min-width: 160px; aspect-ratio: 16/9;
    overflow: hidden; border-radius: 4px;
}
.gm-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gm-list-thumb-round {
    width: 80px; min-width: 80px; aspect-ratio: 1;
    border-radius: 50%;
}
.gm-list-thumb-round img { border-radius: 50%; }
.gm-list-info { flex: 1; }
.gm-list-info h3 {
    font-family: var(--gm-font-heading); font-size: 1rem;
    color: var(--gm-white); text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 6px;
}
.gm-list-excerpt {
    color: var(--gm-gray-400); font-size: 0.85rem;
    line-height: 1.5; margin-top: 6px;
}

@media (max-width: 768px) {
    .gm-list-item a { flex-direction: column; align-items: flex-start; }
    .gm-list-thumb { width: 100%; min-width: auto; }
    .gm-list-thumb-round { width: 60px; min-width: 60px; }
}

/* ===== DISPLAY MODES: Masonry ===== */
.gm-masonry-grid {
    columns: 3; column-gap: 20px;
}
.gm-masonry-item {
    break-inside: avoid; margin-bottom: 20px;
    border-radius: var(--gm-radius); overflow: hidden;
    background: var(--gm-dark); border: 1px solid var(--gm-gray-800);
    transition: border-color 0.2s;
}
.gm-masonry-item:hover { border-color: var(--gm-gray-600); }
.gm-masonry-item a { display: block; text-decoration: none; }
.gm-masonry-image img { width: 100%; display: block; }
.gm-masonry-info { padding: 14px; }
.gm-masonry-info h3 {
    font-family: var(--gm-font-heading); font-size: 0.85rem;
    color: var(--gm-white); text-transform: uppercase; letter-spacing: 1px;
}
.gm-masonry-info span { color: var(--gm-gray-500); font-size: 0.75rem; }
.gm-film-meta-sm { color: var(--gm-gray-500); font-size: 0.8rem; }

@media (max-width: 1024px) { .gm-masonry-grid { columns: 2; } }
@media (max-width: 600px) { .gm-masonry-grid { columns: 1; } }

/* ===== DISPLAY MODES: Minimal ===== */
.gm-minimal-list {
    display: flex; flex-direction: column; gap: 0;
    border-top: 1px solid var(--gm-gray-800);
}
.gm-minimal-item a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 0; text-decoration: none;
    border-bottom: 1px solid var(--gm-gray-800);
    transition: padding-left 0.2s;
}
.gm-minimal-item:hover a { padding-left: 12px; }
.gm-minimal-title {
    font-family: var(--gm-font-heading); font-size: 1rem;
    color: var(--gm-white); text-transform: uppercase; letter-spacing: 1px;
}
.gm-minimal-meta {
    color: var(--gm-gray-500); font-size: 0.8rem;
    white-space: nowrap; margin-left: 20px;
}

/* ===== CARD COMPONENTS (Homepage Builder) ===== */
.gm-card { background: var(--gm-dark); border-radius: var(--gm-radius); overflow: hidden; border: 1px solid var(--gm-gray-800); transition: border-color 0.2s; }
.gm-card:hover { border-color: var(--gm-gray-600); }
.gm-card__image { display: block; aspect-ratio: 16/9; overflow: hidden; }
.gm-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gm-card:hover .gm-card__image img { transform: scale(1.03); }
.gm-card__body { padding: 14px; }
.gm-card__title { font-family: var(--gm-font-heading); font-size: 0.9rem; color: var(--gm-white); text-transform: uppercase; letter-spacing: 0.05em; line-height: 1.3; margin: 0 0 6px; }
.gm-card__title a { color: inherit; text-decoration: none; }
.gm-card__title a:hover { color: var(--gm-accent); }
.gm-card__excerpt { font-size: 0.8rem; color: var(--gm-gray-400); line-height: 1.5; margin: 0; }
.gm-card__cat { position: absolute; top: 10px; left: 10px; background: var(--gm-accent); color: #fff; font-family: var(--gm-font-accent); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 3px 8px; border-radius: 3px; }

/* Small card */
.gm-card--sm { display: flex; gap: 12px; border: none; background: none; }
.gm-card--sm .gm-card__image { width: 100px; min-width: 100px; aspect-ratio: 16/10; border-radius: var(--gm-radius); }
.gm-card--sm .gm-card__body { padding: 0; flex: 1; display: flex; align-items: center; }
.gm-card--sm .gm-card__title { font-size: 0.8rem; margin: 0; }
.gm-card--sm + .gm-card--sm { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--gm-gray-800); }

/* Hero/overlay card */
.gm-card--hero { position: relative; border: none; }
.gm-card__image--hero { aspect-ratio: 16/10; position: relative; }
.gm-card__image--hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,10,0.9) 0%, transparent 60%); }
.gm-card__body--hero { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px; z-index: 1; }
.gm-card__title--hero { font-size: 1.3rem; }

/* Block header */
.gm-block__header { display: flex; justify-content: space-between; align-items: center; }
.gm-block__title { font-family: var(--gm-font-heading); font-size: 1rem; color: var(--gm-white); text-transform: uppercase; letter-spacing: 0.08em; margin: 0; display: flex; align-items: center; gap: 8px; }
.gm-dot { color: var(--gm-accent); font-size: 0.6rem; }
.gm-block__more { font-family: var(--gm-font-accent); font-size: 0.75rem; color: var(--gm-gray-400); text-decoration: none; text-transform: uppercase; letter-spacing: 0.05em; transition: color 0.2s; }
.gm-block__more:hover { color: var(--gm-accent); }

/* Grid layouts */
.gm-grid { display: grid; gap: var(--gm-gap); }
.gm-grid--2 { grid-template-columns: repeat(2, 1fr); }
.gm-grid--3 { grid-template-columns: repeat(3, 1fr); }
.gm-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 768px) {
    .gm-grid--2, .gm-grid--3, .gm-grid--4 { grid-template-columns: 1fr; }
    .gm-hb-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 1024px) and (min-width: 769px) {
    .gm-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

/* Section spacing */
.gm-hb-section { margin-bottom: 0; }

/* ===== FULL-WIDTH SECTIONS ===== */
.gm-container-full { width: 100%; max-width: 100%; padding: 0; }
.gm-section--full { width: 100vw; margin-left: calc(-50vw + 50%); }

/* ===== HERO SLIDER (Cannes-style) ===== */
.gm-hero-slider { position: relative; width: 100%; min-height: 70vh; overflow: hidden; }
.gm-hero-slide {
    display: none; width: 100%;
    grid-template-columns: 1fr 1fr; min-height: 70vh;
}
.gm-hero-slide--active { display: grid; }
.gm-hero-slide__image {
    position: relative; overflow: hidden;
    background: var(--gm-hero-frame, #c5d5cb);
    display: flex; align-items: center; justify-content: center;
    padding: 40px;
}
.gm-hero-slide__image img {
    width: 100%; height: auto; max-height: 70vh; object-fit: cover;
    border-radius: 0; box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}
.gm-hero-slide__content {
    display: flex; flex-direction: column; justify-content: center;
    padding: 60px 60px 60px 50px;
    background: var(--gm-hero-bg, #f5f0eb);
    color: #1a1a1a;
}
.gm-hero-slide__cat {
    font-family: var(--gm-font-accent, var(--gm-font-heading));
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--gm-accent); margin-bottom: 16px;
}
.gm-hero-slide__title {
    font-family: var(--gm-font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: #1a1a1a; line-height: 1.1;
    margin: 0 0 20px; font-weight: 400;
}
.gm-hero-slide__title a { color: inherit; text-decoration: none; }
.gm-hero-slide__title a:hover { color: var(--gm-accent); }
.gm-hero-slide__excerpt {
    font-size: 0.95rem; color: #555555;
    line-height: 1.7; margin-bottom: 30px; max-width: 500px;
}
.gm-hero-slide__btn { display: inline-block; text-decoration: none; }
.gm-hero-slide__btn-circle {
    display: flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--gm-gold); color: var(--gm-white);
    font-family: var(--gm-font-heading); font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 0.1em;
    transition: transform 0.3s, background 0.3s;
}
.gm-hero-slide__btn:hover .gm-hero-slide__btn-circle {
    transform: scale(1.1); background: var(--gm-accent);
}

/* Hero nav */
.gm-hero-nav {
    display: flex; align-items: center; gap: 20px;
    padding: 20px 60px; justify-content: flex-end;
    background: var(--gm-hero-bg, #f5f0eb);
}
.gm-hero-nav__btn {
    background: none; border: none; color: #999;
    font-size: 1.5rem; cursor: pointer; padding: 8px;
    transition: color 0.2s; line-height: 1;
}
.gm-hero-nav__btn:hover { color: var(--gm-accent); }
.gm-hero-nav__count {
    font-family: var(--gm-font-heading); font-size: 0.9rem;
    color: #999; letter-spacing: 0.05em;
}
.gm-hero-nav__current { color: #333; }

@media (max-width: 768px) {
    .gm-hero-slide { grid-template-columns: 1fr; min-height: auto; }
    .gm-hero-slide__image img { min-height: 40vh; }
    .gm-hero-slide__content { padding: 30px 24px; }
    .gm-hero-slide__title { font-size: 1.8rem; }
    .gm-hero-nav { padding: 16px 24px; }
    .gm-section--full { width: 100%; margin-left: 0; }
}
