/* ===================== GALLERY CSS ===================== */

/* === FEATURED SLIDER === */
.slider-section {
  background: var(--black-soft);
  position: relative;
  overflow: hidden;
  padding: 0;
}

.slider-container {
  position: relative;
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 0.75s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}

/* === SLIDE === */
.slide {
  display: flex;
  align-items: stretch;
  min-width: 100%;
  min-height: 620px;
}

.slide-visual {
  flex: 0 0 58%;
  position: relative;
  overflow: hidden;
  background: var(--black-rich);
}

.slide-img-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* Photo placeholder — replace with real <img> later */
.slide-photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(ellipse at 50% 40%, rgba(201,168,76,0.05) 0%, transparent 65%),
              var(--black-rich);
  transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.slide-photo-placeholder svg {
  max-width: 84%;
  max-height: 84%;
  filter: drop-shadow(0 0 28px rgba(201,168,76,0.18));
}

/* When you add a real photo, use this class on the img element: */
.slide-real-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
}

.placeholder-label {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(201,168,76,0.3);
  white-space: nowrap;
  border: 1px solid rgba(201,168,76,0.12);
  padding: 6px 16px;
  background: rgba(5,5,5,0.6);
}

/* Zoom on active slide */
.slide.active .slide-photo-placeholder,
.slide.active .slide-real-photo {
  transform: scale(1.04);
}

/* slide overlay gradient */
.slide-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, var(--black-soft) 100%);
  pointer-events: none;
  z-index: 2;
}

/* === SLIDE INFO === */
.slide-info {
  flex: 0 0 42%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px 64px 70px 52px;
  background: var(--black-soft);
  position: relative;
  z-index: 3;
}

.slide-info::before {
  content: '';
  position: absolute;
  top: 60px; bottom: 60px; left: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(201,168,76,0.2), transparent);
}

.slide-num {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 28px;
  opacity: 0.7;
}
.slide-num span { color: var(--text-muted); }

.slide-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(34px, 3.5vw, 52px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 0;
}
.slide-title em { font-style: italic; color: var(--gold-light); display: block; }

.slide-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 340px;
}

.slide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.slide-tags span {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.25);
  padding: 5px 13px;
  background: rgba(201,168,76,0.04);
}

/* Slide content fade-in animation */
.slide-info > * {
  opacity: 0;
  transform: translateX(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.slide.active .slide-info > * {
  opacity: 1;
  transform: translateX(0);
}
.slide.active .slide-info > *:nth-child(1) { transition-delay: 0.15s; }
.slide.active .slide-info > *:nth-child(2) { transition-delay: 0.22s; }
.slide.active .slide-info > *:nth-child(3) { transition-delay: 0.30s; }
.slide.active .slide-info > *:nth-child(4) { transition-delay: 0.38s; }
.slide.active .slide-info > *:nth-child(5) { transition-delay: 0.46s; }
.slide.active .slide-info > *:nth-child(6) { transition-delay: 0.54s; }
.slide.active .slide-info > *:nth-child(7) { transition-delay: 0.62s; }

/* === CONTROLS === */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background: rgba(5,5,5,0.8);
  border: 1px solid rgba(201,168,76,0.25);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}
.slider-btn:hover {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
  transform: translateY(-50%) scale(1.05);
}
.slider-btn-prev { left: 24px; }
.slider-btn-next { right: 24px; }

/* === DOTS === */
.slider-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 20;
}
.slider-dot {
  width: 6px;
  height: 6px;
  background: rgba(201,168,76,0.25);
  border: 1px solid rgba(201,168,76,0.3);
  transform: rotate(45deg);
  cursor: pointer;
  transition: all 0.35s ease;
}
.slider-dot.active {
  background: var(--gold);
  width: 20px;
  border-color: var(--gold);
  border-radius: 2px;
}

/* === PROGRESS BAR === */
.slider-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(201,168,76,0.1);
  z-index: 20;
}
.slider-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  transition: width 0.1s linear;
}

/* === GRID GALLERY === */
.grid-section {
  padding: 110px 60px 100px;
  background: var(--black-rich);
  border-top: 1px solid rgba(201,168,76,0.08);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 14px;
  max-width: 1200px;
  margin: 0 auto;
}

.work-item-tall  { grid-row: span 2; }
.work-item-wide  { grid-column: span 2; }

.work-img {
  width: 100%;
  height: 100%;
  background: var(--black-mid);
  border: 1px solid rgba(201,168,76,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s ease;
}
.work-img:hover { border-color: rgba(201,168,76,0.38); }

.work-placeholder {
  width: 88%;
  height: 88%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.55s ease;
  filter: drop-shadow(0 0 12px rgba(201,168,76,0.12));
}
.work-img:hover .work-placeholder { transform: scale(1.05); }

/* Real photo version */
.work-real-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}
.work-img:hover .work-real-photo { transform: scale(1.05); }

.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,5,5,0.85) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 20px 22px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.work-img:hover .work-overlay { opacity: 1; }
.work-overlay span {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .slide { flex-direction: column; min-height: auto; }
  .slide-visual { flex: 0 0 auto; }
  .slide-photo-placeholder { min-height: 340px; }
  .slide-visual::after { background: linear-gradient(to bottom, transparent 60%, var(--black-soft) 100%); }
  .slide-info { flex: 0 0 auto; padding: 40px 36px 50px; }
  .slide-info::before { display: none; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .work-item-wide { grid-column: span 2; }
}
@media (max-width: 768px) {
  .slide-photo-placeholder { min-height: 260px; }
  .slider-btn { width: 40px; height: 40px; }
  .slider-btn-prev { left: 12px; }
  .slider-btn-next { right: 12px; }
  .slide-info { padding: 30px 24px 44px; }
  .grid-section { padding: 80px 24px 80px; }
  .works-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .work-item-tall, .work-item-wide { grid-column: auto; grid-row: auto; }
}