/**
 * News Element — Thumb Background Slider block (news-element-pro's
 * thumbbgslider). Structure only; slide height, content position, padding,
 * shade and colours come from the block's controls. Runs inside the Splide
 * slider (.ne-carousel.thumbbg-slider).
 */

:where(.thumbbg-slider .tbg-slide) {
	position: relative;
	width: 100%;
	height: 500px; /* fallback only: the Height control (per-post CSS) overrides; :where() keeps it from winning */
}

/* Background image fills the slide. */
.thumbbg-slider .tbg-bg,
.thumbbg-slider .tbg-shade {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}

.thumbbg-slider .tbg-bg .ft-thumbwrap,
.thumbbg-slider .tbg-bg img {
	width: 100%;
	height: 100%;
}

.thumbbg-slider .tbg-bg img {
	object-fit: cover;
}

.thumbbg-slider .tbg-shade {
	pointer-events: none;
}

/* Style 1: the meta is centred over the image (the content position comes
   from the control's top and translate). */
.thumbbg-slider .tbg-content {
	position: absolute;
	left: 0;
	right: 0;
	z-index: 2;
	text-align: center;
}

.thumbbg-slider .tbg-content .excerpt-wrap {
	max-width: 1140px;
	margin: 0 auto;
	color: #fff;
}

.thumbbg-slider .tbg-content .ne-title a {
	color: inherit;
	text-decoration: none;
}

/* Style 2: a box across the bottom; the excerpt opens on hover. */
.thumbbg-slider .tbg-slide.style_two .tbg-content {
	top: auto;
	right: 0;
	bottom: 0;
	left: 0;
	transform: none;
	text-align: left;
}

.thumbbg-slider .tbg-slide.style_two .excerpt-wrap {
	max-width: none;
	margin: 0;
}

.thumbbg-slider .tbg-slide.style_two .entry_excerpt {
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	color: #fff;
	transition: opacity 0.4s ease-out, max-height 0.4s ease-out;
}

.thumbbg-slider .tbg-slide.style_two:hover .entry_excerpt {
	max-height: 100px;
	opacity: 1;
	margin-top: 5px;
}

/* Title defaults (Post title controls override). */
:where(.tbg-content) .ne-title {
	margin: 0 0 8px;
	font-size: 30px;
	line-height: 1.25;
}

/* Arrows: prev at the left edge, next at the right edge, both vertically
   centred. :where() keeps the specificity low so the Slider controls' arrow
   styles still win. */
:where(.thumbbg-slider) .splide__arrows {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 3;
	pointer-events: none;
}

:where(.thumbbg-slider) .splide__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.85);
	color: #111;
	cursor: pointer;
	pointer-events: auto;
}

:where(.thumbbg-slider) .splide__arrow--prev {
	left: 12px;
}

:where(.thumbbg-slider) .splide__arrow--next {
	right: 12px;
}

:where(.thumbbg-slider) .splide__arrow svg {
	width: 50%;
	height: 50%;
	fill: currentColor;
}
