.solaio-row {
	display: flex;
	flex-wrap: wrap;
	width: auto;
	margin-right: -15px;
	margin-left: -15px;
}

.solaio-row::before,
.solaio-row::after {
	display: table;
	content: "";
}

.solaio-column {
	box-sizing: border-box;
	flex: 0 0 var(--solaio-column-width, 100%);
	width: var(--solaio-column-width, 100%);
	max-width: var(--solaio-column-width, 100%);
	min-width: 0;
	padding-right: 15px;
	padding-left: 15px;
}

.solaio-column__inner,
.solaio-text,
.solaio-text__inner {
	box-sizing: border-box;
	width: 100%;
}

.solaio-text {
	margin-bottom: 25px;
}

.solaio-text > :first-child,
.solaio-text__inner > :first-child {
	margin-top: 0;
}

.solaio-text > :last-child,
.solaio-text__inner > :last-child {
	margin-bottom: 0;
}

.solaio-single-image {
	box-sizing: border-box;
	max-width: 100%;
	margin: 0 0 25px;
}

.solaio-single-image img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0;
}

.solaio-single-image figcaption {
	margin-top: 0.45rem;
	font-size: 0.9em;
	line-height: 1.35;
	text-align: center;
}

.solaio-align-center,
.solaio-align-center img {
	margin-right: auto;
	margin-left: auto;
	text-align: center;
}

.solaio-align-right {
	margin-left: auto;
	text-align: right;
}

.solaio-align-right img {
	margin-left: auto;
}

.solaio-align-left {
	margin-right: auto;
	text-align: left;
}

.solaio-button-wrap {
	margin: 0 0 25px;
}

.solaio-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 44px;
	padding: 12px 24px;
	border: 1px solid #8c4a16;
	border-radius: 3px;
	background: #a6571d;
	color: #fff !important;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none !important;
	transition: background-color 160ms ease, border-color 160ms ease;
}

.solaio-button:hover,
.solaio-button:focus-visible {
	border-color: #66340f;
	background: #7e3f13;
	outline: none;
}

.solaio-spacer {
	clear: both;
	width: 100%;
}

.solaio-zigzag {
	width: 100%;
	height: 8px;
	margin: 18px 0;
	border: 0;
	background: linear-gradient(135deg, transparent 4px, var(--solaio-zigzag-color) 0) 0 0 / 8px 8px, linear-gradient(45deg, transparent 4px, var(--solaio-zigzag-color) 0) 4px 0 / 8px 8px;
}

.solaio-gallery {
	--solaio-gallery-gap: clamp(8px, 1.4vw, 14px);
	clear: both;
	margin: 1.5rem 0 2rem;
}

.solaio-gallery__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--solaio-gallery-gap);
}

.solaio-gallery[data-columns="2"] .solaio-gallery__grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.solaio-gallery[data-columns="4"] .solaio-gallery__grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.solaio-gallery__item {
	position: relative;
	display: block;
	min-width: 0;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: #e8e8e8;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
	content-visibility: auto;
	contain-intrinsic-size: 360px 240px;
}

.solaio-gallery__image {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	transition: transform 220ms ease, filter 220ms ease;
}

.solaio-gallery__zoom {
	position: absolute;
	right: 12px;
	bottom: 12px;
	width: 36px;
	height: 36px;
	border: 1px solid rgba(255, 255, 255, 0.78);
	border-radius: 50%;
	background: rgba(19, 28, 22, 0.76);
	opacity: 0;
	transform: translateY(5px);
	transition: opacity 180ms ease, transform 180ms ease;
}

.solaio-gallery__zoom::before,
.solaio-gallery__zoom::after {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 13px;
	height: 1px;
	background: #fff;
	content: "";
	transform: translate(-50%, -50%);
}

.solaio-gallery__zoom::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.solaio-gallery__item:hover .solaio-gallery__image,
.solaio-gallery__item:focus-visible .solaio-gallery__image {
	filter: brightness(0.86);
	transform: scale(1.025);
}

.solaio-gallery__item:hover .solaio-gallery__zoom,
.solaio-gallery__item:focus-visible .solaio-gallery__zoom {
	opacity: 1;
	transform: translateY(0);
}

.solaio-gallery__item:focus-visible {
	outline: 3px solid #8aaa1f;
	outline-offset: 3px;
}

.solaio-carousel {
	position: relative;
	max-width: 100%;
}

.solaio-carousel__title {
	margin-bottom: 1rem;
	text-align: center;
}

.solaio-carousel__viewport {
	position: relative;
	min-height: 120px;
	background: #eee;
}

.solaio-carousel__slide {
	margin: 0;
	text-align: center;
}

.solaio-carousel__slide[hidden] {
	display: none;
}

.solaio-carousel__link {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: auto;
	min-height: 120px;
	background: #f3f3f3;
	box-shadow: none;
}

.solaio-carousel__image {
	display: block;
	max-width: 100%;
	max-height: 640px;
	width: auto;
	height: auto;
	margin: auto;
}

.solaio-carousel figcaption {
	padding: 8px 56px 0;
	font-size: 0.9em;
}

.solaio-carousel__button {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.65);
	border-radius: 50%;
	background: rgba(25, 25, 25, 0.65);
	color: #fff;
	font: 300 32px/1 Arial, sans-serif;
	cursor: pointer;
	transform: translateY(-50%);
}

.solaio-carousel__button:hover,
.solaio-carousel__button:focus-visible {
	background: rgba(25, 25, 25, 0.9);
	outline: 2px solid #fff;
}

.solaio-carousel__prev {
	left: 10px;
}

.solaio-carousel__next {
	right: 10px;
}

.solaio-carousel__counter {
	margin-top: 8px;
	font-size: 0.9em;
	font-variant-numeric: tabular-nums;
	text-align: center;
}

.solaio-gallery-modal[hidden] {
	display: none;
}

.solaio-gallery-modal {
	position: fixed;
	z-index: 999999;
	inset: 0;
	display: grid;
	grid-template-columns: minmax(48px, 1fr) minmax(0, auto) minmax(48px, 1fr);
	grid-template-rows: 1fr auto;
	align-items: center;
	padding: 56px 18px 20px;
	background: rgba(9, 13, 11, 0.95);
	opacity: 0;
	transition: opacity 160ms ease;
}

.solaio-gallery-modal.is-open {
	opacity: 1;
}

.solaio-gallery-modal__stage {
	display: flex;
	grid-column: 2;
	grid-row: 1;
	align-items: center;
	justify-content: center;
	width: min(86vw, 1500px);
	height: calc(100vh - 116px);
	height: calc(100dvh - 116px);
	margin: 0;
}

.solaio-gallery-modal__image {
	display: block;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	box-shadow: 0 8px 36px rgba(0, 0, 0, 0.42);
}

.solaio-gallery-modal__caption {
	position: absolute;
	right: 70px;
	bottom: 18px;
	left: 70px;
	color: #fff;
	font-size: 14px;
	line-height: 1.4;
	text-align: center;
}

.solaio-gallery-modal__counter {
	grid-column: 2;
	grid-row: 2;
	min-height: 20px;
	color: rgba(255, 255, 255, 0.82);
	font-size: 14px;
	font-variant-numeric: tabular-nums;
	text-align: center;
}

.solaio-gallery-modal__button {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.34);
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.28);
	color: #fff;
	font: 300 36px/1 Arial, sans-serif;
	cursor: pointer;
	transition: background-color 160ms ease, border-color 160ms ease;
}

.solaio-gallery-modal__button:hover,
.solaio-gallery-modal__button:focus-visible {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.15);
	outline: none;
}

.solaio-gallery-modal__close {
	position: absolute;
	top: 10px;
	right: 14px;
	font-size: 31px;
}

.solaio-gallery-modal__prev {
	grid-column: 1;
	grid-row: 1;
	justify-self: center;
}

.solaio-gallery-modal__next {
	grid-column: 3;
	grid-row: 1;
	justify-self: center;
}

body.solaio-gallery-modal-open {
	overflow: hidden;
}

@media (max-width: 800px) {
	.solaio-row {
		margin-right: 0;
		margin-left: 0;
	}

	.solaio-gallery {
		width: calc(100vw - 40px);
		max-width: calc(100vw - 40px);
	}

	.solaio-column {
		flex-basis: 100%;
		width: 100%;
		max-width: 100%;
		padding-right: 0;
		padding-left: 0;
	}

	.solaio-gallery__grid,
	.solaio-gallery[data-columns="4"] .solaio-gallery__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.solaio-gallery__grid,
	.solaio-gallery[data-columns="2"] .solaio-gallery__grid,
	.solaio-gallery[data-columns="4"] .solaio-gallery__grid {
		grid-template-columns: 1fr;
	}

	.solaio-gallery-modal {
		grid-template-columns: 52px minmax(0, 1fr) 52px;
		padding: 54px 8px 18px;
	}

	.solaio-gallery-modal__stage {
		width: 100%;
		height: calc(100vh - 120px);
		height: calc(100dvh - 120px);
	}

	.solaio-gallery-modal__button {
		width: 40px;
		height: 40px;
	}

	.solaio-gallery-modal__caption {
		right: 58px;
		bottom: 16px;
		left: 58px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.solaio-gallery__image,
	.solaio-gallery__zoom,
	.solaio-gallery-modal {
		transition: none;
	}
}
