/*
  RESPONSIVE CSS
*/
@media (max-width: 1599.98px) {
    .footer-big-name {
        margin-bottom: -2.85vw;
    }
}

@media (max-width: 1399.98px) {
    h1 {
        font-size: 11.5rem;
        line-height: 9.5rem;
    }
    .h1-small {
    font-size: 7rem;
    }
    .concert-date-large .day {
        font-size: 6rem;
    }
    .merch-headline {
        font-size: 3.75rem;
    }
    .footer-big-name {
        font-size: 11.5rem;
        margin-bottom: -2.55vw;
    }
}

@media (max-width: 1199.98px) {    
    h1 {
        font-size: 10rem;
        line-height: 8.5rem;
    }
    h2 {
        font-size: 5.5rem;
    }
    h3 {
        font-size: 2.5rem;
        line-height: 2.3rem;
    }
    .h1-small {
        font-size: 6.5rem;
    }
    .post-title a,
    .post-title {
        font-size: 2.5rem;
        line-height: 2.3rem;
    }
    .concert-date-large .day {
        font-size: 6rem;
        line-height: 5rem;
    }

    /* Concerts Page Row */
    .concert-row-day {
        font-size: 5rem;
    }
    .concert-row-month,
    .concert-row-year {
        font-size: 1.75rem;
    }
    .concert-row-title {
        font-size: 2.5rem;
    }
    .concert-row-city {
        font-size: 2.5rem;
    }
    .concert-image-wrapper {
        aspect-ratio: 2 / 1;
    }
    .news-image-wrapper {
        aspect-ratio: 1.1 / 1;
    }
    .merch-headline {
        font-size: 3.5rem;
    }
    .gallery-overlay-small .gallery-title {
        font-size: 1.75rem;
    }
    .gallery-title {
        font-size: 2.75rem;
    }
    .gallery-card-title {
        font-size: 1.75rem;
    }
    .footer-big-name {
        font-size: 10rem;
        margin-bottom: -2.55vw;
    }
    .partner-card {
        max-height: 16rem;
    }
}

@media (max-width: 991.98px) {
    h1 {
        font-size: 8rem;
        line-height: 6.5rem;
    }
    h2 {
        font-size: 5rem;
    }
    .h1-small {
        font-size: 6rem;
    }
    .section-padding {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    .header-logo svg {
        width: 70px;
        height: auto;
    }
    .hero-date {
        font-size: 3.5rem;
    }
    .hero-location {
        font-size: 2rem;
    }
    .latest-post-image {
        aspect-ratio: 16 / 9;
    }
    /* Concerts */
    .concert-card-nearest {
        padding: 2.5rem !important;
    }
    .concert-date-large .day {
        font-size: 4.5rem;
        line-height: 4rem;
    }
    .concert-date-large .month {
        font-size: 3.5rem;
        line-height: 3rem;
    }
    .concert-list {
        padding-left: 0 !important;
        align-items: flex-end;
        text-align: end;
    }
    .concert-image-wrapper {
        aspect-ratio: 16 / 9;
    }
    .concert-list-item {
        align-items: flex-end;
    }

    /* Concerts Page Row */
    .concert-row {
        padding: 1.5rem 2.5rem 1.5rem 1.5rem;
        gap: 2rem;
    }
    .concert-row-day {
        font-size: 4.5rem;
    }
    .concert-row-month,
    .concert-row-year {
        font-size: 1.5rem;
    }
    .concert-row-title {
        font-size: 2.25rem;
    }
    .concert-row-city {
        font-size: 2.25rem;
    }
    .concert-row-location {
        width: 12rem;
    }
    .concert-row-date {
        min-width: 6rem;
    }

    /* GALLERY SECTION RESPONSIVE */
    .gallery-accordion {
        flex-direction: column !important; /* Force column on mobile */
        height: 850px !important; /* Increased height for better spacing */
        width: 100%;
        gap: 0.75rem !important; /* Smaller gap for mobile vertical */
    }
    .gallery-btn-circle {
        width: 6.5rem;
        height: 6.5rem;
        font-size: 0.8rem;
        padding: 0.5rem;
        /* Position handled by JS (top/left) */
        /* Transition handled by Global CSS, but we might want explicit top/left transition here if it overrides? No, global is fine. */
        transition: top 1s cubic-bezier(0.25, 0.8, 0.25, 1), left 1s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease, transform 0.3s ease;
    }
    .gallery-arrow svg {
        width: 20px;
        height: auto;
    }
    
    .gallery-item {
        width: 100%;
        flex: 1; /* Start small */
    }
    
    .gallery-item.active {
        flex: 1.5; /* Total units: 1+1+1.5 = 3.5 */
        background: #fff;
        padding: 1rem;
    }

    /* Re-enable Content Side visibility for active items */
    .gallery-content-side,
    .gallery-item.active .gallery-content-side {
        display: flex !important;
    }
    
    /* Transition for content side */
    .gallery-content-side {
        transition: opacity 0.4s ease, width 1.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    /* Inner Layout Adaptation for Tablet (Side by Side) */
    .gallery-inner {
        flex-direction: row; 
    }
    
    /* Adjust widths inside active card for Tablet */
    .gallery-item.active .gallery-img-side {
        width: 50%;
        border-radius: var(--radius-img);
    }
    .gallery-item.active .gallery-content-side {
        width: 50%;
        padding-left: 1rem;
        transition: width 1.5s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.5s ease 0.5s;
    }
    .gallery-item.active .gallery-img-side::before {
        opacity: 0;
        border-radius: var(--radius-img);
    }
    
    /* Fonts */
    .gallery-title {
        font-size: 1.75rem; /* Smaller title */
        line-height: 1;
    }
    .gallery-desc {
        font-size: 0.875rem;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 4; /* Limit text lines */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Overlay Title on Inactive Cards */
    .gallery-overlay-small .gallery-title {
        font-size: 1.5rem;
    }
    .gallery-overlay-small {
        padding: 1rem;
    }

    
    .gallery-title {
        font-size: 1.75rem; /* Smaller title */
        line-height: 1;
    }
    .gallery-desc {
        font-size: 0.875rem;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 4; /* Limit text lines */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Overlay Title on Inactive Cards */
    .gallery-overlay-small .gallery-title {
        font-size: 1.5rem;
    }
    .gallery-overlay-small {
        padding: 1rem;
    }

    .footer-big-name {
        font-size: 7.5rem;
        margin-bottom: -2.85vw;
    }
    .post-detail-excerpt {
        font-size: 1.125rem;
    }
    .post-image-wrapper {
        aspect-ratio: 1.6 / 1;
    }
    .discography-card-title {
        font-size: 2.5rem;
    }
    .gallery-card-img {
        aspect-ratio: 1.8 / 1;
    }
    .masonry-grid {
        gap: 1rem;
    }
    .bio-title {
        font-size: 2.5rem;
    }
    .discography-image-wrapper {
        display: none;
    }
}

@media (max-width: 767.98px) {
    h1 {
        font-size: 6rem;
        line-height: 5rem;
    }
    h2 {
        font-size: 4rem;
    }
    h3 {
        font-size: 2.25rem;
        line-height: 1.8rem;
    }
    .h1-small {
        font-size: 5rem;
    }
    .hero-date {
        font-size: 2.75rem;
    }
    .hero-location {
        font-size: 1.75rem;
    }
    .post-title a,
    .post-title {
        font-size: 2.25rem;
        line-height: 1.8rem;
    }
    /* Concerts */
    .concert-date-large .day {
        font-size: 4em;
        line-height: 3rem;
    }
    .concert-date-large .month {
        font-size: 2.5rem;
        line-height: 2.5rem;
    }
    .concert-location {
        font-size: 2.25rem;
    }
    .concerts-discover-btn {
        width: 9rem;
        height: 9rem;
        font-size: 0.875rem;
    }
    .concerts-discover-btn svg {
        width: 24px;
        height: auto;
    }
    .concert-list-item .concert-item-date {
        font-size: 2.25rem;
        line-height: 2rem;
    }
    .concert-list-item .concert-item-city {
        font-size: 2rem;
        line-height: 1.6rem;
    }
    .news-image-wrapper {
        aspect-ratio: 1.5 / 1;
    }
    .merch-headline {
        font-size: 3.25rem;
    }
    .gallery-card-title {
        font-size: 1.5rem;
    }

    .footer-nav-link {
        font-size: 2rem;
    }
    .footer-big-name {
        font-size: 5rem;
        margin-bottom: -1.95vw;
    }

    /* Concerts Page */
    .concert-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.25rem;
    }
    .concert-row-date {
        flex-direction: row;
        align-items: baseline;
        gap: 0.5rem;
        min-width: auto;
    }
    .concert-row-day {
        font-size: 4rem;
    }
    .concert-row-month,
    .concert-row-year {
        font-size: 1.5rem;
    }
    .concert-row-content {
        width: 100%;
        order: -1;
    }
    .concert-row-title {
        font-size: 2rem;
    }
    .concert-row-subtitle {
        font-size: 0.875rem;
    }
    .concert-row-location {
        text-align: left;
        min-width: auto;
        width: 100%;
    }
    .concert-row-city {
        font-size: 1.5rem;
    }
    .concert-row-venue {
        padding-top: 0.25rem;
        font-size: 0.875rem;
    }
    .concert-row-time {
        font-size: 0.8125rem;
    }
    .concert-row-button {
        width: 100%;
    }
    .concert-row-button .btn {
        width: 100%;
        justify-content: center;
    }
    .discography-card-title {
        font-size: 2.25rem;
    }
}

/* Mobile styles (Bootstrap default is mobile-first, but usually responsive.css is for overrides) */

@media (max-width: 575.98px) {
    .section-padding {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    h1 {
        font-size: 5rem;
        line-height: 4rem;
    }
    h2 {
        font-size: 3rem;
    }
    .h1-small {
        font-size: 4rem;
    }
    .btn {
        font-size: 0.875rem;
    }
    .gap-1875 {
        gap: 1.25rem;
    }
    /* Ensure Header Toggle and Sidebar work smoothly */
    .site-header .nav-link {
        font-size: 1rem;
    }

    .sidebar-close svg {
        width: 22px;
        height: auto;
    }
    
    .site-sidebar {
        width: 100%;
        min-width: auto;
        right: 0;
        top: 0;
        height: 100vh;
        height: 100dvh;
        border-radius: 0;
        transform: translateX(100%);
        overflow-y: auto;
        padding: 1.5rem 2rem;
    }

    .site-sidebar .sidebar-inner {
        height: auto !important;
        min-height: 100%;
    }

    .site-sidebar.is-active {
        transform: translateX(0);
    }

    .site-sidebar .sidebar-nav .nav-link{
        font-size: 2.25rem;
        line-height: 2.6rem;
    }

    .site-sidebar .social-link {
        font-size: 1.35rem;
    }

    .header-logo svg {
        width: 60px;
    }

    .site-header .header-social {
        gap: 1rem;
    }

    .header-toggle svg {
        width: 44px;
        height: auto;
    }

    .site-header .social-link {
        font-size: 1.25rem;
    }

    .hero-event-info {
        align-items: center;
    }
    
    .hero-date {
        font-size: 2.5rem;
    }
    .hero-location {
        font-size: 1.5rem;
    }
    .latest-post-image {
        aspect-ratio: 4 / 3;
    }
    .post-title a,
    .post-title {
        font-size: 2rem;
        line-height: 1.6rem;
    }
    .post-excerpt {
        font-size: 0.875rem;
    }
    .post-arrow svg {
        width: 24px;
        height: auto;
    }
    /* Concerts */
    .concert-card-nearest {
        padding: 1.75rem !important;
    }
    .concert-list {
        align-items: center;
        text-align: center;
    }
    .concert-image-wrapper {
        aspect-ratio: 4 / 3;
    }
    .concerts-discover-btn {
        padding: 1rem;
        width: 8rem;
        height: 8rem;
    }
    .concerts-discover-btn span {
        font-size: 0.875rem;
        line-height: 1rem;
    }
    .concerts-discover-btn svg {
        width: 20px;
        height: auto;
    }
    .concert-date-large .month {
        font-size: 2rem;
        line-height: 1.7rem;
    }
    .concert-location {
        font-size: 1.75rem;
    }
    .concert-list-item {
        align-items: center;
    }
    .concert-list-item .concert-item-date {
        font-size: 2rem;
        line-height: 1.8rem;
    }
    .concert-list-item .concert-item-city {
        font-size: 1.75rem;
        line-height: 1.4rem;
    }
    
    /* News */
    .news-content {
        padding: 1.5rem 0 0 0 !important;
    }
    .news-content .post-arrow {
        position: relative !important;
        margin-top: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 1rem !important;
        display: inline-block;
    }
    .news-image-wrapper {
        aspect-ratio: 1.6 / 1;
    }
    
    /* Merch */
    .merch-headline {
        font-size: 2.5rem;
    }
    .merch-desc {
        font-size: 0.875rem;
    }
    
    /* Video */
    .plyr__control--overlaid {
        width: 22px !important;
        height: 28px !important;
    }

    /* Gallery (Mobile Stacking) */
    .gallery-accordion {
        height: 1200px !important; /*Significantly increased height for content visibility */
    }
    
    .gallery-item.active {
        padding: 0.75rem;
    }
    
    .gallery-item.active .gallery-inner {
        flex-direction: column;
    }
    
    .gallery-item.active .gallery-img-side {
        width: 100%;
        height: 50%; /* Image takes top 50% */
        border-radius: var(--radius-img);
    }
    
    .gallery-item.active .gallery-content-side {
        width: 100%;
        height: 50%; /* Text takes bottom 50% */
        padding-left: 0;
        padding-top: 1rem;
        transition: width 1.5s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.5s ease 0.5s;
    }
    
    .gallery-content-side .gallery-desc {
        margin-top: 0;
        -webkit-line-clamp: 2;
    }

    .footer-nav-list {
        gap: 0.5rem;
        align-items: center;
    }
    .footer-nav-link {
        font-size: 1.75rem;
    }
    .footer-big-name {
        font-size: 3rem;
        margin-bottom: -2.05vw;
    }
    .footer-bio {
        font-size: 0.875rem;
    }

    .post-image-wrapper {
        aspect-ratio: 1.2 / 1;
    }
    .post-detail-title {
        font-size: 2.5rem;
    }
    .post-detail-excerpt {
        font-size: 1rem;
    }

    /* Concerts Page */
    .concert-row {
        padding: 1.25rem;
    }
    .concert-row-day {
        font-size: 3.5rem;
    }
    .concert-row-month,
    .concert-row-year {
        font-size: 1.25rem;
    }
    .concert-row-title {
        font-size: 1.75rem;
    }
    .concert-row-city {
        font-size: 1.75rem;
    }

    /* Discography */
    .discography-section {
        padding: 2rem 0;
    }
    .discography-card {
        padding: 1rem
    }
    .discography-card-title {
        font-size: 1.75rem;
    }
    .discography-card-arrow svg {
        width: 20px;
        height: auto;
    }

    /* Discography Detail */
    .discography-detail-back-btn {
        display: flex;
        justify-content: center;
    }
    .discography-detail-title {
        font-size: 2rem;
    }
    .track-item {
        padding: 1rem;
        gap: 0.75rem;
        flex-direction: column;
    }
    .track-number {
        font-size: 1.25rem;
        line-height: 0.85;
    }
    .track-name {
        font-size: 1.25rem;
        line-height: 0.85;
    }
    .track-platforms {
        gap: 1rem;
        margin-top: 0.5rem;
    }
    .platform-link svg {
        width: 1.25rem;
        height: auto
    }
    .gallery-card-img {
        aspect-ratio: 4 / 3;
    }

    .masonry-grid {
        gap: 0.5rem;
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Mobile pattern - repeating every 6 photos */
    /* First 3: large left + 2 small right */
    .masonry-item:nth-child(6n+1) {
        grid-column: 1 / span 1;
        grid-row: auto / span 24;
    }
    .masonry-item:nth-child(6n+2) {
        grid-column: 2 / span 1;
        grid-row: auto / span 12;
    }
    .masonry-item:nth-child(6n+3) {
        grid-column: 2 / span 1;
        grid-row: auto / span 12;
    }
    
    /* Next 3: 2 small left + large right */
    .masonry-item:nth-child(6n+4) {
        grid-column: 1 / span 1;
        grid-row: auto / span 12;
    }
    .masonry-item:nth-child(6n+5) {
        grid-column: 1 / span 1;
        grid-row: auto / span 12;
    }
    .masonry-item:nth-child(6n+6) {
        grid-column: 2 / span 1;
        grid-row: auto / span 24;
    }
    .bio-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    .bio-text {
        font-size: 0.875rem;
    }
    .bio-text p:first-child {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    .bio-text p {
        margin-bottom: 1rem;
    }
    .partner-card {
        padding: 1.25rem;
    }
    .partner-card:hover {
        transform: translateY(-0.25rem);
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    }
    .partner-card-small {
        padding: 0.75rem;
    }
    .contact-subtitle {
        font-size: 2rem;
    }
    .contact-block-title {
        font-size: 1.5rem;
    }
    .post-content ul li {
        padding: 1rem;
    }
    .concert-row {
        text-align: center;
        align-items: center;
    }
    .concert-row-date {
        flex-direction: column;
        align-items: center;
    }
    .concert-row-location {
        align-items: center;
        text-align: center;
    }
    .partner-card {
        max-height: 14rem;
    }
}