/*
Theme Name: Bridge Child
Theme URI: http://bridgelanding.qodeinteractive.com/
Description: A child theme of Bridge Theme
Author: Qode Interactive
Author URI: https://qodeinteractive.com
Version: 1.0.0
Text Domain: bridge
Template: bridge
*/



/* ----------------------------------------- Custom product gallery --------------------------------------- */
/* ----------------------------------------- Custom product gallery --------------------------------------- */
.custom-product-gallery {
	width: 100%;
}

.woocommerce.single-product.qode-product-single-tabs-on-bottom .product .images.qode-add-gallery-and-zoom-support {
    width: 100% !important;
    margin: 0 !important;
}

.custom-product-gallery__inner {
	display: grid;
	grid-template-columns: 96px 1fr;
	gap: 24px;
	align-items: start;
}

.custom-product-gallery__thumbs {
	padding: 2px;
	overflow: scroll;
	height: 500px;
}

.custom-product-gallery__thumb {
	display: block;
	width: fit-content;
	margin: 16px 0;
	padding: 0;
	border: 0;
	background: transparent;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	opacity: .7;
	transition: opacity .25s ease, transform .25s ease, box-shadow .25s ease;
}

.custom-product-gallery__thumb:hover {
	opacity: 1;
	transform: translateY(-2px);
}

.custom-product-gallery__thumb.is-active {
	opacity: 1;
	box-shadow: 0 0 0 2px #111;
}

.custom-product-gallery__thumb img {
	display: block;
	width: 96px;
	height: 96px;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.custom-product-gallery__main {
	width: 100%;
}

.custom-product-gallery__main-trigger {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: zoom-in;
	border-radius: 24px;
	overflow: hidden;
}

.custom-product-gallery__main-image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 16px;
}

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

.custom-product-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
}

.custom-product-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .82);
	backdrop-filter: blur(3px);
}

.custom-product-lightbox__dialog {
	position: relative;
	z-index: 2;
	width: min(92vw, 1200px);
	height: min(88vh, 900px);
	margin: 4vh auto;
	display: grid;
	grid-template-columns: 64px 1fr 64px;
	align-items: center;
}

.custom-product-lightbox__content {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: 24px;
}

.custom-product-lightbox__image {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 18px;
}

.custom-product-lightbox__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 999px;
	background: rgba(255,255,255,.12);
	color: #fff;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.custom-product-lightbox__nav {
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 999px;
	background: rgba(255,255,255,.12);
	color: #fff;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	margin: 0 auto;
}

body.custom-lightbox-open {
	overflow: hidden;
}

@media (max-width: 767px) {
	.custom-product-gallery__inner {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.custom-product-gallery__thumbs {
		order: 2;
		flex-direction: row;
		overflow-x: auto;
		padding-bottom: 6px;
		scrollbar-width: thin;
	}

	.custom-product-gallery__thumb {
		flex: 0 0 78px;
	}

	.custom-product-gallery__main {
		order: 1;
	}

	.custom-product-lightbox__dialog {
		width: 100vw;
		height: 100vh;
		margin: 0;
		grid-template-columns: 52px 1fr 52px;
	}

	.custom-product-lightbox__content {
		padding: 16px;
	}
}

/* ----------------------------------------- Custom product gallery --------------------------------------- */
/* ----------------------------------------- Custom product gallery --------------------------------------- */