/* ================================================================
   SK Design System — Photography Scroll Experience
   Full-bleed pinned frames with parallax crossfades, per album.
   Only enqueued on the Photography page.
   ================================================================ */

.sk-photo-scroll {
	background: var(--sk-fg-1);
	color: #fff;
	overflow-anchor: none;
}

.sk-photo-scroll img {
	display: block;
}

/* ── Album section: one per shoot ──
   Default markup is a plain accessible stack — every frame full height,
   fully visible, in document order. JS opts into the pinned/crossfade
   treatment by adding `sk-photo-js` to <html> once it has confirmed
   GSAP loaded and the visitor doesn't prefer reduced motion. */
.sk-photo-album {
	position: relative;
}

.sk-photo-pin {
	position: relative;
	width: 100%;
}

.sk-photo-frame {
	position: relative;
	height: 100vh;
	opacity: 1;
	margin-bottom: 2px;
}

html.sk-photo-js .sk-photo-album {
	position: relative;
}

html.sk-photo-js .sk-photo-pin {
	position: sticky;
	top: 0;
	height: 100vh;
	overflow: hidden;
	background: var(--sk-fg-1);
}

html.sk-photo-js .sk-photo-frame {
	position: absolute;
	inset: 0;
	height: auto;
	margin-bottom: 0;
	opacity: 0;
	will-change: transform, opacity;
}

html.sk-photo-js .sk-photo-frame[data-frame-index="0"] {
	opacity: 1;
}

.sk-photo-frame .sk-photo-imgwrap {
	position: absolute;
	inset: 0;
	overflow: hidden;
	background: #0b0a12;
}

/* Blurred backdrop fills the frame; the real photo sits on top,
   letterboxed via object-fit: contain, so portrait shots never get
   cropped the way a plain object-fit: cover would crop them. */
.sk-photo-frame .sk-photo-backdrop {
	position: absolute;
	inset: -3%;
	width: 106%;
	height: 106%;
	object-fit: cover;
	filter: blur(50px) brightness(0.5) saturate(1.1);
	transform: scale(1.05);
}

.sk-photo-frame .sk-photo-fg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.sk-photo-frame .sk-photo-scrim-top {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 35%;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
	pointer-events: none;
}

.sk-photo-frame .sk-photo-scrim-bottom {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 40%;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
	pointer-events: none;
}

/* ── Album title, shown only on the first frame ── */
.sk-photo-album-title {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 14%;
	padding: 0 var(--sk-space-70, 48px);
	z-index: 5;
	max-width: 900px;
}

.sk-photo-album-title .sk-photo-kicker {
	font-family: var(--sk-font-mono);
	font-size: 12px;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--sk-secondary);
	margin: 0 0 16px;
	display: block;
}

.sk-photo-album-title h2 {
	font-family: var(--sk-font-heading);
	font-weight: 700;
	font-size: clamp(2.5rem, 2.5rem + 3.5vw, 5.5rem);
	line-height: 1;
	letter-spacing: -0.02em;
	color: #fff;
	margin: 0;
}

/* ── Caption bar: title, location, frame index ── */
.sk-photo-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 4;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	padding: 28px var(--sk-space-70, 48px);
	font-family: var(--sk-font-mono);
}

.sk-photo-caption .sk-photo-caption-title {
	font-family: var(--sk-font-heading);
	font-size: 1.5rem;
	font-weight: 600;
	color: #fff;
	margin: 0 0 6px;
}

.sk-photo-caption .sk-photo-caption-meta {
	font-size: 11px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.65);
	margin: 0;
}

.sk-photo-caption .sk-photo-caption-meta .sep {
	margin: 0 8px;
	opacity: 0.4;
}

.sk-photo-caption .sk-photo-frame-index {
	font-size: 11px;
	letter-spacing: 1.5px;
	color: rgba(255, 255, 255, 0.45);
	text-align: right;
	white-space: nowrap;
	flex-shrink: 0;
}

/* ── Intro & outro ── */
.sk-photo-intro {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 0 var(--sk-space-70, 48px);
	max-width: 760px;
}

.sk-photo-intro .sk-photo-eyebrow {
	font-family: var(--sk-font-mono);
	font-size: 11px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--sk-secondary);
	margin: 0 0 20px;
}

.sk-photo-intro h1 {
	font-family: var(--sk-font-heading);
	font-weight: 700;
	font-size: clamp(2.75rem, 2.75rem + 3vw, 5rem);
	line-height: 1.05;
	letter-spacing: -0.02em;
	margin: 0 0 24px;
	color: #fff;
}

.sk-photo-intro p {
	font-size: clamp(1.125rem, 1.125rem + 0.3vw, 1.375rem);
	color: rgba(255, 255, 255, 0.6);
	line-height: 1.6;
	max-width: 520px;
	margin: 0;
}

.sk-photo-scroll-cue {
	margin-top: 56px;
	font-family: var(--sk-font-mono);
	font-size: 11px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.4);
	display: flex;
	align-items: center;
	gap: 10px;
}

.sk-photo-scroll-cue .sk-photo-line {
	width: 32px;
	height: 1px;
	background: rgba(255, 255, 255, 0.4);
	animation: sk-photo-pulse 2s ease-in-out infinite;
}

.sk-photo-scroll-cue .sk-photo-cue-sep {
	opacity: 0.5;
}

@keyframes sk-photo-pulse {
	0%, 100% { opacity: 0.4; }
	50% { opacity: 1; }
}

.sk-photo-outro {
	min-height: 60vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 64px 24px;
	background: var(--sk-fg-1);
}

.sk-photo-outro h2 {
	font-family: var(--sk-font-heading);
	font-weight: 700;
	font-size: clamp(2rem, 2rem + 2vw, 3rem);
	margin: 0 0 16px;
	color: #fff;
}

.sk-photo-outro p {
	color: rgba(255, 255, 255, 0.55);
	max-width: 480px;
	margin: 0;
}

/* ── Progress rail (only meaningful once the pinned experience is active) ── */
.sk-photo-progress-rail {
	position: fixed;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 40;
	display: none;
	flex-direction: column;
	gap: 6px;
	pointer-events: none;
}

html.sk-photo-js .sk-photo-progress-rail {
	display: flex;
}

.sk-photo-progress-rail i {
	width: 3px;
	height: 20px;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.18);
	transition: background 0.3s ease, height 0.3s ease;
	font-style: normal;
	display: block;
}

.sk-photo-progress-rail i.active {
	background: var(--sk-secondary);
	height: 32px;
}

@media (max-width: 782px) {
	.sk-photo-album-title,
	.sk-photo-caption {
		padding-left: 24px;
		padding-right: 24px;
	}
	html.sk-photo-js .sk-photo-progress-rail {
		display: none;
	}
}
