/* Generic full-size image lightbox — triggered by any element carrying
   [data-innerg-lightbox="<full-size image URL>"] (see lightbox.js). Kept
   deliberately widget-agnostic so any future gallery/photo widget can opt
   in with the same one attribute, not just Discipline Room. */

/* The "expand" trigger button itself — an unstyled <button> positioned over
   whatever photo container it's placed inside (that container needs
   position:relative, already true of .innerg-discipline-room__photo). */
[data-innerg-lightbox] {
	position: absolute;
	inset-block-end: 1rem;
	inset-inline-end: 1rem;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba( 43, 41, 26, 0.55 ); /* --brand-dark @ 55% */
	color: #fff;
	cursor: pointer;
	opacity: 0;
	transform: scale( 0.85 );
	transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

[data-innerg-lightbox] svg {
	width: 18px;
	height: 18px;
}

/* Visible on hover/focus of the photo (desktop) and always-on at touch
   widths, where there's no hover to reveal it. */
.innerg-discipline-room__photo:hover [data-innerg-lightbox],
.innerg-discipline-room__photo:focus-within [data-innerg-lightbox] {
	opacity: 1;
	transform: scale( 1 );
}

[data-innerg-lightbox]:hover {
	background: var( --accent, #73947c );
}

@media ( max-width: 782px ) {
	[data-innerg-lightbox] {
		opacity: 1;
		transform: none;
	}
}

/* The overlay itself — a single shared instance main.js injects into
   <body> on first use and reuses for every trigger on the page. */
.innerg-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	background: rgba( 0, 0, 0, 0.85 );
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.innerg-lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

.innerg-lightbox__image {
	max-width: 100%;
	max-height: 100%;
	border-radius: 2px;
	box-shadow: 0 20px 60px rgba( 0, 0, 0, 0.5 );
	transform: scale( 0.96 );
	transition: transform 0.25s ease;
}

.innerg-lightbox.is-open .innerg-lightbox__image {
	transform: scale( 1 );
}

.innerg-lightbox__close {
	position: absolute;
	top: 1.5rem;
	inset-inline-end: 1.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba( 255, 255, 255, 0.1 );
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.innerg-lightbox__close:hover {
	background: rgba( 255, 255, 255, 0.2 );
}

.innerg-lightbox__close svg {
	width: 20px;
	height: 20px;
}
