/* InkBloom56 – AquaReveal56 Widget Styles */

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

.aquareveal56-item {
	position: relative;
	overflow: hidden;
	height: 320px;
	border-radius: 6px;
	background: #f4efe4;
	cursor: pointer;
	outline: none;
	isolation: isolate;
	-webkit-tap-highlight-color: transparent;
}

.aquareveal56-item:focus-visible {
	box-shadow: 0 0 0 3px #3b5ba9;
}

.aquareveal56-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	user-select: none;
	pointer-events: none;
}

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

.aquareveal56-hint {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 10px;
	text-align: center;
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 12px;
	letter-spacing: 0.03em;
	color: rgba(255, 255, 255, 0.9);
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.4s ease, transform 0.4s ease;
	pointer-events: none;
	z-index: 3;
}

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

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

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

.aquareveal56-lightbox-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(20, 18, 14, 0.92);
	opacity: 0;
	transition: opacity 0.45s ease;
}

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

.aquareveal56-lightbox-stage {
	position: relative;
	max-width: 92vw;
	max-height: 88vh;
	width: min(1100px, 92vw);
	height: min(720px, 80vh);
	box-shadow: 0 0 70px rgba(59, 91, 169, 0.25);
	border-radius: 4px;
	overflow: hidden;
	background: #f4efe4;
}

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

.aquareveal56-lightbox-close {
	position: absolute;
	top: -46px;
	right: 0;
	width: 36px;
	height: 36px;
	border: 1px solid rgba(59, 91, 169, 0.6);
	background: rgba(20, 18, 14, 0.5);
	color: #e9e2d0;
	font-family: Georgia, serif;
	font-size: 18px;
	line-height: 1;
	border-radius: 3px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.aquareveal56-lightbox-close:hover {
	background: rgba(59, 91, 169, 0.25);
}

.aquareveal56-lightbox-caption {
	position: absolute;
	bottom: -30px;
	left: 0;
	right: 0;
	text-align: center;
	color: #d8cdb0;
	font-family: Georgia, serif;
	font-size: 12px;
	letter-spacing: 0.04em;
	opacity: 0.85;
}

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