/*
 * Single photograph post redesign.
 * Scoped entirely under .single-photo / .single-photo__* so it can't leak
 * into archive/blog grid layouts, which still use the classes this reuses
 * (entry-title, entry-meta, entry-format, tag-links, entry-content) for
 * their own icon/color rules defined in style.css.
 * Palette and fonts match the rest of the theme: Rajdhani for display type,
 * Roboto Condensed for body copy, #fd513b accent. The dark "stage" behind
 * the photo intentionally matches the sb-prints buy box's own dark card
 * (see plugin-prints/assets/sb-prints.css) so the two read as one system.
 */

/*
 * #content/.site-content is the shared page wrapper (header.php) with its
 * own 60px top/bottom padding and no background of its own, so it shows the
 * white #page background through as bars above/below the article. Safe to
 * paint it black here since this stylesheet only loads on single post/
 * attachment views (see functions.php), never on other templates.
 */
.site-content {
	background-color: #0a0a0a;
}

.single-photo {
	margin-bottom: 0;
	background-color: #0a0a0a;
}

/* ---------- Header: format/tags + title ---------- */

.single-photo__header {
	max-width: 820px;
	margin: 0 auto;
	padding: 56px 24px 28px;
	text-align: center;
}

.single-photo__meta.entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 4px 14px;
	margin-bottom: 14px;
	overflow: visible;
}

.single-photo__meta .entry-format a,
.single-photo__meta .tag-links {
	display: inline-flex;
	align-items: center;
}

.single-photo__meta.entry-meta,
.single-photo__meta.entry-meta a {
	color: #8c887f;
}

.single-photo__meta .entry-format a {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 12px;
	border: 1px solid #242423;
	border-radius: 999px;
	color: #8c887f;
}

.single-photo__meta .entry-format a:hover {
	border-color: #fd513b;
	color: #fd513b;
}

.single-photo__meta .entry-format a:before {
	font-size: 12px;
	line-height: 1;
	padding-right: 6px;
}

.single-photo__title.entry-title {
	font-size: clamp(2rem, 4.4vw, 3.4rem);
	line-height: 1.12;
	font-weight: 600;
	letter-spacing: 0.01em;
	margin: 0;
	color: #f2f0ec;
}

/* ---------- Stage: full-bleed photo on a dark ground ---------- */

.single-photo__stage {
	margin: 0 0 48px;
	padding: clamp(20px, 4vw, 56px) 0;
	background-color: #0a0a0a;
	text-align: center;
}

.single-photo__stage-link {
	position: relative;
	display: inline-block;
	max-width: 96%;
	line-height: 0;
	cursor: zoom-in;
}

.single-photo__stage-img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 82vh;
	margin: 0 auto;
	object-fit: contain;
}

.single-photo__zoom {
	position: absolute;
	right: 14px;
	bottom: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(10, 10, 10, 0.72);
	color: #f2f0ec;
	opacity: 0;
	transform: translateY(4px);
	transition: opacity 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
}

.single-photo__zoom svg {
	width: 18px;
	height: 18px;
}

.single-photo__stage-link:hover .single-photo__zoom,
.single-photo__stage-link:focus-visible .single-photo__zoom {
	opacity: 1;
	transform: translateY(0);
}

.single-photo__stage-link:hover .single-photo__zoom {
	background-color: #fd513b;
}

/* ---------- Body copy + buy box ---------- */

.single-photo__body {
	max-width: 760px;
	margin: 0 auto;
	padding: 0 24px 64px;
}

.single-photo__body .entry-content {
	font-size: 17px;
	line-height: 1.75;
	color: #d8d5ce;
	margin-bottom: 0;
}

.single-photo__body .entry-content > p,
.single-photo__body .entry-content > ul,
.single-photo__body .entry-content > ol,
.single-photo__body .entry-content > blockquote {
	margin: 0 0 1.4em;
}

.single-photo__body .entry-content > *:last-child {
	margin-bottom: 0;
}

.single-photo__body .entry-content img {
	max-width: 100%;
	height: auto;
}

.single-photo__pages {
	clear: both;
	margin-top: 30px;
	color: #8c887f;
}

/* ---------- Comments ---------- */

.single-photo__after {
	max-width: 760px;
	margin: 0 auto;
	padding: 0 24px 72px;
	background-color: #0a0a0a;
	color: #d8d5ce;
}

.single-photo__after .comments-area {
	padding-top: 40px;
	margin-top: 40px;
	border-top: 1px solid #242423;
}

.single-photo__after .comments-title,
.single-photo__after .comments-area article header cite {
	color: #f2f0ec;
}

.single-photo__after .comments-area article header time,
.single-photo__after .no-comments {
	color: #8c887f;
}

.single-photo__after .comments-area a {
	color: #fd513b;
}

/* ---------- Responsive ---------- */

@media only screen and (max-width: 767px) {
	.single-photo__header {
		padding: 36px 20px 22px;
	}

	.single-photo__stage {
		margin-bottom: 32px;
		padding: 0;
	}

	.single-photo__stage-link {
		max-width: 100%;
	}

	.single-photo__stage-img {
		max-height: 70vh;
	}

	.single-photo__zoom {
		opacity: 1;
		transform: none;
	}

	.single-photo__body {
		padding: 0 20px 48px;
	}

	.single-photo__body .entry-content {
		font-size: 16px;
	}

	.single-photo__after {
		padding: 0 20px 48px;
	}
}

@media only screen and (max-width: 480px) {
	.single-photo__title.entry-title {
		letter-spacing: 0;
	}
}
