#slidermobile {
	display: none;
}

.flexslider {
	background: transparent !important;
	border: none !important;
}

.flex-next::before {
	content: '' !important;
	background-image: url(/wp-content/themes/ilovesylt/assets/images/chevron-solid-right.svg);
	background-size: contain;
	font-size: 0 !important;
	height: 40px;
	width: 40px;
}


.flex-prev::before {
	content: '' !important;
	background-image: url(/wp-content/themes/ilovesylt/assets/images/chevron-solid-left.svg);
	background-size: contain;
	font-size: 0 !important;
	height: 40px;
	width: 40px;
}

.flex-direction-nav a {
	margin-top: -15px !important;
	height: 30px !important;
}

.fit-height .flex-direction-nav {
	height: 0 !important;
}

.flexslider .flex-direction-nav a {
	opacity: 1;
}

.flex-direction-nav .flex-next {
	right: -120px !important;
	width: 40px !important;
	height: 40px !important;
	z-index: 1;
}

.flex-direction-nav .flex-prev {
	left: -120px !important;
	width: 40px !important;
	height: 40px !important;
	z-index: 1;
}

.unit-template-default .flexslider .slides>li {
	height: 480px;
}

#sliderdesktop li .grid-layout div:first-child {
	grid-column: 1 / 3;
	grid-row: 1 / 3;
	max-height: 480px;
}

#sliderdesktop li .grid-layout div:not(:first-child) {
	max-height: 240px;
}

#sliderdesktop li .grid-layout {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr);
	grid-template-rows: repeat(2, 1fr);
	padding: 0;
	margin: 0;
	list-style-type: none;
	overflow: hidden;
	grid-column-gap: 20px;
	grid-row-gap: 20px;
	border-radius: var(--border-radius);
}

.flex-control-nav {
	display: none;
}


.flexslider .slides img {
	border-radius: var(--beon-border-radius);
}

/* Gallery Pop up*/
.image-gallery-btn {
	cursor: pointer;
}

.gallery-popup {
	background-color: white;
	position: fixed;
	bottom: 0;
	left: 0;
	height: 100%;
	width: 100vw;
	max-width: 100vw;
	z-index: 999;
	display: flex;
	flex-direction: column;
	padding: 50px;
	overflow: auto;
}

.gallery-popup-image-wrapper {
	max-width: 800px;
	margin: 0 auto;
	display: grid;
	gap: 20px 20px;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: repeat(2, 1fr);
	align-items: stretch;
	justify-items: stretch;
}

.gallery-popup-image-wrapper div:nth-child(3n) {
	grid-column: span 2;
}

.gallery-popup-close {
	position: fixed;
	top: 50px;
	cursor: pointer;
	height: 50px;
	width: 50px;
	border-radius: 50%;
}

.gallery-popup-image {
	height: 300px;
	width: 100%;
	overflow: hidden;
	border-radius: var(--beon-border-radius);
}

.gallery-popup-image img {
	height: 100%;
	width: 100%;
	object-fit: cover;
}

.gallery-popup-image:hover {
	filter: brightness(0.7);
}

/*TODO Check for errors*/
.c-lightbox.open {
	overflow-y: hidden;
	overflow: hidden;
}

.video-btn {
	background-color: var(--beon-secondary-button-color) !important;
	position: absolute;
	bottom: 20px;
	left: 20px;
	border: 0px;
	z-index: 1;
	font-weight: 400 !important;
	font-size: 15px !important;
	display: flex;
	gap: 10px;
	align-items: center;
	justify-content: center;
	height: 50px;
	padding: 0px 20px !important;
}
.video-btn img {
	width: 18px !important;
	height: 18px !important;
}
button.photos-btn {
	background-color: var(--beon-secondary-button-color) !important;
	position: absolute;
	bottom: 14%;
    left: 88%;
	border: 0px;
	z-index: 1;
	transform: translate(-50%, -50%);
	font-weight: 400 !important;
	font-size: 15px !important;
	display: flex;
	gap: 10px;
	align-items: center;
	justify-content: center;
	height: 50px;
	padding: 0px 25px;
}

@media only screen and (max-width: 1550px) and (min-width:1024px) {
	.flex-direction-nav .flex-next {
		right: -50px !important;
		width: 40px !important;
		height: 40px !important;
		z-index: 1;
	}

	.flex-direction-nav .flex-prev {
		left: -50px !important;
		width: 40px !important;
		height: 40px !important;
		z-index: 1;
	}

	.unit-template-default .flexslider .slides>li {
		height: 360px;
	}
	button.photos-btn{
		bottom: 8%;
	}
	#sliderdesktop li .grid-layout div:first-child {
		grid-column: 1 / 3;
		grid-row: 1 / 3;
		max-height: 360px;
	}

	#sliderdesktop li .grid-layout div:not(:first-child) {
		max-height: 170px;
	}

	.gallery-popup {
		padding-top: 80px;
	}

	.gallery-popup-image {
		height: 300px;
	}

	.gallery-popup-close {
		top: 20px;
	}
}

@media only screen and (max-width: 767px) {
	#slidermobile {
		display: block;
		height: 280px;
	}

	.flexslider .slides img {
		border-radius: 0px;
	}

	.unit-template-default .flexslider .slides>li {
		height: 280px;
	}

	#sliderdesktop {
		display: none;
	}

	#slidermobile li img {
		height: 280px;
	}

	.flex-direction-nav .flex-next,
	.flex-direction-nav .flex-prev {
		display: none;
	}

	.flex-control-nav {
		display: block !important;
		bottom: 20px;
	}

	.swiper-pagination {
		display: flex;
		overflow-x: auto;
		white-space: nowrap;
		justify-content: center;
	}

	.swiper-pagination .swiper-pagination-bullet {
		margin: 0 3px;
	}

	.flex-control-nav {
		bottom: 20px;
		max-width: 100px;
		overflow-x: hidden;
		height: 10px;
		display: flex;
		left: 50%;
		transform: translate(-50%, -50%);

	}

	.flex-control-nav li {
		display: inline-block;
		margin-right: 5px;
	}

	.flex-control-paging li a.flex-active {
		background: #ffff;
		cursor: default;
		height: 8px;
		width: 8px;
	}
	.flex-control-nav li {
		opacity: 0.5;
	}

	.flex-control-nav li.active {
		opacity: 1;
	}

	.gallery-popup {
		padding: 20px;
		padding-top: 30px;
	}

	.gallery-popup-image-wrapper {
		gap: 10px;
	}

	.gallery-popup-image {
		height: 180px;
	}
	.video-btn{
		position: revert;
    	width: 200px;
	}
}