:root {
    --bottom-nav-height: 45px;
}

/* ==========================================================================
   Base Styles & Reset
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Courier New', Courier, monospace;
    overflow-x: hidden;
    scroll-behavior: smooth;
    position: relative;
}

/* 
   Fixed pseudo-element replacing background-attachment: fixed.
   Uses hardware acceleration to prevent rendering jank on mobile browsers.
*/
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image: url('assets/Band General Assets/WholeBandCentred.webp');
    background-repeat: no-repeat;
    background-position: calc(50% - 10px) center;
    background-size: auto 90%;
    pointer-events: none;
}

@media (max-aspect-ratio: 8/10) {
  body::after {
    background-size: contain;
    background-position: center center; 
  }
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    pointer-events: none;
    z-index: -1;
}

/* Typography */
h1, h2, h3 {
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 40px;
    border-bottom: 1px solid #ffffff;
    padding-bottom: 10px;
    display: inline-block;
    text-align: center;
}

.hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Hero Landing View
   ========================================================================== */
.hero {
    height: 79vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
    margin-top: -8px;
    background-color: transparent;
}

.logo-container img {
    max-width: 550px;
    width: 100%;
    height: auto;
    mix-blend-mode: screen; 
    filter: drop-shadow(0px 0px 20px rgba(0,0,0,0.8)); 
}

.scroll-arrow {
    position: absolute;
    bottom: calc(var(--bottom-nav-height) + 20px);
    font-size: 45px;
    animation: bounce 2s infinite;
    text-decoration: none;
    color: #ffffff;
    opacity: 0.8;
    text-shadow: 0px 2px 5px rgba(0,0,0,0.9);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* ==========================================================================
   The Lineup Section
   ========================================================================== */
.band-showcase {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    background-color: transparent;
    padding: 80px 0;
    text-align: center;
}

.lineup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    justify-content: center; 
    margin: 0 auto;
    width: 100%;
    gap: 25px;
    max-width: 1100px;
    padding: 0 20px;
}

.member-card {
    border: 1px solid #ffffff;
    background-color: #000000;
    overflow: hidden;
    text-align: left;
    transition: all 0.3s ease;
}

.member-img-frame {
    width: 100%;
    overflow: hidden;
    border-bottom: 1px solid #ffffff;
    background-color: #111111;
}

.member-photo {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    filter: grayscale(100%) sepia(10%) contrast(110%);
    transition: all 0.4s ease;
}

.member-name {
    padding: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: #000000;
    color: #ffffff;
    transition: all 0.3s ease;
}

/* Hover States */
.member-card:hover {
    background-color: #ffffff;
    transform: translateY(-4px);
}

.member-card:hover .member-photo {
    filter: grayscale(0%) sepia(0%) contrast(100%);
    transform: scale(1.03);
}

.member-card:hover .member-img-frame {
    border-bottom-color: #000000;
}

.member-card:hover .member-name {
    background-color: #ffffff;
    color: #000000;
}

/* ==========================================================================
   Tour Container & Gigs Cards
   ========================================================================== */
.content-container {
    max-width: 1100px; 
    margin: 0 auto;
    padding: 60px 20px;
}

.gigs-section {
    margin-bottom: 60px;
    text-align: center;
}

.gg-c-cards {
    display: grid;
    justify-content: center;
    margin: 0 auto;
    grid-template-columns: 1fr;
    gap: 25px;
    list-style: none;
    padding: 0;
    margin-top: 30px;
    text-align: left;
}

/* Responsive Grid Columns Extensions */
@media (min-width: 600px) {
    .gg-u-\@m\:grid--2-col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .gg-u-\@l\:grid--3-col {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gg-c-cards__item {
    display: flex;
}

.gg-c-cards__card {
    display: block;
    width: 100%;
    text-decoration: none;
    color: #ffffff;
    border: 1px solid #ffffff;
    background-color: #000000;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.gg-c-cards__card:hover {
    background-color: #ffffff;
    color: #000000;
    transform: translateY(-4px);
}

.gg-c-cards__image {
    display: block;
    width: 100%;
    height: auto;
    border-bottom: 1px solid #ffffff;
    background-color: #111111;
    transition: border-color 0.3s ease;
}

.gg-c-cards__card:hover .gg-c-cards__image {
    border-color: #000000;
}

.gg-c-cards__body {
    padding: 20px;
}

.gg-c-cards__title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gg-c-cards__body p {
    font-size: 0.95rem;
    line-height: 1.4;
    opacity: 0.8;
    margin: 0;
}

.gg-c-cards__label {
    display: inline-block;
    margin: 0 20px 20px 20px;
    padding: 5px 10px;
    border: 1px solid currentColor;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Past Gigs Lower Opacity Tweaks */
.past-section {
    margin-top: 100px;
    opacity: 0.85;
}

.past-section .gg-c-cards__card {
    border-color: #444444;
}

.past-section .gg-c-cards__image {
    opacity: 0.6;
    filter: grayscale(100%);
    border-bottom-color: #444444;
}

.past-section .gg-c-cards__card:hover .gg-c-cards__image {
    opacity: 1;
    filter: grayscale(0%);
    border-color: #000000;
}

.gg-c-cards__photos-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.9rem;
    color: #4a9fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.gg-c-cards__card:hover .gg-c-cards__photos-link {
    color: #000000;
}

.past-section .gg-c-cards__label {
    text-decoration: line-through;
    opacity: 0.6;
}

.past-section .gg-c-cards__card:hover .gg-c-cards__label {
    opacity: 1;
    text-decoration: none;
}

/* ==========================================================================
   Contact Us Section
   ========================================================================== */
.contact-section {
    max-width: 1100px;
    margin: 80px auto;
    padding: 0 20px;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 30px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid #ffffff;
    background-color: #000000;
    color: #ffffff;
    text-decoration: none;
    padding: 45px 20px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.contact-card:hover {
    background-color: #ffffff;
    color: #000000;
    transform: translateY(-4px);
}

.contact-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-platform {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.contact-handle {
    font-size: 0.9rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.contact-card:hover .contact-handle {
    opacity: 1;
}

.contact-icon {
    width: 44px;
    height: 44px;
    object-fit: contain;
    margin-bottom: 18px;
    filter: brightness(0) invert(1);
    transition: filter 0.4s ease, transform 0.3s ease;
}

.contact-card:hover .contact-icon {
    filter: brightness(0);
    transform: scale(1.08);
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .contact-card {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 35px 15px;
    }
    .contact-text {
        align-items: flex-start;
        text-align: left;
    }
    .contact-icon {
        margin-bottom: 0;
        margin-right: 18px;
    }
}

/* ==========================================================================
   Footer & Responsive Adaptations
   ========================================================================== */
footer {
    text-align: center;
    padding: 60px 20px calc(40px + var(--bottom-nav-height)) 20px;
    border-top: 1px solid #333333;
    background-color: rgba(0, 0, 0, 0.9);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
}

.social-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: opacity 0.2s;
}

.social-links a:hover {
    opacity: 0.6;
    text-decoration: underline;
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.5;
}

.credit {
    padding-top: 15px;
    font-size: 0.8rem;
    opacity: 0.5;
    color: #ffffff;
}

.credit a {
    color: inherit;
    text-decoration: underline;
}


@media (max-width: 768px) {
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 24px;
    }
    .hero {
        height: 70vh;
        background-size: cover; 
    }
    .band-showcase {
        padding: 50px 0;
    }
    .lineup-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        padding: 0 16px;
    }

    .member-name {
        padding: 10px;
        font-size: 0.95rem;
    }
    .content-container {
        padding: 40px 16px;
    }
    .gigs-section {
        margin-bottom: 40px;
    }
    .gg-c-cards {
        gap: 16px;
    }
    .past-section {
        margin-top: 60px;
    }
    .contact-section {
        margin: 50px auto;
        padding: 0 16px;
    }
}

/* ==========================================================================
   Floating Side Band Member Photos
   ========================================================================== */
.side-images-container {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

.side-image-card {
    position: absolute;
    width: var(--side-card-width, 300px);
    top: var(--side-top, 0px);
    left: var(--side-left, auto);
    right: var(--side-right, auto);
    background-color: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9);
    pointer-events: auto;
    transition: none;
    filter: grayscale(100%) contrast(1.2) brightness(0.75);
    --parallax-offset: 0px;
    --rotation: 0deg;
    transform: translate3d(0, var(--parallax-offset), 0) rotate(var(--rotation));
    will-change: transform;
    backface-visibility: hidden;
}

.side-image-card img {
    width: 100%;
    height: var(--side-image-height, 400px);
    object-fit: cover;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.side-image-card::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    width: 90px;
    height: 26px;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(1px);
    border-left: 1px dashed rgba(255, 255, 255, 0.1);
    border-right: 1px dashed rgba(255, 255, 255, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.side-image-2::before, .side-image-4::before {
    transform: translateX(-50%) rotate(2deg);
}

.side-image-card:hover {
    transform: translate3d(0, var(--parallax-offset), 0) scale(1.06) rotate(0deg);
    filter: grayscale(0%) contrast(1.05) brightness(1.0);
    border-color: rgba(255, 255, 255, 0.65);
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.95), 0 0 25px rgba(255, 255, 255, 0.08);
    z-index: 10;
}

.side-image-1 { --rotation: -5deg; }
.side-image-2 { --rotation: 4deg; }
.side-image-3 { --rotation: -3deg; }
.side-image-4 { --rotation: 6deg; }

@media (max-width: 1575px) {
    .side-images-container {
        display: none;
    }
}

/* ==========================================================================
   Gallery Page Styles - Masonry Layout
   ========================================================================== */
.gallery-top-section {
    min-height: 40vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
    padding-bottom: 40px;
    background-color: transparent;
}

.page-title {
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-top: 30px;
    border-bottom: 2px solid #ffffff;
    padding-bottom: 15px;
}

.gallery-masonry-section {
    width: 100%;
    background-color: transparent;
    padding: 40px 20px;
}

.gallery-container {
    max-width: 1100px;
    margin: 0 auto;
}

.loading-message {
    text-align: center;
    opacity: 0.6;
    padding: 40px 0;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.gallery-section-header {
    font-size: 1.8rem;
    text-align: left;
    margin: 40px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #444444;
}

.gallery-section-header:first-of-type {
    margin-top: 0;
}

.band-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.band-grid .member-card {
    cursor: pointer;
    opacity: 0.85;
    transition: all 0.2s ease;
}

.band-grid .member-card:hover {
    opacity: 1;
    transform: translateY(-4px);
}

.masonry-grid {
    column-count: 3;
    column-gap: 20px;
}

.masonry-item {
    display: block;
    margin-bottom: 20px;
    border: 1px solid #444444;
    cursor: pointer;
    transition: all 0.2s ease;
    break-inside: avoid;
}

.masonry-item:hover {
    opacity: 1;
    transform: scale(1.02);
    z-index: 10;
}

.member-card:focus-visible,
.masonry-item:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    filter: saturate(0.80) brightness(0.95);
    transition: filter 0.3s ease;
}

.masonry-item:hover img {
    filter: saturate(1) brightness(1);
}

@media (hover: none) {
    .masonry-item:active {
        transform: scale(0.98);
    }
    .masonry-item:active img {
        filter: saturate(1) brightness(1);
    }
    .band-grid .member-card:active {
        opacity: 1;
        background-color: #ffffff;
    }
    .band-grid .member-card:active .member-name {
        background-color: #ffffff;
        color: #000000;
    }
    .contact-card:active {
        background-color: #ffffff;
        color: #000000;
    }
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.lightbox-close:hover {
    background-color: #ffffff;
    color: #000000;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    font-size: 3rem;
    width: 60px;
    height: 60px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.lightbox-nav:hover {
    background-color: #ffffff;
    color: #000000;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .gallery-top-section {
        min-height: 30vh;
    }

    .gallery-top-section .logo-container img {
        max-width: 280px;
    }

    .gallery-masonry-section {
        padding: 24px 16px;
    }

    .gallery-section-header {
        margin: 30px 0 16px 0;
    }

    .gallery-section-header:first-of-type {
        margin-top: 0;
    }

    .band-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    
    .masonry-grid {
        column-gap: 12px;
    }

    .masonry-item {
        margin-bottom: 12px;
    }

    .lightbox-img {
        max-width: 85vw;
    }

    .lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 1.8rem;
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }

    .lightbox-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 62vh;
        padding: 16px;
    }
    .scroll-arrow {
        font-size: 36px;
    }
    .section-title {
        font-size: 1.35rem;
    }
    .band-showcase {
        padding: 36px 0;
    }
    .lineup-grid {
        gap: 10px;
        padding: 0 12px;
    }

    .member-name {
        padding: 8px;
        font-size: 0.85rem;
    }
    .content-container {
        padding: 32px 12px;
    }
    .gg-c-cards__body {
        padding: 14px;
    }
    .gg-c-cards__title {
        font-size: 1.05rem;
    }
    .contact-card {
        padding: 32px 16px;
    }
}

@media (max-width: 480px) {
    .gallery-section-header {
        font-size: 1.4rem;
    }

    .masonry-grid {
        column-gap: 8px;
    }

    .masonry-item {
        margin-bottom: 8px;
    }

    .band-grid {
        gap: 10px;
    }

    .band-grid .member-name {
        padding: 10px;
        font-size: 0.9rem;
    }

    .lightbox-nav {
        width: 38px;
        height: 38px;
        font-size: 1.5rem;
    }

    .lightbox-prev {
        left: 4px;
    }

    .lightbox-next {
        right: 4px;
    }
}

/* ==========================================================================
   Bottom Tab Bar Navigation
   ========================================================================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--bottom-nav-height);
    display: flex;
    background-color: #000000;
    border-top: 1px solid #ffffff;
    z-index: 50;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.bottom-nav__link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--bottom-nav-height);
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    font-weight: bold;
    border-right: 1px solid #333333;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.bottom-nav__link:last-child {
    border-right: none;
}

@media (hover: hover) {
    .bottom-nav__link:hover {
        background-color: #ffffff;
        color: #000000;
    }
}

.bottom-nav__link:active {
    background-color: #ffffff;
    color: #000000;
}

.bottom-nav__link:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: -4px;
}

.bottom-nav__link.is-active {
    background-color: #ffffff;
    color: #000000;
}