/*
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/hello-theme/
Description: Child theme for Hello Elementor.
Author: Elementor Team
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

/* Single car page: make featured image more square */
body.single-car .car-gallery-featured {
  aspect-ratio: 5 / 4;
  width: min(100%, 860px);
  margin: 0 auto;
  overflow: hidden;
}

body.single-car #car-featured-link,
body.single-car #car-featured-image {
  display: block;
  width: 100%;
  height: 100%;
}

body.single-car #car-featured-image {
  object-fit: cover;
}


body.page-id-9479 .elementor-element-0dfcad7 {
  display: block !important;
}

body.page-id-9479 .elementor-element-0dfcad7 .elementor-shortcode,
body.page-id-9479 .elementor-element-0dfcad7 .ti-widget {
  display: block !important;
  width: 100%;
}

/* Showroom sold cards: keep thumbnail size identical to unsold cards */
.car-image-container {
  position: relative;
  overflow: hidden;
}

.car-image-container .car-image,
.car-image-container .car-image .elementor-widget-container,
.car-image-container .car-image a,
.car-image-container .car-image img {
  display: block;
  width: 100%;
}

.car-image-container.car-sold .sold-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.car-image-container.car-sold .sold-overlay .elementor-widget-container,
.car-image-container.car-sold .sold-overlay img {
  width: 100%;
  height: 100%;
}

.car-image-container.car-sold .sold-overlay img {
  object-fit: cover;
}
