/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SMOUSE STUDIO — GALLERY LIGHTBOX (shared / single source of truth)
   Click a User Gallery image to view it enlarged over a dimmed backdrop.
   lightbox.js injects the overlay and wires the gallery images; this file
   styles it to match the site's dark / orange scheme.
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Clickable gallery images get a zoom-in cursor as an affordance. */
.sm-zoomable { cursor: zoom-in; }

.sm-lightbox {
	position: fixed;
	inset: 0;
	z-index: 10000;

	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4vmin;

	background: rgba(10, 10, 12, 0.86);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	cursor: zoom-out;

	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.sm-lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

.sm-lightbox__stage {
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 92vw;
	max-height: 88vh;
}

.sm-lightbox__media {
	display: block;
	max-width: 92vw;
	max-height: 88vh;
	object-fit: contain;
	border-radius: 0.4rem;
	box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.6);
	background: #000;
	cursor: default;

	transform: scale(0.96);
	transition: transform 0.25s ease;
}

.sm-lightbox.is-open .sm-lightbox__media {
	transform: scale(1);
}

/* Artist credit chip — only shown when the gallery item was an artist link. */
.sm-lightbox__credit {
	position: fixed;
	left: 50%;
	bottom: 1.5rem;
	transform: translateX(-50%);

	display: inline-flex;
	align-items: center;
	max-width: 90vw;
	padding: 0.5rem 0.95rem;

	background-color: rgba(42, 42, 42, 0.85);
	border: 1px solid #575757;
	border-radius: 999px;
	color: #FAF2F0;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;

	font-family: 'DM Mono', monospace;
	font-size: 0.7rem;
	letter-spacing: 0.04em;

	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sm-lightbox__credit:hover {
	background-color: var(--smouse-orange, #E35300);
	border-color: var(--smouse-orange, #E35300);
	color: #FAF2F0;
}

.sm-lightbox__close {
	position: fixed;
	top: 1.5rem;
	right: 1.5rem;

	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;

	background-color: #2a2a2a;
	border: 1px solid #575757;
	border-radius: 50%;
	color: #FAF2F0;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.sm-lightbox__close:hover {
	background-color: var(--smouse-orange, #E35300);
	border-color: var(--smouse-orange, #E35300);
}

.sm-lightbox__close svg {
	width: 42%;
	height: 42%;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.25;
	stroke-linecap: round;
}

@media (max-width: 720px) {
	.sm-lightbox__close {
		top: 1rem;
		right: 1rem;
		width: 2.5rem;
		height: 2.5rem;
	}
}
