/* =====================================================
   Aurora Gallery — CSS v1.0.0
   ===================================================== */

.ag-wrapper {
	position: relative;
	width: 100%;
	overflow: hidden;
	user-select: none;
	-webkit-user-select: none;
	font-family: inherit;
}

/* ---------- Canvas ---------- */
.ag-canvas {
	display: block;
	width: 100%;
	height: 680px;
	cursor: pointer;
	touch-action: none;
}

.ag-wrapper--lb-open .ag-canvas {
	filter: blur(6px) brightness(0.4);
	transition: filter 0.35s ease;
}

/* ---------- Loading ---------- */
.ag-loading {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	opacity: 1;
	transition: opacity 0.6s ease;
}
.ag-loading--hidden { opacity: 0; }

.ag-loading__spinner {
	width: 52px;
	height: 52px;
	border: 3px solid rgba(0, 220, 150, 0.18);
	border-top-color: rgba(0, 220, 150, 0.80);
	border-radius: 50%;
	animation: ag-spin 1s linear infinite;
}
@keyframes ag-spin { to { transform: rotate(360deg); } }

/* ---------- Editor hint ---------- */
.ag-editor-hint {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: rgba(0, 220, 160, 0.70);
	pointer-events: none;
}
.ag-editor-hint span:first-child { font-size: 2.5rem; }
.ag-editor-hint span:not(:first-child) { font-size: 1.1rem; font-weight: 600; }
.ag-editor-hint small { font-size: 0.8rem; opacity: 0.65; }

/* ---------- Lightbox ---------- */
.ag-lightbox {
	--ag-lb-bg: rgba(2,11,24,0.95);
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.32s ease;
}
.ag-lightbox[aria-hidden="false"] {
	opacity: 1;
	pointer-events: auto;
}

.ag-lightbox__overlay {
	position: absolute;
	inset: 0;
	background: var(--ag-lb-bg);
	cursor: pointer;
}

.ag-lightbox__panel {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	transform: scale(0.88);
	transition: transform 0.34s cubic-bezier(0.34, 1.56, 0.64, 1);
	max-width: 90vw;
}
.ag-lightbox[aria-hidden="false"] .ag-lightbox__panel { transform: scale(1); }

.ag-lightbox__img {
	display: block;
	max-width: 88vw;
	max-height: 82vh;
	border-radius: 6px;
	object-fit: contain;
	box-shadow:
		0 0 60px rgba(0, 220, 150, 0.15),
		0 40px 120px rgba(0, 0, 0, 0.85);
}
@media(max-width:767px){ .ag-lightbox__img { max-width: 96vw; max-height: 76vh; } }

.ag-lightbox__caption {
	margin: 0;
	color: rgba(180, 230, 220, 0.70);
	font-size: 0.875rem;
	text-align: center;
	max-width: 68ch;
	line-height: 1.5;
	letter-spacing: 0.02em;
}

/* ---------- Close button ---------- */
.ag-lightbox__close {
	position: absolute;
	top: -50px;
	right: 0;
	width: 38px;
	height: 38px;
	border: none;
	cursor: pointer;
	color: #fff;
	padding: 7px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s, transform 0.15s;
	background: transparent;
}
.ag-lightbox__close--circle {
	background: rgba(0, 220, 150, 0.15);
	border-radius: 50%;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}
.ag-lightbox__close:hover {
	background: rgba(0, 220, 150, 0.28);
	transform: scale(1.12);
}
.ag-lightbox__close svg { width: 100%; height: 100%; }
