/**
 * Penrose Ball Scene 113 - Frontend-Styles
 */

.pbs113-scene {
	--pbs113-tread-color: #ffffff;
	--pbs113-light-color: #cccccc;
	--pbs113-dark-color: #999999;
	--pbs113-stroke-color: #000000;
	--pbs113-stroke-width: 1;
	--pbs113-ball-size: 6%;
	--pbs113-aspect: 283 / 372;

	position: relative;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	overflow: hidden;
	line-height: 0;
	touch-action: manipulation;
	-webkit-user-select: none;
	user-select: none;
}

.pbs113-scene__inner {
	position: relative;
	width: 100%;
	aspect-ratio: 372 / 283;
}

.pbs113-scene--crop .pbs113-scene__inner {
	aspect-ratio: auto;
	height: 100%;
	min-height: 160px;
}

.pbs113-svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
}

.pbs113-svg--front {
	z-index: 4;
	pointer-events: none;
}

.pbs113-svg--back {
	z-index: 1;
}

.pbs113-lines {
	stroke: var(--pbs113-stroke-color);
	stroke-width: var(--pbs113-stroke-width);
	stroke-linejoin: round;
}

.pbs113-fill-tread {
	fill: var(--pbs113-tread-color);
}

.pbs113-fill-light {
	fill: var(--pbs113-light-color);
}

.pbs113-fill-dark {
	fill: var(--pbs113-dark-color);
}

.pbs113-balls {
	position: absolute;
	inset: 0;
	z-index: 3;
}

.pbs113-ball {
	position: absolute;
	z-index: 3;
	width: var(--pbs113-ball-size);
	aspect-ratio: 1 / 1;
	left: 0;
	top: 0;
	border-radius: 50%;
	overflow: hidden;
	background: radial-gradient(circle at 35% 30%, #f5f5f5, #b9b9b9 70%, #8b8b8b 100%);
	transform: translate3d(-50%, -50%, 0) scale(1);
	will-change: transform, left, top;
	pointer-events: auto;
	cursor: pointer;
}

.pbs113-ball:focus-visible {
	outline: 2px solid #4f9dff;
	outline-offset: 2px;
}

.pbs113-scene--shadow .pbs113-ball {
	filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.35));
}

.pbs113-ball__texture {
	position: absolute;
	inset: -15%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border-radius: 50%;
	transform-origin: 50% 50%;
	will-change: transform;
}

.pbs113-ball__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
	pointer-events: none;
}

.pbs113-sparkle {
	position: absolute;
	width: calc(var(--pbs113-ball-size) * 1.7);
	aspect-ratio: 1 / 1;
	left: 0;
	top: 0;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.55) 35%, rgba(255, 255, 255, 0) 70%);
	pointer-events: none;
	z-index: 5;
	transform: translate3d(-50%, -50%, 0) scale(0.3);
	opacity: 0.9;
	animation: pbs113-sparkle-burst 480ms ease-out forwards;
}

@keyframes pbs113-sparkle-burst {
	0% {
		opacity: 0.9;
		transform: translate3d(-50%, -50%, 0) scale(0.3);
	}
	55% {
		opacity: 0.7;
	}
	100% {
		opacity: 0;
		transform: translate3d(-50%, -50%, 0) scale(1.5);
	}
}

.pbs113-scene__toggle {
	position: absolute;
	inset: 0;
	z-index: 2;
	width: 100%;
	height: 100%;
	background: transparent;
	border: 0;
	margin: 0;
	padding: 0;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.pbs113-scene__toggle:focus-visible {
	outline: 2px solid #4f9dff;
	outline-offset: -2px;
}

/* Lightbox */

.pbs113-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 5vh 5vw;
	opacity: 0;
	visibility: hidden;
	transition: opacity 180ms ease;
}

.pbs113-lightbox[hidden] {
	display: none;
}

.pbs113-lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

.pbs113-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 10, 10, 0.86);
	cursor: pointer;
}

.pbs113-lightbox__figure {
	position: relative;
	z-index: 1;
	margin: 0;
	max-width: 90vw;
	max-height: 86vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	line-height: 1.4;
}

.pbs113-lightbox__img,
.pbs113-lightbox__video {
	display: block;
	max-width: 90vw;
	max-height: 78vh;
	width: auto;
	height: auto;
	border-radius: 4px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
	background: #111;
}

.pbs113-lightbox__img {
	cursor: pointer;
}

.pbs113-lightbox__img[hidden],
.pbs113-lightbox__video[hidden] {
	display: none;
}

.pbs113-lightbox__caption {
	margin-top: 14px;
	color: #f4f4f4;
	text-align: center;
	max-width: 80vw;
}

.pbs113-lightbox__title {
	margin: 0 0 6px;
	font-size: 18px;
	font-weight: 600;
	color: #ffffff;
}

.pbs113-lightbox__title[hidden],
.pbs113-lightbox__desc[hidden],
.pbs113-lightbox__cta[hidden] {
	display: none;
}

.pbs113-lightbox__desc {
	margin: 0 0 10px;
	font-size: 14px;
	line-height: 1.5;
	color: #dcdcdc;
}

.pbs113-lightbox__cta {
	display: inline-block;
	padding: 9px 20px;
	border-radius: 999px;
	background: #ffffff;
	color: #111111;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background 150ms ease, transform 150ms ease;
}

.pbs113-lightbox__cta:hover,
.pbs113-lightbox__cta:focus-visible {
	background: #e2e2e2;
	transform: translateY(-1px);
}

.pbs113-lightbox__close {
	position: absolute;
	top: 16px;
	right: 20px;
	z-index: 2;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 0;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.pbs113-lightbox__close:hover,
.pbs113-lightbox__close:focus-visible {
	background: rgba(255, 255, 255, 0.24);
	outline: none;
}

@media (min-width: 320px) {
	.pbs113-scene {
		min-width: 160px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pbs113-ball,
	.pbs113-ball__texture {
		transition: none !important;
	}
	.pbs113-lightbox {
		transition: none !important;
	}
	.pbs113-sparkle {
		display: none !important;
	}
}
