/* Photo strip: the scrolling row of gallery photos on service pages, and its photo viewer.
   Built by js/carousel.js. */

/* ---------- Strip heading and arrows ---------- */

.photo-strip {
	width: min(1224px, calc(100% - 48px));
	margin: auto;
	padding: 24px 0 56px;
	color: var(--offwhite);
}

.strip-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.strip-kicker {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 3px;
	color: var(--gold);
	margin-bottom: 8px;
}

.photo-strip h2 {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 34px;
	font-weight: 500;
	line-height: 1.25;
	margin: 0;
}

.strip-arrows {
	display: flex;
	gap: 8px;
}

.strip-arrows button {
	width: 44px;
	height: 44px;
	border: 1px solid var(--panel-border);
	background: var(--panel);
	color: var(--offwhite);
	font-size: 1.4rem;
	cursor: pointer;
}

.strip-arrows button:hover,
.strip-arrows button:focus-visible {
	border-color: var(--gold);
	color: var(--gold);
}

/* ---------- Row of thumbnails ---------- */

.strip-track {
	display: flex;
	gap: 12px;
	margin: 0;
	padding: 0 0 6px;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	scrollbar-color: var(--border-gold) transparent;
}

.strip-track li {
	flex: 0 0 auto;
	width: 260px;
	scroll-snap-align: start;
}

.strip-track button {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	padding: 0;
	border: 1px solid var(--panel-border);
	border-top: 3px solid var(--gold);
	background: var(--bg);
	overflow: hidden;
	cursor: pointer;
}

.strip-track button:hover,
.strip-track button:focus-visible {
	border-color: var(--gold);
}

.strip-track img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.strip-track button:hover img {
	transform: scale(1.04);
}

/* Play button drawn over video thumbnails */
.strip-play {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: rgba(11, 11, 12, 0.72);
	border: 2px solid var(--gold);
}

.strip-play::after {
	content: "";
	position: absolute;
	left: 18px;
	top: 14px;
	border-style: solid;
	border-width: 9px 0 9px 15px;
	border-color: transparent transparent transparent var(--gold);
}

.strip-more {
	display: inline-block;
	margin-top: 16px;
	color: var(--gold);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-decoration: none;
}

.strip-more:hover {
	text-decoration: underline;
}

/* ---------- Photo viewer (opens when a thumbnail is clicked) ---------- */

.strip-viewer {
	width: min(1100px, 100vw - 32px);
	max-height: calc(100vh - 32px);
	padding: 0;
	border: 1px solid var(--panel-border);
	border-top: 3px solid var(--gold);
	background: var(--bg);
	color: var(--offwhite);
}

.strip-viewer::backdrop {
	background: rgba(0, 0, 0, 0.85);
}

.strip-viewer-media {
	display: flex;
	justify-content: center;
	background: #000;
}

.strip-viewer-media img {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 140px);
}

.strip-viewer-media iframe {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
}

.strip-viewer-bar {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
}

.strip-viewer-caption {
	flex: 1;
	margin: 0;
	font-weight: 700;
}

.strip-viewer-bar button {
	min-width: 44px;
	height: 44px;
	border: 1px solid var(--panel-border);
	background: var(--panel);
	color: inherit;
	font-size: 1.2rem;
	cursor: pointer;
}

@media (max-width: 760px) {
	.photo-strip {
		width: calc(100% - 32px);
		padding: 16px 0 40px;
	}
	.photo-strip h2 {
		font-size: 26px;
	}
	.strip-arrows {
		display: none;
	}
	.strip-track li {
		width: 42vw;
	}
	.strip-track button {
		aspect-ratio: 1 / 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.strip-track img {
		transition: none;
	}
}

body.light-mode .photo-strip,
body.light-mode .strip-viewer {
	color: var(--light-text);
}

body.light-mode .strip-viewer {
	background: var(--light-bg);
}

body.light-mode .strip-arrows button,
body.light-mode .strip-viewer-bar button {
	background: #fff;
	border-color: var(--light-border-alt);
	color: var(--light-text);
}
