.elementor-widget-chilly_expand_gallery,
.elementor-widget-chilly_expand_gallery .elementor-widget-container {
  width: 100%;
  max-width: 100%;
  display: block;
}

.chilly-expand-gallery {
  --ceg-height: 360px;
  --ceg-speed: 650ms;
  --ceg-radius: 10px;
  --ceg-img-zoom: 1;
  --ceg-img-hover-zoom: 1;
  --ceg-fit: contain;
  --ceg-position: center center;
  --ceg-stagger: 26px;
  --ceg-ratio: 3 / 4;
  --ceg-active-scale: 1.18;
  --ceg-inactive-scale: 0.82;

  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
  gap: 18px;
  padding-top: var(--ceg-stagger);
  padding-bottom: var(--ceg-stagger);
  overflow: visible;
  box-sizing: border-box;
}

.chilly-expand-gallery,
.chilly-expand-gallery * {
  box-sizing: border-box;
}

.chilly-expand-gallery__item {
  position: relative;
  flex: 0 0 auto;
  width: var(--ceg-item-width, auto);
  height: var(--ceg-item-height, var(--ceg-height));
  aspect-ratio: var(--ceg-ratio);
  overflow: hidden;
  display: block;
  background: transparent;
  border-radius: var(--ceg-radius);
  cursor: pointer;
  line-height: 0;
  isolation: isolate;
  transform-origin: center center;
  transform: translateY(calc(var(--ceg-stagger) * var(--ceg-stagger-factor, 0)));
  transition:
    width var(--ceg-speed) cubic-bezier(.16, 1, .3, 1),
    height var(--ceg-speed) cubic-bezier(.16, 1, .3, 1),
    opacity var(--ceg-speed) cubic-bezier(.16, 1, .3, 1),
    filter var(--ceg-speed) cubic-bezier(.16, 1, .3, 1),
    transform var(--ceg-speed) cubic-bezier(.16, 1, .3, 1);
}

.chilly-expand-gallery__item.is-active {
  z-index: 3;
}

.chilly-expand-gallery.has-hover .chilly-expand-gallery__item:not(.is-active) {
  opacity: .9;
}

.chilly-expand-gallery.has-hover .chilly-expand-gallery__item:not(.is-active) .chilly-expand-gallery__media {
  filter: saturate(.82) contrast(.95);
}

.chilly-expand-gallery__media {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background-image: var(--ceg-image);
  background-repeat: no-repeat;
  background-position: var(--ceg-position);
  background-size: var(--ceg-fit);
  transform: scale(var(--ceg-img-zoom));
  transform-origin: center center;
  transition:
    transform var(--ceg-speed) cubic-bezier(.16, 1, .3, 1),
    opacity var(--ceg-speed) cubic-bezier(.16, 1, .3, 1),
    filter var(--ceg-speed) cubic-bezier(.16, 1, .3, 1);
}

.chilly-expand-gallery__item.is-active .chilly-expand-gallery__media {
  transform: scale(var(--ceg-img-hover-zoom));
}

.chilly-expand-gallery__image {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 767px) {
  .chilly-expand-gallery {
    min-height: var(--ceg-height);
    height: var(--ceg-height);
    padding-top: 0;
    padding-bottom: 0;
    justify-content: flex-start;
    align-items: stretch;
  }

  .chilly-expand-gallery.is-mobile-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    align-items: stretch;
  }

  .chilly-expand-gallery.is-mobile-scroll .chilly-expand-gallery__item,
  .chilly-expand-gallery.is-mobile-scroll .chilly-expand-gallery__item.is-active,
  .chilly-expand-gallery.is-mobile-scroll .chilly-expand-gallery__item:hover,
  .chilly-expand-gallery.is-mobile-scroll .chilly-expand-gallery__item:focus-visible {
    flex: 0 0 auto;
    width: var(--ceg-mobile-width, 68vw) !important;
    height: var(--ceg-height) !important;
    transform: none !important;
    scroll-snap-align: center;
    opacity: 1 !important;
  }

  .chilly-expand-gallery.is-mobile-stack {
    height: auto !important;
    min-height: 0 !important;
    flex-direction: column;
  }

  .chilly-expand-gallery.is-mobile-stack .chilly-expand-gallery__item,
  .chilly-expand-gallery.is-mobile-stack .chilly-expand-gallery__item.is-active,
  .chilly-expand-gallery.is-mobile-stack .chilly-expand-gallery__item:hover,
  .chilly-expand-gallery.is-mobile-stack .chilly-expand-gallery__item:focus-visible {
    flex: none;
    width: 100% !important;
    height: var(--ceg-height) !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
