.norelle-home-gallery {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: clamp(12px, 2vw, 24px);
	max-width: 100%;
	color: #211a16;
}

.norelle-home-reviews {
	max-width: 100%;
	padding: clamp(18px, 3vw, 28px);
	color: #211a16;
	background: #f6efe3;
	border-radius: 18px;
	text-align: center;
}

.norelle-home-reviews__text {
	margin: 0;
	font-size: clamp(1rem, 1.5vw, 1.1rem);
	line-height: 1.5;
}

.norelle-home-reviews__link {
	display: inline-block;
	margin-top: 12px;
	padding: 11px 16px;
	color: #fff;
	background: #211a16;
	border-radius: 10px;
	font-weight: 700;
	text-decoration: none;
}

.norelle-home-reviews__link:focus-visible {
	outline: 3px solid #211a16;
	outline-offset: 3px;
}

.norelle-home-gallery__primary,
.norelle-home-gallery__secondary,
.norelle-home-gallery__item {
	min-width: 0;
}

.norelle-home-gallery__secondary {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(12px, 2vw, 24px);
}

.norelle-home-gallery--many .norelle-home-gallery__secondary {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.norelle-home-gallery__open {
	display: none;
	cursor: zoom-in;
}

.norelle-home-gallery__fallback {
	display: block;
	color: inherit;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
}

.norelle-home-gallery__open,
.norelle-home-gallery__fallback {
	width: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background: #f6efe3;
	border: 0;
	border-radius: 18px;
}

.norelle-home-gallery__primary .norelle-home-gallery__open,
.norelle-home-gallery__primary .norelle-home-gallery__fallback {
	aspect-ratio: 4 / 3;
}

.norelle-home-gallery__secondary .norelle-home-gallery__open,
.norelle-home-gallery__secondary .norelle-home-gallery__fallback {
	aspect-ratio: 16 / 10;
}

.norelle-home-gallery__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.norelle-home-gallery__fallback .norelle-home-gallery__image {
	margin-bottom: 8px;
}

.norelle-home-gallery[data-norelle-gallery-dialog="ready"] .norelle-home-gallery__open {
	display: block;
}

.norelle-home-gallery[data-norelle-gallery-dialog="ready"] .norelle-home-gallery__fallback {
	display: none;
}

.norelle-home-gallery__open:focus-visible,
.norelle-home-gallery__dialog button:focus-visible,
.norelle-home-gallery__dialog a:focus-visible {
	outline: 3px solid #211a16;
	outline-offset: 3px;
}

.norelle-home-gallery__dialog {
	box-sizing: border-box;
	width: min(960px, calc(100vw - 32px));
	max-width: calc(100vw - 32px);
	padding: clamp(16px, 3vw, 28px);
	color: #211a16;
	background: #fff;
	border: 0;
	border-radius: 18px;
	box-shadow: 0 24px 72px rgba(33, 26, 22, 0.32);
}

.norelle-home-gallery__dialog::backdrop {
	background: rgba(33, 26, 22, 0.72);
}

.norelle-home-gallery__dialog-bar,
.norelle-home-gallery__dialog-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-width: 0;
	flex-wrap: wrap;
	gap: 12px;
}

.norelle-home-gallery__dialog-bar {
	margin-bottom: 16px;
}

.norelle-home-gallery__dialog h2 {
	margin: 0;
	font-size: clamp(1.2rem, 2vw, 1.6rem);
}

.norelle-home-gallery__dialog button {
	flex: 0 1 auto;
	min-width: 44px;
	min-height: 44px;
	padding: 8px 12px;
	color: #fff;
	background: #211a16;
	border: 0;
	border-radius: 10px;
	font-weight: 700;
	cursor: pointer;
}

.norelle-home-gallery__dialog img {
	display: block;
	min-width: 0;
	flex: 1 1 320px;
	width: min(100%, 760px);
	max-height: min(68vh, 620px);
	object-fit: contain;
}

.norelle-home-gallery__dialog a {
	display: inline-block;
	margin-top: 14px;
	color: #211a16;
	font-weight: 700;
}

.norelle-home-gallery__dialog-status {
	min-height: 1.5em;
	margin: 14px 0 0;
	font-weight: 700;
}

@media (max-width: 1024px) {
	.norelle-home-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.norelle-home-gallery__primary {
		grid-column: span 2;
	}

	.norelle-home-gallery__secondary {
		grid-column: span 2;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.norelle-home-gallery {
		display: block;
		overflow: hidden;
	}

	.norelle-home-gallery__secondary {
		display: flex;
		gap: 12px;
		margin-top: 12px;
		overflow-x: auto;
		overscroll-behavior-inline: contain;
		scroll-snap-type: inline mandatory;
		-webkit-overflow-scrolling: touch;
	}

	.norelle-home-gallery__secondary .norelle-home-gallery__item {
		flex: 0 0 min(78vw, 320px);
		scroll-snap-align: start;
	}

	.norelle-home-gallery__dialog-content {
		align-items: stretch;
		flex-wrap: wrap;
	}

	.norelle-home-gallery__dialog-content img {
		order: -1;
		width: 100%;
	}

	.norelle-home-gallery__dialog-content button {
		flex: 1 1 auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.norelle-home-gallery__secondary {
		scroll-behavior: auto;
		scroll-snap-type: none;
	}
}
