/**
 * Media Select Slider Widget Styles
 *
 * Layout: images on top, navigation bar underneath with
 * arrows at the far edges and centered description + dots.
 */

.jce-media-select-slider {
	position: relative;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overflow: hidden;
}

.jce-media-select-slider__swiper {
	width: 100%;
	height: auto;
	max-width: 100%;
	min-width: 0;
	overflow: hidden;
}

.jce-media-select-slider__swiper .swiper-wrapper {
	display: flex;
	align-items: flex-start;
	max-width: 100%;
	min-width: 0;
}

.jce-media-select-slider__slide {
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
}

.jce-media-select-slider__slide-inner {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.jce-media-select-slider__image {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	max-height: 80vh;
}

.jce-media-select-slider__description {
	text-align: center;
	font-size: var(--paragraph-xs-font-size, 0.75rem);
	line-height: var(--paragraph-xs-line-height, 1.35);
	font-family: var(--paragraph-xs-font-family, inherit);
	font-weight: var(--paragraph-xs-font-weight, 400);
	color: var(--text, #111111);
	margin: 0;
	padding: 0;
	word-break: break-word;
}

.jce-media-select-slider__description a {
	color: inherit;
	text-decoration: underline;
}

.jce-media-select-slider__description a:hover {
	text-decoration: none;
}

.jce-media-select-slider__caption {
	display: none;
}

.jce-media-select-slider__nav-bar {
	display: flex;
	align-items: center;
	margin-top: 32px;
	gap: 16px;
}

button.jce-media-select-slider__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	outline: none;
	background-color: var(--white, #ffffff);
	color: var(--text, #111111);
	border: 2px solid var(--text, #111111);
	border-radius: 100% !important;
	padding: 14px !important;
	transition: background-color 0.2s ease, color 0.2s ease, filter 0.2s ease;
}

button.jce-media-select-slider__nav:hover,
button.jce-media-select-slider__nav:focus {
	border: 2px solid var(--text, #111111);
	border-width: 2px 2px 2px 2px;
	background-color: var(--white, #ffffff);
	filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.25)) !important;
}

.jce-media-select-slider__nav svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
}

.jce-media-select-slider__center {
	flex: 1 1 auto;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 0;
	gap: 16px;
}

.jce-media-select-slider__dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

/* Swiper pagination bullets inside custom dots container */
.jce-media-select-slider__dots .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	margin: 0 !important;
	border-radius: 100%;
	background-color: #d9d9d9;
	opacity: 1;
	transition: background-color 0.2s ease;
}

.jce-media-select-slider__dots .swiper-pagination-bullet.swiper-pagination-bullet-active {
	background-color:  #111111;
}

.jce-media-select-slider__placeholder {
	padding: 40px;
	text-align: center;
	background-color: #f5f5f5;
	border: 2px dashed #ccc;
	border-radius: 8px;
	color: var(--black85);
	font-size: 14px;
}

@media screen and (max-width: 1024px) {
	.jce-media-select-slider__description {
		display: none;
	}

	.jce-media-select-slider__caption {
		display: block;
		text-align: center;
		font-size: var(--paragraph-xs-font-size, 0.75rem);
		line-height: var(--paragraph-xs-line-height, 1.35);
		font-family: var(--paragraph-xs-font-family, inherit);
		font-weight: var(--paragraph-xs-font-weight, 400);
		color: var(--text, #111111);
		margin: 0;
		padding: 8px 16px 16px;
		word-break: break-word;
	}

	.jce-media-select-slider__caption a {
		color: inherit;
		text-decoration: underline;
	}

	.jce-media-select-slider__caption a:hover {
		text-decoration: none;
	}

	.jce-media-select-slider__center {
		gap: 0;
	}

	.jce-media-select-slider__nav-bar {
		margin-top: 0;
		flex-wrap: nowrap;
		justify-content: space-between;
	}
	
	button.jce-media-select-slider__nav {
		padding: 8px !important;
	}

	button.jce-media-select-slider__nav svg {
		width: 16px !important;
		height: 16px !important;
	}
}

