.mrm-gallery {
	position: relative;
	width: 100%;
	font-family: "PP Neue Montreal", sans-serif;
}

.mrm-gallery__viewport {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 420px;
	background: #fff;
	overflow: hidden;
}

.mrm-gallery__slide {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 420px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.mrm-gallery__image {
	display: block;
	width: 100%;
	height: auto;
	max-height: 80vh;
	object-fit: contain;
}

.mrm-gallery__nav,
.mrm-gallery__lightbox-nav,
.mrm-gallery__lightbox-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: rgba(17, 17, 17, 0.78);
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.mrm-gallery__nav:hover,
.mrm-gallery__lightbox-nav:hover,
.mrm-gallery__lightbox-close:hover {
	background: rgba(17, 17, 17, 0.92);
}

.mrm-gallery__nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 52px;
	height: 52px;
	margin-top: -26px;
	font-size: 36px;
	line-height: 1;
}

.mrm-gallery__nav--prev {
	left: 0;
}

.mrm-gallery__nav--next {
	right: 0;
}

.mrm-gallery__lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.94);
}

.mrm-gallery__lightbox[hidden] {
	display: none;
}

.mrm-gallery__lightbox-stage {
	display: flex;
	align-items: center;
	justify-content: center;
	width: min(92vw, 1800px);
	height: 92vh;
	padding: 40px 80px;
}

.mrm-gallery__lightbox-image {
	display: block;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.mrm-gallery__lightbox-close {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 48px;
	height: 48px;
	font-size: 34px;
	line-height: 1;
}

.mrm-gallery__lightbox-nav {
	position: absolute;
	top: 50%;
	width: 58px;
	height: 58px;
	margin-top: -29px;
	font-size: 40px;
	line-height: 1;
}

.mrm-gallery__lightbox-nav--prev {
	left: 18px;
}

.mrm-gallery__lightbox-nav--next {
	right: 18px;
}

body.mrm-gallery-lightbox-open {
	overflow: hidden;
}

@media (max-width: 767px) {
	.mrm-gallery__viewport,
	.mrm-gallery__slide {
		min-height: 280px;
	}

	.mrm-gallery__nav {
		width: 42px;
		height: 42px;
		margin-top: -21px;
		font-size: 28px;
	}

	.mrm-gallery__lightbox-stage {
		padding: 24px 56px;
	}

	.mrm-gallery__lightbox-nav {
		width: 44px;
		height: 44px;
		margin-top: -22px;
		font-size: 30px;
	}
}
