@charset "utf-8";
/* CSS Document */
body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            color: #333;
            background-color: #fcfcfc;
            margin: 0;
            padding: 0;
        }
        .container {
            max-width: 1140px;
            margin: 0 auto;
            padding: 20px;
        }
        .back-btn {
            display: inline-flex;
            align-items: center;
            text-decoration: none;
            color: #ff6a00;
            font-weight: 600;
            margin-bottom: 20px;
            transition: transform 0.2s;
        }
        .back-btn:hover { transform: translateX(-5px); }
        .event-grid {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 40px;
        }
        @media (max-width: 768px) {
            .event-grid { grid-template-columns: 1fr; }
        }
        .main-image {
            width: 100%;
            height: 420px;
            object-fit: cover;
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
            background-color: #eee;
        }
        .event-title {
            font-size: 2.3rem;
            color: #1a1a1a;
            margin: 20px 0 10px 0;
        }
        .description-box {
            font-size: 1.1rem;
            color: #555;
            margin-bottom: 30px;
            white-space: pre-line; /* Keeps line breaks from your database text */
        }
        .section-title {
            font-size: 1.4rem;
            color: #1a1a1a;
            border-bottom: 2px solid #ff6a00;
            padding-bottom: 8px;
            margin-top: 40px;
            margin-bottom: 20px;
        }
        .highlights-list {
            padding-left: 20px;
            color: #444;
            line-height: 1.8;
        }
        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 15px;
            margin-top: 20px;
        }
        .gallery-item {
            width: 100%;
            height: 160px;
            object-fit: cover;
            border-radius: 6px;
            transition: transform 0.3s, box-shadow 0.3s;
        }
        .gallery-item:hover {
            transform: scale(1.03);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        .sidebar {
            background: #ffffff;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.04);
            border-top: 4px solid #ff6a00;
            height: fit-content;
        }
        .info-group {
            margin-bottom: 20px;
            display: flex;
            align-items: flex-start;
        }
        .info-icon { margin-right: 15px; margin-top: 3px; }
        .info-text h4 {
            margin: 0 0 5px 0;
            color: #888;
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        .info-text p {
            margin: 0;
            color: #222;
            font-weight: 500;
            font-size: 1.05rem;
        }
        .cta-btn {
            display: block;
            width: 100%;
            text-align: center;
            background: #ff6a00;
            color: white;
            text-decoration: none;
            padding: 13px 0;
            border-radius: 6px;
            font-weight: bold;
            margin-top: 30px;
            transition: background 0.2s;
        }
        .cta-btn:hover { background: #e05d00; }
        .error-message { text-align: center; padding: 100px 20px; }
    
	    /* --- LIGHTBOX IMAGE VIEWER STYLES --- */
        .lightbox-modal {
            position: fixed;
            inset: 0;
            background: rgba(26, 5, 14, 0.9);
            backdrop-filter: blur(8px);
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 2rem;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        .lightbox-modal.active { opacity: 1; }
        .lightbox-content-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 95vw;        /* Forces the wrapper to take up most of the screen width */
        max-width: 1400px;  /* Increased from default/auto to allow much larger desktop photos */
        max-height: 92vh;   /* Maximizes vertical height */
        transform: scale(0.95);
        transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
        .lightbox-modal.active .lightbox-content-wrapper { transform: scale(1); }
        .lightbox-content-wrapper img {
            max-width: 95vw;    /* Increased from 100% to fill more width */
            max-height: 75vh;   /* Increased from 75vh to fill more height */
            object-fit: contain;
            border-radius: 12px;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
            border: 2px solid rgba(255, 255, 255, 0.1);
        }
        .lightbox-caption {
            color: #ffffff;
            font-size: 1.2rem;
            margin-top: 1rem;
            text-align: center;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
        }
        .lightbox-close-btn {
            position: absolute;
            top: 25px;
            right: 35px;
            background: rgba(255, 255, 255, 0.1);
            border: 2px solid rgba(255, 255, 255, 0.2);
            color: white;
            font-size: 2rem;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            line-height: 1;
        }
        .lightbox-close-btn:hover {
            background: #ff6a00;
            border-color: #ff6a00;
            transform: rotate(90deg) scale(1.1);
        }
	
	    /* --- LIGHTBOX NAVIGATION ARROWS --- */
.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

.lightbox-nav-btn:hover {
    background: #ff6a00;
    border-color: #ff6a00;
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-nav-btn { width: 40px; height: 40px; font-size: 1.4rem; }
    .lightbox-close-btn { top: 15px; right: 15px; width: 40px; height: 40px; font-size: 1.5rem; }
}
	
/* --- TWILIGHT DARK MODE THEME FOR EVENT DETAILS --- */
body.dark-mode {
    --pink-bg: #120A12;
    --pink-light: #3D1C2A;
    --pink-primary: #FF6594;
    --pink-secondary: #FF8EAE;
    --pink-dark: #FFD1DF;
    --text-dark: #FCE8EE;
    --text-light: #E0A9B8;
    background-color: var(--pink-bg) !important;
    color: var(--text-dark) !important;
}

body.dark-mode .sidebar {
    background: rgba(26, 15, 23, 0.85) !important;
    color: var(--text-dark) !important;
    border-top-color: var(--pink-primary);
}

body.dark-mode .info-text h4 {
    color: var(--text-light) !important;
}

body.dark-mode .info-text p {
    color: var(--text-dark) !important;
}

body.dark-mode .event-title,
body.dark-mode .section-title {
    color: var(--text-dark) !important;
    border-bottom-color: var(--pink-primary);
}

body.dark-mode .description-box {
    color: var(--text-light) !important;
}

/* --- EVENT VIDEOS GRID STYLING --- */
.event-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.event-video-card {
    background: var(--glass-bg, #ffffff);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    padding: 1.2rem;
}

.event-video-card .video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.event-video-card video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.event-video-card h3 {
    font-size: 1.15rem;
    color: #1a1a1a;
    margin: 1rem 0 0.5rem 0;
    font-weight: 700;
}

.event-video-card .video-desc {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
    line-height: 1.5;
}
