/* -----------------------------------------------------------
   GLOBAL VARIABLES (Theming)
----------------------------------------------------------- */
:root {
	/* Light Mode (Default) */
	--bg-color: #ffffff;
	--text-color: #000000;
	--accent-color: rgb(154, 178, 147);
	--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 { color: var(--heading-color); font-weight: 300; 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; }
p { margin: 0 0 2rem 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; }

/* -----------------------------------------------------------
   THEME TOGGLE BUTTON
----------------------------------------------------------- */
.theme-toggle {
	position: fixed;
	bottom: 20px;
	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: 1.2rem;
}
.theme-toggle:hover {
	border-color: var(--accent-color);
	color: var(--accent-color);
}

/* -----------------------------------------------------------
   BANNER OVERLAY STYLE
----------------------------------------------------------- */
.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; margin-bottom: 1rem; letter-spacing: 0.05em; }
.banner-content p { color: rgba(255, 255, 255, 0.9); font-size: 1.5rem; margin-bottom: 2.5rem; }
.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; }
}

/* 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: 800; letter-spacing: 0.125em; text-align: center; text-decoration: none; text-transform: uppercase; white-space: nowrap; font-size: 0.9rem; 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; }
.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; }

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

/* -----------------------------------------------------------
   PHOTO, POSTER & MUSICIAN GRID STYLES
----------------------------------------------------------- */
.custom-photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; width: 100%; max-width: 75rem; margin: 2rem auto; padding: 0 1rem; }
@media screen and (min-width: 980px) { .custom-photo-grid { grid-template-columns: 1fr 1fr 1fr; } }

.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; /* Force square */
    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: cover; }
.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.2rem;
    color: var(--accent-color); /* Restored the accent color! */
}
.musician-item .flip-card-back p.photo {
    font-size: 0.9rem; 
}

/* --- TICKET BUTTON (For Poster Backs) --- */
.poster-item .flip-card-back .ticket-button {
    display: inline-block;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    padding: 0.4rem 1.2rem;
    font-size: 0.85rem !important;
    font-weight: 600;
    font-style: normal; /* Overrides italics if placed inside an em tag */
    color: #000000 !important; /* Dark text for high contrast */
    background-color: var(--accent-color); /* Fills button with your green */
    border-radius: 20px; /* Pill shape */
    text-decoration: none !important; /* Removes underline */
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.poster-item .flip-card-back .ticket-button:hover {
    background-color: #ffffff; /* Flashes white on hover */
    transform: scale(1.05); /* Slight pop-out effect */
}

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

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