/* Admin-managed hero gallery: a horizontal 3D perspective carousel showing
   only what's been added via the admin dashboard. Replaces the template's
   fixed-size demo masonry (.header_gallery-list-wrapper) once real items
   exist. Cards continuously drift left-to-right with volumetric depth and
   a mouse-parallax tilt; each card links to the live client site. */

.hero-carousel_viewport {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: clamp(220px, 26vw, 380px);
  margin: 2rem auto 0;
  padding: 0 1.5rem;
  perspective: 1350px;
  overflow: hidden;
}

/* Soft spotlight glow behind the centered card so the scene doesn't feel
   like flat photos pasted on black. */
.hero-carousel_viewport::before {
  content: "";
  position: absolute;
  inset: -30% -10%;
  background: radial-gradient(
    ellipse 45% 60% at 50% 50%,
    rgba(255, 255, 255, 0.07),
    transparent 70%
  );
  pointer-events: none;
}

.hero-carousel_stage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-style: preserve-3d;
}

.hero-carousel_card {
  position: absolute;
  inset: 0;
  display: block;
  transform-style: preserve-3d;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.hero-carousel_layer {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background-color: var(--background-color--background-tertiary, #0f0f0f);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.18),
    inset 0 -12px 24px rgba(0, 0, 0, 0.35),
    0 30px 60px -20px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.hero-carousel_layer--mid {
  background: linear-gradient(180deg, #d4d4d4 0%, #8c8c8c 45%, #565656 100%);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: none;
}

.hero-carousel_layer--front,
.hero-carousel_layer--back {
  backface-visibility: hidden;
  filter: brightness(var(--focus-brightness, 1)) saturate(var(--focus-saturate, 1));
  transition: filter 0.25s ease;
}

/* Glossy top sheen on the front face for a premium, "under a showroom light"
   feel instead of a flat photo pasted on a rounded rectangle. */
.hero-carousel_layer--front::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(255, 255, 255, 0.04) 18%,
    transparent 40%
  );
  pointer-events: none;
}

.hero-carousel_img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-carousel_img-wrap--blur {
  position: absolute;
  inset: 0;
  filter: blur(16px) brightness(0.6);
  transform: scale(1.15);
}

.hero-carousel_overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1rem 1.1rem;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.35) 32%,
    transparent 60%
  );
  z-index: 1;
}

.hero-carousel_overlay span {
  color: var(--text-color--text-primary, #f8f8f8);
  font-family: Brockmann, Arial, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.hero-carousel_back-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  padding: 1rem;
}

.hero-carousel_back-content .name {
  color: var(--text-color--text-primary, #f8f8f8);
  font-family: Brockmann, Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.hero-carousel_back-content .cta {
  color: rgba(255, 255, 255, 0.7);
  font-family: Brockmann, Arial, sans-serif;
  font-size: 0.75rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-gallery_empty {
  text-align: center;
  color: var(--text-color--text-secondary, #888);
  font-family: Brockmann, Arial, sans-serif;
  font-size: 0.875rem;
  margin: 2rem auto 0;
}
