.wag-gallery {
	position: relative;
	display: block;
	width: 100%;
	touch-action: pan-y;
}

.wag-gallery__link,
.wag-gallery__slide,
.wag-gallery__image {
	display: block;
	width: 100%;
	height: 100%;
}

.wag-gallery__link {
	display: grid;
}

.wag-gallery__slide {
	grid-area: 1 / 1;
	opacity: 1;
	visibility: visible;
	transition: opacity 260ms ease, visibility 0s linear 0s;
}

.wag-gallery__slide[aria-hidden="true"] {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 260ms ease, visibility 0s linear 260ms;
}

.wag-gallery__image {
	object-fit: cover;
}

.wag-gallery__control {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: grid;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	place-items: center;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.94);
	color: #111;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.16);
	cursor: pointer;
	opacity: 0;
	transition: opacity 160ms ease, transform 160ms ease;
}

.wag-gallery__control span {
	font-size: 2rem;
	line-height: 1;
}

.wag-gallery__control--previous {
	left: 0.75rem;
}

.wag-gallery__control--next {
	right: 0.75rem;
}

.wag-gallery:hover .wag-gallery__control,
.wag-gallery:focus-within .wag-gallery__control,
.wag-gallery:focus .wag-gallery__control {
	opacity: 1;
}

.wag-gallery__control:hover {
	transform: translateY(-50%) scale(1.06);
}

.wag-gallery__control:focus-visible,
.wag-gallery:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

@media (hover: none), (pointer: coarse) {
	.wag-gallery__control {
		opacity: 1;
	}
}
