.lj88-reel, .lj88-spec {
	--media-line: #d9d6c9;
	--media-ink: #3c503f;
	color: #293229;
	min-width: 0;
	max-width: 100%;
	margin: 1rem 0 1.35rem;
}
.lj88-reel {
	border: 1px solid var(--media-line);
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}
.lj88-reel-track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	background: #f6f4ef;
}
.lj88-reel-track::-webkit-scrollbar { display: none; }
.lj88-reel-slide {
	box-sizing: border-box;
	flex: 0 0 100%;
	min-width: 0;
	display: grid;
	align-content: center;
	scroll-snap-align: start;
}
.lj88-reel-slide :is(a, picture, figure, dl, dt, .wp-caption) {
	display: block;
	float: none !important;
	width: 100% !important;
	max-width: 100%;
	margin: 0 !important;
	padding: 0;
}
.lj88-reel .lj88-reel-slide img {
	display: block;
	float: none;
	width: 100% !important;
	max-width: 100%;
	height: clamp(190px, 33vh, 320px) !important;
	margin: 0 auto !important;
	object-fit: contain;
	border: 0;
	border-radius: 0;
}
.lj88-reel-slide :is(figcaption, .wp-caption-text, .gallery-caption) {
	margin: 0;
	padding: .3rem .75rem;
	text-align: center;
	font-size: .85rem;
}
.lj88-reel-controls, .lj88-spec-dialog-bar {
	display: flex;
	align-items: center;
	gap: .35rem;
	padding: .3rem .65rem;
}
.lj88-reel-controls { border-top: 1px solid var(--media-line); }
.lj88-reel-controls button, .lj88-spec-dialog-bar button {
	background: transparent;
	color: var(--media-ink);
	border: 0;
	border-radius: 4px;
	padding: .3rem .5rem;
	min-height: 38px;
	min-width: 42px;
	line-height: 1;
	font-size: 1.55rem;
}
.lj88-reel-controls .lj88-reel-toggle, .lj88-spec-dialog-bar button {
	margin-left: auto;
	font-size: .83rem;
	font-weight: 500;
}
.lj88-reel-count { font-size: .85rem; font-variant-numeric: tabular-nums; }
.lj88-reel-controls button:hover, .lj88-spec-dialog-bar button:hover { background: #f1f1e9; color: #243629; }
.lj88-spec h2 { margin: 0 0 .6rem; color: var(--media-ink); font-size: 1.13rem; font-weight: 600; }
.lj88-spec-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(84px, 100%), 1fr));
	gap: .6rem;
}
.lj88-spec-photo {
	display: flex;
	flex-direction: column;
	gap: .3rem;
	align-items: center;
	border: 1px solid var(--media-line);
	border-radius: 6px;
	background: #fff;
	padding: .35rem;
	color: #3b443b;
	text-align: center;
	line-height: 1.4;
	font-size: .8rem;
	text-decoration: none !important;
	overflow-wrap: anywhere;
}
.lj88-spec-photo:hover, .lj88-spec-photo.is-selected { border-color: var(--media-ink); color: #253a28; }
.lj88-spec-photo.is-selected { box-shadow: inset 0 0 0 1px var(--media-ink); background: #f0f3eb; }
.lj88-spec .lj88-spec-photo img { margin: 0; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 3px; }
.lj88-spec-dialog:not([open]) { display: none; }
.lj88-spec-dialog {
	width: fit-content;
	max-width: min(90vw, 780px);
	max-height: 90vh;
	margin: auto;
	padding: .65rem;
	border: 1px solid var(--media-line);
	border-radius: 8px;
	background: #fff;
	color: var(--media-ink);
}
.lj88-spec-dialog::backdrop { background: rgb(27 32 26 / 74%); }
.lj88-spec-dialog-bar { justify-content: space-between; padding: 0 0 .4rem; }
.lj88-spec-dialog[open] img { width: auto; height: auto; max-width: 100%; max-height: 73vh; object-fit: contain; margin: auto; }
.lj88-reel :focus-visible, .lj88-spec :focus-visible { outline: 2px solid #486347; outline-offset: -2px; }
@media (max-width: 480px) {
	.lj88-spec-grid {
		grid-template-columns: repeat(auto-fill, minmax(min(68px, 100%), 1fr));
		gap: .4rem;
	}
}
