/* Home-page restorations layered over Wix CSS. Scoped with vidacom-* prefix. */

/* Hero slideshow */
.vidacom-hero-host {
  position: relative;
}
.vidacom-hero-host > :not(.vidacom-hero-stack) {
  visibility: hidden;        /* hide Wix's single-frame markup under our stack */
}
.vidacom-hero-stack {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 2;
}
.vidacom-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
  text-decoration: none;
  color: inherit;
}
.vidacom-hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.vidacom-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vidacom-hero-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 14px;
  border-radius: 3px;
}

/* Horizontal book scroll rails */
.vidacom-scroller {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
}
.vidacom-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  flex: 1;
  padding: 4px 0;
  scrollbar-width: thin;
}
.vidacom-rail::-webkit-scrollbar { height: 6px; }
.vidacom-rail::-webkit-scrollbar-thumb { background: #c7ccd1; border-radius: 3px; }
.vidacom-rail-item {
  flex: 0 0 auto;
  width: 190px;
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.15s ease;
}
.vidacom-rail-item:hover {
  transform: translateY(-2px);
}
.vidacom-rail-item img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}
.vidacom-rail-caption {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.25;
  color: #444;
}
.vidacom-scroller-arrow {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.vidacom-scroller-arrow:hover {
  background: rgba(0, 0, 0, 0.75);
}
