/* styles.css - restored and corrected Keeps original colours, medieval headings, download buttons, featured grid on homepage, stacked layout only when .stacked-vertical is applied. */

/* -------------------- Base Styles -------------------- */
body {
    background: #111;
    color: #eee;
    font-family: Georgia, "Cloister Black", "Times New Roman", Times, serif;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 960px;
    margin: auto;
    padding: 1rem;
}

.panel {
    background: #1a1a1a;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 5px;
}

/* Social link small buttons (kept original look) */
.social-links a {
    margin-right: 10px;
    display: inline-block;
    padding: 6px 10px;
    border: 1px solid #555;
    border-radius: 5px;
    text-decoration: none;
    color: #eee;
    background: #1a1a1a;
    font-size: 14px;
}

.social-links a:hover {
    background: #333;
}

a.mail-link , a.collab-link {
    font-size: inherit;
    /* inherit h3 size */
    text-decoration: none;
    /* remove browser underline */
    position: relative;
    color: #eee;
    transition: color 0.3s ease;
}

a.mail-link::after, a.collab-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 2px;
    background: #c0a060;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s ease;
    border-radius: 1px;
}

a.mail-link:hover::after, a.collab-link:hover::after {
    transform: scaleX(1);
}

a.mail-link:hover, a.collab-link:hover {
    color: #c0a060;
}

.band-name-highlight {
    font-variant: small-caps;
    font-weight: bold;
    /* optional: keep normal weight */
}

/* -------------------- Band Labels -------------------- */
.band-labels {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin: 0.5rem 0;
}

.band-label {
    font-family: "Old English Text MT", "UnifrakturCook", serif;
    font-size: 0.9rem;
    margin: 0;
}

.band-label a {
    color: #eee;
    text-decoration: underline;
}

.band-label a:hover {
    color: #c0a060;
}

/* -------------------- Band Assets (photos/tours) -------------------- */
.band-asset {
    max-width: 100%;
    height: auto;
    margin: 0.5rem 0;
    display: block;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.band-asset:hover {
    transform: scale(1.05);
}

/* keep assets grid on pages that use #assets-band */
@media (min-width: 768px) {
    #assets-band {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
}

/* Tour posters grid like artist photos */
/* Outer wrapper constrains width */
#tours-band {
    max-width: 960px;
    /* same as your band photos section */
    margin: 0 auto;
    padding: 1rem 0;
}

/* Grid container for tour posters */
.tours-grid {
    display: grid;
    gap: 1rem;
    justify-items: center;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

/* Individual tour poster */
.tour-poster {
    width: 100%;
    max-width: 220px;
    /* prevents huge images */
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.tour-poster:hover {
    transform: scale(1.05);
}

/* Desktop: maximum 4 columns */
@media (min-width: 1024px) {
    .tours-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablet: maximum 3 columns */
@media (min-width: 768px) and (max-width: 1023px) {
    .tours-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile: maximum 2 columns */
@media (max-width: 767px) {
    .tours-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* -------------------- YouTube / Videos -------------------- */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

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

@media screen and (max-width: 767px) {
    .videos-grid {
        display: grid;
        /* ensure grid is applied */
        grid-template-columns: 1fr;
        /* 1 video per row */
        gap: 0.75rem;
        /* spacing between rows only */
        padding: 0;
        /* remove padding inside grid */
        margin: 0;
        /* remove external margin */
    }

    .video-container {
        padding-bottom: 56.25%;
        /* maintain 16:9 ratio */
    }
}

/* -------------------- Bandsintown Widget container -------------------- */
/* Force Bandsintown widget to stay responsive */
#bandsintown-widget-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow-x: hidden;
    /* prevents horizontal scrollbars */
}

#bandsintown-widget-container iframe,
#bandsintown-widget-container .bit-widget {
    width: 100% !important;
    /* override inline styles */
    max-width: 100% !important;
    box-sizing: border-box;
}

/* -------------------- Site header (desktop: title left, logo right) -------------------- */
.container.header-flex {
    display: grid;
    grid-template-columns: 1fr auto;
    /* left content + right logo */
    align-items: center;
    width: 100%;
    padding: 1rem 2rem;
    box-sizing: border-box;
    gap: 1.5rem;
}

.header-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

/* h1 visible on desktop */
.header-left h1 {
    margin: 0;
    font-size: 2.5rem;
    line-height: 1.1;
}

/* subtitle below h1 */
.header-left .site-subtitle {
    margin: 0;
    font-size: 1rem;
    color: #777;
    font-style: italic;
}

/* Don't hide on desktop — just reset them */
.logo-row {
    display: block;
    /* show normally */
    margin: 0;
}

.logo-row a {
    display: inline-block;
}

.subtitle-row {
    display: block;
    /* show normally */
    margin-top: 0.5rem;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* keep logo constrained */
.site-logo {
    width: auto;
    max-height: calc(2.5rem + 1rem + 0.5rem);
    height: auto;
    object-fit: contain;
}

/* -------------------- Navigation -------------------- */
/* Nav container - keep centered flex layout */
.main-nav {
    display: flex;
    justify-content: center;
    /* center horizontally */
    gap: 40px;
    /* spacing between links */
    font-family: "Old English Text MT", "UnifrakturCook", serif;
    /* medieval font for headings */
    font-size: 1.1rem;
}

/* Nav links - inline-block for pseudo underline */
.main-nav a {
    color: #eee;
    text-decoration: none;
    padding: 5px 0;
    position: relative;
    display: inline-block;
}

/* Hover underline using ::after for smooth scaling */
.main-nav a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: #c0a060;
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    /* hidden initially */
    transform-origin: left center;
    transition: transform 0.3s ease;
}

.main-nav a:hover::after {
    transform: scaleX(1);
    /* reveal on hover */
}

.main-nav a:hover {
    color: #c0a060;
    transition: color 0.3s ease;
}

/* Menu toggle button */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

/* --- Hamburger button --- */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    background-color: #333;
    /* match socials */
    border: 2px solid #555;
    border-radius: 8px;
    color: #999;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.menu-toggle:hover {
    background-color: #555;
    border-color: #777;
    color: #c0a060;
    transform: translateY(-2px);
}

.menu-toggle.active {
    /* when menu is open */
    background-color: #555;
    border-color: #777;
    color: #c0a060;
}

.menu-toggle:not(.active) {
    /* resets back to original when menu is closed */
    background-color: #333;
    border-color: #555;
    color: #999;
    transform: translateY(0);
}

/* Desktop layout */
@media (min-width: 769px) {
    .container.header-flex {
        display: grid;
        grid-template-columns: 1fr auto;
        /* text left, logo right */
        align-items: center;
        gap: 1.5rem;
    }

    .header-left {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .header-left h1 {
        order: -1;
        /* title above subtitle */
        margin: 0;
        font-size: 2.5rem;
    }

    .header-left .subtitle-row {
        margin-top: 0.5rem;
    }

    /* Show the logo on the right column */
    .header-left .logo-row {
        display: block;
        /* keep it visible */
        order: 1;
        /* push it below text for stacking, only matters if flex used */
    }

    /* Move logo visually to the right */
    .header-right {
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    .header-right .site-logo {
        display: block;
        max-height: 60px;
        width: auto;
    }

    /* If logo is only in .logo-row, we can move it via flex to header-right */
    .container.header-flex {
        position: relative;
    }

    .logo-row {
        position: absolute;
        right: 2rem;
        top: 50%;
        transform: translateY(-50%);
    }

    /* hide hamburger on desktop */
    .menu-toggle {
        display: none;
    }
}


/* small-screen header adjustments (keeps original feel) */
@media (max-width: 768px) {

    /* Reset header to column layout */
    .container.header-flex {
        flex-direction: column;
        gap: 0.5rem;
    }

    .header-left {
        display: flex;
        flex-direction: column;
        align-items: center; /* CENTER logo, subtitle, etc */
        width: 100%;
    }

    /* Logo centered on top */
    .header-left .logo-row {
        display: flex;
        /* show logo row */
        justify-content: center;
        /* center the logo horizontally */
        margin-bottom: 0.5rem;
        /* spacing below */
        position: static;
        /* reset any absolute positioning */
        transform: none;
        /* remove transform from desktop */
        align-items: center;
        /* CENTER logo, subtitle, etc */
    }

    /* Subtitle + hamburger in one row */
    .subtitle-row {
        display: flex;
        justify-content: space-between;
        /* subtitle left, hamburger right */
        align-items: center;
        width: 100%;
        /* make row stretch full width */
    }

    .site-subtitle {
        flex: 1;
        text-align: center;
    }

    /* Hide h1 only on mobile */
    .header-left h1 {
        display: none;
    }

    /* Hamburger button stays on right */
    .menu-toggle {
        display: block;
        margin-left: auto;
        /* push it all the way to the right */
        font-size: 1.8rem;
        background-color: #333;
        border: 2px solid #555;
        border-radius: 8px;
        color: #eee;
        cursor: pointer;
        padding: 0.5rem 0.75rem;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

}

/* --- Mobile nav dropdown --- */
@media (max-width: 768px) {
    .nav-menu {
        max-height: 0;
        /* collapsed by default */
        overflow: hidden;
        width: 100%;
        margin-top: 1rem;
        background-color: #1a1a1a;
        /* dark grey background */
        border-radius: 12px;
        transition: max-height 0.4s ease-in-out;
        /* slide animation */
    }

    .nav-menu.open {
        display: block;
        /* show when toggled */
    }


    .nav-menu.open {
        max-height: 500px;
        /* large enough for all links */
    }

    .main-nav {
        flex-direction: column;
        gap: 10px;
        padding: 1rem;
    }

    .main-nav a::after {
        display: none;
        /* remove golden underline in mobile */
    }

    .main-nav a {
        border: 2px solid transparent;
        /* placeholder border */
        display: block;
        padding: 10px 15px;
        color: #eee;
        background-color: #333;
        /* slightly lighter grey */
        border-radius: 8px;
        text-align: center;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    .main-nav a:hover {
        background-color: #555;
        border-color: #777;
        color: #c0a060 !important;
        transform: translateY(-2px);
        box-shadow: 0 2px 6px rgba(192, 160, 96, 0.5);
    }
}

/* -------------------- Footer -------------------- */
.site-footer .container {
    text-align: center;
}

/* -------------------- Footer Social Links -------------------- */
.footer-socials {
    display: flex;
    justify-content: center;
    /* center the group */
    align-items: center;
    /* vertically align icons */
    gap: 2rem;
}

.footer-social-link {
    display: flex;
    /* ensure icon is centered inside <a> */
    align-items: center;
    justify-content: center;
    width: 48px;
    /* consistent square button size */
    height: 48px;
    color: #777;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Email button: slightly wider if needed for balance */
.footer-social-link.email {
    width: 56px;
    /* slightly wider than others if icon is wider */
}

/* SVG inside footer social links */
.footer-social-link svg {
    width: 24px;
    height: 24px;
    display: block;
    /* remove inline spacing issues */
    stroke: currentColor;
    /* ensures stroke-based SVGs match color */
    fill: #777;
    transition: transform 0.25s ease, stroke 0.3s ease;
}

.footer-social-link:hover {
    color: #c0a060;
}

.footer-social-link:hover svg {
    transform: scale(1.15);
}

.site-footer .footer-socials {
    margin-top: 0.5rem;
    display: flex;
    gap: 2rem;
}

/* -------------------- Featured Artists (homepage): grid) -------------------- */
/* ---------------- Featured Artists Carousel ---------------- */
.slider-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.slider-track {
    display: flex;
    gap: 10px; /* consistent spacing between cards */
    transition: transform 0.5s ease;
    will-change: transform;
}

/* ---- Individual Cards ---- */
.featured-artist-card {
    position: relative;
    flex: 0 0 calc((100% - 20px) / 3); /* 3 cards per view accounting for 2 gaps */
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    background: transparent;
    text-align: center;
}

/* Image styling */
.featured-artist-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    background-color: #222;
    display: block;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

/* Hover zoom effect */
.featured-artist-card:hover .featured-artist-image {
    transform: scale(1.05);
}

/* Artist name overlay */
.featured-artist-name {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    text-align: center;
    padding: 0.4rem 0;
    font-family: "Old English Text MT", "UnifrakturCook", serif;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.featured-artist-card:hover .featured-artist-name {
    color: #c0a060;
}

/* -------------------- Featured Artists Carousel -------------------- */
.slider-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.slider-track {
    display: flex;
    gap: 10px; /* spacing between cards */
    transition: transform 0.5s ease;
    will-change: transform;
}

/* ---- Carousel Cards ---- */
.featured-artist-card.carousel {
    position: relative;
    flex: 0 0 calc((100% - 20px) / 3); /* 3 cards per view */
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    background: transparent;
    text-align: center;
}

/* Carousel Images */
.featured-artist-card.carousel .featured-artist-image {
    width: 100%;
    height: 200px; /* fixed height for carousel */
    object-fit: cover; /* crop to fill */
    object-position: center;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.featured-artist-card.carousel:hover .featured-artist-image {
    transform: scale(1.05);
}

/* Artist name overlay */
.featured-artist-card.carousel .featured-artist-name {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    text-align: center;
    padding: 0.4rem 0;
    font-family: "Old English Text MT", "UnifrakturCook", serif;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.featured-artist-card.carousel:hover .featured-artist-name {
    color: #c0a060;
}

/* Carousel Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 0 0.5rem;
    transition: color 0.3s ease, transform 0.2s ease;
    z-index: 10;
    user-select: none;
    text-shadow: 0 0 8px rgba(0,0,0,0.7);
}

.slider-btn:hover {
    color: #c0a060;
    transform: translateY(-50%) scale(1.15);
}

.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

.slider-btn.hidden { display: none; }

/* Mobile Carousel */
@media (max-width: 767px) {
    .slider-track {
        flex-wrap: nowrap; /* keep horizontal scrolling */
        gap: 8px; /* consistent spacing */
    }

    .slider-container .featured-artist-card {
        flex: 0 0 100%; /* 1 card per view */
        max-width: 100%;
    }

    .slider-container .featured-artist-image {
        height: 250px; /* adjust height for mobile carousel */
        object-fit: cover; /* keep zoom/cover effect for carousel */
    }
}



/* -------------------- Standard section box -------------------- */
.section-box {
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 2rem;
    background: #1a1a1a;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    grid-template-columns: 1fr auto;
    /* grid stretches for content, auto for search input */
}

/* -------------------- Search Input & Artists Grid -------------------- */
/* Inner wrapper aligns search & grid to same width as cards */
.roster-inner {
    max-width: 700px;
    /* same as stacked-vertical */
    margin: 0 auto;
    /* center in section-box */
    width: 100%;
}

/* Wrapper to align search with grid */
.roster-header-wrapper {
    display: flex;
    justify-content: flex-end;
    /* right-align the search bar */
    margin-bottom: 1rem;
}

#searchInput,
#searchInputActive,
#searchInputPast,
#searchInputPastTours {
    font-family: Georgia, 'Times New Roman', Times, serif;
    /* match contact form */
    font-size: 1rem;
    color: #aaa;
    background-color: #1a1a1a;
    border: 1px solid #555;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    outline: none;
    width: 250px;
    /* enough space for placeholder text */
    margin-left: auto;
    /* right-align inside .section-box */
    display: block;
    transition: all 0.2s ease;
    box-sizing: border-box;
    flex-shrink: 0;
    /* optional */
}

#searchInput::placeholder,
#searchInputActive::placeholder,
#searchInputPast::placeholder,
#searchInputPastTours::placeholder {
    color: #777;
    font-family: "Old English Text MT", "UnifrakturCook", serif;
    font-style: italic;
}

#searchInput:focus,
#searchInputActive:focus,
#searchInputPast:focus,
#searchInputPastTours:focus {
    border-color: #c0a060;
    box-shadow: 0 0 5px rgba(192, 160, 96, 0.4);
}

/* --- Mobile: make full width and stack --- */
@media (max-width: 768px) {

    #searchInput,
    #searchInputActive,
    #searchInputPast,
    #searchInputPastTours {
        margin-left: 0;
        /* left-align on small screens */
        max-width: 100%;
        /* take full available width */
    }
}

.artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    width: 100%;
}

/* Mobile: stack search bar and grid */
@media (max-width: 768px) {
    .roster-header {
        justify-content: flex-start;
        /* left align on small screens */
    }

    #searchInput,
    #searchInputActive,
    #searchInputPast,
    #searchInputPastTours {
        max-width: 100%;
    }
}

/* -------------------- Roster / Stacked Cards (Active + Past Collabs) -------------------- */
#active-roster-grid.stacked-vertical .featured-artist-card,
#past-collab-grid.stacked-vertical .featured-artist-card,
.roster-grid .featured-artist-card {
    position: relative;
    width: 100%;
    flex: 0 0 auto;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    background: transparent;
    text-align: center;
}

/* Roster & stacked images: natural height, no cropping */
#active-roster-grid.stacked-vertical .featured-artist-card img,
#past-collab-grid.stacked-vertical .featured-artist-card img,
.roster-grid .featured-artist-card img {
    width: 100%;
    height: auto; /* keep full aspect ratio */
    max-height: none;
    object-fit: contain; /* show full image */
    display: block;
    border-radius: 8px;
    background: none;
}

/* Artist name overlay for roster & past collabs */
#active-roster-grid.stacked-vertical .featured-artist-name,
#past-collab-grid.stacked-vertical .featured-artist-name,
.roster-grid .featured-artist-name {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    text-align: center;
    padding: 0.4rem 0;
    font-family: "Old English Text MT", "UnifrakturCook", serif;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

#active-roster-grid.stacked-vertical .featured-artist-card:hover .featured-artist-name,
#past-collab-grid.stacked-vertical .featured-artist-card:hover .featured-artist-name,
.roster-grid .featured-artist-card:hover .featured-artist-name {
    color: #c0a060;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    #active-roster-grid.stacked-vertical .featured-artist-card img,
    #past-collab-grid.stacked-vertical .featured-artist-card img,
    .roster-grid .featured-artist-card img {
        max-height: 250px; /* smaller on mobile */
    }

    #active-roster-grid.stacked-vertical .featured-artist-name,
    #past-collab-grid.stacked-vertical .featured-artist-name,
    .roster-grid .featured-artist-name {
        font-size: 1.2rem;
    }
}

/* -------------------- Band Header (two-column layout for band page) -------------------- */
.band-header-content {
    display: grid;
    grid-template-columns: 65% 35%;
    gap: 2rem;
    align-items: center;
}

.band-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* left-align everything */
    text-align: left;
    /* ensure left alignment for paragraphs */
    gap: 0.5rem;
}

.band-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 300px;
}

#band-logo {
    width: 100%;
    height: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .band-header-content {
        grid-template-columns: 1fr;
    }

    .band-logos {
        order: -1;
        /* move logo to the top */
        margin-top: 1rem;
        width: 100%;
        /* take full column width */
        justify-self: center;
        /* center logo horizontally in the grid */
    }
}

/* -------------------- Modal / Lightbox (hidden by default) -------------------- */
/* support both #image-modal and .image-modal so legacy HTML is hidden */
/* Modal background & container */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    overflow: auto;
    /* prevent overflow for tall images */
    padding: 20px;
    /* keep some space from edges */
    box-sizing: border-box
}

/* Modal image */
.image-modal .modal-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    cursor: pointer
        /* ensures image fits inside container */
}

/* Modal close button */
.image-modal .close {
    position: fixed;
    /* stays relative to viewport */
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10000;
}

.image-modal .close:hover {
    color: #c0a060;
    /* golden hover */
}

/* Modal navigation arrows */
.image-modal .prev,
.image-modal .next {
    position: fixed;
    /* stays relative to viewport */
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: #fff;
    padding: 0 15px;
    /* give some inner space */
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
    z-index: 10000;
}

.image-modal .prev:hover,
.image-modal .next:hover {
    color: #c0a060;
    /* golden hover */
    transform: translateY(-50%) scale(1.15);
}

/* Keep arrows away from scrollbars / sidebars */
.image-modal .prev {
    left: 20px;
    /* distance from viewport left edge */
}

.image-modal .next {
    right: 20px;
    /* distance from viewport right edge */
}

/* Optional: reduce size on small screens */
@media (max-width: 768px) {
    .image-modal .close {
        font-size: 32px;
        top: 15px;
        right: 15px;
    }

    .image-modal .prev,
    .image-modal .next {
        font-size: 36px;
        padding: 0 10px;
    }
}

/* -------------------- Typography: medieval headings + serif body text -------------------- */
h1,
h2,
h3,
h4,
h5,
h6,
button,
.featured-artist-name,
.band-label,
.download-btn {
    font-family: "Old English Text MT", "UnifrakturCook", serif;
}

p,
li {
    font-family: "Georgia", "Centaur", "Times New Roman", Times, serif;
    color: #eee;
}

h2 {
    font-size: 2rem;
    margin-top: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-top: 0.8rem;
}

.medieval-font {
    font-family: "Old English Text MT", "UnifrakturCook", serif;
}

/* -------------------- Partners Grid -------------------- */
#partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.partner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    /* logos + names are clickable via JS */
    background: #333;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    /* indicates clickable */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.partner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.partner-card img {
    max-width: 120px;
    max-height: 80px;
    object-fit: contain;
    margin-bottom: 0.75rem;
}

.partner-name {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    font-family: "Old English Text MT", "UnifrakturCook", serif;
}

.partner-card:hover .partner-name {
    color: #c0a060;
}

/* news CSS */
/* News container: flex column with consistent gap */
#news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    /* slightly smaller gap between news cards */
}

#news {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    /* slightly smaller gap between news cards */
}

/* ------------ News styling -------------- */
.news-card {
    display: block;
    /* ensures the card is a block element */
    cursor: pointer;
    /* show pointer on hover for entire card */
    background: #333;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    padding: 1.2rem 1.5rem;
    transition: transform 0.2s ease, background 0.2s ease;
}

/* News card hover effect */
.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.news-card h3 {
    position: relative;
    font-size: 1.5rem;
    /* same as h3 normally */
    color: #eee;
    margin-top: 0;
    text-decoration: none;
    /* remove browser underline just in case */
    transition: color 0.3s ease;
    margin: 0 0 0.5rem 0;
    /* space below title before date */
    display: inline-block;
}

.news-card h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 2px;
    background: #c0a060;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s ease;
    border-radius: 1px;
}

.news-card h3:hover::after {
    transform: scaleX(1);
}

.news-card h3:hover {
    color: #c0a060;
}

/* Updated: highlight h3 when hovering the card instead of the h3 itself */
.news-card:hover h3::after {
    transform: scaleX(1);
}

.news-card:hover h3 {
    color: #c0a060;
}

/* Date (small) */
.news-card small {
    color: #aaa;
    display: block;
    margin-bottom: 0.5rem;
    /* space after date before content */
}

/* Expand/collapse content with smooth animation */
.news-content {
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    transition: max-height 0.4s ease, margin-top 0.4s ease;
    position: relative;
}

.news-content .preview {
    display: block;
    white-space: nowrap;
    /* keep on a single line */
    overflow: hidden;
    text-overflow: ellipsis;
    /* "..." at the end */
    width: 100%;
    margin-bottom: 0.5rem;
}

.news-content.expanded {
    max-height: 1000px;
    margin-top: 0.5rem;
}

/* News preview: single line with ellipsis */
.news-preview {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ccc;
    margin-bottom: 0.5rem;
    /* space before full content */
}

.news-content.expanded .preview {
    display: none;
    /* hide preview when expanded */
}

/* -------------------- News Cards -------------------- */
.news-controls {
    display: flex;
    gap: 1rem;
    /* space between buttons */
    margin-top: 0.5rem;
}

.news-controls button:first-child {
    margin-right: auto;
    /* pushes the first button to the left */
}

.news-controls button:last-child {
    margin-left: auto;
    /* pushes the last button to the right */
}

/* Style the news pagination buttons like download buttons */
.news-controls button {
    background-color: #333;
    border: 2px solid #555;
    border-radius: 6px;
    color: #fff;
    font-family: "Old English Text MT", "UnifrakturCook", serif;
    font-size: 1rem;
    padding: 0.4rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-controls button:hover:not(:disabled) {
    background-color: #555;
    border-color: #777;
    color: #c0a060;
    transform: translateY(-2px);
}

.news-controls button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* ----------- tours styling --------*/
.tour-title a {
    font-size: inherit;
    /* inherit h3 size */
    text-decoration: none;
    /* remove browser underline */
    position: relative;
    color: #eee;
    transition: color 0.3s ease;
}

.tour-title a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 2px;
    background: #c0a060;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s ease;
    border-radius: 1px;
}

.tour-title a:hover::after {
    transform: scaleX(1);
}

.tour-title a:hover {
    color: #c0a060;
}


.tour-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.tour-card::after {
    content: "";
    display: block;
    clear: both;
}

.tour-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.tour-poster-wrapper {
    float: left;
    width: 220px;
    margin: 0 20px 10px 0; /* right + bottom spacing */
}

.tour-poster {
    width: 100%;
    height: auto;
    cursor: pointer;
}

.tour-info {
    flex: 1;
}

/* mobile */
@media (max-width: 768px) {
    .tour-card {
        flex-direction: column;
    }
    .tour-content {
        flex-direction: column;
    }
    .tour-poster-wrapper {
        float: none;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 15px auto;
    }
}

/* -------------------- Soon On The Road (scoped) -------------------- */

#on-the-road-grid {
    display: flex !important;          /* override grid safely */
    flex-direction: column;
    gap: 2rem;
}

/* -------------------- FORCE SIDE-BY-SIDE (desktop) -------------------- */
#on-the-road-grid .tour-card {
    display: flex !important;
    flex-direction: row !important;   /* THIS is the key */
    align-items: center;
    gap: 2rem;
}

#on-the-road-grid .tour-poster-wrapper {
    flex: 0 0 45% !important;
    max-width: 45% !important;
    align-items: center !important;
}

#on-the-road-grid .tour-info-panel {
    flex: 1 1 30% !important;
    max-width: 35%;
    align-self: flex-start;
    align-items: center !important;
    text-align: center !important;
    vertical-align: middle;
}

/* Button tweak */
#on-the-road-grid .download-btn {
    font-size: 1.1rem;
    padding: 0.7rem 1.5rem;
}


@media (max-width: 768px) {
    #on-the-road-grid .tour-card {
        flex-direction: column !important;
        text-align: center;
    }

    #on-the-road-grid .tour-poster-wrapper,
    #on-the-road-grid .tour-info-panel {
        max-width: 100% !important;
        flex: none !important;
    }
}


/* -------------------- Listen & Follow Layout -------------------- */
/* Desktop / default: 2 columns, wider left column */
.listen-follow-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* left column wider */
    gap: 1.5rem;
    align-items: stretch;
    /* match column heights */
}

/* Spotify iframe styling */
.spotify-col iframe {
    width: 100%;
    min-height: 380px;
    /* adjust as needed */
    border-radius: 12px;
    display: block;
}


/* -------------------- Mobile Styles -------------------- */
@media screen and (max-width: 767px) {

    /* Remove container padding/margin */
    .listen-follow-section,
    /* the wrapping section around .listen-follow-grid */
    .listen-follow-section>.container,
    /* if you have a wrapper div */
    .listen-follow-grid {
        margin: 0;
        padding: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .listen-follow-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .socials-col #social-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .socials-col .social-btn {
        justify-content: center;
        width: 100%;
    }

    .spotify-col iframe {
        width: 100%;
        max-width: 100%;
        /* <-- prevents overflow */
        display: block;
        min-height: 480px;
        /* mobile height */
        border-radius: 12px;
        box-sizing: border-box;
    }
}

/* --- Social Section Layout Fix --- */
/* Apply scale-on-hover effect ONLY to Facebook and Instagram icons */
.footer-icons svg.facebook,
.footer-icons svg.instagram {
    transform: scale(0.9);
    transition: transform 0.2s;
}

.footer-icons svg.facebook:hover,
.footer-icons svg.instagram:hover {
    transform: scale(1);
}

/* Contact Form Styling */
.contact-container {
    max-width: 1200px;
    /* match other section-box width */
    margin: 3rem auto;
    padding: 2rem;
    background-color: #1a1a1a;
    border-radius: 12px;
    color: #eee;
    font-family: "Old English Text MT", "UnifrakturCook", serif;
    box-sizing: border-box;
    /* ensure consistent padding */
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.contact-form label {
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #eee;
}

/* Inputs for Name, Email, Band */
.contact-form input {
    min-height: 40px;
    max-height: 60px;
    padding: 0.5rem 1rem;
    width: 100%;
    border: 2px solid #333;
    border-radius: 8px;
    background-color: #1a1a1a;
    color: #eee;
    font-family: Georgia, 'Times New Roman', Times, serif;
    /* readable */
    font-size: 1rem;
    outline: none;
    transition: all 0.2s ease-in-out;
    font-style: normal;
    box-sizing: border-box;
}

/* Message area */
.contact-form textarea {
    min-height: 120px;
    max-height: 400px;
    padding: 0.75rem 1rem;
    width: 100%;
    border: 2px solid #333;
    border-radius: 8px;
    background-color: #1a1a1a;
    color: #eee;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s ease-in-out;
    font-style: normal;
    box-sizing: border-box;
    resize: vertical;
    /* restrict to up/down only */
    overflow: hidden;
    /* hide scrollbars */
}

/* Interaction highlight */
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form input:hover,
.contact-form textarea:hover {
    border-color: #c0a060;
    box-shadow: 0 0 5px #c0a060;
}

/* Send button styled like download buttons */
.contact-form .btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.2rem;
    font-family: "Old English Text MT", "UnifrakturCook", serif;
    font-size: 1rem;
    font-weight: normal;
    text-decoration: none;
    color: #eee;
    background-color: #333;
    border: 2px solid #555;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.contact-form .btn-submit:hover {
    background-color: #555;
    border-color: #777;
    color: #c0a060;
    transform: translateY(-2px);
}

/* Form response text */
.form-response {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #eee;
}

/* Footer wrapper for button + hint */
#contactForm .form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    gap: 10px;
}

/* Obligatory hint */
#contactForm .obligatory-hint {
    font-size: 0.9rem;
    font-family: "Georgia", serif;
    font-style: italic;
    color: #eee;
    white-space: nowrap;
}

/* Keep placeholder styled like the site */
.contact-form input::placeholder,
.contact-form textarea::placeholder,
.search-grid-wrapper input[type="search"]::placeholder {
    font-family: "Old English Text MT", "UnifrakturCook", serif;
    font-style: italic;
    color: #777;
}

#impressum-wrapper {
    display: flex;
    justify-content: center;
    /* horizontal centering */
    text-align: center;
    /* center the text inside */
    margin-top: 2rem;
    /* optional spacing from above */
}


/* -------------------- Socials Layout -------------------- */
#social-links {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

@media (min-width: 769px) {
    #social-links {
        grid-template-columns: 1fr;
        /* Desktop = single column */
    }

    #downloads-band .download-btn {
        margin-right: 1.5rem;
        /* horizontal space between download buttons */
    }

    /* remove margin from the last download button to avoid extra space at the end */
    #downloads-band .download-btn:last-child {
        margin-right: 0;
    }
}

@media (max-width: 768px) {

    #social-links,
    #downloads-band {
        grid-template-columns: repeat(2, 1fr);
        /* Mobile = 2 per row */
    }

    #downloads-band {
        display: grid;
        /* make sure grid is active */
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        /* horizontal + vertical spacing */
    }

    /* remove any desktop-only margin-right that might interfere */
    #downloads-band .download-btn {
        margin-right: 0;
    }
}

/* -------------------- Social & Download Buttons (shared styling) -------------------- */
.social-btn,
.download-btn {
    display: inline-flex;
    /* keep icon + text inline */
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.5rem 1.2rem;
    font-family: "Old English Text MT", "UnifrakturCook", serif;
    font-size: 1rem;
    text-decoration: none;
    color: #fff;
    background-color: #333;
    border: 2px solid #555;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    line-height: 1;
    white-space: nowrap;
}

.social-btn:hover,
.download-btn:hover {
    background-color: #555;
    border-color: #777;
    color: #c0a060 !important;
    transform: translateY(-2px);
}

/* -------------------- Icons inside buttons -------------------- */
.social-btn .social-logo svg {
    height: 1.25em;
    max-height: 22px;
    width: auto;
    fill: currentColor;
    transition: transform 0.25s ease;
}

.social-btn:hover .social-logo svg {
    transform: scale(1.15);
}


/* ----------------- Current Tours for index.html ----------- */
/* Current Tours container */
#current-tours {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* space between cards */
}

/* Each tour card wrapper */
.tour-link-wrapper {
    display: block;                    /* make the whole link a block */
    background: #333;                  /* dark card background */
    border-radius: 12px;               /* rounded corners like news cards */
    padding: 1.2rem 1.5rem;            /* consistent spacing */
    box-shadow: 0 2px 6px rgba(0,0,0,0.3); /* subtle shadow */
    text-decoration: none;             /* remove underline from links */
    color: inherit;                    /* use normal text color */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover effect: subtle lift */
.tour-link-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

/* ----------------- Current Tours boxes, posters and ticket links ----------- */

/* Open bookings container (styles copied from Current Tours container) */
#open-bookings {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* space between cards */
}


/* copy of tour card wrapper styles */
.currently-booking {
    display: block;                    /* make the whole link a block */
    background: #333;                  /* dark card background */
    border-radius: 12px;               /* rounded corners like news cards */
    padding: 1.2rem 1.5rem;            /* consistent spacing */
    box-shadow: 0 2px 6px rgba(0,0,0,0.3); /* subtle shadow */
    text-decoration: none;             /* remove underline from links */
    color: inherit;                    /* use normal text color */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}


/* ----------------- Tour page header ------------------ */

/* Container for poster + info */
.tour-header {
    display: flex;
    flex-wrap: wrap;      /* allows poster + info to stack on mobile */
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 100%;
}

/* Poster image */
.tour-poster-wrapper {
    flex: 1 0 45%;       /* allow it to grow up to ~50% */
    max-width: 50%;
}

.tour-poster-wrapper img {
    width: 100%;         /* fills the wrapper */
    height: auto;        /* keeps aspect ratio */
    display: flex;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* Info panel next to poster */
.tour-info-panel {
    flex: 1 1 30%;       /* fills remaining space */
    text-align: center;  /* centers title & text vertically */
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;           /* space between title and description */
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .tour-header {
        flex-direction: column;  /* poster on top, info below */
    }
    .tour-poster-wrapper, .tour-info-panel {
        max-width: 100%;
        flex: 1 1 100%;
    }
}

/* -------------------- Tour Dates Table Styling -------------------- */
.tour-dates-wrapper {
    margin-top: 2rem;
    width: 100%;
}

/* Title above table for desktop */
.tour-dates-wrapper::before {
    content: "Tour Dates";
    display: block;
    font-family: "Old English Text MT", "UnifrakturCook", serif;
    font-size: 2rem;
    color: #c0a060;
    margin-bottom: 1rem;
    text-align: center;
}

.tour-dates-table {
    width: 100%;
    border-collapse: collapse;
    font-family: Georgia, "Centaur", "Times New Roman", Times, serif;
}

/* Table headers for desktop */
.tour-dates-table th {
    color: #c0a060;
    padding: 1rem 0.5rem;
    text-align: center;
    font-size: 1rem;
    border-bottom: 2px solid #555;
}

/* Table cells */
.tour-dates-table td {
    text-align: center;
    padding: 0.8rem 0.5rem;
    vertical-align: middle;
}

/* Uniform row height on desktop */
.tour-dates-table tr {
    height: 60px;
}

.tour-dates-table tr:nth-child(even) {
    background: #1f1f1f;
}

.tour-dates-table tr:hover {
    background: #333;
}

/* Buttons inside table */
.tour-dates-table a.social-btn,
.tour-dates-table a.download-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    margin: 0 2px;
    display: inline-block;
}

/* fixed size */
.flag-wrapper {
    width: 20px;
    height: 15px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
}

/* keep SVG inside nicely */
.country-flag {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 0 0 2px rgba(0,0,0,0.5);
    margin-right: 6px;
}

/* ensure text aligns nicely */
.country span {
    line-height: 1;
}

.country {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* -------------------- Mobile Responsive -------------------- */
@media (max-width: 768px) {

    /* Hide table headers */
    .tour-dates-table thead {
        display: none;
    }

    /* Stack rows vertically */
    .tour-dates-table tbody tr {
        display: block;
        margin-bottom: 1.5rem; /* space between each tour date */
        border-bottom: 1px solid #555;
        padding: 0.5rem 0;
        height: auto !important;
    }

    /* Stack cells in 4 logical lines */
    .tour-dates-table td {
        display: block;
        text-align: left;
        width: 100%;
        padding: 0.2rem 0;
        line-height: 1.5rem;
    }

    /* Line 1: Date */
    .tour-dates-table td.date {
        font-weight: bold;
        font-size: 1rem;
        margin-bottom: 0.8rem; /* space after date */
    }

    /* Line 2: Country + Place */
    .tour-dates-table td.country,
    .tour-dates-table td.place {
        display: inline-block;
        width: 48%;
        margin-bottom: 0.8rem; /* space after country+place line */
    }

    /* Line 3: Venue */
    .tour-dates-table td.venue {
        display: block;
        margin-bottom: 0.8rem; /* space after venue line */
    }

    /* Line 4: Event + Ticket buttons */
    .tour-dates-table td.event,
    .tour-dates-table td.ticket {
        display: inline-block;
        width: 48%;
        margin-top: 0.5rem;
    }

    /* Make buttons bigger for mobile */
    .tour-dates-table a.social-btn,
    .tour-dates-table a.download-btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        margin: 0 2px 4px 0;
    }

    /* Center poster on mobile */
    .tour-poster-wrapper {
        text-align: center;
    }
}

/* -------------------- Desktop Version: full table row layout -------------------- */
@media (min-width: 769px) {
    .tour-dates-table td.date,
    .tour-dates-table td.country,
    .tour-dates-table td.place,
    .tour-dates-table td.venue,
    .tour-dates-table td.event,
    .tour-dates-table td.ticket {
        display: table-cell;
        text-align: center;
        padding: 0.8rem 0.5rem;
        line-height: normal;
    }

    .tour-dates-table tbody tr {
        display: table-row;
        margin-bottom: 0;
        border-bottom: none;
        padding: 0;
        height: 60px; /* uniform row height */
    }
}