.work-carousel-shell {
  position: relative;
}

.work-carousel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: -8px 0 22px;
}

.work-carousel-hint {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
}

.work-carousel-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.work-carousel-arrow {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(214, 174, 103, 0.5);
  border-radius: 50%;
  background: transparent;
  color: #e2bd79;
  cursor: pointer;
  font: inherit;
  font-size: 1.2rem;
  transition: background 180ms ease, color 180ms ease, opacity 180ms ease;
}

.work-carousel-arrow:hover:not(:disabled),
.work-carousel-arrow:focus-visible {
  background: #d6ae67;
  color: #111;
  outline: none;
}

.work-carousel-arrow:disabled {
  cursor: default;
  opacity: 0.28;
}

.work-carousel-shell .before-grid {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.work-carousel-shell .before-grid::-webkit-scrollbar {
  display: none;
}

.work-carousel-shell .before-card {
  flex: 0 0 calc((100% - 24px) / 2);
  scroll-snap-align: start;
}

.work-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.work-carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.work-carousel-dot[aria-current="true"] {
  background: #d6ae67;
  transform: scale(1.35);
}

@media (max-width: 720px) {
  .work-carousel-toolbar {
    align-items: flex-end;
    margin-bottom: 16px;
  }

  .work-carousel-hint {
    max-width: 230px;
    font-size: 0.82rem;
  }

  .work-carousel-arrow {
    width: 38px;
    height: 38px;
  }

  .work-carousel-shell .before-card {
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-carousel-shell .before-grid {
    scroll-behavior: auto;
  }
}
