/* ============================================================
   PHOTOGRAPHY: Parallax Scroll Gallery
   ============================================================ */

/* Scene wrapper: tall enough for parallax travel */
.photo-scene {
  height: 330vh;
  position: relative;
}

/* Sticky viewport: this is what the user "sees" */
.photo-scene__inner {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #161412;
}

/* Title overlay: parallax controlled by JS */
.photo-scene__title {
  position: absolute;
  bottom: 4.5rem;
  left: 0;
  z-index: 20;
  pointer-events: none;
  /* opacity + transform set by JS */
}
.photo-scene__label {
  display: block;
  font-size: .58rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--amber);
  opacity: .85;
  margin-bottom: .9rem;
  padding-left: 4rem;
}
.photo-scene__heading {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7.5vw, 8rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.02em;
  line-height: .92;
  color: var(--white);
  white-space: nowrap;
  padding-left: 4rem;
}

/* Photo canvas: absolutely positioned, wider than viewport */
.photo-scene__canvas {
  position: absolute;
  inset: 0;
}

/* Individual photo items */
.photo-scene__item {
  position: absolute;
  will-change: transform;
  cursor: zoom-in;
}
.photo-scene__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  transition: transform .7s var(--ease), filter .5s;
}
.photo-scene__item:hover img {
  transform: scale(1.04);
  filter: brightness(1.06);
}

/* Centered scroll down prompt */
.photo-scene__scroll-prompt {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  opacity: 1;
  transition: opacity .6s var(--ease);
  pointer-events: none;
}
.photo-scene__scroll-prompt.hidden {
  opacity: 0;
}
.photo-scene__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--amber));
  animation: scrollLineGrow 1.8s ease-in-out infinite;
  transform-origin: top center;
}
@keyframes scrollLineGrow {
  0%   { transform: scaleY(0); opacity: 0; }
  40%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; transform-origin: bottom; }
}
.photo-scene__scroll-text {
  font-size: .52rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--amber);
  opacity: .7;
}

/* Edge fade vignettes */
.photo-scene__edge {
  position: absolute;
  top: 0; bottom: 0;
  width: 7vw;
  z-index: 15;
  pointer-events: none;
}
.photo-scene__edge--l {
  left: 0;
  background: linear-gradient(to right, #161412 0%, transparent 100%);
}
.photo-scene__edge--r {
  right: 0;
  background: linear-gradient(to left, #161412 0%, transparent 100%);
}

/* HUD: progress + scroll hint */
.photo-scene__hud {
  position: absolute;
  bottom: 2.5rem;
  left: 4rem;
  right: 4rem;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.photo-scene__progress {
  flex: 1;
  height: 1px;
  background: rgba(166, 125, 81, 0.15);
}
.photo-scene__progress-fill {
  height: 100%;
  background: var(--amber);
  width: 0%;
  transition: width .12s linear;
}

.photo-scene__hint {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .52rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--grey-hi);
  opacity: 1;
  transition: opacity .5s;
  white-space: nowrap;
}
.photo-scene__hint.hidden {
  opacity: 0;
  pointer-events: none;
}
.photo-scene__hint-arrow {
  animation: nudgeRight 1.6s ease-in-out infinite;
}
@keyframes nudgeRight {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(5px); }
}

/* Fullscreen overlay: click anywhere to close */
.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(13, 11, 9, .97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease);
  cursor: zoom-out;
}
.photo-lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.photo-lightbox__img {
  max-width: 94vw;
  max-height: 94vh;
  object-fit: contain;
  display: block;
  pointer-events: none;
  user-select: none;
}

/* Mobile */
@media (max-width: 768px) {
  .photo-scene__title { left: 1.8rem; bottom: 6rem; }
  .photo-scene__hud   { left: 1.8rem; right: 1.8rem; }
  .photo-lightbox__wrap { padding: 5rem 1rem; }
  .photo-lightbox__btn--prev { left: .8rem; }
  .photo-lightbox__btn--next { right: .8rem; }
}
