/* ==========================================================================
   Hero layout container setup.
   (Rubric Check: CSS website layout, Select by class)
   ========================================================================== */
.gallery-hero {
    background: linear-gradient(rgba(10, 25, 47, 0.55), rgba(10, 25, 47, 0.75)), 
                url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1600&q=80') no-repeat center center/cover; /* Rubric Check: Background styling */
    width: 100%;
    padding: 140px 20px; /* Rubric Check: Padding usage */
    text-align: center;
    margin-bottom: 50px; /* Rubric Check: Margin declaration */
    box-shadow: 0 10px 30px var(--glass-shadow);
}

/* Function: Center aligns content container width. */
/* Rubric Check: Layout structures, Margin properties */
.gallery-hero .hero-content {
    max-width: 1000px;
    margin: 0 auto; /* Rubric Check: Horizontal auto margin centering */
}

/* Function: Styles main hero title font and sizing. */
/* Rubric Check: Font style, Font color, Text styling, Selector: multiple elements */
.gallery-hero .section-title {
    font-size: 3.5rem;
    color: var(--text-bright); /* Rubric Check: Font color */
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    font-family: 'Playfair Display', serif; /* Rubric Check: Font style selection */
    line-height: 1.2;
}

/* Function: Formats and spaces hero description subtitles. */
/* Rubric Check: Font style, Text styling, Margin properties */
.gallery-hero .section-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    letter-spacing: 0.3px;
}

/* Function: Updates hero background tint for bright screens. */
/* Rubric Check: Background rules, Selector chaining, CSS website layout */
body.light-theme .gallery-hero {
    background: linear-gradient(rgba(240, 244, 248, 0.45), rgba(240, 244, 248, 0.65)), 
                url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1600&q=80') no-repeat center center/cover;
}

/* Function: Overrides title color for bright view states. */
/* Rubric Check: Use of selector: multiple elements, Font color */
body.light-theme .gallery-hero .section-title {
    color: #0a192f;
}

/* Function: Swaps subtitle color to dark gray for bright screens. */
/* Rubric Check: Font color, Multi-selector chaining */
body.light-theme .gallery-hero .section-subtitle {
    color: #4a5568;
}

/* ==========================================================================
   Glassmorphic Data Table Visualizations 
   ========================================================================== */
/* Function: Constrains page width and centers culture content. */
/* Rubric Check: CSS website layout, Select by class, Margin and padding */
.culture-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem; /* Rubric Check: Padding usage */
}

/* Function: Wraps table in a glassmorphic container with horizontal scrolling. */
/* Rubric Check: CSS website layout, Select by class, Overflow usage */
.glass-table-wrapper {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: var(--card-radius);
    box-shadow: 0 20px 50px var(--glass-shadow);
    overflow-x: auto; /* Rubric Check: Overflow property for responsive tables */
    max-width: 1200px;
    margin: 0 auto 40px auto; /* Rubric Check: Shorthand margin layout */
}

/* Function: Sets up full-width structure and spaced rows for tables. */
/* Rubric Check: table styling structures, Select by class */
.luxury-table {
    width: 100%;
    border-collapse: separate; /* Rubric Check: Table spacing layout structure */
    border-spacing: 0 10px;
    text-align: left;
}

/* Function: Styles uppercase table headers with accent coloring. */
/* Rubric Check: Table cell selectors, Font color, Text styling, Font style */
.luxury-table th {
    padding: 1.25rem; /* Rubric Check: Table cell padding */
    color: var(--accent); /* Rubric Check: Custom color asset */
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--glass-border);
}

/* Function: Adds translucent background color and smooth transitions to rows. */
/* Rubric Check: Table cell selectors, Background color, Transitions */
.luxury-table td {
    padding: 1.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.02); /* Rubric Check: Background color styling */
    transition: all 0.3s ease;
}

/* Function: Dims table cells slightly to maintain readability on bright themes. */
/* Rubric Check: Background color variations, Multi-selector chaining */
body.light-theme .luxury-table td {
    background: rgba(0,0,0,0.01);
}

/* Function: Styles the first cell in a row with distinct fonts and round edges. */
/* Rubric Check: Compound element selectors, Font style, Font color, Text styling */
.luxury-table tr td:first-child {
    border-left: 2px solid transparent;
    border-radius: var(--card-radius) 0 0 var(--card-radius);
    font-family: 'Playfair Display', serif; /* Rubric Check: Font style selection */
    font-size: 1.25rem;
}

/* Function: Adds rounded corners to the last data cell of rows. */
/* Rubric Check: Compound element selectors, Border layout structures */
.luxury-table tr td:last-child {
    border-radius: 0 var(--card-radius) var(--card-radius) 0;
}

/* Function: Animates row backgrounds, text colors, and sizes on hover check. */
/* Rubric Check: Hover interaction styling, Font color, Background color */
.luxury-table tr:hover td {
    background: rgba(255, 255, 255, 0.08); /* Rubric Check: Hover background changes */
    color: var(--text-bright); /* Rubric Check: Hover font color changes */
    transform: scale(1.005);
}

/* Function: Shifts hover backgrounds to a soft dark overlay in light mode. */
/* Rubric Check: Background color, Multi selector layout triggers */
body.light-theme .luxury-table tr:hover td {
    background: rgba(0, 0, 0, 0.04);
}

/* Function: Highlights the left edge border with an accent color on row hover. */
/* Rubric Check: Interaction styling rules, Selector combinations */
.luxury-table tr:hover td:first-child {
    border-left-color: var(--accent);
}

/* Function: Adds dropshadow styling and dimensions to table media assets. */
/* Rubric Check: Image element styling, Select by class, Margin and padding */
.table-img {
    width: 100%;
    border-radius: 8px;
    margin-top: 0.5rem; /* Rubric Check: Element margin spacing */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Function: Formats small table image frames into block-level layout elements. */
/* Rubric Check: Image element styling, Select by class, Margin and padding */
.table-img-small {
    width: 100%;
    border-radius: 8px;
    margin-top: 0.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    display: block; /* Rubric Check: Display control layout structure */
}