/* Gönderi görsel görüntüleyicisi (js/white-rabbit/medya-goruntuleyici.js) */

html.wr-mg-kilit,
html.wr-mg-kilit body {
	overflow: hidden !important;
}

.wr-mg {
	--wr-mg-saydam: 1;
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	color: #fff;
	font-family: var(--yeni-sans, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
	background: rgba(8, 8, 9, calc(0.94 * var(--wr-mg-saydam)));
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	opacity: 0;
	transition: opacity 0.18s ease;
	-webkit-tap-highlight-color: transparent;
}
.wr-mg.is-acik {
	opacity: 1;
}
.wr-mg.is-kapaniyor {
	opacity: 0;
}
.wr-mg-gizli {
	visibility: hidden;
}

/* Üst satır */
.wr-mg-ust {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 64px;
	padding: 10px 14px 10px 18px;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent);
}
.wr-mg-kim {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 10px;
	min-width: 0;
}
.wr-mg-avatar {
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
	background: rgba(255, 255, 255, 0.12);
}
.wr-mg-kim-yazi {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.25;
}
.wr-mg-ad {
	overflow: hidden;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.wr-mg-tarih {
	color: rgba(255, 255, 255, 0.62);
	font-size: 12.5px;
}
.wr-mg-sayac {
	position: absolute;
	left: 50%;
	padding: 4px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	transform: translateX(-50%);
}
.wr-mg-sayac:empty {
	display: none;
}
.wr-mg-eylem {
	display: flex;
	flex: none;
	align-items: center;
	gap: 4px;
	margin-left: auto;
}

/* Yuvarlak düğmeler */
.wr-mg-dugme,
.wr-mg-ok,
.wr-mg-oran {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.15s, opacity 0.15s, transform 0.15s;
}
.wr-mg-dugme {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: transparent;
	text-decoration: none;
}
.wr-mg-dugme:hover,
.wr-mg-dugme:focus-visible {
	background: rgba(255, 255, 255, 0.14);
	outline: none;
}
.wr-mg-kapat {
	background: rgba(255, 255, 255, 0.1);
}

/* Sahne */
.wr-mg-sahne {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	padding: 8px 72px;
	overflow: hidden;
	touch-action: none;
	user-select: none;
}
.wr-mg-gorsel {
	display: block;
	max-width: 100%;
	max-height: 100%;
	border-radius: 6px;
	object-fit: contain;
	opacity: 0;
	box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.8);
	cursor: zoom-in;
	transform-origin: center center;
	will-change: transform;
	-webkit-user-drag: none;
}
.wr-mg-gorsel.is-hazir {
	opacity: 1;
	transition: opacity 0.18s ease, transform 0.22s ease;
}
.wr-mg.is-yakin .wr-mg-gorsel {
	border-radius: 0;
	cursor: grab;
}
.wr-mg.is-yakin .wr-mg-gorsel:active {
	cursor: grabbing;
}
.wr-mg-yukleniyor {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 34px;
	height: 34px;
	margin: -17px 0 0 -17px;
	border: 3px solid rgba(255, 255, 255, 0.18);
	border-top-color: #fff;
	border-radius: 50%;
	opacity: 0;
	pointer-events: none;
	animation: wr-mg-don 0.8s linear infinite;
	transition: opacity 0.15s 0.15s;
}
.wr-mg.is-yukleniyor .wr-mg-yukleniyor {
	opacity: 1;
}
@keyframes wr-mg-don {
	to {
		transform: rotate(360deg);
	}
}

/* Oklar */
.wr-mg-ok {
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 48px;
	height: 48px;
	margin-top: -24px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
}
.wr-mg-ok:hover,
.wr-mg-ok:focus-visible {
	background: rgba(255, 255, 255, 0.2);
	outline: none;
}
.wr-mg-onceki {
	left: 14px;
}
.wr-mg-sonraki {
	right: 14px;
}
.wr-mg.is-yakin .wr-mg-ok {
	opacity: 0;
	pointer-events: none;
}

/* Alt satır: küçük resimler + yakınlaştırma */
.wr-mg-alt {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	min-height: 64px;
	padding: 8px 14px calc(10px + env(safe-area-inset-bottom));
	background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
}
.wr-mg-kucukler {
	display: flex;
	gap: 6px;
	max-width: min(70vw, 560px);
	padding: 2px;
	overflow-x: auto;
	scrollbar-width: none;
}
.wr-mg-kucukler::-webkit-scrollbar {
	display: none;
}
.wr-mg-kucuk {
	flex: none;
	width: 48px;
	height: 48px;
	padding: 0;
	overflow: hidden;
	border: 2px solid transparent;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.08);
	opacity: 0.55;
	cursor: pointer;
	transition: opacity 0.15s, border-color 0.15s;
}
.wr-mg-kucuk img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.wr-mg-kucuk:hover {
	opacity: 0.85;
}
.wr-mg-kucuk.is-secili {
	border-color: #fff;
	opacity: 1;
}
.wr-mg-yakin {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 3px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
}
.wr-mg-yakin .wr-mg-dugme {
	width: 34px;
	height: 34px;
}
.wr-mg-oran {
	min-width: 54px;
	height: 34px;
	padding: 0 6px;
	border-radius: 999px;
	background: transparent;
	font-size: 12.5px;
	font-variant-numeric: tabular-nums;
}
.wr-mg-oran:hover {
	background: rgba(255, 255, 255, 0.14);
}

/* Telefon: oklar ve yakınlaştırma düğmeleri yerine parmak hareketleri */
@media (max-width: 767px), (pointer: coarse) {
	.wr-mg-sahne {
		padding: 0;
	}
	.wr-mg-gorsel {
		border-radius: 0;
	}
	.wr-mg-ok,
	.wr-mg-yakin {
		display: none;
	}
	.wr-mg-ust {
		padding: 8px 8px 8px 14px;
	}
	.wr-mg-sayac {
		position: static;
		transform: none;
	}
	.wr-mg-alt {
		min-height: 0;
	}
	.wr-mg-kucukler {
		max-width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wr-mg,
	.wr-mg-gorsel.is-hazir {
		transition: none;
	}
}
