/**
 * Product gallery navigation.
 *
 * PhotoSwipe hides its arrows on touch devices by default. Keep them visible
 * on phones and tablets, and draw them in CSS so they remain crisp at every
 * screen density.
 */

/*
 * WooCommerce normally fades inactive thumbnails to 50% opacity. On T-Rent's
 * yellow page background that makes the images look yellow. Keep every
 * thumbnail at its original colour instead.
 */
.woocommerce div.product div.images .flex-control-thumbs li img,
.woocommerce div.product div.images .flex-control-thumbs li .woocommerce-product-gallery__video-thumbnail-preview {
	opacity: 1 !important;
}

.pswp.pswp--touch .pswp__button--arrow--left,
.pswp.pswp--touch .pswp__button--arrow--right {
	visibility: visible;
}

button.pswp__button--arrow--left,
button.pswp__button--arrow--right,
button.pswp__button--arrow--left:hover,
button.pswp__button--arrow--right:hover {
	top: 50%;
	width: 64px;
	height: 96px;
	margin-top: 0;
	transform: translateY(-50%);
	background: transparent !important;
	-webkit-tap-highlight-color: transparent;
}

button.pswp__button--arrow--left::before,
button.pswp__button--arrow--right::before {
	content: "";
	top: 50%;
	width: 25px;
	height: 25px;
	margin-top: -13px;
	background: none !important;
	border-color: rgba(255, 255, 255, 0.72);
	border-style: solid;
	border-width: 0 4px 4px 0;
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.65));
	transition: border-color 160ms ease, filter 160ms ease;
}

button.pswp__button--arrow--left::before {
	left: 21px;
	transform: rotate(135deg);
}

button.pswp__button--arrow--right::before {
	right: 21px;
	transform: rotate(-45deg);
}

button.pswp__button--arrow--left:hover::before,
button.pswp__button--arrow--right:hover::before,
button.pswp__button--arrow--left:focus-visible::before,
button.pswp__button--arrow--right:focus-visible::before {
	border-color: rgba(255, 255, 255, 1);
	filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.8));
}

button.pswp__button--arrow--left:focus-visible,
button.pswp__button--arrow--right:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.9);
	outline-offset: -7px;
}

@media (max-width: 480px) {
	button.pswp__button--arrow--left,
	button.pswp__button--arrow--right,
	button.pswp__button--arrow--left:hover,
	button.pswp__button--arrow--right:hover {
		width: 56px;
	}

	button.pswp__button--arrow--left::before {
		left: 16px;
	}

	button.pswp__button--arrow--right::before {
		right: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	button.pswp__button--arrow--left::before,
	button.pswp__button--arrow--right::before {
		transition: none;
	}
}
