/* Studium Site: zoomable lightbox for press scans (assets/zoom.js). */
html.sg-zoom-open { overflow: hidden; }

.sg-zoom {
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(0, 0, 0, 0.92);
	color: #fff;
}
.sg-zoom::backdrop { background: transparent; }

.sg-zoom__stage {
	position: absolute;
	inset: 0;
	display: flex;
	overflow: auto;
	padding: 64px 16px;
	overscroll-behavior: contain;
}
/* margin:auto centres without cutting off the overflow when zoomed */
.sg-zoom__img {
	display: block;
	margin: auto;
	max-width: 100%;
	max-height: calc(100vh - 128px);
	width: auto;
	height: auto;
	cursor: zoom-in;
	user-select: none;
	-webkit-user-drag: none;
}
.sg-zoom.is-zoomed .sg-zoom__img { max-width: none; max-height: none; cursor: zoom-out; }
.sg-zoom.is-dragging .sg-zoom__img { cursor: grabbing; }

.sg-zoom__btn {
	position: fixed;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.6);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
	color: #fff;
	font: 400 30px/1 Roboto, Arial, sans-serif;
	cursor: pointer;
}
.sg-zoom__btn:hover { background: #FF8100; }
.sg-zoom__btn:focus-visible { outline: 3px solid #FF8100; outline-offset: 2px; }
.sg-zoom__close { top: 12px; right: 12px; }
.sg-zoom__toggle { top: 12px; right: 64px; }
.sg-zoom__prev { top: 50%; left: 12px; transform: translateY(-50%); }
.sg-zoom__next { top: 50%; right: 12px; transform: translateY(-50%); }
.sg-zoom--single .sg-zoom__prev,
.sg-zoom--single .sg-zoom__next { display: none; }
