/* BounceCards — React Bits (vanilla port) */
.bounceCardsContainer {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 380px;
  margin: 0 auto;
}

.bounceCardsContainer .card {
  position: absolute;
  width: 200px;
  aspect-ratio: 1;
  border: 5px solid #fff;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  will-change: transform;
  cursor: pointer;
  transform-origin: center center;
}

.bounceCardsContainer .card.is-hovered {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.bounceCardsContainer .card .image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Homepage gallery — solid dark under services curve */
body.cc-page-home .cc-bounce-gallery {
  padding: clamp(88px, 12vw, 120px) 0 40px !important;
  background: #0a0a0a !important;
  overflow: hidden;
}

body.cc-page-home .cc-bounce-gallery .cc-section__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

body.cc-page-home .cc-bounce-gallery .cc-bounce-gallery__intro {
  text-align: center;
  max-width: 28em;
  padding: 0 20px;
}

body.cc-page-home .cc-bounce-gallery .cc-bounce-gallery__intro h2 {
  margin: 0 0 8px !important;
}

body.cc-page-home .cc-bounce-gallery .cc-btn-row {
  padding: 0 20px;
}

body.cc-page-home .cc-bounce-gallery .bounceCardsContainer {
  width: 100% !important;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  overflow: hidden;
}

@media screen and (max-width: 640px) {
  body.cc-page-home .cc-bounce-gallery .bounceCardsContainer {
    height: 280px !important;
  }

  body.cc-page-home .cc-bounce-gallery .bounceCardsContainer .card {
    width: 130px;
    border-width: 3px;
    border-radius: 16px;
  }
}
