/* CAYK Shape Frame Image — scoped to .cayk-shape-frame */

.cayk-shape-frame {
	--csf-stage-width: 460px;
	--csf-ratio: 1 / 1;
	--csf-position: center center;
	--csf-hover-scale: 1.05;
	--csf-transition: 600ms;
	display: flex;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
}

.cayk-shape-frame .cayk-shape-frame-stage {
	position: relative;
	width: 100%;
	max-width: var(--csf-stage-width);
}

.cayk-shape-frame .cayk-shape-frame-media {
	position: relative;
	z-index: 2;
	display: block;
	overflow: hidden;
	line-height: 0;
	border-radius: 24px;
}

.cayk-shape-frame .cayk-shape-frame-media img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	aspect-ratio: var(--csf-ratio);
	object-fit: cover;
	object-position: var(--csf-position);
	border-radius: inherit;
	transition: transform var(--csf-transition) ease;
}

.cayk-shape-frame.cayk-shape-frame-zoom .cayk-shape-frame-media:hover img,
.cayk-shape-frame.cayk-shape-frame-zoom .cayk-shape-frame-media:focus-visible img {
	transform: scale(var(--csf-hover-scale));
}

.cayk-shape-frame a.cayk-shape-frame-media:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

/* Shapes */
.cayk-shape-frame .cayk-shape-frame-shape {
	position: absolute;
	z-index: 1;
	display: block;
	background-color: var(--csf-shape-color, #e6e8fb);
	border-radius: var(--csf-shape-radius, 18px);
	opacity: var(--csf-shape-opacity, 1);
	pointer-events: none;
	animation-duration: var(--csf-shape-duration, 6s);
	animation-delay: var(--csf-shape-delay, 0s);
	animation-timing-function: ease-in-out;
	animation-iteration-count: infinite;
}

.cayk-shape-frame .cayk-shape-frame-shape-front {
	z-index: 3;
}

.cayk-shape-frame .cayk-shape-frame-anim-float-y {
	animation-name: cayk-shape-frame-float-y;
}

.cayk-shape-frame .cayk-shape-frame-anim-float-x {
	animation-name: cayk-shape-frame-float-x;
}

.cayk-shape-frame .cayk-shape-frame-anim-pulse {
	animation-name: cayk-shape-frame-pulse;
}

@keyframes cayk-shape-frame-float-y {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(calc(var(--csf-shape-distance, 12px) * -1)); }
}

@keyframes cayk-shape-frame-float-x {
	0%, 100% { transform: translateX(0); }
	50% { transform: translateX(var(--csf-shape-distance, 12px)); }
}

@keyframes cayk-shape-frame-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
	.cayk-shape-frame .cayk-shape-frame-shape {
		animation: none;
	}
	.cayk-shape-frame .cayk-shape-frame-media img {
		transition: none;
	}
}
