.carousel {
  position: absolute;
  top: 33.6%;
  left: 0;
  width: 100%;
  height: 27.7%;
  max-height: 196px;
  min-height: 165px;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
}
.carousel.is-dragging, .carousel.is-dragging .carousel-card { cursor: grabbing; }
.carousel-track { display: flex; gap: 7px; height: 100%; }
.carousel-item { flex: 0 0 23%; min-width: 0; height: 100%; position: relative; }
.carousel-card {
  position: absolute;
  bottom: 0;
  display: block;
  width: 100%;
  height: 90%;
  appearance: none;
  border: 0;
  border-radius: 4px;
  padding: 0;
  margin: 0;
  background: #141414;
  cursor: grab;
  transform-origin: center bottom;
  backface-visibility: hidden;
  outline-offset: -3px;
}
.project-photo { position: relative; overflow: hidden; }
.project-photo img {
  display: block;
  position: absolute;
  left: var(--photo-left, -4%);
  top: var(--photo-top, -3%);
  width: var(--photo-width, 104%);
  height: var(--photo-height, 103%);
  max-width: none;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
/* The supplied mockup crops contain borders and fragments of neighboring photos. */
.project-photo[data-project="interludio"] { --photo-left: -5%; --photo-width: 105%; }
.project-photo[data-project="altura"] { --photo-top: -16%; --photo-height: 116%; --photo-left: 0%; --photo-width: 100%; }
.project-photo[data-project="ultima-luz"] { --photo-left: -7%; --photo-width: 107%; --photo-top: -16%; --photo-height: 116%; }
.carousel-card.project-photo { position: absolute; }
@media (max-width: 800px) {
  .carousel { top: 37%; height: 21%; min-height: 124px; }
}
@media (max-width: 560px) {
  .carousel { top: 37%; height: 20%; min-height: 110px; }
  .carousel-item { flex-basis: 58%; }
}
