html.hsg-content-lightbox-open,
html.hsg-content-lightbox-open body {
	overflow: hidden;
	overscroll-behavior: none;
}

.hsg-content-lightbox {
	box-sizing: border-box;
	position: fixed;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	height: 100dvh;
	max-height: none;
	margin: 0;
	border: 0;
	padding: max(4.5rem, env(safe-area-inset-top)) 1.25rem max(1.25rem, env(safe-area-inset-bottom));
	background: transparent;
	color: #fff;
}

.hsg-content-lightbox::backdrop { background: rgba(0, 10, 24, 0.9); }
.hsg-content-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.hsg-content-lightbox [hidden] { display: none; }

.hsg-content-lightbox__panel {
	width: fit-content;
	max-width: 100%;
	max-height: 100%;
	padding: 0.25rem;
	overflow: auto;
	text-align: center;
}

.hsg-content-lightbox__image {
	display: block;
	max-width: 100%;
	width: auto;
	height: auto;
	max-height: calc(100vh - 13rem);
	max-height: calc(100dvh - 13rem);
	object-fit: contain;
	margin: auto;
}

.hsg-content-lightbox__caption { margin: 0.75rem 0; overflow-wrap: anywhere; }
.hsg-content-lightbox__status { margin: 0; max-width: 32rem; }
.hsg-content-lightbox__controls { display: flex; align-items: center; justify-content: center; gap: 1.25rem; margin-top: 0.75rem; }

.hsg-content-lightbox button {
	flex-shrink: 0;
	min-width: 44px;
	min-height: 44px;
	padding: 0.375rem 0.75rem;
	border: 1px solid #fff;
	border-radius: 0.5rem;
	background: #003870;
	color: #fff;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.hsg-content-lightbox button:hover { background: #002850; }
.hsg-content-lightbox button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.hsg-content-lightbox__close { position: absolute; top: max(0.75rem, env(safe-area-inset-top)); right: max(1rem, env(safe-area-inset-right)); z-index: 1; }

@media (max-width: 600px) {
	.hsg-content-lightbox { padding-inline: 0.625rem; }
	.hsg-content-lightbox__controls { gap: 0.625rem; }
}
