/* ═══════════════════════════
     COMPONENT SHELL
     ═══════════════════════════ */
.gallery-carousels {
  max-width: 1360px;
  margin: 0 auto;
  overflow: hidden;
}

/* ─── Header ─── */
.gallery-carousel__header {
  margin-bottom: 30px;
}

.gallery-carousel__title {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 101%;
  letter-spacing: -0.01em;
  color: #232426;
  margin-bottom: 6px;
}

.gallery-carousel__subtitle {
  font-size: 18px;
  font-weight: 300;
  line-height: 23px;
  color: #75787B;
  max-width: 794px;
  font-family: Archivo;
}

/* ═══════════════════════════
     SLIDER
     ═══════════════════════════ */
.gallery-carousel__slider {
  position: relative;
}

.gallery-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 0;
}

.gallery-carousel__slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

/* ═══════════════════════════
     DESKTOP GRID
     ═══════════════════════════ */
.gallery-carousel__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.6fr 0.5fr;
  grid-template-rows: 1fr auto;
  gap: 0 20px;
  height: 620px;
}

/* Cell: Hero */
.gallery-carousel__hero {
  grid-column: 1;
  grid-row: 1 / 3;
  overflow: hidden;
  border-radius: 0;
  min-width: 670px;
  max-height: 620px;
  overflow: hidden;
}

.gallery-carousel__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 5px;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.gallery-carousel__hero:hover > img{
  transform: scale(1.1);
}
/* Cell: Info */
.gallery-carousel__info {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 4px 8px 8px;
}

.gallery-carousel__product-name {
  font-family: Archivo;
  font-size: 32px;
  font-weight: 400;
  line-height: 130%;
  color: #202129;
  margin-bottom: 12px;
}

.gallery-carousel__price-block {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px;
}

.gallery-carousel__price {
  font-size: 18px;
  font-weight: 700;
  color: #202129;
  line-height: 120%;
  font-family: Archivo;
}

.gallery-carousel__price-unit {
  font-size: 14px;
  font-weight: 400;
  color: #202129;
}

.gallery-carousel__tax {
  font-size: 10px;
  font-weight: 400;
  color: #74798A;
  margin-left: 8px;
  white-space: nowrap;
  line-height: 140%;
}

.gallery-carousel__cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 16px;
  line-height: 100%;
  font-weight: 600;
  color: #000000;
  text-decoration: none;
  cursor: pointer;
  margin-top: auto;
  transition: opacity 0.2s;
  padding-bottom: 35px;
  font-family: Archivo;
}

.gallery-carousel__cta:hover {
  opacity: 0.6;
}

.gallery-carousel__cta svg {
  width: 14px;
  height: 14px;
  position: relative;
  top: 0.5px;
}

/* Cell: Swatch */
.gallery-carousel__swatch {
  grid-column: 3;
  grid-row: 1;
  overflow: hidden;
  min-height: 310px;
  align-self: start;
  border-radius: 5px;
  min-width: 325px;
  max-height: 310px;
  overflow: hidden;
}

.gallery-carousel__swatch img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  min-height: 310px;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);

}
.gallery-carousel__swatch:hover > img {
  transform: scale(1.1);
}
/* Cell: Scene */
.gallery-carousel__scene {
  grid-column: 2;
  grid-row: 2;
  overflow: hidden;
  min-height: 310px;
  min-width: 325px;
  border-radius: 5px;
}

.gallery-carousel__scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  min-height: 310px;
}
.gallery-carousel__scene:hover > img{
    transform: scale(1.1);
}
/* Cell: Nav */
.gallery-carousel__nav {
  grid-column: 3;
  grid-row: 2;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px;
  padding-bottom: 10px;
}

.gallery-carousel__nav-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1.5px solid #c1b8b8;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}

.gallery-carousel__nav-btn:hover:not(.gallery-carousel__nav-btn--disabled),
.gallery-carousel__nav-btn:focus-visible:not(.gallery-carousel__nav-btn--disabled) {
  border-color: #1a1a1a;
  background: #fafafa;
}

.gallery-carousel__nav-btn--disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.gallery-carousel__nav-btn svg {
  width: 18px;
  height: 18px;
  stroke: #1a1a1a;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Dots (mobile only) */
.gallery-carousel__dots {
  display: none;
}

.gallery-carousel__info--mob {
  display: none;
}

/* Mobile-only wrappers (hidden on desktop) */
.gallery-carousel__mob-images {
  display: none;
}

.gallery-carousel__mob-hero {
  display: none;
}

.gallery-carousel__mob-info-row {
  display: none;
}

.gallery-carousel__mob-bottom {
  display: none;
}

/* ═══════════════════════════
     MOBILE  ≤ 767px
     ═══════════════════════════ */
@media (max-width: 767px) {
  .gallery-carousels {
    padding: 28px 16px 36px;
  }

  .gallery-carousel__header {
    margin-bottom: 20px;
  }

  .gallery-carousel__title {
    font-size: 22px;
    margin-bottom: 4px;
    line-height: 120%;
  }

  .gallery-carousel__subtitle {
    font-size: 14px;
    line-height: 18px;
  }

  /* Hide desktop grid */
  .gallery-carousel__grid {
    display: none;
  }

  /* ─── Full-width portrait hero ─── */
  .gallery-carousel__mob-hero {
    display: block;
    overflow: hidden;
    max-height: 304px;
  }

  .gallery-carousel__mob-hero img {
    width: 100%;
    aspect-ratio: 0.72;
    object-fit: cover;
    display: block;
    max-height: 304px;
  }

  /* ─── Info row: product text (left) + swatch image (right) ─── */
  .gallery-carousel__mob-info-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 12px;
    padding: 12px 0 0 0;
    justify-content: space-between;
  }

  .gallery-carousel__info--mob {
    display: block;
    flex: 1;
    min-width: 0;
    max-width: 156px;
  }

  .gallery-carousel__info--mob .gallery-carousel__product-name {
    font-size: 14px;
    line-height: 140%;
    font-weight: 500;
    margin-bottom: 8px;
  }

  .gallery-carousel__info--mob .gallery-carousel__price {
    font-size: 14px;
    line-height: 120%;
    font-weight: 600;
  }

  .gallery-carousel__info--mob .gallery-carousel__price-unit {
    font-size: 13px;
  }

  .gallery-carousel__info--mob .gallery-carousel__tax {
    display: block;
    margin-left: 0;
    margin-top: 2px;
    font-size: 10px;
  }

  .gallery-carousel__mob-swatch {
    width: 50%;
    flex-shrink: 0;
    border-radius: 1px;
    overflow: hidden;
    align-self: stretch;
    min-height: 156px;
    max-height: 156px;
    min-width: 164px;
  }

  .gallery-carousel__mob-swatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* ─── Bottom row: scene (left) + CTA (right, bottom-aligned) ─── */
  .gallery-carousel__mob-bottom {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    margin-top: 0;
  }

  .gallery-carousel__mob-scene {
    flex: 0 0 50%;
    overflow: hidden;
    min-height: 156px;
    max-height: 156px;
    border-radius: 1px;
  }

  .gallery-carousel__mob-scene img {
    width: 100%;
    aspect-ratio: 1.2;
    object-fit: cover;
    display: block;
    height: 156px;
  }

  .gallery-carousel__mob-cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 500;
    color: #000000;
    text-decoration: none;
    padding-bottom: 6px;
    white-space: nowrap;
    line-height: 100%;
  }

  .gallery-carousel__mob-cta svg {
    width: 13px;
    height: 13px;
    position: relative;
    top: 0.5px;
  }

  /* Dots */
  .gallery-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
  }

  .gallery-carousel__dot {
    width: 35px;
    height: 2px;
    border-radius: 2px;
    background: #d2d2d2;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.35s, transform 0.35s;
  }

  .gallery-carousel__dot.is-active {
    background: #1a1a1a;
  }
}

/* ═══════════════════════════
     TABLET  768 – 1024
     ═══════════════════════════ */
@media (min-width: 768px) and (max-width: 1024px) {
  .gallery-carousels {
    padding: 40px 28px 48px;
  }

  .gallery-carousel__grid {
    gap: 8px;
    min-height: 420px;
  }

  .gallery-carousel__product-name {
    font-size: 24px;
  }

  .gallery-carousel__swatch {
    border-radius: 12px;
  }

  .gallery-carousel__nav-btn {
    width: 44px;
    height: 44px;
  }

  .gallery-carousel__nav-btn svg {
    width: 16px;
    height: 16px;
  }
}