/* Section wrapper — photo inset 50px from each canvas edge on desktop, with a
   33px strip below the photo reserved for the dot markers (Figma: dots y719
   in a 733-tall slider). Full-bleed on mobile with a 60px arrows/dots strip. */
.bsw-space-slider.wp-block-group.alignfull {
	background: #fff;
	position: relative;
	padding: 0 50px 33px !important;
	margin-block: 0 !important;
}

.bsw-space-slider__frame {
	position: relative;
}

/* Slides — Slick cross-fades these (space-slider.js). 1632 × 840 shape,
   scaling with the page width */
.bsw-space-slider__slide {
	position: relative;
	aspect-ratio: 1632 / 840;
	overflow: hidden;
}

.bsw-space-slider__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 36%;
	display: block;
}

.bsw-space-slider__credit {
	position: absolute;
	bottom: 10px;
	right: 10px;
	font-family: var(--wp--preset--font-family--cardo, 'Cardo', serif);
	font-style: italic;
	font-size: 14px;
	color: #fff;
	margin: 0;
	z-index: 1;
}

/* Capacity card — white @85% over the photo's bottom-left, 20px in from the
   photo's left and bottom edges (70px / 53px from the section's, past its
   padding). Desktop only; on mobile the capacity renders as the first
   space-stats entry instead. */
.bsw-space-slider__card.wp-block-group {
	position: absolute !important;
	left: 70px;
	bottom: 53px;
	width: 325px;
	box-sizing: border-box;
	background: rgba(255, 255, 255, 0.85);
	padding: 30px 20px !important;
	margin: 0 !important;
	z-index: 2;
}

p.bsw-space-slider__card-label {
	font-family: var(--wp--preset--font-family--cardo, 'Cardo', serif);
	font-size: 20px;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: #aa747c;
	line-height: normal;
	white-space: nowrap;
	margin: 0 !important;
}

p.bsw-space-slider__card-value {
	font-family: var(--wp--preset--font-family--cormorant, 'Cormorant', serif);
	font-size: 68px;
	font-weight: 400;
	line-height: 72px;
	color: var(--wp--preset--color--charcoal, #373737);
	margin: 0 !important;
}

p.bsw-space-slider__card-unit {
	font-family: var(--wp--preset--font-family--cardo, 'Cardo', serif);
	font-size: 20px;
	color: var(--wp--preset--color--charcoal, #373737);
	line-height: normal;
	margin: 0 !important;
}

/* Arrows — Slick-injected buttons: white @65% circle, charcoal chevron,
   vertically centered on the photo, 20px in from its edges */
.bsw-space-slider__arrow {
	position: absolute;
	top: calc(50% - 24px);
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.65);
	padding: 0;
	cursor: pointer;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s ease;
}

.bsw-space-slider__arrow:hover {
	background: #fff;
}

.bsw-space-slider__arrow::before {
	content: "";
	width: 13.23px;
	height: 24.74px;
	background: url("data:image/svg+xml,%3Csvg width='14' height='25' viewBox='0 0 13.23 24.74' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.94 23.04C13.32 23.43 13.32 24.06 12.94 24.45C12.56 24.84 11.93 24.84 11.55 24.45L0.29 13.07C-0.09 12.68 -0.09 12.05 0.29 11.66L11.55 0.29C11.93 -0.1 12.56 -0.1 12.94 0.29C13.32 0.68 13.32 1.31 12.94 1.7L2.67 12.37L12.94 23.04Z' fill='%23373737'/%3E%3C/svg%3E") center / contain no-repeat;
}

.bsw-space-slider__arrow--prev {
	left: 20px;
}

.bsw-space-slider__arrow--next {
	right: 20px;
}

.bsw-space-slider__arrow--next::before {
	transform: scaleX(-1);
}

/* Dot markers — 14px circles in the strip below the photo: active solid
   taupe, inactive white with a taupe @30% ring */
.bsw-space-slider ul.slick-dots {
	position: absolute;
	top: calc(100% + 19px);
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bsw-space-slider .slick-dots li {
	width: 14px;
	height: 14px;
	margin: 0;
}

.bsw-space-slider .slick-dots li button {
	width: 14px;
	height: 14px;
	box-sizing: border-box;
	border: 1px solid rgba(140, 133, 123, 0.3);
	border-radius: 50%;
	background: #fff;
	padding: 0;
	font-size: 0;
	line-height: 0;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.bsw-space-slider .slick-dots li button:hover {
	border-color: var(--wp--preset--color--taupe, #8c857b);
}

.bsw-space-slider .slick-dots li.slick-active button {
	background: var(--wp--preset--color--taupe, #8c857b);
	border-color: var(--wp--preset--color--taupe, #8c857b);
}

@media (max-width: 767px) {
	.bsw-space-slider.wp-block-group.alignfull {
		padding: 0 0 60px !important;
	}

	.bsw-space-slider__slide {
		aspect-ratio: 10 / 9;
	}

	/* Mobile zoom crop from the Figma fill (img: width 153.47%, left -28.55%,
	   top -19.7%) — a deliberate closer view, applied to every slide */
	.bsw-space-slider__slide img {
		position: absolute;
		width: 153.47%;
		height: 154.24%;
		left: -28.55%;
		top: -19.7%;
		max-width: none;
		object-fit: cover;
		object-position: center;
	}

	.bsw-space-slider__card.wp-block-group {
		display: none !important;
	}

	/* Arrows drop into the strip below the photo */
	.bsw-space-slider__arrow {
		top: calc(100% + 12px);
	}

	.bsw-space-slider__arrow--prev {
		left: 10px;
	}

	.bsw-space-slider__arrow--next {
		right: 10px;
	}

	/* Up to 25 slides per space — the dots stay between the arrows and wrap
	   onto a second row, centred on the arrows' midline */
	.bsw-space-slider ul.slick-dots {
		top: calc(100% + 36px);
		transform: translate(-50%, -50%);
		width: max-content;
		max-width: calc(100% - 136px);
		flex-wrap: wrap;
		justify-content: center;
		gap: 6px 8px;
	}

	.bsw-space-slider .slick-dots li,
	.bsw-space-slider .slick-dots li button {
		width: 10px;
		height: 10px;
	}
}
