.ebmnt1-previous-work {
  background-color: var(--ebmnt1-background-previous-work);
}

.ebmnt1-previous-work__inner {
  background-color: var(--ebmnt1-background-previous-work-inner);
  align-items: stretch;
  gap: 3rem;
}

.ebmnt1-previous-work__top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  width: 100%;
  text-align: start;
}

.ebmnt1-previous-work__top .ebmnt1-section__head {
  align-items: flex-start;
}

/* Scroll-snap slider */
.ebmnt1-previous-work__track {
  overscroll-behavior-x: contain;
  cursor: grab;
  display: flex;
  gap: var(--ebmnt1-layout-grid-gap);
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.ebmnt1-previous-work__track.ebmnt1-is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
  user-select: none;
}

.ebmnt1-previous-work__track img {
  -webkit-user-drag: none;
  user-select: none;
}

.ebmnt1-previous-work__track::-webkit-scrollbar {
  display: none;
}

.ebmnt1-previous-work__item {
  flex: 0 0 85%;
  scroll-snap-align: start;
}

.ebmnt1-work-card {
  position: relative;
  display: block;
  border-radius: var(--ebmnt1-radius-card);
  overflow: hidden;
}

.ebmnt1-work-card__image {
  width: 100%;
  border-radius: var(--ebmnt1-radius-card);
}

.ebmnt1-work-card__link {
  position: absolute;
  inset-block-start: 1rem;
  inset-inline-end: 1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.8125rem;
  height: 2.8125rem;
  border-radius: var(--ebmnt1-radius-circle);
  background-color: var(--ebmnt1-background-work-link);
  color: var(--ebmnt1-icon-work-link);
  transition: all 0.5s ease;
}

.ebmnt1-work-card:hover .ebmnt1-work-card__link {
  background-color: var(--ebmnt1-background-work-link-hover);
  transform: translateX(calc(var(--ebmnt1-offset-hover-icon) * -1));
}

/* Caption box (the old hover reveal) is now always visible */
.ebmnt1-work-card__content {
  position: absolute;
  inset-inline: 0.9375rem;
  inset-block-end: 0.9375rem;
  z-index: 1;
  padding: 1rem 1.25rem;
  border-radius: var(--ebmnt1-radius-card);
  background-color: var(--ebmnt1-background-work-cover);
  overflow: hidden;
  text-align: start;
}

.ebmnt1-work-card__content-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: var(--ebmnt1-opacity-work-cover-bg);
}

.ebmnt1-work-card__content::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0.75rem;
  width: 2px;
  background-color: var(--ebmnt1-background-work-line);
}

.ebmnt1-work-card__title {
  margin-block-end: 0.25rem;
  padding-inline-start: 1.25rem;
  color: var(--ebmnt1-text-work-title);
  font-size: var(--ebmnt1-font-size-work-title);
  font-weight: var(--ebmnt1-font-weight-bold);
  line-height: 1.4;
  transition: color 0.5s ease;
}

.ebmnt1-work-card:hover .ebmnt1-work-card__title {
  color: var(--ebmnt1-text-work-title-hover);
}

.ebmnt1-work-card__text {
  padding-inline-start: 1.25rem;
  color: var(--ebmnt1-text-work-body);
  font-size: var(--ebmnt1-font-size-body-small);
}
.ebmnt1-previous-work__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.ebmnt1-previous-work__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.ebmnt1-previous-work__dot {
  position: relative;
  width: var(--ebmnt1-size-reviews-dot);
  height: var(--ebmnt1-size-reviews-dot);
  border-radius: var(--ebmnt1-radius-circle);
  background-color: var(--ebmnt1-background-reviews-dot);
  transition: background-color var(--ebmnt1-duration-fast) ease;
}

.ebmnt1-previous-work__dot::before {
  content: "";
  position: absolute;
  inset: -0.375rem;
  border: 1px solid var(--ebmnt1-border-reviews-dot-active);
  border-radius: var(--ebmnt1-radius-circle);
  transform: scaleX(0);
  transition: transform var(--ebmnt1-duration-medium) ease;
}

.ebmnt1-previous-work__dot.ebmnt1-is-active {
  background-color: var(--ebmnt1-background-reviews-dot-active);
}

.ebmnt1-previous-work__dot.ebmnt1-is-active::before {
  transform: scaleX(1);
}
.ebmnt1-previous-work__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--ebmnt1-size-slider-arrow);
  height: var(--ebmnt1-size-slider-arrow);
  border-radius: var(--ebmnt1-radius-circle);
  background-color: var(--ebmnt1-background-slider-arrow);
  color: var(--ebmnt1-icon-slider-arrow);
  transition: all 0.5s ease;
}

.ebmnt1-previous-work__arrow:hover {
  background-color: var(--ebmnt1-background-slider-arrow-hover);
}

@media (min-width: 768px) {
  .ebmnt1-previous-work__top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .ebmnt1-previous-work__item {
    flex-basis: calc(50% - 0.625rem);
  }
}

@media (min-width: 1024px) {
  .ebmnt1-previous-work__item {
    flex-basis: calc(33.333% - 0.84rem);
  }
}

@media (min-width: 1440px) {
  .ebmnt1-previous-work__item {
    flex-basis: calc(25% - 0.94rem);
  }
}
