/* -----------------------------------------------------------
   GLOBAL VARIABLES (Theming)
----------------------------------------------------------- */
:root {
	/* Light Mode (Default) */
	--bg-color: #ffffff;
	--text-color: #000000;
	--accent-color: rgb(124, 147, 116);
	--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; /* Default icon color */
}

/* Dark Mode Variables */
[data-theme="dark"] {
	--bg-color: #000000;
	--text-color: #e0e0e0;
	--accent-color: #9AB293; /* Keep accent same or adjust if needed */
	--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;
}

/* -----------------------------------------------------------
   GLOBAL RESET & BASE STYLES
----------------------------------------------------------- */
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;
}

/* Re-enable bold and italic text */
em, b { font-weight: bold; }

body {
	line-height: 1;
	background: var(--bg-color);
	color: var(--text-color);
	font-family: "Source Sans Pro", Helvetica, sans-serif;
	font-weight: 350;
	-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 h4 { color: var(--heading-color); font-weight: 300; line-height: 1.4; margin: 0 0 1rem 0; }
h1 { font-size: 3.5rem; line-height: 1.2; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.5rem; color: var(--accent-color); font-weight: 500; margin: 1.5rem 0 0.5rem 0;}
i { font-style: italic; }

p { margin: 0 0 0.5rem 0; line-height: 1.65; }
p.major { font-size: 1.25rem; }
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; }

/* -----------------------------------------------------------
   FLOATING HEADER (Wealthsimple Style & Liquid Glass Fix)
----------------------------------------------------------- */
.ws-header {
    position: fixed;
    top: 20px;
    
    /* --- 1. SAFELY CENTERED WITHOUT TRANSFORM --- */
    left: 0;
    right: 0;
    margin: 0 auto;
    /* -------------------------------------------- */
    
    width: calc(100% - 40px);
    max-width: 1200px;
    height: 64px;
    
    /* --- 2. MUST BE TRANSPARENT (Blur handled by ::before) --- */
    background-color: transparent; 
    /* --------------------------------------------------------- */
    
    border-radius: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px 0 12px;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* --- 3. THE BLUR LAYER (Prevents trapping the dropdown!) --- */
.ws-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(244, 247, 244, 0.85); /* Your soft sage */
    backdrop-filter: blur(4px); /* The frosted glass blur */
    -webkit-backdrop-filter: blur(4px); /* CRITICAL: iPhones/Safari */
    border-radius: inherit; /* Matches your header's pill shape perfectly */
    z-index: -1; /* Puts it behind your logo and buttons */
}
/* ---------------------------------------------------------------- */

.ws-logo {
    display: flex;
    align-items: center;
}

.ws-logo img {
    height: 40px;
    width: auto;
    display: block;
}

.ws-controls {
    display: flex;
    gap: 10px;
    position: relative;
}

/* Circular Icon Buttons */
.ws-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #000000;
    background-color: transparent;
    color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    outline: none;
}

/* Force Font Awesome icons to dead-center in circular buttons */
.ws-icon-btn i {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.ws-icon-btn svg, .ws-icon-btn i {
    width: 20px;
    height: 20px;
}

.ws-icon-btn:hover {
    border-color: var(--accent-color);
	color: var(--accent-color);
}

/* Mobile Header Adjustments */
@media screen and (max-width: 768px) {
    .ws-header {
        top: 10px;
        width: calc(100% - 20px);
        height: 56px;
        padding: 0 10px 0 18px;
    }
    
    .ws-logo img {
        height: 30px;
    }

    .ws-icon-btn {
        width: 40px;
        height: 40px;
    }
}

/* --- DROPDOWN MENU --- */
.ws-dropdown {
    position: absolute; 
    top: 60px; 
    right: -8px; 
    width: 220px;
    background-color: rgba(244, 247, 244, 0.85); 
    backdrop-filter: blur(4px); 
    -webkit-backdrop-filter: blur(4px); 
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease-in-out;
}

.ws-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    backdrop-filter: blur(4px); 
    -webkit-backdrop-filter: blur(4px);
}

.ws-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* --- MENU ITEMS & PILL HOVER SHAPES --- */

/* 1. The standard links */
.ws-dropdown a {
    display: block;
    margin: 0.25rem 0.75rem; 
    padding: 0.6rem 1rem; 
    border-radius: 12px; 
    color: #000000;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* 2. Format the Accordion Header container specifically */
.submenu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.25rem 0.75rem; 
    padding: 0.6rem 0.25rem 0.6rem 1rem; 
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* 3. The 'Concerts' text inside the header shouldn't double-up on padding/margins */
.submenu-header a {
    margin: 0;
    padding: 0;
    flex-grow: 1;
    background-color: transparent !important; 
}

/* 4. Apply the pill-shaped hover effect to both links and the submenu header */
.ws-dropdown a:hover,
.submenu-header:hover {
    background-color: rgba(0, 0, 0, 0.05); 
    color: var(--accent-color);
}

/* Ensure text color changes on hover for the nested link inside the header */
.submenu-header:hover a,
.submenu-header:hover .submenu-toggle {
    color: var(--accent-color);
}

/* --- SUB-MENU ACCORDION STYLES --- */

/* The arrow button */
.submenu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
    color: #000000;
    transition: transform 0.2s ease, color 0.2s ease;
}

.submenu-toggle.active {
    transform: rotate(180deg); 
}

/* The nested list */
.ws-dropdown .submenu {
    display: none; 
    padding-left: 0.5rem; 
    background-color: rgba(0, 0, 0, 0.02); 
    border-left: 2px solid var(--accent-color); 
    margin: 0.25rem 1rem; 
}

.ws-dropdown .submenu.active {
    display: block; 
    animation: fadeIn 0.3s ease;
}

/* Makes sub-links slightly smaller to show hierarchy */
.ws-dropdown .submenu a {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    font-weight: 400;
    margin: 0.25rem 0.5rem; 
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Alignment */
@media screen and (max-width: 768px) {
    .ws-dropdown {
        top: 60px;
        right: -8px;
    }
}

/* -----------------------------------------------------------
   BANNER OVERLAY STYLE
----------------------------------------------------------- */
.banner-overlay {
	position: relative;
	width: 100%;
	height: 80vh;
	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; margin-bottom: 1rem; letter-spacing: 0.05em; }
.banner-content p { color: #ffffff; font-size: 2rem; margin-bottom: 2.5rem; font-weight: 350;}
.banner-credit { position: absolute; bottom: 1rem; right: 2rem; color: rgba(255, 255, 255, 0.5); font-size: 1.2rem; z-index: 5; font-weight: 300; pointer-events: none; }
@media screen and (max-width: 736px) {
	.banner-content h1 { font-size: 2.5rem; }
	.banner-content p { font-size: 1.2rem; }
}

/* --- MOBILE LANDSCAPE FIX --- */
@media screen and (max-height: 500px) {
    .banner-overlay {
        min-height: 100vh; 
    }
    .banner-content {
        margin-top: 70px; 
    }
}

/* Buttons */
/* -----------------------------------------------------------
   UNIFIED SHADED PILL BUTTONS (YouTube Style)
----------------------------------------------------------- */

/* 1. Master Button Style (Applies to Banner, Zeffy, and all general buttons) */
.button,
.poster-item .flip-card-back .ticket-button {
    appearance: none;
    display: inline-block;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);

    /* --- THE UNIFIED FROSTED SAGE LOOK --- */
    background-color: rgba(124, 147, 116, 0.8); /* Rich 90% shaded sage green */
    border: 0.75px solid rgba(255, 255, 255, 0.8); /* Crisp white outline */
    color: #ffffff !important; /* Bold white text */
    /* ------------------------------------- */
    
    font-size: 0.95rem;
    padding: 0 2.5em;
    height: 3.8em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4em; /* Perfect pill shape */
}

/* 2. Unified Hover State: Flashes crisp white with sage green text & subtle lift! */
.button:hover,
.banner-content .button:hover,
.poster-item .flip-card-back .ticket-button:hover {
    background-color: #ffffff;
    border-color: #ffffff;
    color: var(--accent-color) !important;
    transform: translateY(-2px); /* Subtle lift effect */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* 3. Specific Sizing for Poster Card Button (Keeps it compact so it fits the card!) */
.poster-item .flip-card-back .ticket-button {
    display: inline-block;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem 1.5rem; /* Tighter padding for the card container */
    font-size: 0.85rem !important;
    font-weight: 700;
    line-height: normal;
    height: auto;
    border-radius: 2rem;
}

/* -----------------------------------------------------------
   SECTIONS & LAYOUT
----------------------------------------------------------- */
.wrapper { padding: 3rem 0; border-top: 1px 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; }
#wrapper > .wrapper:first-of-type { border-top: none; }
.spotlight { display: flex; flex-direction: row; align-items: center; position: relative; overflow-x: hidden; border-top: 1px solid var(--divider-color); }
.spotlight .content { padding: 4rem; width: 100%; text-align: center }

/* Video Grid (PRESERVED FOR LATER USE) */
.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 0fr; } } /*updated to 1fr 0fr for single video*/
.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; }

/* -----------------------------------------------------------
   PHOTO, POSTER & MUSICIAN GRID STYLES
----------------------------------------------------------- */
.custom-photo-grid { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 1.5rem; 
    width: 100%; 
    max-width: 75rem; 
    margin: 2rem auto; 
    padding: 0 1rem; 
}

.custom-photo-grid > .photo-item {
    width: calc(50% - 0.75rem); /* Maintains 2-per-row on smaller screens */
    max-width: 25rem; /* Prevents two single photos from becoming giant, matching your original 1/3 grid size */
}

@media screen and (min-width: 980px) { 
    .custom-photo-grid > .photo-item { 
        width: calc(33.333% - 1rem); /* Maintains 3-per-row on desktop */
    } 
}

.poster-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; width: 100%; margin: 2rem 0; }

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

/* Shared Container Styles */
.photo-item, .poster-item, .musician-item {
	background-color: transparent;
	perspective: 1000px;
	cursor: pointer;
    box-sizing: border-box;
    position: relative;
}

.photo-item { aspect-ratio: 3/2; }

/* Poster scaling */
.poster-item {
    aspect-ratio: 3/4; 
    width: 100%; 
    max-width: 24rem; 
    flex: 1 1 18rem; 
}

/* Musician scaling */
.musician-item {
    width: 160px;
    height: 160px;
    border-radius: 4px;
}

/* -----------------------------------------------------------
   SHARED FLIP CARD ANIMATION LOGIC
----------------------------------------------------------- */
.flip-card-inner { position: relative; width: 100%; height: 100%; text-align: center; transition: transform 0.6s; transform-style: preserve-3d; }

/* Desktop (Mouse) */
@media (hover: hover) {
    .photo-item:hover .flip-card-inner, 
    .poster-item:hover .flip-card-inner,
    .musician-item:hover .flip-card-inner { 
        transform: rotateY(180deg); 
    }
}

/* Mobile (Touch) */
.photo-item, .poster-item, .musician-item { outline: none; -webkit-tap-highlight-color: transparent; }

.photo-item:focus .flip-card-inner, 
.poster-item:focus .flip-card-inner,
.musician-item:focus .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; }
.flip-card-front img { width: 100%; height: 100%; object-fit: contain; }
.musician-item .flip-card-front img {object-fit: cover !important;} /* Force musician headshots to fill the square completely */

.custom-photo-grid .photo-item:nth-child(3) .flip-card-front img { object-position: center 20%; }

/* Default Back Style */
.flip-card-back {
	background-color: rgba(0,0,0,0.8);
	color: white;
	transform: rotateY(180deg);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 1.5rem 1rem;
	backdrop-filter: blur(5px);
}

/* -----------------------------------------------------------
   ELEGANT TEXT HIERARCHY (For Card Backs)
----------------------------------------------------------- */
/* Poster specifically gets a darker back */
.poster-item .flip-card-back { background-color: rgba(0,0,0,0.9); backdrop-filter: none; }

.poster-item .flip-card-back h4 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
    font-weight: 350;
    line-height: 1.4;
}

.poster-item .flip-card-back p { font-size: 1.1rem; margin-bottom: 0.5rem; line-height: 1.4; color: #ffffff; }
.poster-item .flip-card-back .date { font-size: 1.25rem; margin-bottom: 0.5rem; line-height: 1.4; color: var(--accent-color); }
.poster-item .flip-card-back em { font-style: italic; }
.poster-item .flip-card-back em a { color: inherit; text-decoration: underline; }

/* Musician Back Layout */
.musician-item .flip-card-back h4 {
    font-size: 1rem; 
    margin-bottom: 0 0 0.2rem 0;
    color: var(--accent-color); 
}
.musician-item .flip-card-back p.photo {
    font-size: 0.9rem;
	margin: 0 !important;
}

/*-- Poster Card Button has been moved to be with the other button formatting */

/* -----------------------------------------------------------
   NEW BUBBLE LIST LAYOUT (Upcoming Concerts) 
----------------------------------------------------------- */

/* Month Header */
.month-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0 1.5rem 0;
    color: var(--text-color);
}
.month-header::before,
.month-header::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--card-border);
    margin: 0 1rem;
}
.month-header span {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--heading-color);
}

/* Container for all bubbles */
.concerts-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

/* Individual Event Bubble */
.concert-bubble {
    display: flex;
    flex-direction: row;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
[data-theme="dark"] .concert-bubble {
    background-color: #1a1a1a;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.concert-bubble:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
[data-theme="dark"] .concert-bubble:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

/* Left Section: Date & Time */
.concert-date {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 120px;
    padding: 1.5rem;
    background-color: rgba(0,0,0,0.03);
    border-right: 1px solid var(--card-border);
    text-align: center;
}
[data-theme="dark"] .concert-date {
    background-color: rgba(255,255,255,0.03);
}
.concert-date .day-name { font-size: 0.9rem; font-weight: 600; letter-spacing: 0.1em; color: var(--footer-text); }
.concert-date .day-num { font-size: 2.5rem; font-weight: 700; line-height: 1; margin: 0.2rem 0; color: var(--heading-color); }
.concert-date .month-name { font-size: 0.9rem; font-weight: 600; letter-spacing: 0.1em; color: var(--footer-text); }
.concert-date .divider { margin: 0.5rem 0; color: var(--card-border); font-size: 0.8rem; }
.concert-date .time-tz { font-size: 0.75rem; font-weight: 600; color: var(--footer-text); }
.concert-date .time-main { font-size: 1.25rem; font-weight: 600; color: var(--accent-color); margin-top: 0.1rem;}
.concert-date .time-ampm { font-size: 0.75rem; font-weight: 600; color: var(--footer-text); }

/* Middle Section: Details */
.concert-details {
    flex: 1; 
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}
.concert-details h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--heading-color);
    line-height: 1.2;
}

.location-subtitle {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.details-info {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.past-ensemble {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.25rem;
}

/* Hover effects for dynamic posters */
.concert-poster img,
.past-poster img {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.concert-poster img:hover,
.past-poster img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.bubble-divider {
    width: 100%;
    margin: 1.2rem 0;
    border: none;
    border-top: 1px solid var(--divider-color);
}

.concert-details .description {
    font-size: 0.75rem;
    line-height: 1.6;
    margin-bottom: 0;
    color: var(--footer-text);
}

/* Ticket Buttons */
.bubble-ticket-btn,
.poster-item .flip-card-back .ticket-button {
    display: inline-block;
    height: auto;             /* Overrides the giant default button height */
    line-height: 1.5;         /* Overrides the giant default line-height */
    padding: 0.4rem 1.2rem;   /* Restores the elegant pill width */
    font-size: 0.85rem !important;
    font-weight: 600;
    font-style: normal;
    color: #000000 !important;
    background-color: var(--accent-color);
    border-radius: 20px;
    text-decoration: none !important;
    transition: background-color 0.2s ease, transform 0.2s ease;
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
}
.bubble-ticket-btn:hover,
.poster-item .flip-card-back .ticket-button:hover {
    background-color: #ffffff;
    transform: scale(1.05);
}

/* Mobile Responsiveness for Upcoming Bubble List */
@media screen and (max-width: 768px) {
    .concert-bubble {
        flex-direction: column;
    }
    .concert-date {
        flex-direction: row; 
        justify-content: flex-start !important;
        gap: 0.5rem;
        padding: 1rem;
        border-right: none;
        border-bottom: 1px solid var(--card-border);
    }
    .concert-date .divider { display: none; }
    .concert-date .day-num { font-size: 1.5rem; margin: 0; }
    .concert-date .month-name {
        margin-right: auto !important; /* Pushes the time to the far right */
    }
    .concert-details {
        padding: 1.25rem;
    }
    .concert-poster {
        width: 100%;
        height: auto;
        border-left: none;
        border-top: 1px solid var(--card-border);
    }
    .concert-poster img {
        height: auto;
    }
}

/* --- PAST HIGHLIGHTS CONDENSED BUBBLE GRID --- */
.past-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 400px));
    justify-content: center;
    gap: 2rem;
    width: 100%;
}

.past-bubble {
    display: flex;
    flex-direction: column;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
}

[data-theme="dark"] .past-bubble {
    background-color: #1a1a1a;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.past-bubble:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
[data-theme="dark"] .past-bubble:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

.past-poster {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background-color: rgba(0,0,0,0.05);
    border-bottom: 1px solid var(--card-border);
}
.past-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.past-details {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.past-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.past-bubble h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--heading-color);
    line-height: 1.3;
}

.past-bubble .location-subtitle {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.past-bubble .bubble-ticket-btn {
    align-self: flex-start;
    margin-bottom: 0;
    margin-top: auto;
}

.past-role {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.2rem;
}

.past-ensemble {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.past-ensemble a {
    color: var(--text-color);
    text-decoration: underline;
}

.past-ensemble a:hover {
    color: var(--accent-color);
}

/* --- WIDER BUBBLES & FULL POSTER FIX --- */

/* 1. Allow the Concerts and Past Highlights sections to stretch wider on desktop */
#concerts .inner,
#past-highlights .inner {
    max-width: 75rem !important; /* Adjust back slightly to keep it looking clean but wide */
}

/* 2. Make the bubbles themselves wider and CENTER them */
.concert-bubble {
    width: 100%; 
    max-width: 1200px;
    margin: 0 auto; 
}

.past-bubble {
    width: 100%; 
    max-width: 400px; /* Constrains the vertical card so it doesn't get giant */
    margin: 0 auto; 
}


/* 3. Fix the Poster Cropping & Add a "Frame" */
.concert-poster {
    width: 260px !important; /* Keeps the upcoming posters compact */
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.2); 
    border-left: 1px solid var(--divider-color);
}

.past-poster {
    width: 100% !important; /* Forces past posters to fill the width of their card */
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.2); 
    border-left: none; /* Removes the vertical line */
    border-bottom: 1px solid var(--divider-color); /* Adds a line under the image */
}

/* 4. The Magic "Contain" rule to prevent cutoff */
.concert-poster img,
.past-poster img {
    width: 100%;
    height: 100%;
    object-fit: contain !important; 
    object-position: center;
    padding: 0.5rem; 
}

/* 5. Mobile Adjustments for the new poster style */
@media screen and (max-width: 768px) {
    .concert-poster,
    .past-poster {
        width: 100% !important;
        height: 350px !important;
        border-left: none;
        border-top: 1px solid var(--divider-color);
    }
}

/* -----------------------------------------------------------
   LIGHTBOX STYLES (For Mobile)
----------------------------------------------------------- */
.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; }
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox-content { width: 100%; max-width: 800px; padding: 0; color: #fff; text-align: center; }
.lightbox-content img { width: 100%; height: auto; display: block; }
#lightbox-text { padding: 2rem; background: #111; text-align: left; width: 100%; }
.lightbox-close { position: absolute; top: 20px; right: 20px; bottom: auto; color: #fff; font-size: 40px; cursor: pointer; z-index: 10001; }
@media screen and (max-width: 768px) {
    .lightbox-close { top: auto; bottom: 20px; right: 20px; 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; }
}
.lightbox-close:hover { color: var(--accent-color); transform: scale(1.1); transition: all 0.3s ease; }

/* -----------------------------------------------------------
   MISC GRIDS & COMPONENTS
----------------------------------------------------------- */
.past-grid-images { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; width: 100%; margin: 2rem auto; max-width: 1200px; }
.square-item { aspect-ratio: 1/1; width: 300px; max-width: 100%; position: relative; cursor: pointer; flex: 0 0 300px; margin: 0; }
@media screen and (max-width: 600px) { .past-grid-images { flex-direction: column; align-items: center; } .square-item { width: 100%; max-width: 400px; } }

/* --- MOBILE LAYOUT (Phones Only) --- */
@media screen and (max-width: 768px) {
    /* Musician Grid: STRICT 3-PER-ROW */
    .musician-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem; 
    }

    .musician-item {
        width: 100%; 
        height: auto;
        aspect-ratio: 1 / 1; 
    }
}

/* -----------------------------------------------------------
   CONCERT PAGE
----------------------------------------------------------- */
.details-split {
    display: flex;
    justify-content: space-between; 
    align-items: flex-start; 
    gap: 4rem; 
    text-align: left; 
}

/* Fix excessive bottom spacing on Event Details (Desktop) */
#details {
    padding-top: 2rem; 
    padding-bottom: 0; 
}

.details-left {
    flex: 1; 
}

.details-right {
    flex: 1; 
    display: flex;
    flex-direction: column; 
    gap: 1rem; 
}

/* 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; 
            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;    
            padding-bottom: 2rem;
        }

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

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

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

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

/* 2. Composer (Right Aligned) */
.composer {
    display: block;        
    text-align: right;     
    margin-bottom: 0.8rem; 
    line-height: 0.8;
}

/* 3. Movements (Indented) */
.movements {
    margin-left: 1rem;     
    margin-bottom: 3rem;   
    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;
        }
    }
    
.soloist {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 3rem;
}

.intermission {
    margin-bottom: 3rem;
    font-weight: bold;
    text-align: left;
    letter-spacing: 0.1em;
}

/* --- FEATURED COMPOSER PROFILE --- */

.composer-profile {
    display: flex;
    gap: 3rem;              
    align-items: flex-start; 
    text-align: left;
}

.profile-image {
    flex: 1;                
    max-width: 300px;       
    position: relative;
}

.profile-image img {
    width: 100%;            
    border-radius: 4px;     
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); 
}

/* --- NEW CREDIT STYLE --- */
.profile-image-credit {
    position: absolute;
    bottom: 0.75rem;
    right: 0.5rem;
    color: rgb(255, 255, 255); 
    font-size: 1rem;
    z-index: 5; 
    font-weight: 100;
    letter-spacing: 0.05em;
    pointer-events: none; 
    
    /* Text shadow ensures readability on light or dark photos */
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    
    pointer-events: none;    
}

.profile-bio {
    flex: 2;                
}

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

        .profile-bio {
            width: 100%;
            text-align: left;    
        }
    }

/* Table Styling (PRESERVED FOR LATER USE) */
table td em { font-style: italic; }
table td em a { color: inherit; text-decoration: underline; }
table td em a:hover { color: var(--text-color); }
.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); }
tr.year-separator td { border-top: 2px solid var(--text-color); border-bottom: 1px solid var(--divider-color); }

/* Services Icons (PRESERVED FOR LATER USE) */
.items { display: flex; flex-wrap: wrap; justify-content: center; margin-top: 2rem; }
.items > * { width: 33.33%; padding: 2rem; border: 1px solid var(--divider-color); margin: -1px 0 0 -1px; }
@media screen and (max-width: 980px) { .items > * { width: 50%; } }
@media screen and (max-width: 480px) { .items > * { width: 50%; } }
.icon.major { font-size: 2.5rem; display: block; margin-bottom: 1.5rem; color: var(--accent-color) !important; }

/* Clients Grid (PRESERVED FOR LATER USE) */
.clients-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; width: 100%; max-width: 64rem; margin: 2rem auto; padding: 0 2rem; align-items: flex-start; }
@media screen and (min-width: 768px) { .clients-grid { grid-template-columns: repeat(4, 1fr); } }
.client-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.client-logo { width: 100%; max-width: 150px; aspect-ratio: 1/1; object-fit: contain; margin-bottom: 0.5rem; }
.client-item:hover .client-logo { filter: grayscale(0%); }
.client-item a { text-decoration: none; font-weight: 600; font-size: 0.9rem; color: var(--text-color); }

/* Icon Definitions */
.icon { text-decoration: none; border: 0; }
.icon:before { display: inline-block; font-style: normal; font-variant: normal; text-rendering: auto; -webkit-font-smoothing: antialiased; font-family: "Font Awesome 5 Free"; font-weight: 900; }
.icon > .label { display: none; }
.icon.brands:before { font-family: "Font Awesome 5 Brands"; font-weight: 400; }
.icon.style2 { color: var(--icon-color); transition: color 0.2s; }
.icon.style2:hover { color: var(--accent-color); }

/* Footer */
ul.icons { list-style: none; padding: 0; margin-bottom: 1.5rem; }
ul.icons li { display: inline-block; padding: 0 1rem; }
footer .icon { font-size: 1.85rem; }
footer p { margin: 0; margin-bottom: 0.5rem; }
footer p:last-child { margin-bottom: 0; }

/* Animations */
.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); }

/* --- PREVENT IMAGE DOWNLOADING (Mobile Long-Press & Selection) --- */
.photo-item img, 
.poster-item img, 
.musician-item img, 
#lightbox-img {
    -webkit-touch-callout: none; 
    -webkit-user-select: none;   
    -moz-user-select: none;      
    -ms-user-select: none;       
    user-select: none;           
    pointer-events: none;        
}