/* Blog listing thumbnail: cursor + transition */
.hmc-article-thumb .hmc-gallery-thumb {
	display: block;
	cursor: zoom-in;
	overflow: hidden;
}
.hmc-article-thumb .hmc-gallery-thumb img {
	transition: transform .35s ease;
}
.hmc-article-thumb .hmc-gallery-thumb:hover img {
	transform: scale(1.04);
}

/* Lightbox container */
.hmc-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.92);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 100000;
	padding: 24px;
	opacity: 0;
	transition: opacity .2s ease;
}
.hmc-lightbox.is-open {
	display: flex;
	opacity: 1;
}

/* Figure + image */
.hmc-lightbox__figure {
	margin: 0;
	max-width: 100%;
	max-height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}
.hmc-lightbox__image {
	max-width: min(96vw, 1400px);
	max-height: 80vh;
	object-fit: contain;
	border-radius: 4px;
	box-shadow: 0 10px 40px rgba(0,0,0,.5);
	user-select: none;
	-webkit-user-drag: none;
}
.hmc-lightbox__caption {
	color: #fff;
	font-size: 14px;
	text-align: center;
	max-width: min(90vw, 1200px);
	line-height: 1.4;
}

/* Counter */
.hmc-lightbox__counter {
	position: absolute;
	top: 18px;
	left: 50%;
	transform: translateX(-50%);
	color: #fff;
	font-size: 14px;
	letter-spacing: .04em;
	opacity: .85;
}

/* Close button */
.hmc-lightbox__close {
	position: absolute;
	top: 14px;
	right: 18px;
	background: transparent;
	border: none;
	color: #fff;
	font-size: 38px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 12px;
	opacity: .9;
	transition: opacity .2s ease, transform .2s ease;
}
.hmc-lightbox__close:hover,
.hmc-lightbox__close:focus {
	opacity: 1;
	transform: scale(1.08);
	outline: none;
}

/* Prev/Next buttons */
.hmc-lightbox__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255,255,255,.12);
	border: none;
	color: #fff;
	font-size: 32px;
	cursor: pointer;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color .2s ease, transform .2s ease;
	backdrop-filter: blur(4px);
}
.hmc-lightbox__nav:hover,
.hmc-lightbox__nav:focus {
	background: rgba(255,255,255,.25);
	outline: none;
}
.hmc-lightbox__nav--prev { left: 22px; }
.hmc-lightbox__nav--next { right: 22px; }

.hmc-lightbox.is-single .hmc-lightbox__nav { display: none; }

/* Prevent body scroll while open */
body.hmc-lightbox-open { overflow: hidden; }

/* Mobile tweaks */
@media (max-width: 600px) {
	.hmc-lightbox__nav {
		width: 44px;
		height: 44px;
		font-size: 24px;
	}
	.hmc-lightbox__nav--prev { left: 8px; }
	.hmc-lightbox__nav--next { right: 8px; }
	.hmc-lightbox__close { font-size: 30px; }
}