/* ===== GALLERY SECTION STYLES (FIXED VERSION) ===== */
.gallery-main-wrapper {
  font-family: 'Inter', sans-serif;
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: #fbfbfb;
  overflow: hidden;
}

.gallery-scroll-container {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.gallery-horizontal-sections {
  display: flex;
  width: 300vw;
  height: 100vh;
  will-change: transform;
}

.gallery-artist-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

/* Fold 1 - Red */
.gallery-section-pink-magenta {
  background: linear-gradient(135deg, #CC0000 0%, #FF1E39 50%, #8B0000 100%);
}

.gallery-section-pink-magenta .gallery-content-wrapper-fold1 {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gallery-section-pink-magenta .gallery-text-content-fold1 {
  flex: 1;
  max-width: 550px;
  z-index: 10;
}

.gallery-section-pink-magenta .gallery-heading-fold1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  font-size: 64px;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-shadow: 0 0 30px rgba(232, 30, 99, 0.4);
}

.gallery-heading-fold1 .label-white,
.gallery-heading-fold2 .label-white,
.gallery-heading-fold3 .label-white {
  color: #FFFFFF;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4);
}

.gallery-heading-fold1 .label-pink,
.gallery-heading-fold2 .label-pink,
.gallery-heading-fold3 .label-pink {
  color: #E81E63;
  -webkit-text-stroke: 1.5px white; /* Pink text with white outline as per reference */
}

.gallery-section-pink-magenta .gallery-description-fold1 {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.gallery-section-pink-magenta .gallery-image-grid-fold1 {
  position: absolute;
  right: -30px;
  top: 60%;
  transform: translateY(-50%) rotate(20deg);
  width: 800px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  z-index: 5;
}

/* Fold 2 - Orange (FIXED) */
.gallery-section-orange {
  background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
}

.gallery-section-orange .gallery-content-wrapper-fold2 {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.gallery-section-orange .gallery-text-content-fold2 {
  flex: 1;
  max-width: 500px;
  z-index: 10;
}

.gallery-section-orange .gallery-heading-fold2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  font-size: 58px;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

.gallery-section-orange .gallery-description-fold2 {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* FIXED: Reduced rotation, width, and added max-height to prevent cutting */
.gallery-section-orange .gallery-image-grid-fold2 {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%) rotate(15deg);
  width: 750px;
  max-height: 85vh;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

/* Fold 3 - Yellow (FIXED) */
.gallery-section-yellow {
  background: linear-gradient(135deg, #FFD500 0%, #FFC900 100%);
}

.gallery-section-yellow .gallery-content-wrapper-fold3 {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  flex-direction: row-reverse;
}

.gallery-section-yellow .gallery-text-content-fold3 {
  flex: 1;
  max-width: 500px;
  z-index: 10;
  text-align: right;
}

.gallery-section-yellow .gallery-heading-fold3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  font-size: 58px;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-shadow: 0 0 20px rgba(232, 30, 99, 0.2);
}

.gallery-section-yellow .gallery-description-fold3 {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  color: rgba(26, 26, 26, 0.85);
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* FIXED: Reduced rotation, width, gap, and added max-height to prevent cutting */
.gallery-section-yellow .gallery-image-grid-fold3 {
  position: absolute;
  left: -60px;
  top: 50%;
  transform: translateY(-50%) rotate(-15deg);
  width: 800px;
  max-height: 85vh;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* Artist cards */
.gallery-artist-card-item {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.gallery-artist-card-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Universal: ALL labels at TOP of card with dark box for best visibility on tilted grids */
.gallery-artist-card-item .gallery-artist-label {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: auto;
  transform: none;
  text-align: center;
  padding: 12px 8px;
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  background: rgba(0, 0, 0, 0.85);
  border-bottom: 2px solid rgba(232, 30, 99, 0.8);
  text-shadow: 0 0 15px rgba(232, 30, 99, 0.7), 0 1px 5px rgba(0,0,0,0.9);
  font-style: italic;
  z-index: 20;
}

.gallery-artist-card-item .gallery-artist-label .label-white {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255,255,255,0.4), 0 1px 5px rgba(0,0,0,0.9);
}

.gallery-artist-card-item .gallery-artist-label .label-pink {
  color: #E81E63;
  text-shadow: 0 0 15px rgba(232, 30, 99, 0.8), 0 1px 5px rgba(0,0,0,0.9);
}

/* Navigation dots */
.gallery-main-wrapper .gallery-navigation-dots {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  flex-direction: column;
  gap: 12px;
  z-index: 100;
}

.gallery-main-wrapper.gallery-active .gallery-navigation-dots {
  display: flex;
}

.gallery-navigation-dots .gallery-nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-navigation-dots .gallery-nav-dot.active {
  background: #FFFFFF;
  transform: scale(1.3);
}

/* Clip animation */
.gallery-clippath-animate {
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
}

/* WebGL Canvas */
.gallery-main-wrapper #gallery-background-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
}

/* Progress indicator */
.gallery-main-wrapper .gallery-progress-indicator {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  gap: 8px;
  z-index: 100;
}

.gallery-main-wrapper.gallery-active .gallery-progress-indicator {
  display: flex;
}

.gallery-progress-indicator .gallery-progress-segment {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.gallery-progress-indicator .gallery-progress-segment.active {
  background: #FFFFFF;
}

/* Tablet */
@media screen and (max-width: 1024px) {
  .gallery-section-pink-magenta .gallery-content-wrapper-fold1 {
    padding: 0 40px;
  }

  .gallery-section-pink-magenta .gallery-heading-fold1 {
    font-size: 48px;
  }

  .gallery-section-pink-magenta .gallery-description-fold1 {
    font-size: 16px;
  }

  .gallery-section-pink-magenta .gallery-image-grid-fold1 {
    width: 600px;
    right: -80px;
    gap: 15px;
  }

  .gallery-section-orange .gallery-content-wrapper-fold2 {
    padding: 0 40px;
  }

  .gallery-section-orange .gallery-heading-fold2 {
    font-size: 44px;
  }

  .gallery-section-orange .gallery-description-fold2 {
    font-size: 16px;
  }

  .gallery-section-orange .gallery-image-grid-fold2 {
    width: 550px;
    right: -40px;
    gap: 12px;
    max-height: 80vh;
  }

  .gallery-section-yellow .gallery-content-wrapper-fold3 {
    padding: 0 40px;
  }

  .gallery-section-yellow .gallery-heading-fold3 {
    font-size: 44px;
  }

  .gallery-section-yellow .gallery-description-fold3 {
    font-size: 16px;
  }

  .gallery-section-yellow .gallery-image-grid-fold3 {
    width: 600px;
    left: -40px;
    gap: 10px;
    max-height: 80vh;
  }

  .gallery-artist-card-item .gallery-artist-label {
    font-size: 14px;
    padding: 10px 8px;
  }
}

/* Mobile Screens */
@media screen and (max-width: 767px) {
  .gallery-artist-section {
    padding-top: 60px;
    align-items: flex-start;
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
  }

  .gallery-horizontal-sections {
    height: auto;
  }

  .gallery-section-pink-magenta .gallery-content-wrapper-fold1,
  .gallery-section-orange .gallery-content-wrapper-fold2,
  .gallery-section-yellow .gallery-content-wrapper-fold3 {
    flex-direction: column;
    padding: 0 15px;
    text-align: center;
    justify-content: flex-start;
    height: auto;
    min-height: 100vh;
    display: flex;
  }

  .gallery-text-content-fold1,
  .gallery-text-content-fold2,
  .gallery-text-content-fold3 {
    max-width: 100%;
    margin-bottom: 20px;
    text-align: center;
    padding-top: 20px;
  }

  .gallery-heading-fold1,
  .gallery-heading-fold2,
  .gallery-heading-fold3 {
    font-size: 26px !important;
    line-height: 1.2;
    margin-bottom: 10px;
  }

  .gallery-heading-fold1 span,
  .gallery-heading-fold2 span,
  .gallery-heading-fold3 span {
    -webkit-text-stroke-width: 0.5px !important;
  }

  .gallery-description-fold1,
  .gallery-description-fold2,
  .gallery-description-fold3 {
    font-size: 13px;
    padding: 0 10px;
    line-height: 1.4;
  }

  .gallery-image-grid-fold1,
  .gallery-image-grid-fold2,
  .gallery-image-grid-fold3 {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 100% !important;
    margin: 20px auto 0 auto !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding-bottom: 80px;
    z-index: 1;
  }

  .gallery-artist-card-item .gallery-artist-label {
    font-size: 10px;
    padding: 6px 4px;
    letter-spacing: 0.2px;
  }
}

/* Medium Desktop */
@media screen and (min-width: 1025px) and (max-width: 1440px) {
  .gallery-section-pink-magenta .gallery-image-grid-fold1 {
    width: 700px;
    right: -60px;
  }

  .gallery-section-orange .gallery-image-grid-fold2 {
    width: 650px;
    right: -40px;
    max-height: 82vh;
  }

  .gallery-section-yellow .gallery-image-grid-fold3 {
    width: 700px;
    left: -40px;
    max-height: 82vh;
  }
}