.foxy
{
	--animation-speed: 1s;
	--drag-multiplier: 0;
	--animation-delay: calc(var(--animation-speed) * var(--drag-multiplier) * -1);
	--full-height: 100%;
	--full-width: 100%;
	--columns-layout: [slide-start arrows-start bullets-start] 100% [slide-end arrows-end bullets-end];
	--rows-layout: [slide-start] 1fr [arrows-start] auto [arrows-end] 1fr [slide-end bullets-start] auto [bullets-end];
    --slide-gap: 0px;
	display: grid;
	grid-template-columns: var(--columns-layout);
	grid-template-rows: var(--rows-layout);
	position: relative;
}

.foxy:where(.foxy-vertical)
{
	grid-template-columns: var(--rows-layout);
	grid-template-rows: var(--columns-layout);
}
	
.foxy.inline-foxy
{
	display: inline-grid;
}
	
.foxy > *
{
	animation-delay: var(--animation-delay);
	animation-duration: var(--animation-speed);
	animation-fill-mode: both;
	grid-column: slide;
	grid-row: slide;
	visibility: hidden;
}

/* Foxy's centre alignment is generally useful, but sometimes we don't want to have to reset alignment on everything */
.foxy:where(:not(.foxy-custom-alignment)) > *
{
	align-self: center;
	justify-self: center;
}
	
/* This is used during the first slide, to prevent the animation from playing on startup */
.foxy.foxy-no-animation > *
{
	animation: none !important;
}

.foxy.foxy-dragging > *
{
	animation-play-state: paused;
}
	
.foxy:not(.foxy-initialised) > *:first-child
{
	visibility: visible;
}
	
/* Extra specificity to override animation variants */
.foxy.foxy .foxy-arrows,
.foxy.foxy .foxy-bullets
{
	visibility: visible;
}
	
.foxy .foxy-arrows
{
	box-sizing: border-box;
	display: flex;
	grid-column: arrows;
	grid-row: arrows;
	justify-content: space-between;
	pointer-events: none;
	position: relative;
}

.foxy:where(:not(.foxy-vertical)) .foxy-arrows
{
	padding: 0 20px;
	width: 100%;
}

.foxy:where(.foxy-vertical) .foxy-arrows
{
	flex-direction: column;
	height: 100%;
	padding: 20px 0;
}
	
.foxy .foxy-arrow
{
	align-items: center;
	appearance: none;
	background: #fff;
	border: 0;
	border-radius: 50%;
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
	box-sizing: border-box;
	cursor: pointer;
	display: flex;
	height: 30px;
	justify-content: center;
	overflow: hidden;
	pointer-events: auto;
	padding-top: 7px;
	text-indent: -9999px;
	transform: translateY(-50%);
	width: 30px;
}

.foxy .foxy-arrow:hover
{
	background: #ddd;
}

.foxy .foxy-arrow[disabled]
{
	cursor: default;
	opacity: 0.5;
	pointer-events: none;
}

.foxy .foxy-arrow:after
{
	border: solid #000;
	border-width: 2px 2px 0 0;
	content: "";
	display: block;
	height: 10px;
	transform: rotate(-45deg);
	width: 10px;
}

.foxy .foxy-prev
{
	transform: rotate(-90deg);
}

.foxy:where(.foxy-vertical) .foxy-prev
{
	transform: rotate(0);
}
	
.foxy .foxy-next
{
	transform: rotate(90deg);
}

.foxy:where(.foxy-vertical) .foxy-next
{
	transform: rotate(180deg);
}
	
.foxy .foxy-bullets
{
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	grid-column: bullets;
	grid-row: bullets;
	margin: 10px 0;
	padding: 0;
}

.foxy:where(.foxy-vertical) .foxy-bullets
{
	flex-direction: column;
}
	
.foxy .foxy-bullet-item
{
	display: block;
	margin: 0 5px;
}
	
.foxy .foxy-bullet
{
	background: #fff;
	border: 0;
	border-radius: 50%;
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
	box-sizing: border-box;
	cursor: pointer;
	height: 10px;
	overflow: hidden;
	padding: 0;
	text-indent: -9999px;
	transition: background 0.2s;
	width: 10px;
}
	
.foxy .foxy-active .foxy-bullet
{
	background: #aaa;
}