/*
 * Modal shell only — loaded when gig image overlay JS runs but full public-overlay.css
 * was skipped (e.g. “Disable plugin CSS” in Gig Settings). Without this, #tbsgl-overlay
 * is in normal flow at the end of body and the image appears at the bottom of the page.
 */

.tbsgl-overlay {
	position: fixed !important;
	inset: 0 !important;
	z-index: 2147483646;
	display: grid !important;
	place-items: center;
	box-sizing: border-box;
	margin: 0 !important;
	padding: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
}

.tbsgl-overlay[hidden] {
	display: none !important;
}

.tbsgl-overlay__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.75);
	box-sizing: border-box;
}

.tbsgl-overlay__panel {
	position: relative;
	margin: 0;
	max-width: min(92vw, 1100px);
	max-height: 92vh;
	padding: 0;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 20px 80px rgba(0, 0, 0, 0.35);
	background: #111;
	box-sizing: border-box;
}

.tbsgl-overlay__img {
	display: block;
	max-width: 92vw;
	max-height: 92vh;
	width: auto;
	height: auto;
	margin: 0;
	box-sizing: border-box;
}

.tbsgl-overlay__close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	border: 0;
	cursor: pointer;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	font-size: 26px;
	line-height: 1;
	box-sizing: border-box;
}

.tbsgl-overlay__close:hover {
	background: rgba(255, 255, 255, 0.22);
}

.tbsgl-overlay-open body {
	overflow: hidden;
}
