
/* gallery */

.fl-gallery-main-con {
	width: 100%;
	margin: auto;
}

.fl-gallery-main-con * {

	-webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
	-webkit-touch-callout: none;
    -khtml-user-select: none;
    
}

.fl-gallery-title {
	text-align: center;
	color: #323542;
}

.fl-gallery-text {
	text-align: center;
	color: #323542;
	width: 90%;
	margin: 0 auto;
}

.fl-gallery-date {
	text-align: center;
	color: #323542;
	width: 90%;
	margin: 2rem auto 0;
	font-weight: bold;
}

.fl-gallery-date span {
	font-weight: normal;
}

.fl-gallery-images-length-con {
	text-align: center;
	color: #323542;
	width: 100%;
	margin: 2rem auto;
	font-weight: bold;
	position: relative;
}

.fl-gallery-list-indexes {
	position: absolute; 
	top: 0;
	right: 0;
	margin: 0;
	background-color: #323542;
	color: white;
	font-weight: normal;
	border-radius: 0.5rem;
	padding:  0.3rem 0.5rem;
	font-size: 8px;
}

.fl-gallery-list-indexes.fl-disabled {
	background-color: grey;
}

/* ---modal-container--- */

.fl-gallery-modal-con {
	display: -ms-flexbox;
	-ms-flex-pack: center;
	-ms-flex-align: center;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 10000;
	width: 100%;
	height: 100vh;
	padding: 0;
	margin: 0;
	position: fixed;
	top: 0;
	left: 0;
	background-color: rgba(0,0,0,1);
	transition: visibility 0.3s ease, opacity 0.3s ease;
	visibility: hidden;
	opacity: 0;
	overflow: hidden;
	white-space: nowrap;
}

.fl-gallery-modal-con.fl-show {
	visibility: visible;
	opacity: 1;
}

.fl-gallery-top-list {
	display: -ms-flexbox;
	display: flex;
	flex-flow: row nowrap;
	-ms-flex-wrap: nowrap;
	-ms-flex-direction: row;
	justify-content: flex-start;
	-ms-flex-pack: start;	
	align-content: center;
	-ms-flex-line-pack: center;
	align-items: center;
  	-ms-flex-align: center;	
  	background-color: rgba(0,0,0,0.7);
  	position: absolute;
  	transform: translateY(-100%);
  	-webkit-transform: translateY(-100%);
  	top: 0;
  	left: 0;
  	width: calc(100% - 2rem);
  	padding: 2rem 1rem;
  	z-index: 5;
  	transition: all 0.3s ease;
}

.fl-gallery-top-list.fl-show {
	transform: translateY(0);
	-webkit-transform: translateY(0);
}

.fl-gallery-top-list-toggler {
	background: none;
	color: white;
	font-size: 1.5rem;
	position: absolute;
	top: 120%;
	right: 1rem;
	cursor: pointer;
	opacity: 0.6;
	transition: opacity 0.3s ease;
}

@media only screen and (hover: hover) {

	.fl-gallery-top-list-toggler:hover {
		opacity: 1;
	}

}	

.fl-gallery-top-list-toggler:active {
	opacity: 1;
}

@keyframes topListLine {

	from { width: 0; }
	to { width: 100%; }

}

.fl-gallery-top-list-line {
	height: 0.5rem;
	width: 0;
	position: absolute;
	top: 0;
	left: 0;
	background-color: red;
	transition: width 0.3s ease;
}

.fl-gallery-top-list-line.fl-show {
	animation-name: topListLine;
  	animation-duration: 3s;
  	animation-timing-function: linear;
  	animation-iteration-count: infinite;
}

.fl-gallery-top-item:not(:last-child) {
	margin-right: 1rem;
}

.fl-gallery-top-item:nth-child(4) {
	margin-left: auto;
}

.fl-gallery-top-el {
	color: white;
}

.fl-gallery-top-btn {
	background: none;
	color: white;
	cursor: pointer;
	opacity: 0.6;
	transition: opacity 0.3s ease;
	font-size: 1rem;
}

.fl-gallery-top-btn:disabled {
	color: grey;
	opacity: 0.6 !important;
	cursor: initial;
}

@media only screen and (hover: hover) {

	.fl-gallery-top-btn:hover {
		opacity: 1;
	}

}	

.fl-gallery-top-btn:active {
	opacity: 1;
}

.fl-gallery-zoom-con {
	width: 100%;
	height: 100vh;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 4;
	overflow: auto;
	background-color: rgba(0,0,0,1);
	transition: all 0.5s ease;
	transform: scale(0);
	-webkit-transform: scale(0);
}

.fl-gallery-zoom-con.fl-show {
	transform: scale(1);
	-webkit-transform: scale(1);
}

.fl-gallery-zoom-con::-webkit-scrollbar {
	width: 10px;
	cursor: pointer;
}
.fl-gallery-zoom-con::-webkit-scrollbar-track {
	box-shadow: inset 0 0 5px grey; 
}
.fl-gallery-zoom-con::-webkit-scrollbar-thumb {
	background: #3e3f44; 
}
.fl-gallery-zoom-con::-webkit-scrollbar-thumb:hover {
	background: #323542; 
}

.fl-gallery-zoom-img {
	transition: width 0.5s ease, height 0.5s ease;
	height: auto;
}

.fl-gallery-zoom-img.fl-zoom-1 {
	width: 100%;
}

.fl-gallery-zoom-img.fl-zoom-2 {
	width: 120%;
}

.fl-gallery-zoom-img.fl-zoom-3 {
	width: 140%;
}

.fl-gallery-zoom-img.fl-zoom-4 {
	width: 160%;
}

.fl-gallery-zoom-img.fl-zoom-5 {
	width: 180%;
}

.fl-gallery-zoom-img.fl-zoom-6 {
	width: 200%;
}

.fl-gallery-zoom-close-btn {
	background: none;
	color: white;
	position: absolute;
	left: 1rem;
	bottom: 2rem;
	font-size: 1rem;
	cursor: pointer;
	opacity: 0.6;
	transition: opacity 0.3s ease;
}

@media only screen and (hover: hover) {

	.fl-gallery-zoom-close-btn:hover {
		opacity: 1;
	}

}	

.fl-gallery-zoom-close-btn:active {
	opacity: 1;
}

.fl-gallery-modal-img-main-con-parent {
	overflow: hidden;
	width: 80%;
	max-height: 100%;
	height: auto !important;
}

.fl-gallery-modal-img-main-con {
	width: 100%;
	height: 100%;
	white-space: nowrap;
	font-size: 0 !important;
	transition: all 1s ease;
	transform: translateX(0);
}


.fl-gallery-modal-img-con {
	display: inline-block;
	height: 100%;
	transition-duration: 1s;
	transition-timing-function: ease;
	position: relative;
	overflow: hidden;
	vertical-align: middle;
	width: 100%;
	padding: 0 2.5% !important;
	user-drag: none;
    -webkit-user-drag: none;
}

.fl-gallery-modal-img {
	display: block;
	margin: 0 auto;
	padding: 0;
	user-drag: none;
    -webkit-user-drag: none;
	-webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
    width: 100%;
	height: auto;
	max-height: 100%;
}

.fl-gallery-arrow {
	position: absolute !important;
	z-index: 1;
	background-color: rgba(26,27,27,0.8);
	color: white;
	text-align: center;
	border: 0;
	outline: 0 !important;
	cursor: pointer;
	top: calc(50% - 10px);
	height: 20px;
	width: 20px;
	line-height: 20px !important;
	font-size: 1vw;
}

@media only screen and (hover: hover) {

	.fl-gallery-arrow:hover {
		background-color: rgba(82, 124, 232, 0.5);
	}

}	

.fl-gallery-arrow:active {
	background-color: rgba(35, 88, 224, 0.5);
}

.fl-gallery-arrow:disabled {
	background-color: rgba(105, 105, 106, 0.5);
	cursor: initial;
}

.fl-gallery-modal-prev {
	left: 0rem;
}

.fl-gallery-modal-next  {
	right: 0rem;
}


/* list */

.fl-gallery-con-parent {
	position: relative;
	width: 100%;
	padding: 0;
	overflow: hidden;
	user-drag: none;
    -webkit-user-drag: none;
}

.fl-gallery-prev {
	left: 0;
}

.fl-gallery-next {
	right: 0;
}

.fl-gallery-con {
	margin: 0;
	white-space: nowrap;
	font-size: 0 !important;
	transition: all 1s ease;
}

.fl-gallery-list-con {
	display: inline-block;
	box-sizing: border-box;
	padding-left: 30px;
	padding-right: 30px;
}

.fl-gallery-list {
	display: -ms-flexbox;
	-ms-flex-direction: row;
	-ms-flex-wrap: wrap;
	-ms-flex-pack: start;
	-ms-flex-align: start;
	display: flex;
	flex-flow: row wrap;
	list-style-type: none;
	justify-content: flex-start;
	align-items: flex-start;
	padding: 0;
	margin: 0 !important;
	width: 100%;
}

.fl-gallery-item {
	display: inline-block;
	width: 31%;
	height: 15vw;
	padding: 0;
	margin: 3.5% 3.5% 0 0;
	overflow: hidden;
	position: relative;
}

.fl-gallery-item:first-child,
.fl-gallery-item:nth-child(2),
.fl-gallery-item:nth-child(3) {
	margin-top: 0;
}

.fl-gallery-item:nth-child(3),
.fl-gallery-item:nth-child(6),
.fl-gallery-item:nth-child(9),
.fl-gallery-item:nth-child(12),
.fl-gallery-item:nth-child(15),
.fl-gallery-item:nth-child(18),
.fl-gallery-item:nth-child(21),
.fl-gallery-item:nth-child(24),
.fl-gallery-item:nth-child(27),
.fl-gallery-item:nth-child(30) {
	margin-right: 0;
}

.fl-gallery-link {
	display: inline-block;
	width: 100%;
	height: 100%;
	text-decoration: none;
	outline: 0 !important;
	overflow: hidden;
	user-drag: none;
    -webkit-user-drag: none;
}

.fl-gallery-link::before {
	content: " ";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	transition: background-color 0.5s ease;
	background-color: rgba(50,53,66,0);
}

@media (hover: hover) {

	.fl-gallery-link:hover::before {
		background-color: rgba(50,53,66,0.7);
	}

}		

.fl-gallery-link:active::before {
	opacity: 1;
	background-color: rgba(50,53,66,0.7);
}

.fl-gallery-img {
	width: 100%;
	height: auto;
	min-height: 100%;
	user-drag: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.fl-gallery-dots-con {
	z-index: 1;
	width: 80%;
	margin: 4vw auto 0 !important;
	font-size: 0;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	vertical-align: middle;
}

.fl-gallery-dots-list {
	width: 5vw;
	display: inline-block;
	font-size: 0 !important;
	white-space: nowrap;
	overflow: hidden;
	vertical-align: middle;
	border-radius: 15px;
}

.fl-gallery-dot,
.fl-gallery-smaller-dot {
	padding: 0;
	border: 0;
	outline: 0 !important;
	cursor: pointer;
	display: inline-block;
	vertical-align: middle;
	width: 1vw;
	height: 1vw;
	background-color: grey;
	border-radius: 50%;
	margin-right: 1vw;
	transition: all 0.5s ease !important;
}
.fl-gallery-dots-list .fl-gallery-dot:last-child {
	margin-right: 0;
}

@media (hover: hover) {

	.fl-gallery-smaller-dot:hover {
	  -webkit-transform: scale(1.3);
	  -ms-transform: scale(1.3);
	  transform: scale(1.3);
	}

	.fl-gallery-dot:hover,
	.fl-gallery-smaller-dot:hover {
		background-color: #696868;
	}

	.fl-gallery-dot.fl-active:hover {
		background-color: #3667e6;
	}

}	

.fl-gallery-dot:active,
.fl-gallery-smaller-dot:active {
	background-color: #505050;
}

.fl-gallery-smaller-dot:active {
  -webkit-transform: scale(1.5);
  -ms-transform: scale(1.5);
  transform: scale(1.5);
}

.fl-gallery-dot.fl-active:active {
	background-color: #2456d8;
}

.fl-gallery-smaller-dot {
	width: 0.7vw;
	height: 0.7vw;
	vertical-align: middle;
	visibility: hidden;
	opacity: 0;
	transition-duration: 0.5s;
	transition-property: visibility, opacity;
}

.fl-gallery-smaller-dot.fl-active {
	visibility: visible;
	opacity: 1;
}

.fl-gallery-dot.fl-active {
	background-color: #527ce8;
}

.fl-gallery-prev-dot {
	margin-right: 1vw;
}

.fl-gallery-next-dot {
	margin-left: 1vw;
}
	
@media only screen and (min-width: 992px) {

	.fl-gallery-main-con {
		width: 100%;
	}
	
	.fl-gallery-list-con {
		padding-left: 100px;
		padding-right: 100px;
	}

	.fl-gallery-arrow {
		top: calc(50% - 25px);
		height: 50px;
		width: 50px;
		line-height: 50px !important;
		font-size: 16px;
	}

	.fl-gallery-list-indexes {
		border-radius: 1rem;
		padding:  0.5rem 1rem;
		font-size: 16px;
	}
	
}

@media only screen and (min-width: 576px) {

		.fl-gallery-modal-img-main-con-parent {
			height: 80% !important;
			max-height: auto;
		}

		.fl-gallery-modal-img {
			width: 100%;
			height: auto;
			min-height: 100%;
			max-height: initial;
		}

	}

}
/* the-end-of-gallery */