.gallery-header {
	margin-bottom: 22px;
}

.gallery-title-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.gallery-title-row h4 {
	margin-bottom: 0;
}

.gallery-count {
	color: #b8b8b8;
	font-size: 13px;
	text-transform: uppercase;
}

.gallery-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 28px 0 24px;
	border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.gallery-tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 16px;
	margin-bottom: -1px;
	border: 1px solid rgba(255, 255, 255, .12);
	border-bottom-color: transparent;
	background: rgba(255, 255, 255, .04);
	color: #ddd;
	font-weight: bold;
	text-decoration: none;
	border-radius: 6px 6px 0 0;
}

.gallery-tab:hover,
.gallery-tab:focus {
	color: #fff;
	background: rgba(255, 255, 255, .08);
	text-decoration: none;
	outline: none;
}

.gallery-tab.active {
	color: #fff;
	background: #c0187a;
	border-color: #c0187a;
}

.gallery-tab-count {
	color: inherit;
	font-size: 12px;
	opacity: .82;
}

.gallery-panel[hidden] {
	display: none !important;
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 18px;
	margin-top: 18px;
}

.gallery-tile {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #111;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 6px;
	box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
}

.gallery-tile:hover,
.gallery-tile:focus {
	border-color: #c0187a;
	box-shadow: 0 14px 30px rgba(0, 0, 0, .34);
	outline: none;
}

.gallery-tile img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	transition: transform .18s ease, opacity .18s ease;
}

.gallery-tile:hover img,
.gallery-tile:focus img {
	transform: scale(1.03);
	opacity: .92;
}

.gallery-empty {
	padding: 34px 0;
	color: #bbb;
	font-size: 16px;
}

.gallery-lightbox-chrome[hidden] {
	display: none !important;
}

.gallery-lightbox-download {
	position: fixed;
	z-index: 1000002;
	top: 16px;
	right: 58px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 0 14px;
	border: 1px solid rgba(255, 255, 255, .22);
	background: rgba(0, 0, 0, .56);
	color: #fff;
	border-radius: 5px;
	font-weight: bold;
	text-decoration: none;
	white-space: nowrap;
}

.gallery-lightbox-download:hover,
.gallery-lightbox-download:focus {
	background: #c0187a;
	border-color: #c0187a;
	color: #fff;
	text-decoration: none;
	outline: none;
}

.gallery-lightbox-counter {
	position: fixed;
	z-index: 1000002;
	top: 16px;
	left: 24px;
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0 13px;
	border: 1px solid rgba(255, 255, 255, .18);
	background: rgba(0, 0, 0, .56);
	color: #fff;
	border-radius: 5px;
	font-size: 13px;
	font-weight: bold;
	letter-spacing: 0;
}

.gallery-lightbox-loading {
	position: fixed;
	z-index: 1000002;
	top: 50%;
	left: 50%;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 42px;
	padding: 0 15px;
	border: 1px solid rgba(255, 255, 255, .16);
	background: rgba(0, 0, 0, .66);
	color: #fff;
	border-radius: 5px;
	font-size: 13px;
	font-weight: bold;
	transform: translate(-50%, -50%);
	transition: opacity .12s ease;
	opacity: 0;
	pointer-events: none;
}

.gallery-lightbox-loading:before {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, .35);
	border-top-color: #fff;
	border-radius: 50%;
	content: "";
	animation: galleryLightboxSpin .8s linear infinite;
}

.gallery-lightbox-loading.active {
	opacity: 1;
}

.glightbox-clean .gprev,
.glightbox-clean .gnext {
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
}

.glightbox-container .gloader {
	display: none !important;
}

@keyframes galleryLightboxSpin {
	to {
		transform: rotate(360deg);
	}
}

.gallery-lightbox-caption {
	position: fixed;
	z-index: 1000001;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 13px 24px;
	background: rgba(0, 0, 0, .82);
	color: #fff;
	font-size: 15px;
	font-weight: bold;
	line-height: 1.35;
	text-transform: uppercase;
}

.glightbox-clean .gslide-description {
	display: none !important;
}

.glightbox-clean .gslide-image img {
	max-height: calc(100vh - 96px);
	object-fit: contain;
}

@media (max-width: 640px) {
	.gallery-grid {
		grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
		gap: 12px;
	}

	.gallery-tabs {
		border-bottom: 0;
	}

	.gallery-tab {
		flex: 1 1 100%;
		justify-content: space-between;
		margin-bottom: 0;
		border-radius: 6px;
		border-bottom-color: rgba(255, 255, 255, .12);
	}

	.gallery-lightbox-download {
		right: 52px;
		min-height: 34px;
		padding: 0 11px;
	}

	.gallery-lightbox-counter {
		left: 12px;
		min-height: 34px;
		padding: 0 10px;
	}

	.gallery-lightbox-caption {
		padding: 11px 14px;
		font-size: 13px;
	}
}
