/* Tarafzo Responsive Banner v1.2
   Auto-size mode: image keeps its original aspect ratio and the section follows its natural height. */

.elementor-widget-tarafzo-responsive-banner,
.elementor-widget-tarafzo-responsive-banner .elementor-widget-container {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
}

.trb-banner-wrap {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 auto;
    overflow: hidden;
    line-height: 0;
    text-decoration: none;
}

.trb-banner-wrap picture {
    display: block;
    width: 100%;
    height: auto !important;
    line-height: 0;
}

.trb-banner-wrap img {
    display: block;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-width: 100%;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center;
    vertical-align: middle;
    transition: transform .35s ease;
}

/* Optional Elementor controls */
.trb-banner-wrap.trb-hover-zoom:hover img {
    transform: scale(1.015);
}

.trb-banner-wrap.trb-has-shadow {
    box-shadow: 0 10px 30px rgba(0,0,0,.14);
}

/* Mobile: use the mobile image's own aspect ratio/height automatically. */
@media (max-width: 767px) {
    .elementor-widget-tarafzo-responsive-banner,
    .elementor-widget-tarafzo-responsive-banner .elementor-widget-container,
    .trb-banner-wrap,
    .trb-banner-wrap picture,
    .trb-banner-wrap img {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }
}
