/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/


/* Add your custom styles here */

/**
 * Slideshow Proportions Fix
 * Prevents side-cropping by adjusting the aspect ratio for Tablet and Mobile.
 */
@media (max-width: 1024px) {
    #slideShowBox {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 16 / 9; /* Adjust this to match your desktop image ratio (e.g., 4/3 or 21/9) */
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        position: relative;
    }

    #slideShowBox .elementor-background-slideshow,
    #slideShowBox .elementor-background-slideshow__slide,
    #slideShowBox .elementor-slide-image {
        height: 100% !important;
        background-size: contain !important;
        background-repeat: no-repeat !important;
        background-position: center center !important;
    }

    /* Center the content layer (Heading) inside the aspect-ratio container */
    #slideShowBox > .elementor-container,
    #slideShowBox .elementor-column,
    #slideShowBox .elementor-widget-wrap {
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
    }

    /* Proportional Heading Adjustment */
    #slideShowBox .elementor-heading-title.elementor-size-default {
        margin-bottom: 5.2rem !important;
        font-size: clamp(20px, 6vw, 42px) !important;
        line-height: 1.2 !important;
        word-break: break-word;
    }
}

/**
 * Mobile Responsive Styles
 * Use this section to match the designs found in your models folder.
 * The default Elementor mobile breakpoint is 767px.
 */
@media (max-width: 767px) {

    /* Global container adjustments to match design margins */
    .elementor-section .elementor-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Target specific pages to match individual model images */
    /* Example: if your model image is 'home.png', target 'body.home' */
    body.home .elementor-widget-wrap {
        /* Add specific layout overrides here */
    }
}
