.otwl-tour-gallery {
	position: relative;
}

.otwl-tour-gallery.has-1-images {
	grid-template-columns: 1fr;
}

.otwl-tour-gallery.has-2-images {
	grid-template-columns: 2fr 1fr;
}

.otwl-tour-gallery.has-3-images,
.otwl-tour-gallery.has-4-images,
.otwl-tour-gallery.has-5-images {
	aspect-ratio: 2 / 1;
	grid-template-columns: 2fr 1fr 1fr;
	grid-template-rows: repeat(2, minmax(0, 1fr));
	min-height: 0;
}

.otwl-tour-gallery.has-3-images figure,
.otwl-tour-gallery.has-4-images figure,
.otwl-tour-gallery.has-5-images figure {
	aspect-ratio: auto;
	height: 100%;
}

.otwl-tour-gallery.has-2-images .is-featured {
	grid-row: auto;
}

.otwl-tour-gallery.has-3-images .is-featured,
.otwl-tour-gallery.has-4-images .is-featured,
.otwl-tour-gallery.has-5-images .is-featured {
	grid-row: 1 / span 2;
}

.otwl-tour-video-tile {
	background: #20201d;
	overflow: hidden;
	position: relative;
}

.otwl-tour-video-tile img,
.otwl-tour-video-preview {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.otwl-tour-video-preview {
	background: #20201d;
}

.otwl-tour-video-fallback {
	align-items: center;
	color: #fff;
	display: flex;
	font-size: 18px;
	font-weight: 800;
	height: 100%;
	justify-content: center;
}

.otwl-tour-video-play {
	align-items: center;
	background: rgba(18, 20, 19, .86);
	border: 1px solid rgba(255, 255, 255, .72);
	border-radius: 999px;
	bottom: 18px;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font-size: 14px;
	font-weight: 800;
	gap: 8px;
	left: 18px;
	padding: 11px 16px;
	position: absolute;
	z-index: 2;
}

.otwl-tour-video-play:hover,
.otwl-tour-video-play:focus-visible {
	background: var(--otwl-ink);
}

.otwl-tour-video-tile.is-autoplay-blocked .otwl-tour-video-preview {
	opacity: .82;
}

.otwl-tour-gallery-button {
	align-items: center;
	background: rgba(255, 253, 248, .94);
	border: 1px solid var(--otwl-line);
	border-radius: 6px;
	bottom: 12px;
	box-shadow: 0 10px 24px rgba(32, 32, 29, .16);
	color: var(--otwl-ink);
	cursor: pointer;
	display: inline-flex;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	gap: 6px;
	padding: 9px 12px;
	position: absolute;
	right: 12px;
}

.otwl-tour-gallery-button svg {
	fill: currentColor;
	height: 15px;
	width: 15px;
}

.otwl-tour-gallery-modal {
	background: rgba(18, 20, 19, .72);
	inset: 0;
	overflow: auto;
	padding: 42px 32px;
	position: fixed;
	z-index: 99999;
}

body.otwl-gallery-open {
	overflow: hidden;
}

.otwl-tour-gallery-dialog {
	background: #fff;
	border-radius: 8px;
	margin: 0 auto;
	max-width: 1080px;
	padding: 32px 24px 24px;
	position: relative;
}

.otwl-tour-gallery-close {
	align-items: center;
	background: var(--otwl-ink);
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 8px 20px rgba(18, 20, 19, .24);
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font: 400 28px/1 Arial, sans-serif;
	height: 44px;
	justify-content: center;
	margin: 0;
	min-height: 44px;
	padding: 0;
	position: absolute;
	right: 0;
	top: 0;
	transform: translate(50%, -50%);
	transition: background .18s ease, box-shadow .18s ease;
	width: 44px;
	z-index: 2;
}

.otwl-tour-gallery-close:hover {
	background: var(--otwl-accent-dark);
	box-shadow: 0 10px 24px rgba(18, 20, 19, .32);
}

.otwl-tour-gallery-close:focus-visible {
	box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--otwl-accent);
	outline: 0;
}

.otwl-tour-gallery-all {
	clear: both;
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.otwl-tour-gallery-all figure {
	aspect-ratio: 16 / 10;
	background: var(--otwl-wash);
	border-radius: 8px;
	margin: 0;
	overflow: hidden;
}

.otwl-tour-gallery-customer-photo {
	position: relative;
	scroll-margin-top: 80px;
}

.otwl-tour-gallery-photo-badge {
	background: rgba(23, 38, 64, .92);
	border-radius: 999px;
	bottom: 10px;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	left: 10px;
	line-height: 1;
	padding: 6px 9px;
	pointer-events: none;
	position: absolute;
}

.otwl-tour-gallery-all img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.otwl-tour-video-player {
	clear: both;
	padding-top: 4px;
}

.otwl-tour-video-player video,
.otwl-tour-video-embed iframe {
	background: #000;
	border: 0;
	display: block;
	width: 100%;
}

.otwl-tour-video-player video {
	max-height: calc(100vh - 130px);
}

.otwl-tour-video-embed {
	aspect-ratio: 16 / 9;
}

.otwl-tour-video-embed iframe {
	height: 100%;
}

@media (max-width: 840px) {
	.otwl-tour-gallery {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.otwl-tour-gallery .is-featured {
		grid-row: auto;
	}

	.otwl-tour-gallery.has-3-images,
	.otwl-tour-gallery.has-4-images,
	.otwl-tour-gallery.has-5-images {
		aspect-ratio: 16 / 10;
		grid-template-columns: 1fr;
		grid-template-rows: auto;
		min-height: 0;
	}

	.otwl-tour-gallery.has-3-images figure,
	.otwl-tour-gallery.has-4-images figure,
	.otwl-tour-gallery.has-5-images figure {
		aspect-ratio: 16 / 10;
		height: auto;
	}

	.otwl-tour-gallery-button {
		bottom: 12px;
		right: 12px;
	}

	.otwl-tour-gallery-all {
		grid-template-columns: 1fr;
	}

	.otwl-tour-video-play {
		bottom: 12px;
		left: 12px;
	}

	.otwl-tour-video-player video {
		max-height: calc(100vh - 110px);
	}
}
