/* Haber detay lightbox'ı (assets/js/lightbox.js). */
.fm-lb-zoomable {
	cursor: zoom-in;
}

.fm-lb-zoomable:focus-visible {
	outline: 3px solid var(--primary-color, #db292f);
	outline-offset: 2px;
}

html.fm-lb-open {
	overflow: hidden;
}

.fm-lightbox {
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(0, 0, 0, 0.94); /* ::backdrop'a güvenmeden: bazı mobil tarayıcılarda sayfa arkadan görünüyordu. */
	color: #fff;
}

.fm-lightbox::backdrop {
	background: rgba(0, 0, 0, 0.92);
}

.fm-lb-figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 56px 72px;
	box-sizing: border-box;
}

.fm-lb-img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	min-height: 0;
}

.fm-lb-caption:empty {
	display: none;
}

.fm-lb-caption {
	margin-top: 12px;
	font-size: 15px;
	text-align: center;
}

.fm-lb-btn {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 34px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s;
}

.fm-lb-btn:hover,
.fm-lb-btn:focus-visible {
	background: var(--primary-color, #db292f);
	outline: none;
}

.fm-lb-close {
	top: 12px;
	right: 12px;
}

.fm-lb-prev,
.fm-lb-next {
	top: 50%;
	transform: translateY(-50%);
}

.fm-lb-prev {
	left: 12px;
}

.fm-lb-next {
	right: 12px;
}

.fm-lb-count {
	position: absolute;
	top: 22px;
	left: 20px;
	font-size: 14px;
	opacity: 0.85;
}

.fm-lb-single .fm-lb-prev,
.fm-lb-single .fm-lb-next {
	display: none;
}

@media (max-width: 600px) {
	.fm-lb-figure {
		padding: 64px 8px;
	}

	.fm-lb-prev,
	.fm-lb-next {
		top: auto;
		bottom: 12px;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fm-lb-btn {
		transition: none;
	}
}
