/* Галерея фото постов — см. gallery.js */
.glb-thumb, .glb-thumb img { cursor: zoom-in; }

/* Страницы экспорта свёрстаны на 800px; с meta viewport на телефоне
   контейнер сжимается до ширины экрана, фото уже ограничены max-width. */
@media (max-width: 820px) {
	._a705 { width: auto; }
	._a70a { padding-right: 8px; }
}

html.glb-open, html.glb-open body { overflow: hidden; }

.glb {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	background: #0c0c0e;
	color: #f2f2f2;
	font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	-webkit-tap-highlight-color: transparent;
}
.glb[hidden] { display: none; }

.glb-bar {
	display: flex;
	align-items: center;
	gap: 16px;
	flex: none;
	padding: 8px 8px 8px 20px;
	font-size: 14px;
	color: #b8b8bc;
}
.glb-count { font-variant-numeric: tabular-nums; color: #f2f2f2; }
.glb-count:empty { display: none; }
.glb-date { flex: 1; }

.glb-btn {
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
	border-radius: 50%;
}
.glb-btn:focus-visible { outline: 2px solid #8ab4f8; outline-offset: 2px; }
.glb-close {
	width: 44px;
	height: 44px;
	font-size: 30px;
	line-height: 1;
	color: #f2f2f2;
}
.glb-close:hover { background: rgba(255, 255, 255, 0.12); }

.glb-stage {
	position: relative;
	flex: 1;
	min-height: 0;
	display: flex;
}
.glb-media {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 64px;
}
.glb-media img, .glb-media video {
	display: block;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	user-select: none;
	-webkit-user-drag: none;
}
.glb-media.glb-loading::before {
	content: "";
	position: absolute;
	width: 36px;
	height: 36px;
	border: 3px solid rgba(255, 255, 255, 0.2);
	border-top-color: #f2f2f2;
	border-radius: 50%;
	animation: glb-spin 0.8s linear infinite;
}
@keyframes glb-spin { to { transform: rotate(360deg); } }

.glb-nav {
	position: absolute;
	top: 50%;
	width: 52px;
	height: 52px;
	margin-top: -26px;
	font-size: 40px;
	line-height: 48px;
	color: #f2f2f2;
	background: rgba(255, 255, 255, 0.1);
}
.glb-nav:hover { background: rgba(255, 255, 255, 0.22); }
.glb-nav[hidden] { display: none; }
.glb-prev { left: 8px; }
.glb-next { right: 8px; }

.glb-caption {
	flex: none;
	max-height: 40vh;
	overflow-y: auto;
	padding: 14px 20px 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.glb-caption[hidden] { display: none; }
.glb-text {
	max-width: 760px;
	margin: 0 auto;
	white-space: pre-line;
	overflow-wrap: anywhere;
}
.glb-text.glb-clamp {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	overflow: hidden;
}
.glb-more {
	display: block;
	max-width: 760px;
	width: 100%;
	margin: 6px auto 0;
	padding: 0;
	border: 0;
	background: none;
	color: #8ab4f8;
	font: inherit;
	font-size: 14px;
	text-align: left;
	cursor: pointer;
}
.glb-more[hidden] { display: none; }

@media (max-width: 600px) {
	.glb-media { padding: 0; }
	.glb-nav { width: 44px; height: 44px; margin-top: -22px; font-size: 34px; line-height: 40px; background: rgba(0, 0, 0, 0.35); }
	.glb-caption { max-height: 45vh; padding: 12px 16px 16px; }
	.glb-bar { padding-left: 16px; }
}
