/* Plaza slider — promo/news carousel on Swiper, replacing the `akciok-carousel`
 * rev_slider.
 *
 * Geometry and motion mirror the slider it replaces, measured on the live one
 * rather than guessed: a square creative of min(600px, 100vw) (stage 600 tall
 * from 600px viewport up, shrinking with the viewport below that), the centre
 * slide at full size with its neighbours stepped down to 93.3% and 86.7%, 800ms
 * transitions, a 9s autoplay and an endless loop. The stepped scale is what
 * keeps the creatives off one plane, so a row of full-bleed artwork no longer
 * reads as a single band.
 */
.plaza-slider {
	--pls-size: min(600px, 100vw);   /* the rev_slider grid: square, capped at 600 */
	--pls-ease: cubic-bezier(.65, 0, .35, 1);   /* power3.inOut, as in the original */
	--pls-ink: #111;
	--pls-line: #e6e6e6;
	--pls-mat: #fff;                 /* behind a creative that is not square */

	position: relative;
	/* Full-bleed like the rev_slider it replaces (fullwidth layout), so it
	   breaks out of a constrained theme row. */
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.plaza-slider__swiper {
	overflow: hidden;
}

.plaza-slider__slide {
	width: var(--pls-size);
	height: auto;
	aspect-ratio: 1 / 1;
	display: block;
	background: var(--pls-mat);
	border: 1px solid var(--pls-line);   /* the tile edge stays readable on a white section */
	color: inherit;
	text-decoration: none;
	/* Stepped down by default; Swiper's state classes lift the centre and its
	   two neighbours. */
	transform: scale(.8667);
	transition: transform .8s var(--pls-ease), box-shadow .8s var(--pls-ease);
}
.plaza-slider__slide.swiper-slide-prev,
.plaza-slider__slide.swiper-slide-next {
	transform: scale(.9333);
}
.plaza-slider__slide.swiper-slide-active {
	transform: scale(1);
	z-index: 2;
	box-shadow: 0 18px 44px rgba(0, 0, 0, .22);
}
.plaza-slider__slide:focus-visible {
	outline: 3px solid var(--pls-ink);
	outline-offset: -3px;
}

.plaza-slider__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;   /* never crop a promo creative: prices sit at the edges */
	object-position: center;
}
/* Opt-in crop, for feeds whose creatives all share the tile ratio. */
.plaza-slider--cover .plaza-slider__img { object-fit: cover; }
.plaza-slider--cover .plaza-slider__slide { background: #fff; }

.plaza-slider__nav {
	position: absolute;
	top: 50%;
	z-index: 4;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--pls-line);
	border-radius: 0;
	background: rgba(255, 255, 255, .96);
	color: var(--pls-ink);
	box-shadow: 0 2px 12px rgba(0, 0, 0, .14);
	cursor: pointer;
	transform: translateY(-50%);
	transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.plaza-slider__nav:hover {
	background: var(--pls-ink);
	color: #fff;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .22);
}
.plaza-slider__nav:focus-visible {
	outline: 2px solid var(--pls-ink);
	outline-offset: 2px;
}
.plaza-slider__nav::before {
	content: "";
	width: 10px;
	height: 10px;
	border-right: 2px solid currentColor;
	border-top: 2px solid currentColor;
}
.plaza-slider__prev { left: clamp(8px, 2vw, 32px); }
.plaza-slider__next { right: clamp(8px, 2vw, 32px); }
.plaza-slider__prev::before { transform: rotate(-135deg) translate(-1px, -1px); }
.plaza-slider__next::before { transform: rotate(45deg) translate(-1px, -1px); }

/* One slide, nothing to move through. */
.plaza-slider.is-static .plaza-slider__nav { display: none; }

/* A single item never reaches Swiper (see plaza-slider.js), so the lone slide
   would sit at the start of the track. The rev_slider it replaces was a
   centre-aligned carousel, so centre it here too. */
.plaza-slider.is-static .swiper-wrapper { justify-content: center; }

@media (max-width: 777.98px) {
	.plaza-slider__nav { width: 40px; height: 40px; }
	.plaza-slider__nav::before { width: 9px; height: 9px; }
}

@media (prefers-reduced-motion: reduce) {
	.plaza-slider__slide { transition: none; }
}
