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

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

.product-images {
  width: 100%;
}

.home-products {
  transition: opacity 0.2s ease;
  width: 100%;
}

.home-products.is-loading {
  opacity: 0.45;
}

.products-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}

.products-grid-item {
  aspect-ratio: 1/1;
  min-width: 0;
}

.products-grid-link {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.products-grid-image {
  height: 70%;
  -o-object-fit: contain;
     object-fit: contain;
  -o-object-position: center;
     object-position: center;
  width: 70%;
}

.products-grid-title {
  color: #78bde8;
  display: block;
  font-size: 12px;
  line-height: 1.35;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 0 8px;
  text-align: center;
}

.products-pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 20px;
  margin-top: 30px;
  width: 100%;
}

.products-pagination-link {
  align-items: center;
  color: #555;
  display: inline-flex;
  justify-content: center;
  line-height: 1;
  min-height: 28px;
  min-width: 28px;
  padding: 7px 8px;
}

.products-pagination-link:hover,
.products-pagination-link.is-current {
  color: #78bde8;
}

.products-pagination-link.is-current {
  font-weight: bold;
}

.products-pagination-link.is-disabled {
  opacity: 0.28;
  pointer-events: none;
}

.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;
  }
  .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .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;
  }
}
