/* Styling for eHomeinCyprus Swiper Gallery v1.1.0 (with Thumbs) */

/* Overall wrapper for spacing */
.ehc-gallery-wrapper {
    max-width: 800px; 
    margin: 2em auto; 
}

/* Main Slider Container */
.ehc-gallery-slider.swiper-main {
    position: relative;
    width: 100%;
    height: 400px;
    aspect-ratio: 16 / 9;  
    overflow: hidden;
    margin-bottom: 10px; 
}

.ehc-gallery-slider .swiper-slide {
    text-align: center;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 400px; 
}

.ehc-gallery-slider .swiper-slide img {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 400px; 
    object-fit: contain;
    margin-bottom: 10px;
}

.ehc-gallery-slider .wp-caption-text.gallery-caption {
    font-size: 0.9em;
    color: #555;
    padding: 0 15px 15px;
    box-sizing: border-box;
    width: 100%;
    margin-top: auto; 
    line-height: 1.4;
    display: none;
}

/* Main Slider Navigation Buttons */
.ehc-gallery-slider .swiper-button-next,
.ehc-gallery-slider .swiper-button-prev {
    color: #0056b3;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    width: calc(var(--swiper-navigation-size) / 44 * 36);
    height: calc(var(--swiper-navigation-size) / 44 * 36);
    transition: background-color 0.2s ease; /* Smooth hover */
}
.ehc-gallery-slider .swiper-button-next:hover,
.ehc-gallery-slider .swiper-button-prev:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.ehc-gallery-slider .swiper-button-next:after,
.ehc-gallery-slider .swiper-button-prev:after {
    font-size: calc(var(--swiper-navigation-size) / 44 * 18);
    font-weight: bold;
}

/* -- Thumbnail Slider Styles -- */

.ehc-gallery-thumbs.swiper-thumbs {
    height: 80px; 
    box-sizing: border-box;
    padding: 0; 
    overflow: hidden; 
}

.ehc-gallery-thumbs .swiper-slide {
    width: 80px; 
    height: 80px; 
    opacity: 0.5; 
    transition: opacity 0.3s ease;
    cursor: pointer;
    overflow: hidden; 
    background-color: #eee; 
}

.ehc-gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    
}

.ehc-gallery-thumbs .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crop image to cover the 80x80 area */
    object-position: center center;
}

/* Placeholder for missing thumbs */
.ehc-gallery-thumbs .thumb-placeholder {
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #aaa;
}
.ehc-gallery-thumbs .thumb-placeholder::before {
    content: "No thumb"; 
}

/* Container for the background image */
.propertyimg {
  position: relative; 
  width: 100%;
  min-height: 450px; 
  background-size: cover; 
  background-position: center center; 
  background-repeat: no-repeat;
  background-color: #333;
  overflow: hidden; 
}

/* The overlay div */
.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /*background: linear-gradient(0deg,rgba(0, 33, 55, 1) 0%, rgba(0, 33, 55, 0.41) 32%, rgba(0, 33, 55, 0) 50%, rgba(0, 33, 55, 0) 100%);*/
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 30px;
    box-sizing: border-box;
}

/* Styling for the title within the overlay */
.item-overlay .single-title {
  position: relative;
  max-width: 1200px;
  z-index: 2;
  color: #ffffff; 
  margin: 0; 
  font-size: 2.3em;
  line-height: 1.0em;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); 
}
@media only screen and (max-width: 780px){
    
    .item-overlay {
       width: 100%;
    }
    .item-overlay .single-title {
        font-size: 1.3em;
    }
}