/* IFEMA Page Styles */
:root {
    --ifema-primary: #FFD700;
    /* Gold/Yellow from brand memory */
    --ifema-dark: #ffffff;
    --ifema-text: #000000;
    --ifema-text-light: #333333;
}

.ifema-page {
    background-color: var(--ifema-dark);
    color: var(--ifema-text);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* Hero Section */
.ifema-hero {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.ifema-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), var(--ifema-dark));
}

.ifema-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    /* Removed opacity and transform so it shows immediately */
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -2px;
    color: var(--ifema-text);
}

.hero-title .highlight {
    color: var(--ifema-primary);
    display: block;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--ifema-text-light);
    font-weight: 300;
}

/* Intro Section */
.ifema-intro {
    padding: 6rem 0;
    background: var(--ifema-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.intro-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro-text p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--ifema-text-light);
    margin-bottom: 2rem;
}

.intro-text .lead {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--ifema-text);
}

.date-highlight {
    color: var(--ifema-primary);
    font-weight: 700;
    border-bottom: 2px solid var(--ifema-primary);
}

/* Video Section */
.ifema-videos {
    padding: 4rem 0;
    background: var(--ifema-dark);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 700;
    color: var(--ifema-text);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.video-card {
    background: transparent;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.video-card video {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    border-bottom: 4px solid var(--ifema-primary);
}

.video-caption {
    display: none;
}

/* Gallery Section */
.ifema-gallery {
    padding: 6rem 0;
    background: var(--ifema-dark);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1;
    /* Square thumbnails */
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-bottom: 4px solid var(--ifema-primary);
}

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

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1000px;
    max-height: 90vh;
    object-fit: contain;
    border: 2px solid var(--ifema-primary);
    animation-name: zoom;
    animation-duration: 0.6s;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--ifema-primary);
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .intro-text .lead {
        font-size: 1.4rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .lightbox-content {
        width: 95%;
    }
}