/* général */
.glide {
	position: relative;
	--utc-slider-height: 430px;
}
.glide__arrow {
	position: absolute;
	top: 50%;
	cursor: pointer;
	background: none;
	color: white;
	font-weight: bold;
	box-shadow: 0 0 3px #0009;
	border: none;
	padding: 0;
	margin-top: -2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--utc-main-color);
	transition: 0.2s;
}
.glide__arrow:hover {
	background: var(--utc-accent-color);
}
.glide__arrow--left {
	left: 10px;
}
.glide__arrow--right {
	right: 10px;
}
.glide__arrow .dashicons {
	font-size: 4rem;
	height: 1em;
	width: 1em;
}

.glide__slide > .wp-block-cover,
.glide__slide > .wp-block-group,
.glide__slide > .wp-block-columns {
	flex-grow: 1;
}
.glide__slides {
	justify-content: stretch;
	min-height: var(--utc-slider-height);
}
.glide__slide {
	background-size: cover;
	background-position: center;
	display: flex;
	flex-direction: column;
	height: unset !important; /* c'est dégueulasse */
}
.utc-page ul.glide__slides {
	padding-left: 0;
	margin-bottom: 0;
}
.utc-page li.glide__slide {
	margin-bottom: 0;
}
.utc-slider {
	background-position: center;
	background-size: cover;
}

.glide__bullets {
	position: absolute;
	bottom: 20px;
	width: 100%;
	display: flex;
	justify-content: center;
	gap: 5px;
}
.glide__bullet {
	background: white;
	border: 2px solid var(--utc-main-color);
	border-radius: 50%;
	cursor: pointer;
	width: 13px;
	height: 13px;
	transition: 0.2s;
}
.glide__bullet:hover {
	background: var(--utc-accent-color);
}
.glide__bullet--active {
	background: var(--utc-main-color);
	border-color: white;
}

/* admin slider */
.utc-slider-admin {
	display: none;
	position: absolute;
	top: 5px;
	gap: 8px;
	padding: 0 5px;
	right: 0;
	z-index: 3;
}
.glide__slide .utc-slider-admin {
	right: unset;
}
.glide:hover .utc-slider-admin {
	display: flex;
}
.utc-slider-admin a {
	text-decoration: none;
	background: #fffe;
	color: var(--utc-main-color);
	border: 1px solid var(--utc-main-color);
	padding: 5px 10px;
	font-size: 1.3rem;
}
.utc-slider-admin a:hover {
	background: var(--utc-accent-color);
}

/* slider des vidéos */
.utc-video-slider iframe {
	border: none;
	width: 100%;
	height: 200px;
	text-align: center;
}
.utc-video-slider a {
	text-decoration: none;
}
.utc-video-slider p {
	padding-left: 10px;
	text-align: center;
}
.utc-video-slider .glide__arrow {
	top: 120px;
}
.utc-arrows-outside .glide__arrow--left {
	left: -70px;
}
.utc-arrows-outside .glide__arrow--right {
	right: -70px;
}

/* responsive des sliders */
@media (max-width: 1020px) {
	.glide__arrow {
		position: static;
	}
	.glide__arrows {
		position: absolute;
		bottom: 40px;
		width: 100%;
		display: flex;
		justify-content: center;
		gap: 10px;
	}
	.utc-arrows-outside .glide__arrows {
		position: static;
	}
}