.spb-projects-preview .spb-project-frame {
  position: relative;
  isolation: isolate;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #dedddb;
}

.spb-projects-preview .spb-project-swipe {
  position: absolute;
  inset: 0;
  touch-action: pan-y pinch-zoom;
  user-select: none;
}

.spb-projects-preview .spb-project-swipe img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.spb-projects-preview .spb-project-arrow {
  position: absolute;
  top: 50%;
  display: grid;
  place-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 50%;
  background: rgb(22 25 28 / 77%);
  color: #fff;
  cursor: pointer;
}

.spb-projects-preview .spb-project-arrow[hidden] {
  display: none;
}

.spb-projects-preview .spb-project-arrow:hover {
  background: #202529;
}

.spb-projects-preview .spb-project-arrow::before {
  width: 10px;
  height: 10px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  content: "";
}

.spb-projects-preview .spb-project-prev { left: 8px; }
.spb-projects-preview .spb-project-prev::before { transform: translateX(2px) rotate(135deg); }
.spb-projects-preview .spb-project-next { right: 8px; }
.spb-projects-preview .spb-project-next::before { transform: translateX(-2px) rotate(-45deg); }

.spb-projects-preview .spb-project-count,
.spb-projects-preview .spb-project-status {
  position: absolute;
  margin: 0;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgb(22 25 28 / 84%);
  color: #fff;
  font: 600 14px / 1.4 Arial, sans-serif;
  pointer-events: none;
}

.spb-projects-preview .spb-project-count {
  left: 8px;
  bottom: 8px;
}

.spb-projects-preview .spb-project-status {
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 16px);
  text-align: center;
}

.spb-projects-preview .spb-project-status:empty { opacity: 0; }

.spb-projects-preview :is(button, a):focus-visible {
  outline: 3px solid #1269a2;
  outline-offset: 2px;
}

@media (pointer: fine) {
  .spb-projects-preview .spb-project-swipe { cursor: grab; }
  .spb-projects-preview .spb-project-swipe:active { cursor: grabbing; }
}


.spb-projects-preview .spb-project-arrow {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #282b29;
}

.spb-projects-preview .spb-project-arrow::before {
  z-index: 1;
  width: 7px;
  height: 7px;
  border-width: 0 1.6px 1.6px 0;
}

.spb-projects-preview .spb-project-arrow::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 27px;
  height: 27px;
  transform: translate(-50%, -50%);
  border: 1px solid rgb(45 48 44 / 13%);
  border-radius: 50%;
  background: rgb(255 255 255 / 88%);
  box-shadow: 0 1px 2px rgb(20 20 18 / 12%);
  content: "";
  pointer-events: none;
}

.spb-projects-preview .spb-project-arrow:hover {
  background: transparent;
}

.spb-projects-preview .spb-project-arrow:hover::after {
  background: #fff;
}

.spb-projects-preview .spb-project-prev { left: 2px; }
.spb-projects-preview .spb-project-next { right: 2px; }
