/* Hover Blur Logo Card */
.hblc-card {
	--hblc-blur: 0px;
	--hblc-bright: 1;
	--hblc-scale: 1;
	--hblc-blur-h: 12px;
	--hblc-bright-h: 1;
	--hblc-scale-h: 1.08;
	--hblc-dur: .5s;
	--hblc-ease: ease;
	position: relative;
	display: block;
	width: 100%;
}

/* Image box */
.hblc-media {
	position: relative;
	display: block;
	width: 100%;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	background: #000;
	text-decoration: none;
}

.hblc-main {
	display: block;
	width: 100%;
	height: 100%;
}

.hblc-main img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	object-fit: cover;
	filter: blur(var(--hblc-blur)) brightness(var(--hblc-bright));
	transform: scale(var(--hblc-scale));
	transition: filter var(--hblc-dur) var(--hblc-ease), transform var(--hblc-dur) var(--hblc-ease);
	will-change: filter, transform;
}

.hblc-card:hover .hblc-main img {
	filter: blur(var(--hblc-blur-h)) brightness(var(--hblc-bright-h));
	transform: scale(var(--hblc-scale-h));
}

/* Overlay */
.hblc-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	transition: background var(--hblc-dur) var(--hblc-ease), opacity var(--hblc-dur) var(--hblc-ease);
}

/* Logo */
.hblc-logo {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	opacity: 0;
	transition: opacity var(--hblc-dur) var(--hblc-ease);
}

.hblc-logo img {
	display: block;
	max-width: 100%;
	height: auto;
	transition: transform var(--hblc-dur) var(--hblc-ease);
}

.hblc-anim-zoom .hblc-logo img { transform: scale(.6); }
.hblc-anim-slide-up .hblc-logo img { transform: translateY(30px); }
.hblc-anim-slide-down .hblc-logo img { transform: translateY(-30px); }

.hblc-logo-always .hblc-logo,
.hblc-card:hover .hblc-logo { opacity: 1; }

.hblc-logo-always .hblc-logo img,
.hblc-card:hover .hblc-logo img { transform: none; }

/* Tags */
.hblc-tags {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 3;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	pointer-events: none;
}

.hblc-tag {
	display: inline-block;
	padding: 3px 6px;
	background: #6ee7d0;
	color: #000;
	font-size: 9px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
}

/* Title */
.hblc-footer {
	margin-top: 10px;
	text-align: right;
}

.hblc-title {
	margin: 0;
	color: #fff;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.1;
	transition: color var(--hblc-dur) var(--hblc-ease);
}

.hblc-title a {
	color: inherit;
	text-decoration: none;
}

.hblc-arrow {
	display: inline-block;
	margin-left: 4px;
	font-size: .5em;
	vertical-align: super;
	line-height: 1;
	transform: rotate(45deg);
}

.hblc-arrow svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* ------------------------------------------------------------------ */
/* Gallery layouts                                                    */
/* ------------------------------------------------------------------ */
.hblc-gallery {
	--hblc-cols: 4;
	--hblc-gap: 10px;
	--hblc-row-h: 200px;
	width: 100%;
}

@media (max-width: 1024px) {
	.hblc-gallery { --hblc-cols: 2; }
}

@media (max-width: 767px) {
	.hblc-gallery { --hblc-cols: 1; }
}

.hblc-grid {
	display: grid;
	grid-template-columns: repeat(var(--hblc-cols), minmax(0, 1fr));
	gap: var(--hblc-gap);
}

.hblc-item {
	min-width: 0;
}

.hblc-item.hblc-hidden {
	display: none !important;
}

.hblc-empty {
	padding: 30px;
	text-align: center;
	border: 1px dashed currentColor;
	opacity: .6;
	font-size: 14px;
}

/* Justified (pure CSS, no JS) */
.hblc-layout-justified .hblc-grid {
	display: flex;
	flex-wrap: wrap;
}

.hblc-layout-justified .hblc-grid::after {
	content: "";
	flex: 999999 1 0;
	height: 0;
	margin-left: calc(var(--hblc-gap) * -1);
}

.hblc-layout-justified .hblc-item {
	flex: calc(var(--hblc-ratio, 1.5) * 100) 1 calc(var(--hblc-ratio, 1.5) * var(--hblc-row-h));
}

.hblc-layout-justified .hblc-media {
	aspect-ratio: auto;
	height: var(--hblc-row-h);
}

/* Masonry (row-span, JS sets grid-row-end) */
.hblc-layout-masonry .hblc-grid {
	align-items: start;
}

.hblc-layout-masonry .hblc-grid.hblc-masonry-ready {
	grid-auto-rows: 1px;
	row-gap: 0;
}

.hblc-layout-masonry .hblc-media {
	aspect-ratio: auto;
}

.hblc-layout-masonry .hblc-main {
	aspect-ratio: var(--hblc-ratio, 1.5);
}

/* Filter bar */
.hblc-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 8px;
	margin-bottom: 24px;
}

.hblc-filters .hblc-filter {
	appearance: none;
	margin: 0;
	padding: 6px 14px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .06em;
	line-height: 1.2;
	text-transform: uppercase;
	cursor: pointer;
	opacity: .55;
	transition: opacity .25s ease, color .25s ease, background-color .25s ease;
}

.hblc-filters .hblc-filter:hover,
.hblc-filters .hblc-filter.is-active {
	opacity: 1;
}
