.carousel-nav-hidden {
  display: none !important;
}

.swiper {
  position: relative;
  overflow: hidden;
}

.swiper-wrapper {
  display: flex;
  align-items: stretch;
  width: 100%;
  box-sizing: content-box;
}

.swiper-slide {
  flex-shrink: 0;
  position: relative;
  display: flex;
}

/* Home page good-cards carousel */
.swiper-cards .swiper-slide {
  height: auto;
  width: 15.75rem;
  margin-right: 1rem;
}

.swiper-cards .swiper-slide:last-child {
  margin-right: 0;
}

@media (min-width: 640px) {
  .swiper-cards .swiper-slide {
    width: 16.5rem;
  }
}

/* Good page photo gallery: one full-width photo per view */
.swiper-gallery .swiper-slide {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  border-radius: 0.75rem;
  overflow: hidden;
}

.swiper-slide-hidden {
  display: none !important;
}

.carousel-nav {
  display: flex;
  flex-shrink: 0;
  gap: 0.5rem;
}

.carousel-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid #d1d5db;
  border-radius: 9999px;
  background: #fff;
  color: #111827;
  cursor: pointer;
  padding: 0;
}

.carousel-nav-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.carousel-nav-btn:hover:not(:disabled) {
  border-color: #000;
  background: #f9fafb;
}

.carousel-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Good detail page: portrait photo with fixed 7:10 proportions, square corners */
@media (min-width: 1024px) {
  .good-detail .swiper-gallery .swiper-slide {
    aspect-ratio: 7 / 10;
    border-radius: 0;
  }
}
