/* -----------------------------------------------------------
   CORE CSS
----------------------------------------------------------- */
:root {
    /* Light Mode (Default) */
    --bg-color: #ffffff;
    --text-color: #000000;
    --accent-color: #47D3E5;
    --heading-color: #000000;
    --divider-color: rgba(0, 0, 0, 0.1);
    --card-bg: transparent;
    --card-border: rgba(0, 0, 0, 0.2);
    --footer-text: #666666;
    --icon-color: #666666;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --bg-color: #000000;
    --text-color: #e0e0e0;
    --accent-color: #47D3E5;
    --heading-color: #ffffff;
    --divider-color: rgba(255, 255, 255, 0.1);
    --card-bg: #1e1e1e;
    --card-border: rgba(255, 255, 255, 0.1);
    --footer-text: #aaaaaa;
    --icon-color: #aaaaaa;
}

/* RESET & BASE */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    box-sizing: border-box;
}

body {
    line-height: 1;
    background: var(--bg-color);
    color: var(--text-color);
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    font-weight: 300;
    -webkit-text-size-adjust: none;
    width: 100%;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography */
html { font-size: 18pt; }
@media screen and (max-width: 1680px) { html { font-size: 14pt; } }
@media screen and (max-width: 1280px) { html { font-size: 12pt; } }
@media screen and (max-width: 736px) { html { font-size: 11pt; } }

h1, h2, h3 { color: var(--heading-color); font-weight: 350; line-height: 1.375; margin: 0 0 1rem 0; }
h1 { font-size: 3.5rem; line-height: 1.2; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
strong, b { font-weight: 600; color: var(--heading-color); }
i, em { font-style: italic; }
p { margin: 0 0 1rem 0; line-height: 1.5; }
a { color: inherit; text-decoration: underline; transition: color 0.2s ease-in-out; }
a:hover { color: var(--accent-color); text-decoration: none; }
.align-center { text-align: center; }

/* --- CONSOLIDATED PHOTO TYPOGRAPHY (Used in Cards & Lightbox) --- */
/* This handles styling for text overlays automatically */
h4 {
    font-size: 1.5rem;
    color: var(--accent-color);
    font-weight: 350;
    line-height: 1.4;
    margin: 0 0 0.5rem 0;
}
p.photo {
    font-size: 1.2rem;
    line-height: 1.4;
    color: #dddddd;
    margin: 0;
}
.date {
    font-size: 1.4rem;
    line-height: 1.4;
    color: var(--accent-color);
    font-weight: 300;
    margin-top: 0.5rem;
}

/* Buttons */
.button {
    appearance: none;
    transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out, color 0.2s ease-in-out;
    border: 0;
    cursor: pointer;
    display: inline-block;
    font-weight: 600;
    letter-spacing: 0.125em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    font-size: 0.8rem;
    padding: 0 2.5em;
    height: 4em;
    line-height: 4em;
    border-radius: 4em;
    background-color: transparent;
    box-shadow: inset 0 0 0 2px var(--divider-color);
    color: var(--text-color) !important;
}
.button:hover { 
    box-shadow: inset 0 0 0 2px var(--accent-color); 
    color: var(--accent-color) !important; 
}

/* Theme Toggle (Moved to Bottom Left) */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px; /* Moved to left */
    width: 50px;
    height: 50px;
    background-color: var(--bg-color);
    border: 2px solid var(--divider-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    color: var(--text-color);
    font-size: 1.2rem;
}
.theme-toggle:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Language Toggle Button (Hidden but styled) */
.lang-toggle {
    position: fixed;
    bottom: 80px; /* Above the theme toggle */
    left: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--bg-color);
    border: 2px solid var(--divider-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}
.lang-toggle:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Photo Credit (Semi-transparent, bottom right) */* This is used for the banner image credit but can be reused for any photo credit */
/* 1. Add this wrapper class. 
   Any element with this class becomes the "anchor" for the credit text. */
.photo-wrapper {
  position: relative;       /* Crucial: locks the absolute text inside this box */
  display: inline-block;    /* Ensures the box shrinks to fit the image size */
  width: 100%;              /* Optional: Remove if you want it strictly image-width */
}

/* 2. The reusable credit text style (formerly .banner-credit) */
.photo-credit {
  position: absolute;       /* Floats on top of the parent .photo-wrapper */
  bottom: 0.5rem;           /* Distance from bottom */
  right: 0.5rem;            /* Distance from right */
  
  /* Styling to make it readable on any photo */
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  z-index: 10;
  
  /* Optional: text shadow or background for better contrast on light images */
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  /* background-color: rgba(0,0,0,0.3); */ /* Uncomment if you prefer a box */
  /* padding: 2px 6px; */
  /* border-radius: 4px; */
}

/* Banner Overlay */
.banner-overlay {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    color: #ffffff;
}
.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.banner-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.banner-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}
.banner-content {
    position: relative;
    z-index: 2;
    max-width: 50rem;
    padding: 2rem;
}
.banner-content h1 {
    color: #ffffff;
    font-size: 4rem;
    font-weight: 700; /* Bold Name */
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}
.banner-content h2 {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 300; /* Lighter font */
    margin-bottom: 2rem;
    text-transform: none; /* No longer all caps */
    letter-spacing: 0.05em;
}
.banner-content .button {
    box-shadow: inset 0 0 0 2px #ffffff;
    color: #ffffff !important;
}
.banner-content .button:hover {
    background-color: #ffffff;
    color: #000000 !important;
    box-shadow: none;
}
.banner-credit {
    position: absolute;
    bottom: 1rem;
    right: 2rem;
    color: rgba(255, 255, 255, 0.5); /* Semi-transparent white */
    font-size: 1.2rem;
    z-index: 5; /* Sit above overlay */
    font-weight: 300;
    letter-spacing: 0.05em;
    pointer-events: none; /* Let clicks pass through if overlapping anything */
}
@media screen and (max-width: 736px) {
    .banner-content h1 { font-size: 2.5rem; }
    .banner-content h2 { font-size: 1.5rem; }
}

/* Sections */
.wrapper { padding: 4rem 0; border-top: 2px solid var(--divider-color); }
.wrapper.style1 { background: var(--bg-color); }
.wrapper .inner {
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* About Section (Centered text, no image) */
.spotlight-text-only {
    padding: 4rem 2rem;
    text-align: center;
    max-width: 50rem;
    margin: 0 auto;
    border-top: 1px solid var(--divider-color);
}

/* -----------------------------------------------------------
   GALLERY (Auto Scroll) - SQUARES & FLIP
----------------------------------------------------------- */
.gallery-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-top: 2rem;
}
.gallery.style2 {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0;
    margin: 0;
    height: 400px; /* Fixed height for squares */
    scroll-behavior: smooth;
}
.gallery.style2::-webkit-scrollbar { display: none; }

.gallery.style2 article {
    flex: 0 0 400px; /* Force width = height for squares */
    max-width: 400px;
    height: 400px;
    position: relative;
    /* Inherit Flip Logic classes */
    perspective: 1000px;
    background: transparent;
    cursor: pointer;
    border-right: 1px solid var(--bg-color);
    scroll-snap-align: center;
}
@media screen and (max-width: 768px) {
    .gallery.style2 article { 
        flex: 0 0 85vw; /* On mobile, square relative to view width */
        height: 85vw;
    }
    .gallery.style2 { height: 85vw; }
}

/* Reuse Flip Card Inner/Front/Back styles from Poster Grid but adapt for Gallery */
/* We need to ensure the images in gallery behave like flip fronts */

.gallery.style2 article .flip-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}
 /* Hover flip for desktop */
@media screen and (min-width: 769px) {
    .gallery.style2 article:hover .flip-card-inner {
        transform: rotateY(180deg);
    }
}
/* Adjustments for gallery specific front/back */
 .gallery.style2 article .flip-card-front, 
 .gallery.style2 article .flip-card-back {
    border-radius: 0; /* Remove border radius for seamless scroll */
 }


/* -----------------------------------------------------------
   POSTER GRID (FLIP CARDS) & LOGIC
----------------------------------------------------------- */
.poster-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    margin: 2rem 0;
}

.poster-item {
    position: relative;
    perspective: 1000px;
    background: transparent;
    cursor: pointer;
    /* Aspect Ratio for posters usually portrait, e.g. 3:4 */
    aspect-ratio: 3/4; 
    box-sizing: border-box;
}

/* --- SMART SIZING LOGIC (UPDATED) --- */
            
            .poster-item {
                /* Base width relative to container */
                width: 100%; 
                /* Max width to maintain letter-size feel */
                max-width: 350px; 
                /* Grow/Shrink with a 300px basis */
                flex: 1 1 300px; 
                /* Ensure aspect ratio stays constant */
                aspect-ratio: 3/4;
            }

/* Flip Logic */
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}
@media screen and (min-width: 769px) {
    .poster-item:hover .flip-card-inner {
        transform: rotateY(180deg);
    }
}
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.flip-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.flip-card-back {
    background-color: rgba(0,0,0,0.9);
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
}

/* -- OLD SPECIFIC STYLES REMOVED TO ALLOW NEW CONSOLIDATED STYLES -- */
/* .flip-card-back h3 { color: var(--accent-color); font-size: 1rem; margin-bottom: 1rem; }
.flip-card-back p { font-size: 0.8rem; line-height: 1.2; margin-bottom: 1rem; }
.flip-card-back .date { ... }
*/

/* Lightbox */
.lightbox {
    position: fixed;
    z-index: 9999;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.95);
    overflow: auto;
    display: flex; flex-direction: column;
    align-items: center; justify-content: flex-start;
    padding-top: 60px;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease;
}
/* Italicize emphasized text in flip cards and lightbox */
.flip-card-back em,
#lightbox-text em {
    font-style: italic;
}
/* Ensure links inside these em tags inherit the color */
.flip-card-back em a,
#lightbox-text em a {
    color: inherit;
    text-decoration: underline;
}
/* Lightbox Close Button Hover Effect */
.lightbox-close:hover {
    color: var(--accent-color); /* Changes color on hover */
    transform: scale(1.1);      /* Slightly enlarges the button */
    transition: all 0.3s ease;  /* Smooth transition for the effect */
}
.lightbox-close:hover {
    color: #fff;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox-content { width: 100%; max-width: 800px; padding: 20px; text-align: center; }
.lightbox-content img { width: 100%; height: auto; display: block; margin-bottom: 1rem; }
#lightbox-text { color: #fff; text-align: left; }

/* Lightbox Close Button - Default (Desktop: Top Right) */
.lightbox-close {
    position: absolute;
    top: 20px;       /* Top for desktop */
    right: 20px;
    bottom: auto;    /* Reset bottom */
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 10001;
}
/* Lightbox Close Button - Mobile (Bottom Right) */
@media screen and (max-width: 768px) {
    .lightbox-close {
        top: auto;       /* Reset top */
        bottom: 20px;    /* Bottom for mobile */
        right: 20px;
        /* Optional: Add a background or border on mobile to make it easier to tap */
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 30px; /* Slightly smaller icon inside the circle */
    }
}

/* Past Highlight Images (Square) */
.past-grid-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    margin: 2rem auto;
    max-width: 1200px;
}

/* Square Item Size */
.square-item {
    aspect-ratio: 1/1;
    width: 300px;
    max-width: 100%;
    position: relative;
    cursor: pointer;
    /* Prevent growing to fill space: don't grow (0), don't shrink (0), remain at basis (300px) */
    flex: 0 0 300px; 
    /* Ensure they stay centered as a group, but individual items don't stretch */
    margin: 0; 
}

/* Update container to center the fixed-size items */
.past-grid-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* This keeps the group centered */
    gap: 2rem;
    width: 100%;
    margin: 2rem auto;
    max-width: 1200px;
}

@media screen and (max-width: 600px) {
    .past-grid-images { flex-direction: column; align-items: center; }
     .square-item { width: 100%; max-width: 400px; }
}

/* Color for emphasized text (Event Titles) in the table (additional colour with color: var(--accent-color); */
table td em {
    font-style: italic; /* Keeps it italic, optional if reset elsewhere */
}

/* Ensure links inside the em tag also inherit the accent color */
table td em a {
    color: inherit; 
    text-decoration: underline; /* Optional: keep underline for clarity */
}

table td em a:hover {
    color: var(--text-color); /* Optional: hover effect */
}

/* Table Styling */
.table-wrapper { width: 100%; overflow-x: auto; margin-bottom: 2rem; }
table { width: 100%; border-collapse: collapse; text-align: left; }
table th, table td { padding: 1rem; border-bottom: 1px solid var(--divider-color); }
table th { font-weight: 600; color: var(--heading-color); }
/* Thick separator for years - THINNER NOW & BORDER-TOP as requested */
tr.year-separator td {
    border-top: 2px solid var(--text-color); /* Changed to top */
    border-bottom: 1px solid var(--divider-color); /* Restore normal bottom */
}

/* --- CONCERTS PAGE LAYOUT --- */

/* --- RECITAL PAGE SPLIT LAYOUT --- */

.details-split {
    display: flex;
    justify-content: space-between; /* Pushes content to edges */
    align-items: flex-start; /* Aligns items to the top */
    gap: 4rem; /* Space between the two columns */
    text-align: left; /* Ensures the text on the left stays left-aligned */
}

/* Fix excessive bottom spacing on Event Details (Desktop) */
#details {
    padding-top: 2rem; /* Reduced from 4rem to remove the double-gap effect */
    padding-bottom: 0; /* Reduced from 4rem to remove the double-gap effect */
}

.details-left {
    flex: 1; /* Takes up available space */
}

.details-right {
    flex: 1; /* Takes up equal space */
    display: flex;
    flex-direction: column; /* Stacks the buttons vertically */
    gap: 1rem; /* Space between buttons */
}

/* Make buttons fully wide in this column */
.details-right .button {
    width: 100%;
}

    /* Mobile Layout: Stack them vertically & Reduce Spacing */
    @media screen and (max-width: 768px) {
        .details-split {
            flex-direction: column; 
            gap: 0.5rem; /* Drastically reduced gap between Text and Buttons */
            text-align: center; 
            align-items: center; 
        }
        
        .details-left, 
        .details-right {
            width: 100%;
        }

        /* 1. Fix "Top of Text" gap: Reduce the main section padding */
        #details.wrapper {
            padding-top: 2rem;    /* Reduced from 4rem to 2rem */
            padding-bottom: 2rem;
        }

        /* 2. Fix "Above Buttons" gap: Reduce the paragraph margin */
        .details-left p {
            margin-bottom: 1rem; /* Reduced from default 2rem */
        }
    }

/* --- PROGRAM STYLES --- */

/* --- SIMPLIFIED PROGRAM STYLES --- */

/* 1. Title (Bold, Left Aligned) */
h5 {
    font-size: 1rem;       /* Normal text size */
    font-weight: 700;      /* Bold */
    color: var(--heading-color);
    margin: 0 0 1rem 0;  /* Tiny gap before composer line */
    text-align: left;
}

/* 2. Composer (Right Aligned) */
.composer {
    display: block;        /* Ensures it takes its own line */
    text-align: right;     /* Pushes text to the right */
    margin-bottom: 0.8rem; /* Space before movements start */
    line-height: 0.8;
}

/* 3. Movements (Indented) */
.movements {
    margin-left: 1rem;     /* The indentation */
    margin-bottom: 3rem;   /* Big space between different pieces */
    font-style: italic;    
    line-height: 1.6;
}

    /* Mobile Tweak: Stack them on small screens */
    @media screen and (max-width: 600px) {
        .composer { text-align: right; margin-top: 0.5rem; width: 100%; }
    
    /* Force these sections to be full width on mobile, overriding the HTML 80% */
        #program .inner,
        #composer .inner {
            max-width: 100% !important;
        }
    }
    
/* --- FEATURED COMPOSER PROFILE --- */

.composer-profile {
    display: flex;
    gap: 3rem;              /* Space between photo and text */
    align-items: flex-start; /* Aligns them at the top */
    text-align: left;
}

.profile-image {
    flex: 1;                /* Takes up 1 part width */
    max-width: 300px;       /* Prevents photo from getting too huge */
    position: relative;
}

.profile-image img {
    width: 100%;            /* Fills the container */
    border-radius: 4px;     /* Slight rounded corners */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* Nice shadow */
}

    /* --- NEW CREDIT STYLE --- */
.profile-image-credit {
    position: absolute;
    bottom: 0.75rem;
    right: 0.5rem;
    color: rgb(255, 255, 255); /* white */
    font-size: 1rem;
    z-index: 5; /* Sit above overlay */
    font-weight: 100;
    letter-spacing: 0.05em;
    pointer-events: none; /* Let clicks pass through if overlapping anything */
    
    /* Text shadow ensures readability on light or dark photos */
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    
    /* Optional: A tiny background if the text is hard to read */
    /* background-color: rgba(0, 0, 0, 0.2); */
    /* padding: 2px 5px; */
    /* border-radius: 3px; */
    
    pointer-events: none;    /* Clicks go through text to the image */
}

.profile-bio {
    flex: 2;                /* Takes up 2 parts width (wider than image) */
}

    /* Mobile: Stack image on top */
    @media screen and (max-width: 768px) {
        .composer-profile {
            flex-direction: column;
            align-items: center;
        }
        
        .profile-image {
            max-width: 80%;      /* Make image slightly smaller on phone */
            margin-bottom: 1.5rem;
        }

        .profile-bio {
            width: 100%;
            text-align: left;    /* Keep bio text left-aligned for readability */
        }
    }

    /* --- MUSICIANS PHOTO WALL (UPDATED with Flip) --- */

.musician-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    gap: 1.5rem;             
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;      
}

.musician-item {
    /* DESKTOP SIZE: Fits roughly 5 in a row */
    width: 160px;
    height: 160px; /* Force square */
    position: relative;
    perspective: 1000px; /* Essential for 3D flip */
    cursor: pointer;
    border-radius: 4px;
}

/* Flip Hover Effect for Musicians */
@media screen and (min-width: 769px) {
    .musician-item:hover .flip-card-inner {
        transform: rotateY(180deg);
    }
}

/* Make text small enough to fit on the 160px square back */
.musician-item .flip-card-back h4 {
    font-size: 1rem; /* Smaller than normal cards */
    margin-bottom: 0.2rem;
}
.musician-item .flip-card-back p.photo {
    font-size: 0.9rem; /* Smaller than normal cards */
}

/* --- MOBILE LAYOUT (Phones Only) --- */
@media screen and (max-width: 768px) {

    /* 1. Stack the columns vertically */
    .details-split,
    .composer-profile {
        flex-direction: column; 
        gap: 1rem;
        text-align: center; 
        align-items: center; 
    }
    
    /* 2. Force columns to be full width */
    .details-left, 
    .details-right,
    .profile-image,
    .profile-bio {
        width: 100%;
    }

    /* 3. Reduce Section Spacing */
    #details {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* 4. Reduce Paragraph spacing */
    .details-left p,
    .profile-bio p {
        margin-bottom: 1rem;
    }
    
    /* 5. Center the Composer text on mobile */
    .profile-bio h3 {
        text-align: center !important;
    }

    /* 6. Footer Mobile */
    .footer-split {
        flex-direction: column; 
        gap: 1.5rem; 
        text-align: center;
    }
    .footer-col-right {
        text-align: center; 
    }

    /* 7. Musician Grid: STRICT 3-PER-ROW */
    .musician-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* Exactly 3 columns */
        gap: 0.5rem; 
    }

    .musician-item {
        width: 100%; /* Fill the grid cell */
        height: auto;
        aspect-ratio: 1 / 1; /* Maintain square */
    }
}

/* Video Grid */

/* OPTIONAL GRID */
/*      .custom-video-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
        width: 100%;
        max-width: 70rem;
        margin: 2rem auto;
        padding: 0 2rem;
    }


    @media screen and (min-width: 768px) {
        .custom-video-grid {
            grid-template-columns: 1fr 1fr;
        }
    }
    .video-wrapper {
        position: relative;
        padding-bottom: 56.25%;
        height: 0;
        overflow: hidden;
        border-radius: 4px;
        background: #000;
        margin-bottom: 1rem;
    }
    .video-wrapper iframe {
        position: absolute;
        top: 0; left: 0; width: 100%; height: 100%; border: 0;
    }
*/

/* --- RESPONSIVE VIDEO EMBED --- */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio (height is 56.25% of width) */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 4px;
    margin-top: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Footer */
footer ul.icons { list-style: none; padding: 0; margin-bottom: 1.5rem; }
footer ul.icons li { display: inline-block; padding: 0 1rem; }
/* Remove text labels in icons */
footer .icon .label { display: none; }
footer .icon { font-size: 2.5rem; color: var(--icon-color); text-decoration: none; }
footer .icon:hover { color: var(--accent-color); }
footer p { margin-bottom: 0.5rem; }

/* --- New Footer Columns Layout --- */

.footer-split {
    display: flex;
    justify-content: space-between; /* Pushes columns to left and right edges */
    align-items: center; /* Vertically centers the icons relative to the text */
    width: 100%;
    text-align: left; /* Resets the default center alignment */
}

/* Right Column (Text) Styling */
.footer-col-right {
    text-align: right; /* Aligns text to the right */
}

/* Mobile Responsiveness for Footer */
@media screen and (max-width: 768px) {
    .footer-split {
        flex-direction: column; /* Stacks them vertically on mobile */
        gap: 1.5rem; /* Adds space between icons and text */
        text-align: center;
    }
    
    .footer-col-right {
        text-align: center; /* Centers text on mobile */
    }
}

/* Animation Classes */
.fade-in-on-scroll { opacity: 0; transform: translateY(20px); transition: opacity 1s ease-out, transform 1s ease-out; }
.fade-in-on-scroll.is-visible { opacity: 1; transform: translateY(0); }