.main {
  display: block;
  width: 100%;
}

.carousel {
  aspect-ratio: 3/1;
  margin-bottom: 20px;
  width: 100%;
}

.product-images {
  width: 100%;
}

.flickity-viewport {
  width: 100%;
  height: 100%;
}

.flickity-slider {
  width: 100%;
  height: 100%;
}

.carousel-image {
  width: 33.3333333333%;
  height: auto;
  aspect-ratio: 1/1;
}
.carousel-image a {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  width: 100%;
}
.carousel-image a img {
  height: 70%;
  -o-object-fit: contain;
     object-fit: contain;
  -o-object-position: center;
     object-position: center;
  width: 70%;
}

.flickity-slider {
  width: 100%;
  height: 100%;
}

@media screen and (min-width: 760px) {
  .header {
    width: 700px;
  }
  .main {
    display: block;
    gap: 20px;
    margin-top: 30px;
    position: relative;
    width: 700px;
  }
  .carousel {
    width: 100%;
    aspect-ratio: 4/1;
  }
  .carousel .previous {
    left: -30px;
  }
  .carousel .next {
    right: -30px;
  }
  .carousel-image {
    width: 25%;
    height: auto;
  }
  .footer {
    width: 700px;
    text-align: right;
  }
}
.flickity-button.previous {
  left: -5px;
  height: 100%;
  border-radius: 0;
}
@media screen and (min-width: 760px) {
  .flickity-button.previous {
    border-radius: 50%;
    height: 44px;
  }
}

.flickity-button.next {
  right: -5px;
  height: 100%;
  border-radius: 0;
}
@media screen and (min-width: 760px) {
  .flickity-button.next {
    border-radius: 50%;
    height: 44px;
  }
}
