/*
Theme Name: Luke Hassall Clone
Description: A full site editing block theme inspired by lukehassall.co.uk
Author: AI Assistant
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: lukehassall-clone
Tags: block-theme, full-site-editing
*/

.horizontal-scroll-gallery {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px; /* Space for scrollbar */
    gap: 20px; /* Space between images */
}

/* Hide scrollbar for a cleaner look like the screenshot */
.horizontal-scroll-gallery::-webkit-scrollbar {
    display: none;
}
.horizontal-scroll-gallery {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.horizontal-scroll-gallery .wp-block-image {
    scroll-snap-align: center;
    flex: 0 0 80% !important; /* Show one image mostly, peek at next */
    max-width: 80% !important;
    margin: 0 !important;
    width: auto !important;
}

@media (min-width: 768px) {
    .horizontal-scroll-gallery .wp-block-image {
        flex: 0 0 30% !important; /* Show 3 images on desktop */
        max-width: 30% !important;
    }
    .hide-on-desktop {
        display: none !important;
    }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 767px) {
    /* Stack columns on small screens */
    .wp-block-columns {
        flex-direction: column !important;
    }
    .wp-block-column {
        flex-basis: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-bottom: 30px;
    }
    
    /* Ensure proper padding on mobile */
    .wp-block-group {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    .contact-form {
        padding: 0 20px;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Stack and center the footer content on mobile */
    footer .wp-block-group {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 20px;
        text-align: center;
    }
    
    .hide-on-mobile {
        display: none !important;
    }

    /* Mobile Menu Modal Styling */
    .wp-block-navigation__responsive-container.is-menu-open {
        background-color: #3E4135 !important;
        color: #fff !important;
    }
    .wp-block-navigation__responsive-container-content {
        align-items: center !important;
        justify-content: center !important;
        padding-top: 10vh !important;
    }
    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a {
        color: #fff !important;
        font-size: 2rem !important;
        padding: 15px !important;
        font-weight: 600;
    }
    .wp-block-navigation__responsive-container-close {
        color: #fff !important;
    }

    /* Mobile Banner (Hero) Styling */
    .wp-block-cover {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }
    .wp-block-cover h1.wp-block-heading {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
        padding: 0 10px;
    }
    .wp-block-cover p {
        font-size: 1.2rem !important;
    }
    /* Reduce the huge spacing on mobile so text fits nicely */
    .wp-block-cover .wp-block-spacer {
        height: 5vh !important; 
    }
}
