/*
Theme Name: Beaver Builder Child Theme
Theme URI: http://www.wpbeaverbuilder.com
Version: 1.0
Description: An example child theme that can be used as a starting point for custom development.
Author: The Beaver Builder Team
Author URI: http://www.fastlinemedia.com
template: bb-theme
*/

/* =========================================
   AKASA GLOBAL LIGHTBOX
========================================= */

body #TB_overlay {
	background: rgba(12, 16, 12, .94) !important;
	opacity: 1 !important;
}

body #TB_window {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	overflow: visible !important;
}

body #TB_title {
	position: static !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
}


/* =========================================
   IMAGE
========================================= */

body #TB_window #TB_Image {
	display: block !important;
	width: auto !important;
	height: auto !important;
	max-width: calc(100vw - 180px) !important;
	max-height: calc(100vh - 130px) !important;
	margin: 0 auto !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 10px !important;
	object-fit: contain;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}


/* =========================================
   IMAGE COUNTER
========================================= */

body #TB_caption {
	position: static !important;
	float: none !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 10px 0 0 !important;
	background: transparent !important;
	color: rgba(255,255,255,.72) !important;
	text-align: center !important;
	font-size: 13px !important;
}

body #TB_secondLine {
	color: rgba(255,255,255,.72) !important;
	font-size: 13px !important;
}


/* =========================================
   DESKTOP PREV / NEXT
========================================= */

body #TB_prev,
body #TB_next {
	font-size: 0 !important;
}

body #TB_prev a,
body #TB_next a {
	position: fixed !important;
	top: 50% !important;
	z-index: 1000001 !important;

	display: flex !important;
	align-items: center;
	justify-content: center;

	width: 50px !important;
	height: 50px !important;

	margin: 0 !important;
	padding: 0 !important;

	border: 0 !important;
	border-radius: 50% !important;

	background: rgba(255,255,255,.96) !important;
	color: #184c15 !important;

	font-size: 0 !important;
	text-decoration: none !important;

	box-shadow: 0 6px 22px rgba(0,0,0,.25);

	transform: translateY(-50%);
	transition:
		transform .2s ease,
		background-color .2s ease,
		box-shadow .2s ease;
}

body #TB_prev a {
	left: 28px !important;
	right: auto !important;
}

body #TB_next a {
	right: 28px !important;
	left: auto !important;
}

body #TB_prev a::before,
body #TB_next a::before {
	font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
	font-weight: 900;
	font-size: 18px;
	line-height: 1;
}

body #TB_prev a::before {
	content: "\f053";
}

body #TB_next a::before {
	content: "\f054";
}

body #TB_prev a:hover,
body #TB_next a:hover {
	background: #fff !important;
	transform: translateY(-50%) scale(1.06);
	box-shadow: 0 8px 26px rgba(0,0,0,.3);
}


/* =========================================
   CLOSE BUTTON
========================================= */

body #TB_closeWindowButton {
	position: fixed !important;
	top: 20px !important;
	right: 20px !important;
	z-index: 1000002 !important;

	display: flex !important;
	align-items: center;
	justify-content: center;

	width: 38px !important;
	height: 38px !important;

	margin: 0 !important;
	padding: 0 !important;

	border: 1px solid rgba(255,255,255,.2) !important;
	border-radius: 50% !important;

	background: rgba(255,255,255,.12) !important;
	color: #fff !important;

	box-shadow: none !important;

	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);

	transition:
		background-color .2s ease,
		transform .2s ease;
}

body #TB_closeWindowButton:hover {
	background: rgba(255,255,255,.22) !important;
	transform: scale(1.06);
}

body #TB_closeWindowButton .tb-close-icon {
	position: static !important;
	width: 38px !important;
	height: 38px !important;
	margin: 0 !important;
	color: #fff !important;
	line-height: 38px !important;
}

body #TB_closeWindowButton .tb-close-icon::before {
	color: #fff !important;
	font-size: 20px !important;
	line-height: 38px !important;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 991px) and (min-width: 768px) {

	body #TB_window #TB_Image {
		max-width: calc(100vw - 110px) !important;
		max-height: calc(100vh - 140px) !important;
	}

	body #TB_prev a {
		left: 18px !important;
	}

	body #TB_next a {
		right: 18px !important;
	}
}


/* =========================================
   MOBILE LIGHTBOX
========================================= */

@media (max-width: 767px) {

	/* True full-screen lightbox */
	body #TB_window {
		position: fixed !important;
		inset: 0 !important;

		width: 100vw !important;
		height: 100dvh !important;

		margin: 0 !important;
		padding: 0 !important;

		background: rgba(12,16,12,.98) !important;

		transform: none !important;
		overflow: hidden !important;
	}

	/*
	 * IMAGE STAGE
	 *
	 * Instead of allowing Thickbox to decide the width,
	 * create a fixed viewport-sized image area.
	 */
	body #TB_window #TB_Image {
		position: fixed !important;

		top: calc(70px + env(safe-area-inset-top)) !important;
		left: 12px !important;
		right: 12px !important;
		bottom: calc(145px + env(safe-area-inset-bottom)) !important;

		width: calc(100vw - 24px) !important;
		height: calc(
			100dvh
			- 215px
			- env(safe-area-inset-top)
			- env(safe-area-inset-bottom)
		) !important;

		max-width: none !important;
		max-height: none !important;

		margin: 0 !important;
		padding: 0 !important;

		transform: none !important;

		object-fit: contain !important;
		object-position: center center !important;

		border: 0 !important;
		border-radius: 8px !important;

		box-shadow: none !important;

		touch-action: pan-y;
	}

	/* Image count */
	body #TB_caption {
		position: fixed !important;

		left: 0 !important;
		right: 0 !important;
		bottom: calc(92px + env(safe-area-inset-bottom)) !important;

		width: 100% !important;
		height: auto !important;

		margin: 0 !important;
		padding: 0 !important;

		text-align: center !important;

		color: rgba(255,255,255,.82) !important;
		font-size: 14px !important;
		line-height: 1 !important;

		pointer-events: none;
	}

	body #TB_secondLine {
		color: rgba(255,255,255,.82) !important;
		font-size: 14px !important;
	}

	/* Bottom navigation */
	body #TB_prev a,
	body #TB_next a {
		position: fixed !important;

		top: auto !important;
		bottom: calc(26px + env(safe-area-inset-bottom)) !important;

		display: flex !important;
		align-items: center;
		justify-content: center;

		width: 46px !important;
		height: 46px !important;

		margin: 0 !important;
		padding: 0 !important;

		border: 0 !important;
		border-radius: 50% !important;

		background: rgba(255,255,255,.97) !important;
		color: #184c15 !important;

		transform: none !important;

		box-shadow: 0 5px 18px rgba(0,0,0,.25);
	}

	body #TB_prev a {
		left: calc(50% - 57px) !important;
		right: auto !important;
	}

	body #TB_next a {
		left: calc(50% + 11px) !important;
		right: auto !important;
	}

	body #TB_prev a::before,
	body #TB_next a::before {
		font-size: 17px !important;
	}

	body #TB_prev a:hover,
	body #TB_next a:hover {
		transform: none !important;
	}

	/* Close button */
	body #TB_closeWindowButton {
		position: fixed !important;

		top: calc(14px + env(safe-area-inset-top)) !important;
		right: 14px !important;

		width: 40px !important;
		height: 40px !important;

		z-index: 1000002 !important;
	}

	body #TB_closeWindowButton .tb-close-icon {
		width: 40px !important;
		height: 40px !important;
		line-height: 40px !important;
	}

	body #TB_closeWindowButton .tb-close-icon::before {
		line-height: 40px !important;
	}
}