/* ============================================
   MOBILE RESPONSIVENESS
   ============================================ */

@media (max-width: 768px) {
    /* Global Spacing */
    :root {
        --spacing-xl: 4rem;
        --spacing-lg: 3rem;
    }

    .section {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .section-title {
        font-size: 2rem;
    }

    /* Hero Section */
    .hero-section {
        flex-direction: column;
    }

    .hero-image {
        flex: 0 0 38vh; /* Reduced height (~25% less than 50vh) */
        width: 100%;
        order: -1; /* Image on top */
        margin: 0;
    }
    
    .artist-photo {
        border-radius: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        object-fit: cover;
    }

    .hero-content {
        width: 100%;
        height: auto;
        min-height: 50vh;
        padding: 0; /* Remove padding to allow full-width image */
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        justify-content: center;
    }

    .hero-text {
        padding: var(--spacing-md) var(--spacing-sm); /* Add padding to text container */
        width: 100%;
    }

    .hero-text h1 {
        font-size: 3.5rem;
    }

    .hero-text p {
        font-size: 1rem;
        justify-content: center;
        padding: 0 var(--spacing-sm);
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-info-blocks {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 1rem;
    }

    .hero-card {
        width: 100%;
        max-width: 100%;
        min-width: 0; /* Allow shrinking */
    }
    
    .hero-card .release-main-content {
        gap: 0.8rem;
    }
    
    .hero-card .release-right-column {
        min-width: 0;
        overflow: hidden;
    }
    
    .hero-card {
        width: 100%;
        gap: 2rem;
    }
    
    .release-card {
        width: 100%;
        max-width: 100%;
        padding: 1.5rem;
    }

    /* Release Section */
    .release-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
    
    .release-artwork {
        margin-bottom: 0;
        width: 100% !important; /* Force full width of container */
        max-width: 280px !important; /* Limit max width */
        height: auto !important;
        aspect-ratio: 1;
    }

    .artwork-placeholder {
        width: 100%;
        height: 100%;
    }

    .release-info {
        width: 100%;
        align-items: center;
    }

    .release-track-title {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .release-date {
        text-align: center;
    }

    .release-actions {
        width: 100%;
    }

    .streaming-links {
        grid-template-columns: 1fr; /* Stack buttons */
        gap: 0.8rem;
    }

    .stream-btn {
        width: 100%;
        justify-content: center;
        padding: 0.8rem;
    }

    /* Show Section */
    .show-card, .show-card.no-show {
        flex-direction: column !important;
        text-align: center !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 1rem;
        padding: 1.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    } 

    /* Hero Cards Common Mobile Layout */
    .hero-card .release-main-content {
        display: flex;
        flex-direction: row; /* Side by side */
        align-items: flex-start; /* Align to top */
        gap: 1rem;
        text-align: left;
    }

    .hero-card .release-right-column {
        display: flex;
        flex-direction: column;
        justify-content: space-between; /* Text top, button bottom */
        height: 110px; /* Force height to match artwork/date-box */
        flex-grow: 1;
        min-width: 0;
    }

    .hero-card .release-info {
        width: 100%;
        text-align: left;
    }
    
    .hero-card .release-track-title {
        font-size: 1.3rem; /* Adjusted size */
        text-align: left;
        margin-bottom: 0.2rem;
        line-height: 1.2;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* Limit to 2 lines */
        line-clamp: 2; /* Standard property for compatibility */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .hero-card .release-date {
        text-align: left;
        font-size: 0.85rem;
        opacity: 0.8;
    }

    .hero-card .release-artwork,
    .hero-card .show-date-box {
        margin: 0;
        flex-shrink: 0;
    }

    .hero-card .release-actions {
        width: 100%;
        text-align: left;
    }
    
    .hero-card .presave-btn {
        width: 100%; /* Full width of the right column */
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0.5rem 1rem; /* Slightly reduced padding */
        font-size: 0.9rem;
        height: 36px; /* Fixed height for consistency */
    }

    /* Specific adjustments for Upcoming Release */
    #upcoming-release-card .release-artwork {
        width: 110px !important;
        height: 110px !important;
        border-radius: 12px;
    }

    /* Specific adjustments for Upcoming Show */
    .show-date-box {
        width: 110px;
        height: 110px;
        margin-right: 0;
        margin-bottom: 0;
    }
    
    .show-details h3 {
        text-align: left !important;
        font-size: 1.2rem;
        line-height: 1.2;
        margin-bottom: 0.2rem;
    }
    
    .venue-details {
        align-items: flex-start !important;
        text-align: left !important;
    }
    
    .venue-details span {
        text-align: left;
        font-size: 0.85rem;
    }
    
    #upcoming-show-ticket-btn {
        justify-content: center;
        width: 100%;
        display: flex;
        margin-top: 0;
        height: 36px;
        padding: 0.5rem 1rem;
    }
    

    .show-date {
        margin-right: 0;
        margin-bottom: var(--spacing-sm);
    }

    .show-details {
        align-items: center !important;
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        min-width: 0 !important; /* Remove min-width constraint */
        text-align: center !important;
    }
    
    .show-details h3 {
        text-align: center !important;
        width: 100%;
        font-size: 1.5rem; /* Reduce font size for mobile */
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .venue-details {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100%;
    }
    
    .venue-details span {
        margin-left: 0 !important; /* Override inline style */
        display: block;
        text-align: center;
    }

    #upcoming-show-ticket-btn {
        width: 100%;
        text-align: center;
        margin-top: var(--spacing-sm);
        display: flex;
        justify-content: center;
    }

    /* Bio Section */
    .bio-content {
        padding: var(--spacing-md);
    }

    /* Gallery Section */
    .gallery-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: var(--spacing-md);
    }

    /* Disable hover effects on mobile to prevent accidental triggering during scroll */
    .gallery-item:hover {
        transform: none;
    }
    
    .gallery-item:hover img {
        transform: none;
    }
    
    .gallery-item:hover .gallery-item-overlay {
        opacity: 0;
    }
    
    .gallery-item:hover .view-btn {
        opacity: 0;
        transform: translateY(10px);
    }
    
    /* Optional: Show overlay on active state (press) if desired, 
       but kept minimal to avoid scroll interference */
    .gallery-item:active .gallery-item-overlay {
        opacity: 1;
        transition: opacity 0.1s;
    }
    
    /* Modal */
    .modal-close {
        top: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .loader-numbers {
        font-size: 3rem;
    }
}
