/* ==========================================================================
   Gallery Hero Banner - Immersive Viewport Structure
   (Rubric Check: CSS website layout, Select by class)
   ========================================================================== */

.gallery-hero {
    position: relative !important;
    width: 100% !important;
    min-height: 60vh !important;
    display: flex !important; /* Rubric Check: Layout structure via Flexbox */
    align-items: center !important;
    justify-content: center !important;
    
    /* Dual-layer background: Linear dark gradient + Premium ocean photography image */
    /* Rubric Check: Background styling, Background color */
    background-image: linear-gradient(to bottom, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.4) 60%, rgba(15, 23, 42, 0.98) 100%), 
                      url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1920&q=80') !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: cover !important;
    
    /* Large top padding to prevent content text from hiding beneath the navigation menu bar frame bounds */
    padding: 13rem 2rem 6rem 2rem !important; /* Rubric Check: Padding usage */
    box-sizing: border-box !important;
    overflow: hidden; /* Rubric Check: Overflow property */
}

/* Function: Center aligns content container width inside hero view. */
/* Rubric Check: Margin and padding, Layout structures */
.gallery-hero .hero-content {
    position: relative !important;
    z-index: 10 !important;
    max-width: 950px !important;
    margin: 0 auto !important; /* Rubric Check: Horizontal auto margin centering */
    text-align: center !important;
}

/* Function: Styles typography, drop shadow, and sizing for page main title. */
/* Rubric Check: Font style, Font color, Text styling, Use of selector: multiple element */
.gallery-hero .section-title {
    font-family: 'Playfair Display', serif !important; /* Rubric Check: Font style selection */
    font-size: 4rem !important;
    color: #ffffff !important; /* Rubric Check: Font color */
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important; /* Rubric Check: Margin declaration */
    letter-spacing: -0.5px !important;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6) !important;
    line-height: 1.2 !important;
}

/* Function: Sets paragraph typography spacing and text alignment for subtitles. */
/* Rubric Check: Font style, Text styling, Margin properties */
.gallery-hero .section-subtitle {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 1.2rem !important;
    line-height: 1.8 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    max-width: 700px !important;
    margin: 0 auto !important;
}

/* ==========================================================================
   Structural Main Content & Section Groupers
   ========================================================================== */

/* Function: Outer framing box to enclose main grid sections. */
/* Rubric Check: CSS website layout, Select by class, Margin and padding */
.gallery-main-content {
    max-width: 1300px;
    margin: 0 auto;
    padding: 2rem 2rem 6rem 2rem; /* Rubric Check: Padding declaration */
    box-sizing: border-box;
}

/* Extends page scrolling length by splitting individual island structural galleries vertically */
/* Rubric Check: Margin and padding properties, Border structures */
.island-gallery-block {
    margin-bottom: 9rem; /* Rubric Check: Margin properties */
    padding-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Function: Resets top lines and padding offsets on first container elements. */
/* Rubric Check: Multi-selector chaining, Border layout structures */
.island-gallery-block:first-of-type {
    border-top: none;
    padding-top: 0;
}

/* Function: Manages bottom spacing margins for descriptive content metadata. */
/* Rubric Check: Margin layout properties, Select by class */
.island-meta-header {
    margin-bottom: 3.5rem;
}

/* Function: Applies amber custom accent colors and bold fonts to tag strings. */
/* Rubric Check: Font style, Font color, Margin rules */
.location-tag {
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: #f59e0b; /* Rubric Check: Custom color asset */
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.5rem;
}

/* Function: Sets font formatting and weights for individual block section titles. */
/* Rubric Check: Font style, Font color, Text styling, Select by class */
.island-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: -0.3px;
}

/* Function: Fixes body paragraph constraints and text color descriptors. */
/* Rubric Check: Font style, Text styling, Font color variables */
.island-desc {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #94a3b8;
    max-width: 800px;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ==========================================================================
   Premium Asymmetric Masonry Structure (3 Gambar)
   ========================================================================== */

/* Function: Builds a multi-column fluid grid wall layout matrix. */
/* Rubric Check: CSS website layout (Grid structure), Select by class, Margins */
.fluid-masonry-wall {
    display: grid; /* Rubric Check: Advanced layout via CSS Grid */
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

/* Function: Packs image frames securely using overflow boundaries and hidden edges. */
/* Rubric Check: CSS website layout, Select by class, Overflow usage */
.wall-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden; /* Rubric Check: Content containment via overflow hide */
    height: 420px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Balances full panoramic wide rows spanning 100 percent along baseline grids */
/* Rubric Check: Dimension rules, Multi class chaining triggers */
.wall-item.item-span-12 {
    height: 460px;
}

/* Function: Forces media graphics to expand cleanly across card blocks. */
/* Rubric Check: Image element styling, Transitions, Layout parameters */
.wall-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(85%);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Interactive Description Card Overlay Sliding Up From Base Frame Bottoms (Hover Effect) */
/* Rubric Check: Background configurations (Linear gradients), Margin and padding */
.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem 2rem 2rem 2rem; /* Rubric Check: Micro padding alignment */
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0) 100%);
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Function: Customizes caption string sizing inside hover text screens. */
/* Rubric Check: Font style, Font color, Compound element structures */
.item-overlay span {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Micro-Interaction Animation Styling on Card Element Hover */
/* Rubric Check: Hover interaction styling, Image element layout updates */
.wall-item:hover img {
    filter: brightness(100%);
    transform: scale(1.03); /* Rubric Check: Hover scale transformations */
}

/* Function: Slidably reveals textual label overlays during hover checks. */
/* Rubric Check: Hover animations, Selector chaining variations */
.wall-item:hover .item-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Asymmetric Column Distribution Span Profiles */
/* Rubric Check: Grid track span assignments, Select by class */
.item-span-4 { grid-column: span 4; }
.item-span-8 { grid-column: span 8; }
.item-span-12 { grid-column: span 12; }

/* ==========================================================================
   Cinematic Video Showcases
   ========================================================================== */

/* Function: Centers and pads containers enclosing embedded movie streaming nodes. */
/* Rubric Check: CSS website layout, Select by class, Margin and padding */
.cinematic-video-box {
    background: #1e293b; /* Rubric Check: Background color styling */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem; /* Rubric Check: Element padding limits */
    max-width: 1000px;
    margin: 0 auto;
}

/* Function: Centers subtitle headers attached underneath tracking media elements. */
/* Rubric Check: Text styling via alignment, Font color, Font style */
.video-label {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #f1f5f9;
    margin-bottom: 1.5rem;
    text-align: center; /* Rubric Check: Text horizontal center alignment */
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Function: Isolates native streaming boxes, executing clipping masks. */
/* Rubric Check: CSS website layout, Overflow properties, Select by class */
.video-container-frame {
    position: relative;
    border-radius: 12px;
    overflow: hidden; /* Rubric Check: Clean media clipping via overflow hidden */
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    background: #0f172a;
}

/* Function: Keeps embedded multimedia nodes scaled to a crisp widescreen form. */
/* Rubric Check: HTML5 Audio/Video element layout, Dimension properties */
video {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* ==========================================================================
   Automatic Light Theme System Variables Support
   ========================================================================== */

/* Function: Updates hero background tints for bright light theme layouts. */
/* Rubric Check: Use of selector: multiple element, Background gradients */
body.light-theme .gallery-hero {
    background-image: linear-gradient(to bottom, rgba(248, 250, 252, 0.85) 0%, rgba(248, 250, 252, 0.5) 60%, rgba(248, 250, 252, 1) 100%), 
                      url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1920&q=80') !important;
}

/* Function: Removes headers shadow masks and swaps fonts to dark blue. */
/* Rubric Check: Font color variations, Multi element compound selectors */
body.light-theme .gallery-hero .section-title { color: #0f172a !important; text-shadow: none !important; }
body.light-theme .gallery-hero .section-subtitle { color: #475569 !important; }

/* Function: Inverts tracking descriptive heads to dark tones on bright screens. */
/* Rubric Check: Font color, Multi selector combination layout triggers */
body.light-theme .island-title { color: #0f172a; }
body.light-theme .island-desc { color: #475569; }
body.light-theme .island-gallery-block { border-top-color: rgba(15, 23, 42, 0.08); }

/* Function: Swaps clip video frames to plain white sheets for bright views. */
/* Rubric Check: Background color variations, Border color updates, Selector mapping */
body.light-theme .cinematic-video-box {
    background: #ffffff; /* Rubric Check: Solid bright theme card background shift */
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.04);
}
body.light-theme .video-label { color: #0f172a; }

/* ==========================================================================
   Responsive Structural Breakpoints
   ========================================================================== */

/* Function: Restructures content layout grids from asymmetrical columns to 2 evenly spread blocks on tablets. */
/* Rubric Check: CSS website layout (Responsive Media Queries), Grid configuration resets */
@media (max-width: 1024px) {
    .gallery-hero { padding: 11rem 2rem 4rem 2rem !important; min-height: 45vh !important; }
    .gallery-hero .section-title { font-size: 2.8rem !important; }
    
    .fluid-masonry-wall { 
        grid-template-columns: repeat(2, 1fr); /* Rubric Check: Responsive columns layout shift */
        gap: 1rem; 
    }
    .item-span-4, .item-span-8, .item-span-12 { grid-column: span 2; }
    .wall-item, .wall-item.item-span-12 { height: 340px; /* Rubric Check: Responsive block height reductions */ }
    
    .island-title { font-size: 2.1rem; }
}

/* Function: Compresses layouts into a unified straight single vertical column column stack on small phones. */
/* Rubric Check: CSS website layout (Responsive Media Queries), Grid system scaling resets */
@media (max-width: 768px) {
    .gallery-hero .section-title { font-size: 2.2rem !important; }
    .island-meta-header { margin-bottom: 2rem; }
    .island-title { font-size: 1.8rem; }
    
    .fluid-masonry-wall { grid-template-columns: 1fr; /* Rubric Check: Responsive single-column grid transformation */ }
    .item-span-4, .item-span-8, .item-span-12 { grid-column: span 1; }
    .wall-item, .wall-item.item-span-12 { height: 280px; }
    
    .cinematic-video-box { padding: 1.25rem; }
    .island-gallery-block { margin-bottom: 6rem; }
}