.grave-room-equipment {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--30) var(--wp--preset--spacing--60);
}

/* Beats the global block-gap rule, which carries the same specificity and is printed later. */
.wp-block-group.grave-room-equipment > * {
	min-width: 0;
	margin-block: 0;
	font-weight: var(--wp--custom--typography--font-weight--medium);
}

.grave-room-prices {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--30);
}

.wp-block-group.grave-room-prices > * {
	min-width: 0;
	margin-block: 0;
	overflow-wrap: anywhere;
}

.grave-room-gallery {
	position: relative;
}

.grave-room-gallery .grave-carousel-track .wp-block-image {
	margin-block: 0;
}

.grave-room-gallery .grave-carousel-track img {
	display: block;
	width: 100%;
	aspect-ratio: var(--wp--custom--carousel--gallery--image-aspect-ratio);
	object-fit: cover;
	border-radius: var(--wp--custom--radius--image);
}

.grave-room-gallery__controls {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-inline: var(--wp--preset--spacing--30);
	padding-block-end: calc(
		var(--wp--custom--carousel--gallery--thumbnail-height) +
			var(--wp--preset--spacing--30)
	);
	pointer-events: none;
}

.grave-room-gallery__controls .grave-carousel-controls__button {
	pointer-events: auto;
}

.grave-room-gallery .grave-carousel-thumbnails {
	--grave-carousel-thumbnail-size: var(--wp--custom--carousel--gallery--thumbnail-width);

	justify-content: safe center;
	gap: var(--wp--preset--spacing--20);
}

.grave-room-gallery .grave-carousel-thumbnails__button {
	overflow: hidden;
	border-radius: var(--wp--custom--radius--xs);
	opacity: var(--wp--custom--carousel--gallery--thumbnail-idle-opacity);
}

.grave-room-gallery .grave-carousel-thumbnails__button:hover,
.grave-room-gallery .grave-carousel-thumbnails__button:focus-visible {
	opacity: var(--wp--custom--carousel--gallery--thumbnail-hover-opacity);
}

.grave-room-gallery .grave-carousel-thumbnails__button[aria-current="true"] {
	outline: var(--wp--custom--carousel--gallery--thumbnail-active-ring-width) solid
		var(--wp--preset--color--primary-dark);
	outline-offset: calc(
		-1 * var(--wp--custom--carousel--gallery--thumbnail-active-ring-width)
	);
	opacity: var(--wp--custom--carousel--gallery--thumbnail-active-opacity);
}

.grave-room-gallery .grave-carousel-thumbnails__button img {
	height: var(--wp--custom--carousel--gallery--thumbnail-height);
	object-fit: cover;
}

.grave-room-access {
	--grave-location-map-radius: var(--wp--custom--radius--md);
	--grave-location-control-color: var(--wp--preset--color--fg);
	--grave-location-control-background: var(--wp--preset--color--primary-soft);
	--grave-location-control-active-color: var(--wp--preset--color--primary-dark-contrast);
	--grave-location-control-active-background: var(--wp--preset--color--primary-dark);
	--grave-location-control-radius: var(--wp--custom--radius--sm);
	--grave-location-pin-background: var(--wp--preset--color--primary);
	--grave-location-pin-border: var(--wp--preset--color--surface);
	--wp--custom--map--height: var(--wp--custom--room--map-height);
}

.grave-room-access .grave-location-map .leaflet-top.leaflet-left {
	right: 0;
	left: auto;
}

.grave-room-access .grave-location-map .leaflet-left .leaflet-control {
	margin-right: var(--wp--preset--spacing--20);
	margin-left: 0;
}

.wp-site-blocks .grave-room-access__location,
.wp-site-blocks .grave-room-access .grave-location-map__overview {
	display: none;
}

@container formation (max-width: 40rem) {
	.grave-room-equipment {
		grid-template-columns: minmax(0, 1fr);
	}

	.grave-room-access {
		--wp--custom--map--height: var(--wp--custom--map--mobile-height);
	}
}
