.rmg-gallery {
	border: 0 !important;
	box-shadow: none !important;
	column-count: var(--rmg-desktop, 4);
	column-gap: var(--rmg-gap, 16px);
	outline: 0;
	width: 100%;
}

.rmg-gallery .rmg-item {
	background: #fff;
	border-color: var(--rmg-border-color, #d5d9dc);
	border-radius: var(--rmg-radius, 0);
	border-style: var(--rmg-border-style, solid);
	border-width: var(--rmg-border-width, 0);
	box-sizing: border-box;
	break-inside: avoid;
	display: block;
	margin: 0 0 var(--rmg-gap, 16px);
	overflow: hidden;
	position: relative;
	width: 100%;
}

.rmg-gallery .rmg-media {
	overflow: hidden;
	position: relative;
}

.rmg-gallery .rmg-image-link {
	cursor: zoom-in;
	display: block;
	line-height: 0;
}

.rmg-gallery .rmg-image {
	display: block;
	height: auto;
	max-width: none;
	transition: all 180ms ease;
	width: 100%;
	filter: contrast(0.5);
}

.rmg-gallery .rmg-image-link:hover .rmg-image,
.rmg-gallery .rmg-image-link:focus-visible .rmg-image {
	filter: contrast(1);
	transform: scale(1.015);
}

.rmg-gallery .rmg-image-link:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: -3px;
}

.rmg-gallery .rmg-caption {
	box-sizing: border-box;
	font-size: 0.875rem;
	line-height: 1.45;
	margin: 0;
	padding: 10px 12px;
}

.rmg-gallery.rmg-caption-top .rmg-caption,
.rmg-gallery.rmg-caption-bottom .rmg-caption {
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
	color: #fff;
	left: 0;
	position: absolute;
	right: 0;
	z-index: 1;
}

.rmg-gallery.rmg-caption-bottom .rmg-caption {
	bottom: 0;
	padding-top: 30px;
}

.rmg-gallery.rmg-caption-top .rmg-caption {
	background: linear-gradient(rgba(0, 0, 0, 0.78), transparent);
	padding-bottom: 30px;
	top: 0;
}

.rmg-lightbox {
	align-items: center;
	background: rgba(10, 13, 16, 0.94);
	box-sizing: border-box;
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 2.5vh 2.5vw;
	position: fixed;
	z-index: 999999;
}

.rmg-lightbox[hidden] {
	display: none;
}

.rmg-lightbox__dialog {
	align-items: center;
	display: flex;
	height: 95vh;
	justify-content: center;
	position: relative;
	width: 95vw;
}

.rmg-lightbox__image {
	cursor: grab;
	display: block;
	height: auto;
	max-height: 95vh;
	max-width: 95vw;
	object-fit: contain;
	touch-action: pan-y;
	transition: transform 160ms ease;
	user-select: none;
	width: auto;
}

.rmg-lightbox__image.is-dragging {
	cursor: grabbing;
	transition: none;
}

.rmg-lightbox__close,
.rmg-lightbox__arrow {
	align-items: center;
	background: rgba(0, 0, 0, 0.68);
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	display: flex;
	font: 32px/1 Arial, sans-serif;
	height: 44px;
	justify-content: center;
	padding: 0 0 3px;
	position: absolute;
	right: 10px;
	top: 10px;
	width: 44px;
	z-index: 2;
}

.rmg-lightbox__close:hover,
.rmg-lightbox__close:focus-visible,
.rmg-lightbox__arrow:hover,
.rmg-lightbox__arrow:focus-visible {
	background: #fff;
	color: #111;
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.rmg-lightbox__arrow {
	font-size: 28px;
	padding: 0 2px 2px 0;
	top: 50%;
	transform: translateY(-50%);
}

.rmg-lightbox__previous {
	left: 10px;
	right: auto;
}

.rmg-lightbox__next {
	left: auto;
	padding-left: 2px;
	padding-right: 0;
	right: 10px;
}

.rmg-lightbox__arrow[hidden] {
	display: none;
}

.rmg-lightbox__counter {
	background: rgba(0, 0, 0, 0.68);
	border-radius: 999px;
	color: #fff;
	font-size: 0.85rem;
	left: 50%;
	margin: 0;
	padding: 5px 10px;
	position: absolute;
	top: 10px;
	transform: translateX(-50%);
	z-index: 2;
}

.rmg-lightbox__caption {
	background: rgba(0, 0, 0, 0.72);
	bottom: 0;
	color: #fff;
	font-size: 0.95rem;
	left: 50%;
	margin: 0;
	max-width: min(80vw, 900px);
	padding: 8px 12px;
	position: absolute;
	text-align: center;
	transform: translateX(-50%);
}

body.rmg-lightbox-open {
	overflow: hidden;
}

@media (min-width: 768px) and (max-width: 1023px) {
	.rmg-gallery {
		column-count: var(--rmg-tablet, 3);
	}
}

@media (max-width: 767px) {
	.rmg-gallery {
		column-count: var(--rmg-mobile, 1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.rmg-gallery .rmg-image,
	.rmg-lightbox__image {
		transition: none;
	}
}
