
body.overflow-hidden {
	overflow: hidden;
}

[hidden] { display: none !important; }

.lightbox {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 15, 30, 0.9);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1000;
	transition: ease all 200ms;
}

.lightbox[hidden] {
	opacity: 0;
	pointer-events: none;
}

.lightbox-content {
	display: flex;
	gap: 1em;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 3.75rem;
	position: relative;
	max-width: 100%;
	max-height: 100%;
}

.lightbox-image-wrapper {
	max-height: 100%;
	width: 45.875em;
	max-width: 100%;
	overflow: auto;
}

.lightbox img {
display: block;
  height: auto;
  width: 100%;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
  max-height: 55vh;
}

.lightbox img[src$=".png"] {
	background:#fff;
}

.lightbox img[hidden] {
	display: none;
}



.image-and-controls {
	margin-bottom: 1em;
}

.lightbox-text-wrapper {
	text-align: center;
	max-width: 45.875em;
	display: flex;
	align-items: center;
	flex-direction: column;
	gap: 1em;
}

.lightbox-text-wrapper *:not(.button) {
	color: #fff;
}

.lightbox-text-wrapper h2 {
	color: #FFF;
	font-size: 1.125rem;
	font-weight: 700;
	margin: 0;
}

.lightbox-text-wrapper p {
	color: #FFF;
	font-size: 1rem;
}

.lightbox-text-wrapper [download] {
	background: #FFF;
	border-color: var(--ws-blue);
	color: #000;
	font-weight: 700;
}

.lightbox-text-wrapper [download]::before {
	content: '';
	padding-left: 1rem;
	background: url(/images/icons/icon-blue-download-b.svg) no-repeat center / contain;
	margin-right: 1em;
}

.lightbox-text-wrapper [download]:is(:hover, :focus-visible) {
	background-color: var(--ws-dk-blue);
	color: #FFF;
	border-color: var(--ws-blue);
}

.lightbox-controls button {
	background-color: transparent;
	position: absolute;
	padding: 15px 20px;
	top: 50%;
	transform: translateY(-50%);
}

.lightbox-controls button:is(:hover, :focus-visible) {
	border-color: transparent;
	background-color: var(--ws-blue);
}

.lightbox-controls button::before {
	content: "";
	position: absolute;
	width: 29px;
	height: 22px;
	background-size: contain;
	background-repeat: no-repeat;
	opacity: 0.6;
	top: 5px;
	left: 13px;
}

.lightbox-controls button:disabled {
	opacity: 0;
	pointer-events: none;
}

.lightbox-controls button:first-child {
	margin-right: 50%;
	left: 0;
}

.lightbox-controls button:first-child::before {
	background-image: url(/images/icons/icon-grey-caret-left.svg);
}

.lightbox-controls button:last-child {
	margin-left: 50%;
	right: 0;
}

.lightbox-controls button:last-child::before {
	background-image: url(/images/icons/icon-grey-caret-right.svg);
}

.lightbox-close {
	background: none;
	border: none;
	color: white;
	cursor: pointer;
	font-size: 2rem;
	position: absolute;
	top: 0.5em;
	padding: 1rem;
	right: 3.75rem;
}

.lightbox-close::before {
	content: "";
	position: absolute;
	width: 20px;
	height: 20px;
	background-size: contain;
	background-repeat: no-repeat;
	background-image: url(/images/icons/icon-white-x-large.svg);
	opacity: 0.6;
	top: 6px;
	left: 6px;
}

.lightbox-close:is(:hover, :focus-visible) {
	background-color: var(--ws-blue);
}

@media screen and (max-width: 749px) {
	.lightbox-image-wrapper {
		max-height: 100%;
		overflow: auto;
	}
	.lightbox-content {
		height: 100%;
		padding: 4em 1em;
	}
	.lightbox-close {
		transform: none;
		margin: 0;
		top: 0.5em;
		right: 0.5em;
	}
	.lightbox-controls button {
        bottom: 1em;
        top: auto;
        transform: none;
    }
}