/*
 * The Site - Main Stylesheet (Consolidated and Complete)
 * File Path: /styles.css
 * Version: 2025.07.04.22.45.00
 * Description: Implemented a masonry layout for the photo gallery.
 * Author: Gemini
 */

/* ==========================================================================
   BASE STYLES
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Helvetica Neue', 'Arial', sans-serif; font-weight: 300; line-height: 1.6; color: #ffffff; background-color: #000; overflow-x: hidden; position: relative; min-height: 100vh; }
h1, h2, h3, h4, h5, h6 { font-weight: 100; margin-bottom: 1rem; line-height: 1.2; color: #ffffff; letter-spacing: 2px; }
h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 2rem; }
h3 { font-size: 1.8rem; font-weight: 200; }
p { margin-bottom: 1.5rem; line-height: 1.8; color: rgba(255, 255, 255, 0.9); }
a { color: #00d4ff; text-decoration: none; transition: all 0.3s ease; }
a:hover { color: #ffffff; text-shadow: 0 0 10px #00d4ff; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; width: 100%; }
.section { padding: 80px 0; position: relative; }
*:focus { outline: 2px solid #00d4ff !important; outline-offset: 2px !important; }
.fade-in { animation: fadeInUp 0.8s ease-out forwards; opacity: 0; transform: translateY(30px); }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* ==========================================================================
   MAIN CONTENT AREA
   ========================================================================== */
main#main-content {
    padding-top: 120px;
}

/* ==========================================================================
   BACKGROUND & OVERLAY
   ========================================================================== */
#background-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; overflow: hidden; background-color: #000; background-size: cover; background-position: center; }
#background-container iframe { position: absolute; top: 50%; left: 50%; width: 100vw; height: 56.25vw; min-height: 100vh; min-width: 177.77vh; transform: translate(-50%, -50%); pointer-events: none; }
#background-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.5s ease-in-out; }
.slide.active { opacity: 1; }

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 1000; width: 90%; max-width: 1200px; background: rgba(0, 0, 0, 0.2); backdrop-filter: blur(30px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 50px; padding: 15px 30px; transition: all 0.3s ease; }
.site-header.scrolled { top: 10px; background: rgba(0, 0, 0, 0.4); border-color: rgba(0, 212, 255, 0.3); }
.header-container { display: flex; justify-content: space-between; align-items: center; }
.site-title { margin: 0; }
.site-title a { color: white; font-size: 1.4rem; font-weight: 100; letter-spacing: 3px; text-transform: uppercase; }
.nav-menu { list-style: none; display: flex; gap: 5px; }
.nav-link { display: block; padding: 8px 16px; color: rgba(255, 255, 255, 0.7); border: 1px solid transparent; border-radius: 25px; text-transform: uppercase; font-size: 0.85rem; }
.nav-link:hover, .nav-link.active { background: rgba(0, 212, 255, 0.2); border-color: rgba(0, 212, 255, 0.5); color: #ffffff; }

/* ==========================================================================
   HOME PAGE LAYOUT & HERO PANEL
   ========================================================================== */
.home-layout-grid { display: grid; grid-template-columns: 1fr 2.5fr; gap: 30px; align-items: start; }
.hero-content-wrapper { min-height: 70vh; position: relative; border-radius: 15px; overflow: hidden; }
.hero-media { width: 100%; height: 100%; object-fit: cover; position: absolute; top:0; left:0; }

/* --- HERO VIDEO SIZING FIX --- */
.video-wrapper.hero-media { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.video-wrapper[data-hero-sizing="contain"] iframe { object-fit: contain; width: 100%; height: 100%; }
.video-wrapper[data-hero-sizing="fill"] iframe { object-fit: fill; width: 100%; height: 100%; }
/* This is the primary fix for the "cover" state to fill the panel */
.video-wrapper[data-hero-sizing="cover"] iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
}
/* --- END FIX --- */

#hero-panel-slideshow { position: relative; width: 100%; height: 100%; }
#hero-panel-slideshow .hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.5s ease-in-out; object-fit: cover; border-radius: 15px; }
#hero-panel-slideshow .hero-slide.active { opacity: 1; }

/* ==========================================================================
   CONTENT & COMPONENT SECTIONS
   ========================================================================== */
.panel-box { background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; padding: 30px; margin-bottom: 25px; }
.tour-section h2, .photos-section h2, .videos-section h2 { text-align: center; margin-bottom: 60px; }
.video-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 40px; }
.video-item { background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(20px); border-radius: 20px; overflow: hidden; }
.video-container { position: relative; width: 100%; padding-bottom: 56.25%; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.video-item h3 { padding: 20px 25px 15px; }
.video-item p { padding: 0 25px 25px; }
.tour-dates { max-width: 1100px; margin: 0 auto; display: grid; gap: 30px; }
.tour-date-card { background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 15px; display: grid; grid-template-columns: 250px 1fr 350px; gap: 30px; padding: 30px; transition: all 0.3s ease; overflow: hidden; }

/* ==========================================================================
   PHOTO GALLERY - MASONRY LAYOUT
   ========================================================================== */
.photo-gallery {
    column-count: 3;
    column-gap: 20px;
}
.photo-item {
    margin-bottom: 20px;
    display: inline-block;
    width: 100%;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
}
.photo-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
}
.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: white;
    padding: 30px 20px 20px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}
.photo-item:hover .photo-caption {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   EPK PAGE STYLES
   ========================================================================== */
.epk-header-video { width: 100%; height: 60vh; background-color: #000; margin-bottom: 50px; border-radius: 15px; overflow: hidden;}
.epk-header-video iframe { width: 100%; height: 100%; border: 0; }
.epk-content { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; padding: 50px 0; }
.epk-main-col img { max-width: 100%; height: auto; border-radius: 10px; margin: 20px 0; }
.epk-side-col .testimonial { background: rgba(255, 255, 255, 0.05); padding: 20px; border-radius: 10px; margin-bottom: 20px; }
.epk-side-col .testimonial blockquote { border-left: 3px solid #00d4ff; padding-left: 15px; font-style: italic; margin: 0 0 10px 0; }
.epk-side-col .testimonial .author { text-align: right; font-weight: bold; }
.epk-side-col .media-links ul { list-style: none; }
.epk-side-col .media-links li { margin-bottom: 10px; }

/* ==========================================================================
   FOOTER & LIGHTBOX
   ========================================================================== */
.site-footer { padding: 40px 0; margin-top: 80px; text-align: center; background: rgba(0,0,0,0.2); }
.lightbox { display: none; position: fixed; z-index: 1001; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.9); backdrop-filter: blur(8px); flex-direction: column; align-items: center; justify-content: center; animation: fadeInLightbox 0.3s ease; }
@keyframes fadeInLightbox { from { opacity: 0; } to { opacity: 1; } }
.lightbox-content { max-width: 90%; max-height: 85vh; animation: zoomInLightbox 0.3s ease; }
@keyframes zoomInLightbox { from { transform: scale(0.8); } to { transform: scale(1); } }
#lightbox-caption { width: 80%; max-width: 700px; text-align: center; color: #ccc; padding: 15px 0; }
.lightbox-close { position: absolute; top: 15px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; cursor: pointer; transition: transform 0.2s ease; }
.lightbox-close:hover { transform: scale(1.1); }

/* ==========================================================================
   APPLE-STYLE DROP SHADOWS
   ========================================================================== */
.panel-box, .tour-date-card, .photo-item, .video-item, .hero-content-wrapper, .epk-header-video, .epk-side-col .testimonial {
    box-shadow: 0 1px 2px rgba(0,0,0,0.05), 
                0 2px 4px rgba(0,0,0,0.05), 
                0 4px 8px rgba(0,0,0,0.05), 
                0 8px 16px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s cubic-bezier(.25,.8,.25,1);
}
.tour-date-card:hover, .photo-item:hover, .video-item:hover {
    box-shadow: 0 3px 6px rgba(0,0,0,0.08), 0 3px 6px rgba(0,0,0,0.12);
}
.site-header.scrolled {
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* ==========================================================================
   MOBILE RESPONSIVE (Consolidated)
   ========================================================================== */
@media screen and (max-width: 1200px) {
    .photo-gallery { column-count: 2; }
}
@media screen and (max-width: 1024px) {
    .home-layout-grid, .tour-date-card { grid-template-columns: 1fr; }
}
@media screen and (max-width: 992px) {
    .epk-content { grid-template-columns: 1fr; }
}
@media screen and (max-width: 768px) {
    .container { padding: 0 20px; }
    .section { padding: 60px 0; }
    .site-header { flex-direction: column; padding: 10px; height: auto; border-radius: 25px; }
    .header-container { flex-direction: column; gap: 10px; }
    .nav-menu { flex-wrap: wrap; justify-content: center; }
    .photo-gallery { column-count: 1; }
}