.look-gallery {
  padding: 8px 0 56px;
}

.look-gallery__title {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 0 32px;
  color: var(--color-muted);
}

.look-gallery__title::before,
.look-gallery__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-line-strong);
}

.look-gallery__title span {
  font-family: var(--font-site);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.look-gallery__carousel {
  position: relative;
}

.look-gallery__viewport {
  overflow: hidden;
}

.look-gallery__track {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform 0.45s ease;
  will-change: transform;
}

.look-gallery__item {
  flex: 0 0 calc((100% - 16px) / 5);
  min-width: 0;
}

.look-gallery__link {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--color-image-bg);
}

.look-gallery__image {
  width: 100%;
  aspect-ratio: 526 / 704;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.45s ease;
}

.look-gallery__link:hover .look-gallery__image {
  transform: scale(1.03);
}

.look-gallery__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-muted);
  transform: translateY(-50%);
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.look-gallery__nav:hover:not(:disabled) {
  color: var(--color-ink);
}

.look-gallery__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.look-gallery__nav .icon {
  width: 24px;
  height: 24px;
  stroke-width: 1.2;
}

.look-gallery__nav--prev {
  left: -36px;
}

.look-gallery__nav--next {
  right: -36px;
}

@media (max-width: 1100px) {
  .look-gallery__item {
    flex-basis: calc((100% - 12px) / 4);
  }

  .look-gallery__nav--prev {
    left: -8px;
  }

  .look-gallery__nav--next {
    right: -8px;
  }
}

@media (max-width: 900px) {
  .look-gallery {
    padding-bottom: 44px;
  }

  .look-gallery__title span {
    font-size: 24px;
  }

  .look-gallery__item {
    flex-basis: calc((100% - 8px) / 3);
  }
}

@media (max-width: 600px) {
  .look-gallery__title {
    gap: 16px;
    margin-bottom: 24px;
  }

  .look-gallery__title span {
    font-size: 22px;
  }

  .look-gallery__item {
    flex-basis: calc((100% - 4px) / 2);
  }

  .look-gallery__nav--prev {
    left: -4px;
  }

  .look-gallery__nav--next {
    right: -4px;
  }
}
