/* In-page photo viewer for bike.php (replaces nyroModal for thumbnails) */
.bike-photo-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}

.bike-photo-overlay[hidden] {
	display: none !important;
}

.bike-photo-overlay__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.75);
	cursor: zoom-out;
}

.bike-photo-overlay__frame {
	position: relative;
	z-index: 2;
	max-width: min(96vw, 1200px);
	max-height: 92vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.bike-photo-overlay__frame img {
	display: block;
	max-width: 100%;
	max-height: min(85vh, 900px);
	width: auto;
	height: auto;
	object-fit: contain;
	border: 4px solid #777;
	background: #fff;
	vertical-align: top;
}

.bike-photo-overlay__caption {
	margin: 0;
	color: #eee;
	font-size: 14px;
	text-align: center;
	max-width: 100%;
}

.bike-photo-overlay__close,
.bike-photo-overlay__prev,
.bike-photo-overlay__next {
	position: absolute;
	z-index: 3;
	border: none;
	cursor: pointer;
	font: inherit;
	line-height: 1;
}

.bike-photo-overlay__close {
	top: 12px;
	right: 12px;
	width: 40px;
	height: 40px;
	border-radius: 4px;
	background: #333;
	color: #fff;
	font-size: 28px;
	padding: 0;
}

.bike-photo-overlay__prev,
.bike-photo-overlay__next {
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 56px;
	background: rgba(40, 40, 40, 0.85);
	color: #fff;
	font-size: 22px;
	border-radius: 4px;
}

.bike-photo-overlay__prev {
	left: 8px;
}

.bike-photo-overlay__next {
	right: 8px;
}

.bike-photo-thumb {
	display: inline-block;
	text-decoration: none;
	cursor: zoom-in;
}

.bike-photo-thumb:focus {
	outline: 2px solid #369;
	outline-offset: 2px;
}

.bike-photo-thumb img {
	vertical-align: top;
}
