.carousel {
	width: 100%;
	height: 640px;
}

.carousel__slide {
	display: flex !important;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	position: relative;
	overflow: hidden;
	padding: 30px;
	background-size: cover;
	background-position-x: right;
}

.carousel-item__image {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: right top;
	z-index: 0;
}

.carousel-item__content {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1280px;
}


.carousel-item__name {
	font-size: 28px;
	font-weight: bold;
	margin-top: 28px;
}

.carousel-item__title {
	font-size: 35px;
	line-height: 47px;
	font-weight: bold;
	max-width: 440px;
	letter-spacing: 0;
	color: #333333;
}
.carousel-item__description {
	font-size: 16px;
	line-height: 22px;
	letter-spacing: 0px;
	color: #333333;
	max-width: 310px;
	margin-top: 10px;
	margin-bottom: 30px;
}

.carousel-item__link {
	font-size: 16px;
	line-height: 20px;
	letter-spacing: 0.16px;
	color: #333333;
	display: flex;
	align-items: center;
}

.carousel-item__link svg { 
	width: 20px;
	height: 16px;
	margin-left: 8px;
}

.carousel .swiper-pagination {
	bottom: 54px !important;
	justify-content: center !important;
	padding-left: 32px;
	padding-right: 32px;
}

.carousel .swiper-pagination-bullet {
	background-color: #333 !important;
	height: 6px !important;
	width: 96px !important;
	border-radius: 0;
	opacity: 0.16 !important;
	position: relative;
	z-index: 10;
}

.carousel .swiper-pagination-bullet:first-child {
	border-top-left-radius: 24px;
	border-bottom-left-radius: 24px;
}

.carousel .swiper-pagination-bullet:last-child {
	border-top-right-radius: 24px;
	border-bottom-right-radius: 24px;
}

.carousel .swiper-pagination-bullet-active {
	opacity: 1 !important;
	border-radius: 24px;
	z-index: 11;
	transform: scalex(1.1);
}

.swiper-indicator {
	position: absolute;
	width: 60px;
	height: 60px;
	top: 32px;
	right: 32px;
	z-index: 11;
}

.swiper-indicator__inner {
	position: relative;
	width: 60px;
	height: 60px;
}

.swiper-indicator__text {
	position: absolute;
	top: 0;
	left: 0;
	/* transform: translate(-50%,-50%); */
	letter-spacing: 0px;
	font-size: 16px;
	line-height: 16px;
	width: 60px;
	height: 60px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.swiper-indicator svg {
	position: absolute;
	top: 0;
	left: 0;
	/* transform: translate(-50%,-50%); */
}

.swiper-indicator .circle {
  stroke-linecap: round;
  /* animation: circle-loading 5s ease-out forwards; */
}

.swiper-indicator .circle.loading {
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
}

.swiper-indicator.loading .circle.loading {
  animation: circle-loading 15s ease-out forwards;
}

@keyframes circle-loading {
  to {
    stroke-dashoffset: 0;
  }
}

@media (max-width: 1280px) {
	.carousel {
		width: 100%;
		height: 400px;
	}
	.carousel-item__description {
		display: none;
	}
	.carousel-item__title {
		display: none;
	}
	.carousel-item__link {
		display: none;
	}
}

/*
 * Pierwotne reguły hero używały tła slajdu. Obrazy są teraz prawdziwymi
 * elementami <img> (dla LCP), dlatego na mobile odtwarzamy ten sam kadr na
 * obrazie, a nie na pustym pseudoelemencie. Wyższa specyficzność jest celowa:
 * nadpisuje istniejący Custom CSS Avady bez zmiany ustawień wizualnych strony.
 */
@media (max-width: 900px) {
	.sc-hero-carousel .carousel.carousel .carousel__slide::before {
		content: none !important;
		display: none !important;
	}

	.sc-hero-carousel .carousel.carousel .carousel__slide > .carousel-item__image {
		position: relative !important;
		inset: auto !important;
		display: block !important;
		flex: 0 0 auto !important;
		width: 100% !important;
		height: auto !important;
		aspect-ratio: 1 / 0.72;
		object-fit: cover !important;
		object-position: right center !important;
		z-index: 0 !important;
	}

	.sc-hero-carousel .carousel.carousel .carousel__slide[style*="yakebot.webp"] > .carousel-item__image {
		object-position: 78% center !important;
	}

	.sc-hero-carousel .carousel.carousel .carousel__slide[style*="zespol-smileclinic-mobile-desktop-1.webp"] > .carousel-item__image {
		object-position: 85% center !important;
	}
}
