/* ==========================================================================
   Widescreen Transition Controls (Collapses Spacers Smoothly)
   ========================================================================== */
@media screen and (max-width: 732px) {
    /* Section 3, 4, 5, 6 Fluid Grid Breaking Collapse */
    .notice-inner-grid, .video-inner-grid, .booking-inner-grid, .footer-inner-grid {
        display: block;
        width: 100%;
    }
    
    .notice-alignment-spacer, .video-alignment-spacer, .booking-alignment-spacer, .footer-alignment-spacer {
        display: none;
    }
    
    .notice-content-block, .video-content-block, .booking-content-block, .footer-content-block {
        max-width: none;
        width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .notice-right-col {
        padding-right: 10px;
    }
}

/* ==========================================================================
   Section 3 Custom Column-Shift Framework (Triggers at 955px)
   ========================================================================== */
@media screen and (max-width: 955px) {
    .notice-grid-layout {
        grid-template-columns: 120px 1fr;
        grid-template-rows: auto auto auto;
        gap: 15px 20px;
    }

    /* Speaker Graphic sits on top-left */
    .notice-speaker-box {
        grid-column: 1;
        grid-row: 1 / span 2; 
        order: 1; 
        max-width: 120px;
    }

    /* Main Title moves to top-right, next to the speaker box */
    .notice-main-title {
        grid-column: 2;
        grid-row: 1;
        order: 2; 
        white-space: normal; 
        font-size: clamp(1.3rem, 3.5vw, 2.2rem);
        margin-bottom: 0;
    }

    /* Sub-title drops onto row 2, right below main title */
    .notice-subtitle-box {
        grid-column: 2;
        grid-row: 2;
        order: 3; 
        align-self: start;
    }

    /* Details block drops onto row 3, spanning completely across the bottom width */
    .notice-details-box {
        grid-column: 1 / span 2; 
        grid-row: 3;
        order: 4; 
        padding-right: 0;
    }
}

/* ==========================================================================
   Section 3 Mobile Layout Sequence Lock & Expanded Speaker Balance
   ========================================================================== */
@media screen and (max-width: 732px) {
    /* FORCES VERTICAL COLUMN ROW STACKING ON MOBILE SCREENS */
    .notice-desktop-flex-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 30px !important; /* Increased slightly to balance the larger speaker icon */
        width: 100% !important;
        height: auto !important;
    }
    
    /* 1. Forces the Speaker graphic wrapper layer to sit under the Large Title and scales up size boldy */
    .notice-speaker-box {
        order: 1 !important;
        width: 220px !important; /* FIX: Expanded width up to 220px so it takes up more space on mobile */
        max-width: 85% !important; /* Prevents overflow clipping on extremely narrow devices */
        margin: 0 auto !important;
        flex-shrink: 0 !important;
        transition: transform 0.2s ease;
    }

    /* Subtle zoom indicator to make the clickable mobile speaker feel highly interactive */
    .notice-speaker-box:hover {
        transform: scale(1.03);
    }
    
    /* 2. Forces the Text content wrapper stack to drop sequentially below the upscaled speaker graphic */
    .notice-text-columns-stack {
        order: 2 !important;
        display: flex !important;
        flex-direction: column !important;
        padding-right: 0 !important;
        width: 100% !important;
        text-align: left !important;
    }
    
    .notice-main-title {
        display: flex !important;
        justify-content: flex-start !important;
        margin-bottom: 25px !important;
    }
    
    .notice-main-title img {
        margin: 0 !important;
        width: 100% !important;
    }
    
    .notice-subtitle-box {
        margin-bottom: 12px !important;
    }
    
    .notice-sub-title, .notice-details-text {
        text-align: left !important;
    }
    
    .section-grey-divider {
        margin-top: 35px !important;
    }
}



/* ==========================================================================
   Mobile Global Screen Layout Shifts (Triggers at 732px for other elements)
   ========================================================================== */
@media screen and (max-width: 732px) {
    /* SECTION 1: Mobile Header Menu Adjustments */
    .menu-section {
        grid-template-columns: repeat(6, auto);
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
    }

    .menu-item {
        font-size: clamp(0.7rem, 2vw, 1rem);
    }

    .home-link {
        margin: 0;
        width: clamp(14px, 2.5vw, 25px);
        height: clamp(14px, 2.5vw, 25px);
    }

    /* SECTION 2: Mobile Slideshow Canvas Settings */
    .banner-outer-section {
        height: auto;
        max-height: none;
    }

    .banner-inner-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        height: auto;
        padding-bottom: 20px;
    }

    .band-logo {
        position: relative;
        left: 0;
        top: 0;
        margin: 15px auto; 
        max-width: 220px;
        width: 60%;
    }

    .slideshow-container {
        position: relative;
        left: 0;
        transform: none;
        top: 0;
        margin-top: 10px;
        padding: 0 10px;
        width: 100%;
    }

    /* Collapses global widescreen container layout offsets completely to clear right squash errors */
    .notice-inner-grid, .video-inner-grid, .booking-inner-grid, .footer-inner-grid {
        display: block;
        width: 100%;
    }
    
    .notice-alignment-spacer, .video-alignment-spacer, .booking-alignment-spacer, .footer-alignment-spacer {
        display: none;
    }

    .notice-content-block, .video-content-block, .booking-content-block, .footer-content-block {
        max-width: none;
        width: 100%;
        padding-left: 10px !important;
        padding-right: 10px !important;
        margin-left: 0 !important;
    }

    /* SECTION 4, 5, 6 Content Alignment Overrides */
    .video-caption-text, .booking-caption-text, .footer-branding-text {
        text-align: center;
        padding: 0 10px;
    }

    .footer-split-layout {
        flex-direction: column;
        gap: 20px;
    }
}

/* ==========================================================================
   Section 4/Video Portfolio Mobile Adjustments
   ========================================================================== */
@media screen and (max-width: 732px) {
    .video-portfolio-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .portfolio-video-caption {
        text-align: center;
        padding: 0 10px;
    }
}

/* ==========================================================================
   Section 5/Photo Portfolio Mobile Adaptations
   ========================================================================== */
@media screen and (max-width: 732px) {
    .photo-portfolio-grid {
        grid-template-columns: 1fr; /* Stacks image display cards vertically on phone screens */
        gap: 30px;
    }
    .portfolio-photo-caption {
        text-align: center;
        padding: 0 10px;
    }
}

/* Lightbox Carousel Layout Mobile Adaptations */
@media screen and (max-width: 768px) {
    .lightbox-prev { 
        left: 5px; 
        background: rgba(0, 0, 0, 0.25); 
        border-radius: 4px;
    }
    .lightbox-next { 
        right: 5px; 
        background: rgba(0, 0, 0, 0.25); 
        border-radius: 4px;
    }
    .lightbox-close-btn { 
        top: -45px; 
        right: 15px; 
        font-size: 36px;
    }
}

/* Swipeable Lightbox Mobile Navigation Overlays */
@media screen and (max-width: 768px) {
    .lightbox-prev { 
        left: 5px; 
        background: rgba(0, 0, 0, 0.2); 
        border-radius: 4px;
    }
    .lightbox-next { 
        right: 5px; 
        background: rgba(0, 0, 0, 0.2); 
        border-radius: 4px;
    }
    .lightbox-close-btn { 
        top: -45px; 
        right: 15px; 
        font-size: 36px;
    }
}

/* Swipeable Lightbox Mobile Navigation Overlays */
@media screen and (max-width: 768px) {
    .lightbox-prev { 
        left: 5px; 
        background: rgba(0, 0, 0, 0.2); 
        border-radius: 4px;
    }
    .lightbox-next { 
        right: 5px; 
        background: rgba(0, 0, 0, 0.2); 
        border-radius: 4px;
    }
    .lightbox-close-btn { 
        top: -45px; 
        right: 15px; 
        font-size: 36px;
    }
}

/* ==========================================================================
   Section 3 / Gig Calendar Mobile Row Card Breakdowns
   ========================================================================== */
@media screen and (max-width: 732px) {
    .calendar-schedule-container, .calendar-schedule-container tbody, .calendar-row {
        display: block;
        width: 100%;
    }

    .calendar-row {
        padding: 20px 10px;
        border-bottom: 3px solid #654321;
        margin-bottom: 15px;
        background-color: rgba(101, 67, 33, 0.02);
    }

    .calendar-cell {
        display: block;
        width: 100% !important;
        padding: 5px 0;
        text-align: center;
    }

    .cell-date {
        font-size: 1.3rem;
        padding-bottom: 8px;
    }

    .cell-venue {
        font-size: 1.15rem;
    }

    .cell-action {
        padding-top: 12px;
        text-align: center;
    }

    .calendar-add-btn {
        width: 80%;
        max-width: 250px;
        padding: 10px 0;
    }
}

/* ==========================================================================
   Section 7 / Booking Form Mobile Grid Overrides
   ========================================================================== */
@media screen and (max-width: 732px) {
    .form-grid-layout {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .form-group-block.full-width {
        grid-column: 1;
    }
    .booking-submit-btn {
        width: 100%;
        align-self: center;
        padding: 15px 0;
    }
}

/* ==========================================================================
   Planners Grid Directory Breakout Mobile Constraints
   ========================================================================== */
@media screen and (max-width: 768px) {
    .planners-banner-box {
        padding: 35px 25px 40px 25px; /* Compresses box padding on small mobile windows */
    }
    
    .planners-title-img {
        width: 50%; /* Scales header graphic slightly larger for mobile readability balance */
    }
    
    .planners-directory-grid {
        grid-template-columns: 1fr; /* Stacks column text segments vertically edge-to-edge */
        gap: 0;
    }
    
    .planner-entry-group {
        margin-bottom: 35px;
    }
    
    .planner-entry-group:last-of-type {
        margin-bottom: 0;
    }
}
