/**
 * SuperExperts.in's Product Image Enlarge View
 *
 * Front-end lightbox styles.
 */

/*
 * Lightbox overlay.
 */
.se-product-image-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 20px;
	box-sizing: border-box;
	background: rgba(0, 0, 0, 0.90);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition:
		opacity 0.18s ease,
		visibility 0.18s ease;
}

/*
 * Open state.
 */
.se-product-image-lightbox.se-product-image-lightbox-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/*
 * Lightbox content wrapper.
 *
 * This prevents clicks on the actual image from being interpreted
 * as clicks on the background overlay.
 */
.se-product-image-lightbox-content {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-width: 0;
	min-height: 0;
	box-sizing: border-box;
}

/*
 * Enlarged product image.
 */
.se-product-image-lightbox-image {
	display: block;
	width: auto;
	height: auto;
	max-width: 95vw;
	max-height: 95vh;
	object-fit: contain;
	object-position: center;
	margin: 0 auto;
	border: 0;
	outline: none;
	box-shadow: none;
	transform: scale(0.97);
	opacity: 0;
	transition:
		transform 0.18s ease,
		opacity 0.18s ease;
}

/*
 * Image animation after opening.
 */
.se-product-image-lightbox.se-product-image-lightbox-open
	.se-product-image-lightbox-image {
	transform: scale(1);
	opacity: 1;
}

/*
 * Close button.
 */
.se-product-image-lightbox-close {
	position: absolute;
	top: 18px;
	right: 18px;
	z-index: 2;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 52px;
	height: 52px;
	padding: 0;

	border: 0;
	border-radius: 50%;

	background: rgba(0, 0, 0, 0.65);
	color: #ffffff;

	font-family: Arial, Helvetica, sans-serif;
	font-size: 38px;
	font-weight: 400;
	line-height: 1;

	cursor: pointer;

	appearance: none;
	-webkit-appearance: none;

	transition:
		background-color 0.15s ease,
		transform 0.15s ease;
}

/*
 * Close button hover.
 */
.se-product-image-lightbox-close:hover {
	background: rgba(0, 0, 0, 0.85);
	transform: scale(1.05);
}

/*
 * Close button focus.
 */
.se-product-image-lightbox-close:focus {
	outline: 2px solid #ffffff;
	outline-offset: 3px;
}

/*
 * Remove the focus outline only when focus is not keyboard-visible
 * on browsers that support :focus-visible.
 */
.se-product-image-lightbox-close:focus:not(:focus-visible) {
	outline: none;
}

/*
 * Prevent the product image from accidentally showing a pointer
 * cursor that suggests navigation when the lightbox is available.
 */
.single-fl_product .swiper-slide-inner .swiper-slide-image {
	cursor: zoom-in;
}

/*
 * While the lightbox is open, prevent the browser from selecting
 * the background page.
 */
body.se-product-image-lightbox-active {
	overflow: hidden;
}

/*
 * Respect users who prefer reduced motion.
 */
@media (prefers-reduced-motion: reduce) {

	.se-product-image-lightbox,
	.se-product-image-lightbox-image,
	.se-product-image-lightbox-close {
		transition: none;
	}

	.se-product-image-lightbox-image {
		transform: none;
	}
}

/*
 * Tablet / smaller desktop.
 */
@media (max-width: 767px) {

	.se-product-image-lightbox {
		padding: 15px;
	}

	.se-product-image-lightbox-image {
		max-width: 94vw;
		max-height: 92vh;
	}

	.se-product-image-lightbox-close {
		top: 12px;
		right: 12px;
		width: 46px;
		height: 46px;
		font-size: 34px;
	}
}

/*
 * Small mobile screens.
 */
@media (max-width: 480px) {

	.se-product-image-lightbox {
		padding: 10px;
	}

	.se-product-image-lightbox-image {
		max-width: 96vw;
		max-height: 90vh;
	}

	.se-product-image-lightbox-close {
		top: 10px;
		right: 10px;
		width: 44px;
		height: 44px;
		font-size: 32px;
	}
}