/* Gallery Section CSS - Based on Next.js Original */
.gallery-section {
  position: relative;
  min-height: 120vh;
  width: 100%;
  overflow: hidden;
  background: #000;
}

.container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.videoBackground {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.videoBg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.titleSection {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.titleSection img {
  max-width: 420px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.mainContent {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  padding: 0;
  gap: 0;
  align-items: center;
  width: 100%;
}

.galleryColumn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
}

.galleryContainer {
  max-width: 80%;
  margin: 0 auto;
  position: relative;
  padding-bottom: 18px;
  overflow: visible;
  aspect-ratio: auto;
}

.gallerySlide {
  display: none;
  position: relative;
  width: 100%;
}

.gallerySlide.active {
  display: block;
}

.gallerySlide img {
  aspect-ratio: auto;
  width: 100%;
  position: relative;
  z-index: 999;
  opacity: 1;
}

.galleryControls {
  position: absolute;
  right: 18px;
  bottom: -22px;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  z-index: 1001;
}

.arrowButton {
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.arrowButton img {
  width: 40px;
  height: auto;
  display: block;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.4));
}

/* Desktop Specific */
@media (min-width: 1025px) {
  .galleryContainer {
    max-width: 75%;
    padding-bottom: 18px;
  }
  .galleryControls {
    gap: 22px;
    bottom: -28px;
    right: 28px;
  }
  .arrowButton img {
    width: 44px;
  }
}

/* Banner slider responsive */
@media (max-width: 1400px) {
  .galleryContainer {
    max-width: 75%;
    margin-top: 3vw;
  }
}

@media (max-height: 600px) {
  .galleryContainer {
    max-width: 60%;
  }
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
  .mainContent {
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 2%;
  }
  .galleryColumn {
    width: 100%;
    padding: 0 1rem;
  }
  .galleryContainer {
    max-width: 67%;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .gallery-section {
    min-height: 100vh;
  }
  .container {
    min-height: 100vh;
  }
  .mainContent {
    flex-direction: column;
    padding: 0 3%;
    gap: 1rem;
  }
  .galleryColumn {
    width: 100%;
    padding: 0;
  }
  .galleryContainer {
    max-width: 92%;
    margin: 0 auto 0;
    margin-top: 6px;
    padding-bottom: 96px; /* reserve space for controls */
  }
  .arrowButton {
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    pointer-events: auto;
    position: relative;
  }
  .arrowButton img {
    width: 56px;
  }
  .galleryControls {
    right: 50%;
    transform: translateX(50%);
    bottom: -48px;
    gap: 16px;
    justify-content: center;
    z-index: 1002;
    pointer-events: auto;
  }
  .galleryControls::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -20px;
    width: 180px;
    height: 72px;
    background: rgba(0,0,0,0.28);
    border-radius: 10px;
    z-index: 1001;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    pointer-events: none;
  }
  .titleSection {
    padding-top: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  .titleSection img {
    max-width: 320px;
    height: auto;
    display: block;
    margin: 0 auto;
  }
}

/* Small Mobile Responsive */
@media (max-width: 480px) {
  .titleSection img {
    max-width: 280px;
    display: block;
    margin: 0 auto;
  }
}
