/**
 * Custom CSS for Geely image carousel with permanent captions
 * Only applies to carousel within #exterior-interior-exterior-col
 */

/* Hide the hover overlay captions specifically in the target carousel */
#exterior-interior-exterior-col .pp-image-carousel .pp-image-overlay {
  display: none !important;
}

/* Create structure for the permanent caption container */
#exterior-interior-exterior-col .pp-carousel-image-container {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* === CORE SQUARE ASPECT RATIO STYLES === */

/* Apply height to <a> link wrapper */
#exterior-interior-exterior-col .pp-image-carousel-item a {
  display: block;
  width: 100%;
}

/* Force the figure container to be square */
#exterior-interior-exterior-col .swiper-slide-inner {
  width: 100% !important;
  height: 0 !important;
  padding-bottom: 100% !important; 
  position: relative !important;
  overflow: hidden !important;
}

/* Position image absolutely inside the square container */
#exterior-interior-exterior-col .swiper-slide-image {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* Ensure PP Carousel module doesn't override our height */
#exterior-interior-exterior-col .pp-image-carousel,
#exterior-interior-exterior-col .pp-image-carousel-item,
#exterior-interior-exterior-col .swiper-container,
#exterior-interior-exterior-col .swiper-slide {
  min-height: initial !important;
  height: auto !important;
}

/* === CAPTION STYLING === */

/* Style for the permanent caption that will appear below images */
#exterior-interior-exterior-col .exterior-permanent-caption {
  padding: 10px;
  text-align: left;
  color: #000 !important;
  min-height: 50px;
  display: flex;
  align-items: center;
  /* Change justify-content to flex-start to align with text-align: left */
  justify-content: flex-start;
  width: 100%;
  margin-top: 40px;
  font-family: "LINESeedSansTH", Verdana, Arial, sans-serif !important;
  font-weight: 700 !important;
  font-size: 26px !important;
  text-decoration: none !important;
}

/* Remove underline from permanent captions on hover */
#exterior-interior-exterior-col .pp-image-carousel-item a:hover .exterior-permanent-caption {
  text-decoration: none !important;
}

.pp-image-carousel-link a {
  text-decoration: none !important;
}

/* === RESPONSIVE STYLES === */
/* Tablet styles */
@media screen and (max-width: 992px) {
  #exterior-interior-exterior-col .exterior-permanent-caption {
    font-size: 20px !important;
    font-weight: 400 !important;
  }
}

/* Mobile styles */
@media screen and (max-width: 768px) {
  #exterior-interior-exterior-col .exterior-permanent-caption {
    font-size: 20px !important;
    font-weight: 400 !important;
    margin-top: 20px !important;
  }
}