/* ============================================
   Carousel - Hero Page (Standard Vertical)
   ============================================ */

/* Note: Base reset (* selector) is defined in general.css */

html,
body {
  height: 100%;
  overflow: hidden;
}

.hero-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--hero-container-height);
  overflow: hidden;
}

.page-container {
  max-width: var(--hero-container-max-width);
  margin: 0 auto;
  padding: var(--hero-container-padding-y) var(--hero-container-padding-x);
  height: var(--hero-container-height);
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--border-hero-container-width) var(--border-hero-container-style)
    var(--border-hero-container-color);
  overflow: hidden;
}

.scroll-hint {
  display: none;
}

/* Content Sections */
.content-section {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}

.image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  width: 100%;
  height: 100%;
  position: relative;
}

.gallery-item {
  position: relative;
  height: 100%;
  width: var(--hero-carousel-width);
  margin: 0 auto;
  /* Center in grid cell */
  background-color: var(--color-surface);
  border: var(--border-hero-gallery-width) var(--border-hero-gallery-style)
    var(--border-hero-gallery-color);
  overflow: hidden;
}

/* CSS-only carousel - vertical version */
.carousel {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.carousel>* {
  flex: 0 0 100%;
}

.group {
  display: flex;
  flex-direction: column;
  gap: var(--hero-carousel-image-gap);
  will-change: transform;
  animation: scrolling-vertical var(--hero-carousel-speed) linear infinite;
  /* Add padding at the bottom to create gap between last and first image when looping */
  padding-bottom: var(--hero-carousel-image-gap);
}

.card {
  width: 100%;
  flex: 0 0 auto;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Animation for vertical scrolling */
@keyframes scrolling-vertical {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-100%);
  }
}

/* ============================================
   Sticky Heading Container
   (Defined in carousel-hero.css for reusability)
   ============================================ */

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
  .image-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-container {
    padding: 0;
  }

  /* Hide second carousel on mobile */
  .gallery-item:nth-child(2) {
    display: none;
  }

  .image-grid {
    grid-template-columns: 1fr;
  }
}