#carousel-facilities .wrapper {
  padding: 48px;
  display: flex;
  flex-direction: row;
  gap: 24px;
}

#carousel-facilities .control-facilities {
  display: flex;
  flex-direction: column;
  gap: 12px;

  width: 280px;
  flex-shrink: 0;
}

#carousel-facilities .facilities-list {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 12px;
}

#carousel-facilities .facilities-list .facility-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--color-green-light);
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.7;

  font-size: 1.77em;
  line-height: 170%;
}

#carousel-facilities .facilities-list .facility-item:hover {
  font-weight: 600;
  opacity: 1;

  font-size: 2.369em;
  line-height: 140%;
}

#carousel-facilities .facilities-list .facility-item.active {
  font-weight: 600;
  opacity: 1;

  font-size: 2.369em;
  line-height: 140%;
}

#carousel-facilities .facilities-galleries {
  display: block;
  width: 100%;
  flex-shrink: 1;
}

/* Galleries */
.facilities-galleries {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  width: 100%;
}

.facility-gallery {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.facility-gallery.active {
  display: block;
  opacity: 1;
}

.gallery-items {
  display: flex;
  gap: 15px;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 8px;
}

.gallery-item-home {
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  transition: flex 0.3s ease;
  flex: 1;
}

/* Default state: First image gets more space */
.gallery-items:not(.single-image) .gallery-item-home:first-child {
  flex: 3;
}

/* Single image gallery */
.gallery-items.single-image .gallery-item-home {
  flex: 1;
  width: 100%;
}

/* Animation for hover state is handled by JS adding this class */
.gallery-items:not(.single-image) .gallery-item-home.expanded {
  flex: 3;
}

.gallery-items:not(.single-image) .gallery-item-home:not(.expanded) {
  flex: 1;
}

.gallery-item-home img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* XXL Screens (1800px and up) */
@media (min-width: 1800px) {
}

/* XL Screens (1600px-1799px) */
@media (min-width: 1600px) and (max-width: 1799px) {
}

/* Large Screens (1400px-1599px) */
@media (min-width: 1400px) and (max-width: 1599px) {
}

/* Medium-Large Screens (1200px-1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
}

/* Small-Medium Screens (max-width: 1199px) */
@media (max-width: 1199px) {
}

/* Small Screens (max-width: 992px) */
@media (max-width: 992px) {
}

/* Mobile Screens (max-width: 768px) */
@media (max-width: 768px) {
  #carousel-facilities .wrapper {
    padding: 20px;
    flex-direction: column;
    gap: 16px;
  }

  #carousel-facilities .control-facilities {
    width: 100%;
  }

  #carousel-facilities .facilities-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
  }

  #carousel-facilities .facilities-list .facility-item.active {
    font-size: 1.77em;
  }

  #carousel-facilities .facilities-list .facility-item {
    padding: 0px;
    font-size: 1.33em;
  }

  #carousel-facilities .gallery-items {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
  }

  .gallery-items {
    /* height: 240px; */
    height: fit-content;
  }

  .gallery-item-home {
    width: 100%;
    height: 240px;
  }
}
