/* v51.6 - FORCE HORIZONTAL GALLERY - NO VERTICAL! */

/* ===== DESKTOP ===== */

/* Gallery - BOLD heading, left align */
#gallery-section .simple-events-section-title {
    text-align: left !important;
    font-weight: 700 !important;
    font-size: 28px !important;
}

/* All Section Headings - Bold */
#timeline-section .simple-events-section-title,
.simple-events-timeline-manager h2,
.simple-events-speakers-section h2,
.simple-events-faq-section h2,
.simple-events-sponsors-section h2 {
    font-weight: 700 !important;
}

/* Sponsors - No hover color */
.simple-events-sponsors-section a {
    color: #000 !important;
}

/* GALLERY - DESKTOP GRID */
.simple-events-gallery {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 20px !important;
}

.simple-events-gallery-item {
    position: relative !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    aspect-ratio: 16/9 !important;
    background: #000 !important;
}

.simple-events-gallery-item img,
.simple-events-gallery-item video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* SPEAKERS - DESKTOP */
.simple-events-speakers-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 30px !important;
}

.simple-events-speaker-card {
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
    background: #fff !important;
}

.simple-events-speaker-card > div:first-child {
    height: 320px !important;
}

/* ===== MOBILE ===== */

@media (max-width: 768px) {
    /* Section Reordering */
    .simple-events-body {
        display: flex !important;
        flex-direction: column !important;
    }
    
    #about-section { order: 1 !important; }
    .simple-events-pricing { order: 2 !important; }
    #gallery-section { order: 3 !important; }
    .simple-events-timeline-manager { order: 4 !important; }
    #registration { order: 5 !important; }
    .simple-events-speakers-section { order: 6 !important; }
    .simple-events-sponsors-section { order: 7 !important; }
    .simple-events-faq-section { order: 8 !important; }
    
    /* Sidebar - Hide but keep Share */
    .simple-events-sidebar {
        display: block !important;
        order: 99 !important;
    }
    .simple-events-sidebar > * {
        display: none !important;
    }
    .simple-events-sidebar .simple-events-widget:has(.simple-events-share) {
        display: block !important;
        order: 9 !important;
    }
    
    /* Gallery heading - BOLD on mobile */
    #gallery-section .simple-events-section-title {
        font-weight: 700 !important;
        font-size: 24px !important;
    }
    
    /* GALLERY - FORCE HORIZONTAL ONLY! */
    body .simple-events-gallery,
    body #gallery-section .simple-events-gallery,
    div.simple-events-gallery {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 15px !important;
        padding: 0 15px 15px 15px !important;
        
        /* Force NO grid */
        grid-template-columns: unset !important;
        grid-template-rows: unset !important;
    }
    
    /* Gallery items - FORCE HORIZONTAL */
    body .simple-events-gallery-item,
    body .simple-events-gallery > *,
    .simple-events-gallery .simple-events-gallery-item {
        flex: 0 0 90% !important;
        min-width: 90% !important;
        max-width: 90% !important;
        width: 90% !important;
        scroll-snap-align: center !important;
        border-radius: 12px !important;
        height: 250px !important;
        min-height: 250px !important;
        
        /* Force display */
        display: block !important;
        float: none !important;
        clear: none !important;
    }
    
    /* Images and videos - FULL SIZE */
    body .simple-events-gallery-item img,
    body .simple-events-gallery-item video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 12px !important;
        display: block !important;
    }
    
    /* Hide scrollbar */
    .simple-events-gallery::-webkit-scrollbar {
        display: none !important;
    }
    .simple-events-gallery {
        -ms-overflow-style: none !important;
        scrollbar-width: none !important;
    }
    
    /* SPEAKERS - HORIZONTAL */
    body .simple-events-speakers-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 15px !important;
        padding: 0 15px 15px 15px !important;
        grid-template-columns: unset !important;
    }
    
    body .simple-events-speaker-card {
        flex: 0 0 85% !important;
        min-width: 85% !important;
        scroll-snap-align: center !important;
    }
    
    .simple-events-speaker-card > div:first-child {
        height: 260px !important;
    }
    
    .simple-events-speakers-grid::-webkit-scrollbar {
        display: none !important;
    }
    .simple-events-speakers-grid {
        -ms-overflow-style: none !important;
        scrollbar-width: none !important;
    }
    
    /* Sponsors - 2 columns */
    .simple-events-sponsors-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    
    /* FAQ - One line */
    .simple-events-faq-section h2 {
        font-size: 18px !important;
        white-space: nowrap !important;
    }
    
    /* MODAL */
    .simple-events-ticket-modal-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    .simple-events-ticket-modal-header,
    .simple-events-ticket-modal-header h2 {
        font-size: 18px !important;
        padding: 12px 15px !important;
    }
    
    .simple-events-ticket-modal-body {
        padding: 12px !important;
    }
    
    [class*="ticket-card"] [class*="header"],
    .simple-events-ticket-card-header {
        font-size: 15px !important;
        padding: 10px 12px !important;
    }
    
    [class*="ticket-price"],
    .simple-events-ticket-price {
        font-size: 20px !important;
    }
    
    [class*="ticket-description"],
    .simple-events-ticket-description {
        font-size: 13px !important;
        padding: 10px 12px !important;
    }
    
    [class*="quantity"] label {
        font-size: 13px !important;
    }
    
    [class*="quantity-selector"] {
        flex-direction: row !important;
        justify-content: space-between !important;
        padding: 10px 12px !important;
    }
    
    [class*="quantity"] button {
        width: 38px !important;
        height: 38px !important;
        font-size: 18px !important;
    }
    
    [class*="coupon-wrapper"],
    [class*="coupon-section"],
    .coupon-section {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        padding: 12px !important;
    }
    
    [class*="coupon"] h3,
    [class*="coupon"] h4 {
        font-size: 16px !important;
        margin-bottom: 8px !important;
    }
    
    [class*="coupon"] input,
    input[placeholder*="coupon" i],
    input[placeholder*="code" i] {
        width: 100% !important;
        font-size: 14px !important;
        padding: 11px !important;
        margin: 0 !important;
    }
    
    [class*="coupon"] button {
        width: 100% !important;
        font-size: 14px !important;
        padding: 11px !important;
        margin: 0 !important;
    }
    
    [class*="total-section"],
    .simple-events-total-section {
        padding: 12px !important;
    }
    
    [class*="total"] label {
        font-size: 14px !important;
    }
    
    [class*="total-amount"],
    .simple-events-total-amount {
        font-size: 22px !important;
    }
    
    [class*="checkout"],
    .simple-events-checkout-button,
    button[type="submit"] {
        width: 100% !important;
        padding: 13px !important;
        font-size: 15px !important;
    }
    
    [class*="modal"] input,
    [class*="modal"] select,
    [class*="modal"] textarea {
        font-size: 14px !important;
        padding: 11px !important;
    }
}

/* Swipe indicator */
@media (max-width: 768px) {
    #gallery-section::after,
    .simple-events-speakers-section::after {
        content: "← Swipe to see more →";
        display: block;
        text-align: center;
        color: #999;
        font-size: 13px;
        margin-top: 10px;
        font-style: italic;
    }
}
