/* Homepage videos section (mockup 3_Videos.html). */

.region-homepage-videos {
  width: 100%;
  background: #ffffff;
}

#block-lives-homepage-videos {
  width: 100%;
  max-width: 100%;
  margin: 0 0 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #4d4d4d;
  background: #ffffff;
  box-sizing: border-box;
}

#block-lives-homepage-videos .carousel-wrapper {
  position: relative;
}

#block-lives-homepage-videos .section-link {
  color: #E30613;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
  white-space: nowrap;
}

#block-lives-homepage-videos .section-link:hover,
#block-lives-homepage-videos .section-link:focus {
  color: #1a1a1a;
}

#block-lives-homepage-videos .section-link svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  transition: transform 0.3s ease;
}

#block-lives-homepage-videos .section-link:hover svg,
#block-lives-homepage-videos .section-link:focus svg {
  transform: translateX(4px);
}

#block-lives-homepage-videos .carousel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin: 0 50px;
}

#block-lives-homepage-videos .video-item {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #1a1a1a;
}

#block-lives-homepage-videos .video-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#block-lives-homepage-videos .video-item iframe {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border: none;
  pointer-events: none;
}

/* Transparent hit area: click opens the Vimeo page (same URL as the player "V"). */
#block-lives-homepage-videos .video-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  text-decoration: none;
  background: transparent;
}

#block-lives-homepage-videos .video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  padding: 20px 15px;
  pointer-events: none;
}

#block-lives-homepage-videos .video-title {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
}

#block-lives-homepage-videos .nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: transform 0.3s ease;
  padding: 0;
}

#block-lives-homepage-videos .nav-button:hover {
  transform: translateY(-50%) scale(1.1);
}

#block-lives-homepage-videos .nav-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

#block-lives-homepage-videos .nav-button:disabled:hover {
  transform: translateY(-50%);
}

#block-lives-homepage-videos .nav-button.prev {
  left: 0;
}

#block-lives-homepage-videos .nav-button.next {
  right: 0;
}

#block-lives-homepage-videos .nav-button svg {
  width: 24px;
  height: 24px;
  stroke: #E30613;
  stroke-width: 2.5;
  fill: none;
}

#block-lives-homepage-videos .dots-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

#block-lives-homepage-videos .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e0e0e0;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

#block-lives-homepage-videos .dot:hover {
  background: #ccc;
}

#block-lives-homepage-videos .dot.active {
  background: #E30613;
  width: 25px;
  border-radius: 5px;
}

@media (max-width: 968px) {
  #block-lives-homepage-videos .carousel {
    grid-template-columns: repeat(3, 1fr);
    margin: 0 40px;
  }
}

/* Mobile: horizontal swipe scroll + arrows (same as newsletters). */
@media (max-width: 768px) {
  #block-lives-homepage-videos .carousel {
    display: flex;
    grid-template-columns: none;
    gap: 16px;
    margin: 0 40px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0;
  }

  #block-lives-homepage-videos .carousel::-webkit-scrollbar {
    display: none;
  }

  #block-lives-homepage-videos .video-item {
    flex-shrink: 0;
    width: min(200px, 62vw);
  }

  #block-lives-homepage-videos .dots-container {
    display: none;
  }
}
