.cdf-school-gallery {
	--cdf-school-card-width: 322px;
	--cdf-school-card-gap: 20px;
	--cdf-school-image-height: 241px;
	position: relative;
	width: 100%;
}

/* Elementor keeps the previous slider values on existing widgets. */
.galeria-full-bleed .cdf-school-gallery {
	--cdf-school-card-width: 322px !important;
	--cdf-school-card-gap: 20px !important;
	--cdf-school-image-height: 241px !important;
}

.cdf-school-gallery__viewport {
	overflow-x: auto;
	overflow-y: visible;
	padding: 20px 0 28px;
	cursor: grab;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	touch-action: pan-y;
}

.cdf-school-gallery__viewport::-webkit-scrollbar {
	display: none;
}

.cdf-school-gallery__viewport.is-dragging {
	cursor: grabbing;
	user-select: none;
	scroll-snap-type: none;
}

.cdf-school-gallery__track {
	display: flex;
	gap: var(--cdf-school-card-gap);
	width: max-content;
	padding: 0 8px;
}

.cdf-school-gallery__card {
	position: relative;
	flex: 0 0 var(--cdf-school-card-width);
	box-sizing: border-box;
	margin: 0;
	padding: 25px 23.5px 67px;
	background: #fff;
	box-shadow: 10px 9px 15px rgba(31, 33, 35, 0.42);
	scroll-snap-align: start;
}

.cdf-school-gallery__tape {
	position: absolute;
	top: -20px;
	left: 50%;
	width: 110px;
	height: 42px;
	background: #99ca3c;
	opacity: 0.68;
	transform: translateX(-50%);
}

.cdf-school-gallery__image {
	display: block;
	width: 100%;
	height: var(--cdf-school-image-height) !important;
	object-fit: cover;
}

.cdf-school-gallery__viewport:focus-visible {
	outline: 2px solid #40b1b9;
	outline-offset: 4px;
}

@media (max-width: 767px) {
	.cdf-school-gallery__viewport {
		padding-top: 18px;
	}

	.cdf-school-gallery__card {
		flex-basis: min(var(--cdf-school-card-width), 78vw);
	}
}
