/*
 * I Already Won Fitness: Results Slider  (v1.0.0)
 * Prompt 13 (CUSTOM-AVADA-ELEMENT v5.6). Styles [iawf_results_slider] only.
 * Root: .iawf-results. Host: the Container with CSS Class iawf-results-host
 * (its Overflow Hidden, padding and columns stay in the Avada Builder).
 *
 * Shared from assets/css/iawf-components.css (IAWF-RCM-20261019):
 *   --iawf-icon-arrow, --iawf-ease-out
 * Breakpoint: Avada Medium (1024px), where the Results columns stack.
 */

/* Host: the backdrop sits behind the Container's content */
.iawf-results-host {
	position: relative;
	isolation: isolate;
}

.iawf-results__backdrop {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	pointer-events: none;
}

.iawf-results__backdrop[hidden] {
	display: none;
}

.iawf-results__backdrop .iawf-results__bg {
	position: absolute;
	top: -40px;
	left: -40px;
	width: calc(100% + 80px);
	height: calc(100% + 80px);
	max-width: none;
	object-fit: cover;
	filter: blur(40px) brightness(.35);
	opacity: 0;
	transition: opacity 1s;
}

.iawf-results__backdrop .iawf-results__bg.is-current {
	opacity: 1;
}

/* Photo card */
.iawf-results {
	width: 100%;
}

.iawf-results .iawf-results__frame {
	position: relative;
	width: 100%;
	max-width: 600px;
	margin: 0 auto;
	aspect-ratio: 1 / 1;
	border-radius: 24px;
	overflow: hidden;
	background: var(--awb-color2);
	touch-action: pan-y;
}

.iawf-results .iawf-results__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	opacity: 0;
	transition: opacity .6s ease;
}

.iawf-results .iawf-results__img.is-current {
	opacity: 1;
}

/* Arrow buttons */
.iawf-results__nav {
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 16px;
	display: none;
	justify-content: space-between;
	align-items: center;
	pointer-events: none;
}

.iawf-results--ready .iawf-results__nav {
	display: flex;
}

.iawf-results .iawf-results__btn {
	position: relative;
	width: 44px;
	height: 44px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .65);
	color: var(--awb-color8);
	box-shadow: none;
	cursor: pointer;
	overflow: hidden;
	pointer-events: auto;
	transition: background-color .25s, color .25s;
}

.iawf-results__arrow {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.iawf-results__arrow::before {
	content: "";
	display: block;
	width: 15px;
	height: 11px;
	background-color: currentColor;
	-webkit-mask: var(--iawf-icon-arrow) center / contain no-repeat;
	mask: var(--iawf-icon-arrow) center / contain no-repeat;
}

.iawf-results__btn--prev .iawf-results__arrow::before {
	transform: rotate(180deg);
}

/* Arrow slides out the way it points and back in from the other side, once per hover */
@keyframes iawf-results-next {
	0% {
		transform: none;
		opacity: 1;
	}
	45% {
		transform: translateX(18px);
		opacity: 0;
	}
	46% {
		transform: translateX(-18px);
		opacity: 0;
	}
	100% {
		transform: none;
		opacity: 1;
	}
}

@keyframes iawf-results-prev {
	0% {
		transform: none;
		opacity: 1;
	}
	45% {
		transform: translateX(-18px);
		opacity: 0;
	}
	46% {
		transform: translateX(18px);
		opacity: 0;
	}
	100% {
		transform: none;
		opacity: 1;
	}
}

@media (hover: hover) and (pointer: fine) {
	.iawf-results .iawf-results__btn:hover {
		background: var(--awb-color8);
		color: var(--awb-color1);
	}
	.iawf-results .iawf-results__btn--next:hover .iawf-results__arrow {
		animation: iawf-results-next .52s var(--iawf-ease-out) 1;
	}
	.iawf-results .iawf-results__btn--prev:hover .iawf-results__arrow {
		animation: iawf-results-prev .52s var(--iawf-ease-out) 1;
	}
}

.iawf-results .iawf-results__btn:focus {
	outline: none;
}

.iawf-results .iawf-results__btn:focus-visible {
	background: var(--awb-color8);
	color: var(--awb-color1);
	outline: 2px solid var(--awb-color8);
	outline-offset: 3px;
}

.iawf-results .iawf-results__btn--next:focus-visible .iawf-results__arrow {
	animation: iawf-results-next .52s var(--iawf-ease-out) 1;
}

.iawf-results .iawf-results__btn--prev:focus-visible .iawf-results__arrow {
	animation: iawf-results-prev .52s var(--iawf-ease-out) 1;
}

/* Stacked layout (Avada Medium and Small): the card fits the screen height */
@media (max-width: 1024px) {
	.iawf-results .iawf-results__frame {
		max-width: min(100%, 62svh);
	}
}

@media (prefers-reduced-motion: reduce) {
	.iawf-results__backdrop .iawf-results__bg,
	.iawf-results .iawf-results__img,
	.iawf-results .iawf-results__btn {
		transition: none;
	}
	.iawf-results .iawf-results__btn .iawf-results__arrow {
		animation: none !important;
	}
}
