/* RedactedFiles56 – ClassifiedReveal56 Widget Styles */

.classifiedreveal56-gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	width: 100%;
}

.classifiedreveal56-item {
	position: relative;
	overflow: hidden;
	height: 320px;
	border-radius: 4px;
	background: #e8e4d8;
	cursor: pointer;
	outline: none;
	isolation: isolate;
	-webkit-tap-highlight-color: transparent;
	border: 1px solid #2a2a2a;
}

.classifiedreveal56-item:focus-visible {
	box-shadow: 0 0 0 3px #b3261e;
}

.classifiedreveal56-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	user-select: none;
	pointer-events: none;
	filter: grayscale(0.15) contrast(1.05);
}

.classifiedreveal56-canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	touch-action: pan-y;
}

.classifiedreveal56-hint {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 10px;
	text-align: center;
	font-family: 'Courier New', monospace;
	font-size: 11px;
	letter-spacing: 0.06em;
	color: rgba(255, 255, 255, 0.8);
	text-shadow: 0 0 6px rgba(0, 0, 0, 0.9);
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.3s ease, transform 0.3s ease;
	pointer-events: none;
	z-index: 3;
}

.classifiedreveal56-item:hover .classifiedreveal56-hint,
.classifiedreveal56-item:focus-visible .classifiedreveal56-hint {
	opacity: 1;
	transform: translateY(0);
}

.classifiedreveal56-empty-notice {
	padding: 20px;
	background: #f8f8f8;
	border: 1px dashed #ccc;
	color: #666;
	font-family: sans-serif;
	text-align: center;
}

/* ===== Lightbox ===== */

.classifiedreveal56-lightbox-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.94);
	opacity: 0;
	transition: opacity 0.35s ease;
}

.classifiedreveal56-lightbox-overlay.classifiedreveal56-visible {
	opacity: 1;
}

.classifiedreveal56-lightbox-stage {
	position: relative;
	max-width: 92vw;
	max-height: 88vh;
	width: min(1100px, 92vw);
	height: min(720px, 80vh);
	box-shadow: 0 0 60px rgba(179, 38, 30, 0.2);
	border-radius: 4px;
	overflow: hidden;
	background: #e8e4d8;
	border: 1px solid #2a2a2a;
}

.classifiedreveal56-lightbox-stage img.classifiedreveal56-lightbox-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #e8e4d8;
}

.classifiedreveal56-lightbox-close {
	position: absolute;
	top: -46px;
	right: 0;
	width: 36px;
	height: 36px;
	border: 1px solid rgba(179, 38, 30, 0.6);
	background: rgba(0, 0, 0, 0.6);
	color: #ff6b5e;
	font-family: 'Courier New', monospace;
	font-size: 18px;
	line-height: 1;
	border-radius: 3px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.classifiedreveal56-lightbox-close:hover {
	background: rgba(179, 38, 30, 0.2);
}

.classifiedreveal56-lightbox-caption {
	position: absolute;
	bottom: -30px;
	left: 0;
	right: 0;
	text-align: center;
	color: #ff8a7a;
	font-family: 'Courier New', monospace;
	font-size: 12px;
	letter-spacing: 0.08em;
	opacity: 0.85;
}

@media (max-width: 767px) {
	.classifiedreveal56-lightbox-close {
		top: 10px;
		right: 10px;
	}
	.classifiedreveal56-lightbox-stage {
		width: 96vw;
		height: 70vh;
	}
	.classifiedreveal56-lightbox-caption {
		bottom: 8px;
	}
}
