.rmg-gallery,
.rmg-gallery * {
	box-sizing: border-box;
}

.rmg-gallery {
	--rmg-background: #ffffff;
	--rmg-surface: #ffffff;
	--rmg-text: #111111;
	--rmg-muted: #6b7280;
	--rmg-border: #e5e7eb;
	--rmg-primary: #111111;
	--rmg-primary-text: #ffffff;
	--rmg-radius: 6px;
	--rmg-modal-max-width: 1180px;
	color: var(--rmg-text);
	font: inherit;
	width: 100%;
}

.rmg-gallery :where(a, button, img, figure, p, h2) {
	box-shadow: none;
	box-sizing: border-box;
}

.rmg-gallery :where(button) {
	appearance: none;
	font: inherit;
	letter-spacing: 0;
	text-transform: none;
}

.rmg-gallery :where(img) {
	border: 0;
	box-shadow: none;
	max-width: none;
}

.rmg-empty {
	color: var(--rmg-muted);
	margin: 0;
}

.rmg-grid {
	display: grid;
	gap: var(--rmg-grid-gap, 8px);
	grid-template-columns: repeat(var(--rmg-columns, 3), minmax(0, 1fr));
	width: 100%;
}

.rmg-card {
	aspect-ratio: var(--rmg-image-ratio, 3/4);
	background: #f3f4f6;
	border-radius: var(--rmg-radius);
	color: inherit;
	display: block;
	overflow: hidden;
	position: relative;
	text-decoration: none;
}

.rmg-card:focus-visible,
.rmg-button:focus-visible,
.rmg-nav:focus-visible,
.rmg-modal__x:focus-visible,
.rmg-media-close:focus-visible,
.rmg-readmore:focus-visible {
	outline: 2px solid var(--rmg-primary);
	outline-offset: 3px;
}

.rmg-card__image {
	display: block;
	height: 100%;
	object-fit: cover;
	transition: transform 220ms ease, opacity 220ms ease;
	width: 100%;
}

.rmg-card__indicator {
	align-items: center;
	bottom: 8px;
	display: flex;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
	height: 24px;
	justify-content: center;
	pointer-events: none;
	position: absolute;
	right: 8px;
	width: 24px;
}

.rmg-card__indicator::before,
.rmg-card__indicator::after {
	border: 1.5px solid #ffffff;
	border-radius: 2px;
	content: "";
	height: 11px;
	position: absolute;
	width: 11px;
}

.rmg-card__indicator::before {
	transform: translate(-2px, 2px);
}

.rmg-card__indicator::after {
	transform: translate(3px, -3px);
}

.rmg-card:hover .rmg-card__image {
	transform: scale(1.025);
}

.rmg-placeholder {
	align-items: center;
	aspect-ratio: var(--rmg-image-ratio, 3/4);
	background:
		linear-gradient(135deg, #f4f4f5 25%, transparent 25%) 0 0 / 18px 18px,
		linear-gradient(135deg, transparent 75%, #f4f4f5 75%) 0 0 / 18px 18px,
		#fafafa;
	border: 1px solid var(--rmg-border);
	border-radius: var(--rmg-radius);
	display: block;
	height: 100%;
	width: 100%;
}

.rmg-placeholder--large {
	aspect-ratio: 4/3;
	min-height: 280px;
}

.rmg-details {
	display: grid;
	gap: 32px;
	margin-top: 32px;
}

.rmg-enhanced .rmg-details {
	display: none;
}

.rmg-realization {
	align-items: start;
	background: var(--rmg-surface);
	color: var(--rmg-text);
	display: grid;
	gap: 28px;
	grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
	width: 100%;
}

.rmg-realization__media {
	align-items: center;
	background: transparent;
	border-radius: var(--rmg-radius);
	display: flex;
	flex-direction: column;
	justify-self: center;
	min-height: 0;
	overflow: hidden;
	position: relative;
	width: min(100%, calc((100dvh - 190px) * var(--rmg-media-width-factor, 0.75)));
}

.rmg-media-close {
	align-items: center;
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid rgba(17, 17, 17, 0.12);
	border-radius: 999px;
	color: var(--rmg-text);
	cursor: pointer;
	display: none;
	height: 40px;
	justify-content: center;
	min-width: 40px;
	padding: 0;
	place-items: center;
	position: absolute;
	right: 10px;
	text-align: center;
	top: 10px;
	width: 40px;
	z-index: 4;
}

.rmg-enhanced .rmg-media-close {
	display: grid;
}

.rmg-media-close span,
.rmg-modal__x span {
	display: none;
}

.rmg-media-close::before,
.rmg-modal__x::before {
	background: currentColor;
	content: "";
	display: block;
	height: 1.5px;
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%) rotate(45deg);
	width: 14px;
}

.rmg-media-close::after,
.rmg-modal__x::after {
	background: currentColor;
	content: "";
	display: block;
	height: 1.5px;
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%) rotate(-45deg);
	width: 14px;
}

.rmg-slides,
.rmg-slide {
	aspect-ratio: var(--rmg-image-ratio, 3/4);
	flex: 0 0 auto;
	height: auto;
	margin: 0;
	min-height: 0;
	width: 100%;
}

.rmg-slide {
	align-items: center;
	background: #f8f8f8;
	border-radius: var(--rmg-radius);
	display: flex;
	justify-content: center;
	overflow: hidden;
}

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

.rmg-slide__image {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.rmg-thumbs {
	display: flex;
	flex: 0 0 auto;
	gap: 8px;
	max-width: 100%;
	overflow-x: auto;
	padding: 10px 12px 12px;
	scrollbar-width: none;
	-ms-overflow-style: none;
	width: 100%;
}

.rmg-thumbs::-webkit-scrollbar {
	display: none;
}

.rmg-thumb {
	background: transparent;
	border: 2px solid transparent;
	border-radius: var(--rmg-radius);
	cursor: pointer;
	flex: 0 0 58px;
	height: 76px;
	overflow: hidden;
	padding: 0;
	width: 58px;
}

.rmg-thumb[aria-current="true"] {
	border-color: var(--rmg-primary);
}

.rmg-thumb img {
	border-radius: calc(var(--rmg-radius) - 1px);
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.rmg-nav {
	align-items: center;
	background: rgba(255, 255, 255, 0.94);
	border: 1px solid rgba(17, 17, 17, 0.12);
	border-radius: 999px;
	color: var(--rmg-text);
	cursor: pointer;
	display: grid;
	height: 44px;
	justify-content: center;
	min-width: 44px;
	padding: 0;
	place-items: center;
	position: absolute;
	text-align: center;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
}

.rmg-nav::before,
.rmg-nav::after {
	content: none !important;
	display: none !important;
}

.rmg-nav__icon {
	background: currentColor;
	display: block;
	height: 16px;
	width: 12px;
}

.rmg-nav--prev .rmg-nav__icon {
	clip-path: polygon(65% 0, 82% 16%, 48% 50%, 82% 84%, 65% 100%, 16% 50%);
}

.rmg-nav--next .rmg-nav__icon {
	clip-path: polygon(35% 0, 84% 50%, 35% 100%, 18% 84%, 52% 50%, 18% 16%);
}

.rmg-gallery .rmg-nav,
.rmg-gallery .rmg-nav:hover,
.rmg-gallery .rmg-nav:active,
.rmg-gallery .rmg-nav:visited {
	background: rgba(255, 255, 255, 0.94) !important;
	border-color: rgba(17, 17, 17, 0.12) !important;
	box-shadow: none !important;
	color: var(--rmg-text) !important;
	transform: translateY(-50%) !important;
	transition: none !important;
}

.rmg-nav--prev {
	left: 16px;
}

.rmg-nav--next {
	right: 16px;
}

.rmg-counter {
	background: rgba(255, 255, 255, 0.92);
	border-radius: 999px;
	bottom: 102px;
	color: var(--rmg-text);
	font-size: 14px;
	left: 50%;
	margin: 0;
	padding: 5px 12px;
	position: absolute;
	transform: translateX(-50%);
}

.rmg-realization__content {
	align-self: center;
	min-width: 0;
	padding: 4px 0;
}

.rmg-realization__type,
.rmg-realization__location {
	color: var(--rmg-muted);
	font-size: 14px;
	margin: 0 0 10px;
}

.rmg-realization__type {
	font-weight: 600;
	text-transform: none;
}

.rmg-realization__title {
	color: var(--rmg-text);
	font: inherit;
	font-size: clamp(22px, 2.4vw, 34px);
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.15;
	margin: 0 0 12px;
}

.rmg-description-wrap {
	position: relative;
}

.rmg-description {
	color: var(--rmg-text);
	line-height: 1.65;
	max-height: none;
	overflow: hidden;
	position: relative;
}

.rmg-enhanced .rmg-description.is-collapsed {
	max-height: calc(1.65em * 6);
}

.rmg-enhanced .rmg-description.is-collapsed::after {
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--rmg-surface));
	bottom: 0;
	content: "";
	height: 42px;
	left: 0;
	pointer-events: none;
	position: absolute;
	right: 0;
}

.rmg-description > :first-child {
	margin-top: 0;
}

.rmg-description > :last-child {
	margin-bottom: 0;
}

.rmg-readmore {
	background: transparent;
	border: 0;
	color: var(--rmg-primary);
	cursor: pointer;
	display: none;
	font: inherit;
	font-weight: 700;
	margin: 12px 0 0;
	padding: 0;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.rmg-readmore,
.rmg-readmore:hover,
.rmg-readmore:active,
.rmg-readmore:visited,
.rmg-readmore:focus {
	background: transparent !important;
	border-color: transparent !important;
	color: var(--rmg-primary) !important;
	text-decoration: underline !important;
}

.rmg-readmore.is-visible {
	display: inline-flex;
}

.rmg-actions {
	border-top: 1px solid var(--rmg-border);
	display: grid;
	gap: 10px;
	margin-top: 24px;
	padding-top: 20px;
}

.rmg-button {
	align-items: center;
	border: 1px solid var(--rmg-border);
	border-radius: var(--rmg-radius);
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	justify-content: center;
	min-height: 44px;
	padding: 10px 16px;
	text-align: center;
	text-decoration: none;
	width: 100%;
}

.rmg-button:hover,
.rmg-button:active,
.rmg-button:visited {
	text-decoration: none;
}

.rmg-button--primary {
	background: var(--rmg-primary);
	border-color: var(--rmg-primary);
	color: var(--rmg-primary-text);
}

.rmg-button--primary:hover,
.rmg-button--primary:visited {
	color: var(--rmg-primary-text);
}

.rmg-button--secondary,
.rmg-button--phone {
	background: var(--rmg-surface);
	color: var(--rmg-text);
}

.rmg-button--secondary:hover,
.rmg-button--secondary:visited,
.rmg-button--phone:hover,
.rmg-button--phone:visited {
	color: var(--rmg-text);
}

.rmg-button--close {
	background: #f3f4f6;
	color: var(--rmg-text);
}

.rmg-gallery .rmg-button:hover,
.rmg-gallery .rmg-button:active,
.rmg-gallery .rmg-button:visited {
	text-decoration: none !important;
}

.rmg-gallery .rmg-button--primary:hover,
.rmg-gallery .rmg-button--primary:active,
.rmg-gallery .rmg-button--primary:visited {
	background: var(--rmg-primary) !important;
	border-color: var(--rmg-primary) !important;
	color: var(--rmg-primary-text) !important;
}

.rmg-gallery .rmg-button--secondary:hover,
.rmg-gallery .rmg-button--secondary:active,
.rmg-gallery .rmg-button--secondary:visited,
.rmg-gallery .rmg-button--phone:hover,
.rmg-gallery .rmg-button--phone:active,
.rmg-gallery .rmg-button--phone:visited {
	background: var(--rmg-surface) !important;
	border-color: var(--rmg-border) !important;
	color: var(--rmg-text) !important;
}

.rmg-gallery .rmg-button--close:hover,
.rmg-gallery .rmg-button--close:active,
.rmg-gallery .rmg-button--close:visited {
	background: #f3f4f6 !important;
	border-color: var(--rmg-border) !important;
	color: var(--rmg-text) !important;
}

.rmg-modal {
	background: var(--rmg-background, #ffffff);
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: var(--rmg-text, #111111);
	height: 100vh;
	height: 100dvh;
	margin: 0;
	max-height: none;
	max-width: none;
	padding: 0;
	width: 100vw;
	z-index: 99999;
}

.rmg-modal::backdrop {
	background: rgba(255, 255, 255, 0.98);
}

.rmg-modal__inner {
	background: var(--rmg-background, #ffffff);
	min-height: 100vh;
	min-height: 100dvh;
	overflow-y: auto;
	padding: 104px clamp(16px, 4vw, 48px) 32px;
	position: relative;
}

.rmg-modal__body {
	margin: 0 auto;
	max-width: var(--rmg-modal-max-width);
}

.rmg-modal__body .rmg-realization {
	min-height: 0;
}

.rmg-modal__x {
	align-items: center;
	background: #ffffff;
	border: 1px solid rgba(17, 17, 17, 0.12);
	border-radius: 999px;
	color: var(--rmg-text, #111111);
	cursor: pointer;
	display: grid;
	height: 44px;
	justify-content: center;
	min-width: 44px;
	padding: 0;
	place-items: center;
	position: fixed;
	right: clamp(16px, 4vw, 48px);
	text-align: center;
	top: 28px;
	width: 44px;
	z-index: 2;
}

.rmg-gallery .rmg-media-close,
.rmg-gallery .rmg-media-close:hover,
.rmg-gallery .rmg-media-close:active,
.rmg-gallery .rmg-media-close:visited,
.rmg-gallery .rmg-modal__x,
.rmg-gallery .rmg-modal__x:hover,
.rmg-gallery .rmg-modal__x:active,
.rmg-gallery .rmg-modal__x:visited {
	background: #ffffff !important;
	border-color: rgba(17, 17, 17, 0.12) !important;
	box-shadow: none !important;
	color: var(--rmg-text) !important;
	transform: none !important;
	transition: none !important;
}

.rmg-enhanced .rmg-modal__x {
	display: none;
}

@media (max-width: 1023px) {
	.rmg-grid {
		grid-template-columns: repeat(var(--rmg-tablet-columns, 2), minmax(0, 1fr));
	}

	.rmg-realization {
		grid-template-columns: 1fr;
	}

	.rmg-realization__content {
		align-self: start;
	}
}

@media (max-width: 640px) {
	.rmg-grid {
		grid-template-columns: repeat(var(--rmg-mobile-columns, 2), minmax(0, 1fr));
	}

	.rmg-modal__inner {
		padding: 18px 12px 76px;
	}

	.rmg-modal__x {
		right: 16px;
		top: 18px;
	}

	.rmg-realization {
		gap: 18px;
	}

	.rmg-realization__media {
		width: min(100%, calc((100dvh - 190px) * var(--rmg-media-width-factor, 0.75)));
	}

	.rmg-thumbs {
		gap: 7px;
		padding: 8px 10px 10px;
	}

	.rmg-thumb {
		flex-basis: 52px;
		height: 68px;
		width: 52px;
	}

	.rmg-counter {
		bottom: 90px;
		padding: 4px 10px;
	}

	.rmg-actions {
		padding-bottom: 70px;
	}

	.rmg-actions .rmg-button--primary {
		bottom: 12px;
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
		left: 12px;
		min-height: 40px;
		position: fixed;
		right: 12px;
		width: auto;
		z-index: 3;
	}

	.rmg-nav {
		height: 42px;
		min-width: 42px;
		width: 42px;
	}

	.rmg-nav--prev {
		left: 10px;
	}

	.rmg-nav--next {
		right: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rmg-card__image,
	.rmg-nav,
	.rmg-media-close,
	.rmg-modal__x,
	.rmg-modal {
		transition: none;
	}

	.rmg-card:hover .rmg-card__image {
		transform: none;
	}
}
