/* Inspiration list — 0929 one-page stack + carousel.
   Does NOT redefine .pt / .des / View More (those stay in inspiration.css). */

body .home .container .sec2 .list .item {
  display: flex;
  flex-direction: column;
  gap: 1.25vw;
}

body .home .container .sec2 .list .item:nth-child(2n) {
  flex-direction: column;
}

body .home .container .sec2 .list .item .pic {
  width: 100%;
}

body .home .container .sec2 .list .item .pic img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}

body .home .container .sec2 .list .item .info {
  width: 100%;
  position: relative;
  padding-bottom: 0;
}

/* View More: keep inspiration.css button look, but flow below copy (no absolute overlap) */
body .home .container .sec2 .list .item .info a {
  position: static;
  display: flex;
  margin: 1.25vw 0 0 0;
}

/* --- carousel chrome --- */
body .home .container .sec2 .list .item .pic .style-carousel {
  position: relative;
  width: 100%;
}

/* Buttons live on the image stage only (not the sample strip below). */
body .home .container .sec2 .list .item .pic .style-carousel-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
}

body .home .container .sec2 .list .item .pic .style-carousel .pic {
  width: 100%;
}

body .home .container .sec2 .list .item .pic .style-carousel-swiper {
  width: 100%;
}

body .home .container .sec2 .list .item .pic .style-carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  width: 2.4vw;
  height: 2.4vw;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #252726;
  font-size: 1.2vw;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

body .home .container .sec2 .list .item .pic .style-carousel-prev {
  left: 0.8vw;
}

body .home .container .sec2 .list .item .pic .style-carousel-next {
  right: 0.8vw;
}

body .home .container .sec2 .list .item .pic .style-carousel-playback {
  top: auto;
  right: 0.8vw;
  bottom: 0.8vw;
  transform: none;
  width: clamp(36px, 2.4vw, 44px);
  height: clamp(36px, 2.4vw, 44px);
  font-size: 16px;
}

body .home .container .sec2 .list .item .pic .style-carousel-btn:focus-visible {
  outline: 2px solid #252726;
  outline-offset: 2px;
}

body .home .container .sec2 .list .item .pic .style-carousel-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

body .home .container .sec2 .list .item .pic .style-carousel.is-single .style-carousel-btn {
  display: none;
}

/* Desktop / Mobile frame switch (CSS, not picture — reliable with next/image) */
body .home .container .sec2 .list .item .pic .style-frame-mobile {
  display: none;
}

body .home .container .sec2 .list .item .pic .style-frame-desktop {
  display: block;
}

body .home .container .sec2 .list .item .pic .style-carousel-frame:hover img {
  transform: none;
}

/* Mobile-only sample strip under the image */
body .home .container .sec2 .list .item .pic .style-mobile-samples {
  display: none;
}

@media screen and (max-width: 768px) {
  body .home .container .sec2 .list .item {
    flex-direction: column !important;
    gap: 15px;
  }

  body .home .container .sec2 .list .item .pic {
    width: 100%;
  }

  body .home .container .sec2 .list .item .info {
    width: 100%;
    padding-bottom: 0;
  }

  body .home .container .sec2 .list .item .pic .has-mobile-frame .style-frame-desktop {
    display: none;
  }

  body .home .container .sec2 .list .item .pic .style-frame-mobile {
    display: block;
  }

  body .home .container .sec2 .list .item .pic .style-carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }

  body .home .container .sec2 .list .item .pic .style-carousel-prev {
    left: 8px;
  }

  body .home .container .sec2 .list .item .pic .style-carousel-next {
    right: 8px;
  }

  body .home .container .sec2 .list .item .pic .style-carousel-playback {
    right: 8px;
    bottom: 8px;
  }

  body .home .container .sec2 .list .item .pic .style-mobile-samples {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem;
    margin-top: 10px;
  }

  body .home .container .sec2 .list .item .pic .style-mobile-samples[data-count="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body .home .container .sec2 .list .item .pic .style-mobile-samples[data-count="1"] {
    grid-template-columns: minmax(0, 1fr);
  }

  body .home .container .sec2 .list .item .pic .style-mobile-sample {
    width: 100%;
    height: auto;
    min-height: 72px;
    object-fit: contain;
    display: block;
    background: transparent;
    border: 0;
  }
}
