.ek-all-widgets {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 60px;
}

.ek-main-feature .ek-trigger-image {
  overflow: hidden;
}

.ek-dual-widgets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  width: 100%;
}

.ek-modal-container {
  width: 100%;
}

.ek-trigger-image {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  z-index: 1;
  width: 100%;
  height: 600px;
  border-radius: 20px;
}

.ek-trigger-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
  height: 100%;
  width: 100%;
  transition: all 0.3s ease;
}

.ek-trigger-image:hover::before {
  background: rgba(0, 0, 0, 0.7);
}

.ek-trigger-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.ek-overlay-content {
    position: absolute;
    bottom: 30px;
    left: 20px;
    right: 20px;
    z-index: 3;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.ek-trigger-image:hover .ek-overlay-content {
    transform: translateY(-20px);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.ek-trigger-image:hover .ek-feature-text,
.ek-trigger-image:hover .ek-feature-icon {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.ek-overlay-title {
    color: white;
    font-size: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.ek-features-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 500px;
}


.ek-feature-pair {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
}

img[alt="bed"].ek-feature-icon,
img[alt="shower"].ek-feature-icon,
img[alt="lobby"].ek-feature-icon,
img[alt="tv"].ek-feature-icon,
img[alt="klima"].ek-feature-icon,
img[alt="wifi"].ek-feature-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.ek-feature-item {
   display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 200px; /* Base width for items */
    flex: 1 1 calc(50% - 15px); /* Allow items to grow and shrink */
}

@media (max-width: 1200px) {
    .ek-feature-item {
        min-width: 180px;
    }
}

@media (max-width: 992px) {
    .ek-features-container {
          display: grid;
     grid-template-columns: repeat(auto-fill, 240px);
    }
    .ek-feature-item {
        min-width: 160px;
    }
     .ek-trigger-image {
    height: 400px; /* Increased height for medium screens */
  }
}

@media (max-width: 768px) {
    .ek-feature-pair {
        gap: 10px;
    }
    
    .ek-feature-item {
        min-width: 140px;
        flex: 1 1 calc(50% - 10px);
    }
    .ek-trigger-image {
    height: 450px; /* Even taller for mobile screens */
  }
  
  .ek-dual-widgets .ek-trigger-image {
    height: 450px; /* Same height for the smaller images */
  }
}

@media (max-width: 576px) {
    .ek-features-container {
        max-width: 100%;
    }
    
    .ek-feature-item {
        flex: 1 1 100%; /* Stack items vertically */
        min-width: 100%;
    }
    .ek-trigger-image {
    height: 500px; /* Maximum height for very small screens */
  }
  
  .ek-dual-widgets .ek-trigger-image {
    height: 500px;
  }
}

.ek-feature-text {
    color: white;
    font-size: 13px;
}

.ek-features-row {
    text-wrap: nowrap;
}

.ek-features-row-main {
    text-wrap: nowrap;
    width: 50%;
}
.ek-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.ek-modal.show {
  display: block;
}

.ek-modal-content {
  position: relative;
  background: white;
  max-width: 1400px;
  margin: 20px auto;
  padding: 40px;
  border-radius: 12px;
  overflow-y: visible;
}

.ek-close {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 30px;
  cursor: pointer;
  color: #333;
  z-index: 2;
}

.ek-modal-header {
  text-align: center;
  margin-bottom: 20px;
}

.ek-modal-main-image {
  position: relative;
  width: 100%;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.ek-modal-main-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 20px;
}

.ek-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  width: 40px;
  height: 41px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
  z-index: 5;
}

.ek-nav-arrow:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.ek-prev {
  left: 30px; /* Position outside the image */
}

.ek-next {
  right: 30px; /* Position outside the image */
}

@media (max-width: 1328px) {
  .ek-modal-content {
    padding: 20px 60px; /* Add padding for arrows */
    margin: 10px;
    position: relative;
  }

  .ek-modal-main-image {
    height: auto;
    min-height: 250px;
  }

  .ek-nav-arrow {
    width: 35px;
    height: 36px;
  }
}


@media (max-width: 576px) {
  .ek-modal-content {
    padding: 20px 50px; /* Slightly less padding for smaller screens */
  }

  .ek-prev {
    left: 0;
  }

  .ek-next {
    right: 0;
  }

  .ek-nav-arrow {
    width: 30px;
    height: 30px;
  }
}

.ek-thumbnails {
  display: flex;
  gap: 40px;
  overflow-x: auto;
  padding: 30px 0;
  scrollbar-width: thin;
  scrollbar-color: #0073aa #f0f0f0;
  align-items: center;
}

.ek-thumbnails::-webkit-scrollbar {
  height: 8px;
}

.ek-thumbnails::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 4px;
}

.ek-thumbnails::-webkit-scrollbar-thumb {
  background: #0073aa;
  border-radius: 4px;
}

.ek-thumb {
  position: relative;
  width: 200px;
  min-width: 200px;
  border-radius: 100% !important;
  height: 200px !important;
  flex: 0 0 200px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 12px;
  transition: all 0.3s ease;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.ek-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ek-thumb:hover {
  transform: scale(1.05);
  border-color: rgba(0, 115, 170, 0.5);
}

.ek-thumb.active {
  border-color: #0073aa;
  box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.ek-modal-description {
  margin-top: 40px;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ek-modal-description h3 {
  font-size: 24px;
  color: #333;
  margin-bottom: 20px;
  font-weight: 600;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 10px;
}

.ek-modal-description p {
  font-size: 16px;
  line-height: 1.8;
  color: #495057;
  margin-bottom: 15px;
}

.ek-modal-description .capacity {
  font-weight: 600;
  color: #0073aa;
  margin-top: 20px;
  font-size: 18px;
  text-align: right;
}

html.modal-open,
body.modal-open {
  overflow: hidden;
  position: relative;
  height: 100%;
}

@media (max-width: 1024px) {
  .ek-overlay-title {
    font-size: 1.8em;
  }
  
  .ek-feature-icon {
    width: 12px;
    height: 12px;
  }
  
  .ek-feature-text {
    font-size: 0.75em;
  }
}

@media (max-width: 768px) {
  .ek-dual-widgets {
    grid-template-columns: 1fr;
  }
  
  .ek-overlay-title {
    font-size: 1.6em;
  }
  
  .ek-feature-icon {
    width: 10px;
    height: 10px;
  }
  
  .ek-feature-text {
    font-size: 0.7em;
  }
  
  .ek-feature-pair {
    gap: 15px;
  }
  
  .ek-overlay-content {
    bottom: 20px;
    left: 15px;
    right: 15px;
  }
}

@media (max-width: 768px) {
  .ek-modal-content {
    padding: 20px;
    margin: 10px;
  }

  .ek-modal-main-image {
    height: auto;
    min-height: 250px; /* Reduced min-height */
  }
  
  .ek-modal-main-image img {
    width: 100%;
    height: auto;
    max-height: 350px; /* Control maximum height on mobile */
  }

  .ek-thumbnails {
    gap: 20px; /* Reduced gap between thumbnails */
    padding: 10px 0; /* Reduced padding */
  }

  .ek-thumb {
    width: 150px; /* Smaller thumbnails */
    min-width: 150px;
    height: 150px;
    flex: 0 0 150px;
  }

  .ek-modal-description {
    margin-top: 15px;
    padding: 20px;
  }

  .ek-nav-arrow {
    width: 35px;
    height: 35px;
  }
}

/* Even smaller screens */
@media (max-width: 576px) {
  .ek-modal-main-image {
    min-height: 200px;
  }
  
  .ek-modal-main-image img {
    max-height: 300px;
  }

  .ek-thumb {
    width: 120px;
    min-width: 120px;
    height: 120px;
    flex: 0 0 120px;
  }

  .ek-thumbnails {
    gap: 15px;
  }
}