:root {
	--si-viewer-gold: #c49b54;
	--si-viewer-black: #090909;
	--si-viewer-panel: #111;
}

.entry-content img.si-lightbox-image { cursor: zoom-in; }
.entry-content figure:has(> img.si-lightbox-image),
.entry-content figure:has(> a > img.si-lightbox-image) { position: relative; }

@media (hover: hover) and (pointer: fine) {
	.entry-content figure:has(> img.si-lightbox-image)::after,
	.entry-content figure:has(> a > img.si-lightbox-image)::after {
		content: "+";
		position: absolute;
		right: 12px;
		bottom: 12px;
		z-index: 2;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 30px;
		height: 30px;
		border: 1px solid rgba(196,155,84,.55);
		border-radius: 50%;
		background: rgba(8,8,8,.78);
		color: #fff;
		font-size: 16px;
		opacity: 0;
		transform: translateY(3px);
		pointer-events: none;
		transition: opacity .16s ease, transform .16s ease;
	}

	.entry-content figure:has(> img.si-lightbox-image):hover::after,
	.entry-content figure:has(> a > img.si-lightbox-image):hover::after {
		opacity: 1;
		transform: translateY(0);
	}
}

.si-gallery {
	position: relative;
	width: 100%;
	margin: 28px 0;
	background: #0b0b0b;
	border: 1px solid rgba(196,155,84,.30);
	box-sizing: border-box;
	overflow: hidden;
}
.si-gallery *, .si-gallery *::before, .si-gallery *::after { box-sizing: border-box; }
.si-gallery__stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 300px;
	background: radial-gradient(circle at 50% 45%, rgba(255,255,255,.035), transparent 46%), #090909;
	overflow: hidden;
}
.si-gallery__main {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 300px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}
.si-gallery__main img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: min(72vh, 820px);
	margin: 0 auto;
	object-fit: contain;
	transition: opacity .16s ease, transform .18s ease;
}
.si-gallery.is-changing .si-gallery__main img { opacity: .4; transform: scale(.995); }
.si-gallery__nav {
	position: absolute;
	top: 50%;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(196,155,84,.55);
	border-radius: 50%;
	background: rgba(5,5,5,.82);
	color: #fff;
	font-size: 0;
	cursor: pointer;
	transform: translateY(-50%);
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.si-gallery__nav::before {
	content: "";
	width: 10px;
	height: 10px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
}
.si-gallery__prev { left: 15px; }
.si-gallery__prev::before { transform: rotate(-135deg); margin-left: 4px; }
.si-gallery__next { right: 15px; }
.si-gallery__next::before { transform: rotate(45deg); margin-right: 4px; }
.si-gallery__nav:hover, .si-gallery__nav:focus-visible {
	border-color: var(--si-viewer-gold);
	background: var(--si-viewer-gold);
	color: #111;
	outline: 0;
}
.si-gallery__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 50px;
	padding: 11px 14px;
	border-top: 1px solid rgba(255,255,255,.09);
	background: #111;
}
.si-gallery__caption { min-width: 0; color: #ddd; font-size: 12px; line-height: 1.45; font-weight: 500; }
.si-gallery__count { flex: 0 0 auto; color: var(--si-viewer-gold); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.si-gallery__thumbs {
	display: flex;
	gap: 8px;
	width: 100%;
	padding: 10px;
	overflow-x: auto;
	background: #080808;
	border-top: 1px solid rgba(196,155,84,.18);
	scrollbar-width: thin;
	scrollbar-color: #444 #111;
	-webkit-overflow-scrolling: touch;
}
.si-gallery__thumb {
	position: relative;
	flex: 0 0 68px;
	width: 68px;
	height: 52px;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(255,255,255,.15);
	background: #151515;
	overflow: hidden;
	cursor: pointer;
	opacity: .62;
	transition: opacity .15s ease, border-color .15s ease, transform .15s ease;
}
.si-gallery__thumb img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; }
.si-gallery__thumb:hover { opacity: .9; border-color: rgba(196,155,84,.65); }
.si-gallery__thumb.is-active { opacity: 1; border-color: var(--si-viewer-gold); box-shadow: inset 0 0 0 1px var(--si-viewer-gold); }
.si-gallery__thumb:focus-visible { outline: 2px solid var(--si-viewer-gold); outline-offset: 2px; }
.gallery.si-gallery-source-hidden, .wp-block-gallery.si-gallery-source-hidden { display: none !important; }

html.si-lightbox-open, body.si-lightbox-open { overflow: hidden !important; }
.si-lightbox {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 28px;
	background: rgba(0,0,0,.94);
	opacity: 0;
	transition: opacity .18s ease;
}
.si-lightbox.is-open { display: flex; opacity: 1; }
.si-lightbox__dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	max-width: 1760px;
	max-height: calc(100vh - 56px);
	outline: 0;
}
.si-lightbox__topbar {
	position: relative;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 42px;
	padding: 0 46px 8px 3px;
}
.si-lightbox__brand { color: var(--si-viewer-gold); font-size: 10px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.si-lightbox__close:hover, .si-lightbox__close:focus-visible { border-color: var(--si-viewer-gold); background: var(--si-viewer-gold); color: #111; outline: 0; }
.si-lightbox__media { position: relative; display: flex; flex: 1 1 auto; align-items: center; justify-content: center; min-height: 0; overflow: hidden; }
.si-lightbox__image { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 20px 70px rgba(0,0,0,.35); user-select: none; -webkit-user-drag: none; }
.si-lightbox__nav {
	position: absolute;
	top: 50%;
	z-index: 6;
	display: none;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid rgba(196,155,84,.50);
	border-radius: 50%;
	background: rgba(5,5,5,.72);
	color: #fff;
	font-size: 0;
	cursor: pointer;
	transform: translateY(-50%);
}
.si-lightbox.has-multiple .si-lightbox__nav { display: flex; }
.si-lightbox__nav::before { content: ""; width: 11px; height: 11px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; }
.si-lightbox__prev { left: 10px; }
.si-lightbox__prev::before { transform: rotate(-135deg); margin-left: 4px; }
.si-lightbox__next { right: 10px; }
.si-lightbox__next::before { transform: rotate(45deg); margin-right: 4px; }
.si-lightbox__nav:hover, .si-lightbox__nav:focus-visible { background: var(--si-viewer-gold); border-color: var(--si-viewer-gold); color: #111; outline: 0; }
.si-lightbox__bottom { flex: 0 0 auto; padding: 12px 4px 0; text-align: center; }
.si-lightbox__caption { max-width: 900px; margin: 0 auto; color: rgba(255,255,255,.76); font-size: 12px; line-height: 1.5; }

@media (max-width: 700px) {
	.si-gallery { margin: 22px 0; }
	.si-gallery__stage, .si-gallery__main { min-height: 240px; }
	.si-gallery__main img { max-height: 66vh; }
	.si-gallery__nav { width: 38px; height: 38px; }
	.si-gallery__prev { left: 8px; }
	.si-gallery__next { right: 8px; }
	.si-gallery__meta { min-height: 46px; padding: 10px 12px; }
	.si-gallery__caption { font-size: 11px; }
	.si-gallery__thumbs { gap: 6px; padding: 8px; }
	.si-gallery__thumb { flex-basis: 58px; width: 58px; height: 45px; }
	.si-lightbox { padding: 10px; }
	.si-lightbox__dialog { max-height: calc(100vh - 20px); }
	.si-lightbox__nav { width: 40px; height: 40px; }
	.si-lightbox__prev { left: 2px; }
	.si-lightbox__next { right: 2px; }
	.si-lightbox__caption { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
	.si-gallery__main img, .si-gallery__nav, .si-gallery__thumb, .si-lightbox, .si-lightbox__close { transition: none !important; }
}


/* v1.0.3 — no visual hover badge on standalone content images */
.entry-content figure:has(> img.si-lightbox-image)::after,
.entry-content figure:has(> a > img.si-lightbox-image)::after {
	content: none !important;
	display: none !important;
}


/* =========================================================
   v1.0.4 — pointer cursor only
   ========================================================= */

.entry-content img.si-lightbox-image,
.entry-content a:has(> img.si-lightbox-image),
.entry-content figure:has(img.si-lightbox-image),
.si-gallery__main,
.si-gallery__main img,
.si-gallery__thumb,
.si-gallery__thumb img {
	cursor: pointer !important;
}

/* Never show a generated zoom/magnifier cue over content images. */
.entry-content figure:has(> img.si-lightbox-image)::before,
.entry-content figure:has(> img.si-lightbox-image)::after,
.entry-content figure:has(> a > img.si-lightbox-image)::before,
.entry-content figure:has(> a > img.si-lightbox-image)::after {
	content: none !important;
	display: none !important;
	cursor: pointer !important;
}


/* =========================================================
   v1.0.5 — reliable lightbox close control
   ========================================================= */

.si-lightbox__topbar {
	pointer-events: auto !important;
}

.si-lightbox__close {
	z-index: 2147483647 !important;
	pointer-events: auto !important;
	cursor: pointer !important;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}


/* =========================================================
   v1.0.6 — simple single-image popup
   ========================================================= */

.si-lightbox__dialog {
	max-width: 1600px;
}

.si-lightbox__media {
	cursor: default !important;
}

.si-lightbox__image {
	cursor: default !important;
}

.si-lightbox__bottom {
	padding-top: 12px;
}

.si-lightbox__caption {
	max-width: 960px;
	margin: 0 auto;
	color: rgba(255,255,255,.78);
	font-size: 12px;
	line-height: 1.55;
	text-align: center;
}

/* =========================================================
   v1.0.7 — black close button with gold border
   ========================================================= */

.si-lightbox__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 36px;
	padding: 0 14px;
	border: 1px solid rgba(196,155,84,.75) !important;
	border-radius: 10px;
	background: #000 !important;
	color: #fff !important;
	font-size: 22px;
	font-weight: 800;
	line-height: 1;
	box-shadow: 0 8px 22px rgba(0,0,0,.25);
}

.si-lightbox__close:hover,
.si-lightbox__close:focus-visible {
	border-color: #c49b54 !important;
	background: #111 !important;
	color: #c49b54 !important;
	outline: 0;
}

@media (max-width: 700px) {
	.si-lightbox__close {
		min-width: 42px;
		height: 34px;
		padding: 0 12px;
		font-size: 20px;
	}
}
