.hibo-square-slider {
  position: relative;
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 0 24px;
  padding: 16px 0;
  overflow: hidden;
  clear: both;
}


.hibo-square-slider,
.hibo-square-slider * {
  box-sizing: border-box;
}

.hibo-square-slider__viewport {
  width: 100%;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
}

.hibo-square-slider__viewport:active {
  cursor: grabbing;
}

.hibo-square-slider__track {
  display: flex;
  align-items: stretch;
  will-change: transform;
  user-select: none;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.hibo-square-slider__slide {
  flex: 0 0 auto;
  min-width: 0;
  overflow: hidden;
  background: #f5f5f5;
}

.hibo-square-slider__link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.hibo-square-slider__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  -webkit-user-drag: none;
  transition: transform 240ms ease;
}

.hibo-square-slider__link:hover .hibo-square-slider__image,
.hibo-square-slider__link:focus-visible .hibo-square-slider__image {
  transform: scale(1.025);
}

.hibo-square-slider__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #1f2937;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16);
  place-items: center;
  transform: translateY(-50%);
  cursor: pointer;
  opacity: 0;
  transition: opacity 180ms ease, background 180ms ease;
}

.hibo-square-slider:hover .hibo-square-slider__arrow,
.hibo-square-slider__arrow:focus-visible {
  opacity: 1;
}

.hibo-square-slider__arrow:hover {
  background: #fff;
}

.hibo-square-slider__arrow--prev {
  left: 18px;
}

.hibo-square-slider__arrow--next {
  right: 18px;
}

.hibo-square-slider__arrow span {
  font-size: 22px;
  line-height: 1;
}

@media (max-width: 767px) {
  .hibo-square-slider {
    padding: 10px 0;
  }

  .hibo-square-slider__arrow {
    width: 36px;
    height: 36px;
    opacity: 0.9;
  }

  .hibo-square-slider__arrow--prev {
    left: 8px;
  }

  .hibo-square-slider__arrow--next {
    right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hibo-square-slider__track,
  .hibo-square-slider__image {
    transition: none !important;
  }
}
