/* Explicit listing grid: supported with direct cards and DLE wrappers. */
.cs-material-grid,.listing,.cards-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:22px!important;width:100%;min-width:0;align-items:stretch}
.cs-material-grid>.material-card,.listing>.material-card,.cards-grid>.material-card{grid-column:auto!important;width:auto!important;max-width:100%;min-width:0;margin:0!important;float:none!important}
.cs-material-grid>*:not(.material-card),.listing>*:not(.material-card),.cards-grid>*:not(.material-card){grid-column:1/-1}
.cs-material-grid>#dle-content,.listing>#dle-content,.cards-grid>#dle-content,.cs-material-grid>.cs-grid-wrapper{display:contents!important}
.cs-material-grid>.cs-card-wrapper{grid-column:auto!important;min-width:0}.cs-card-wrapper>.material-card{height:100%;width:100%;margin:0}
.cs-material-grid>br,.listing>br{display:none}
/* Simple readable navigation rather than boxed tiles. */
.catalog-links{display:flex;flex-direction:column;gap:0;border:0;margin:4px 0 13px;padding:3px 3px}
.catalog-links a{display:flex;align-items:center;position:relative;min-height:41px;padding:10px 23px 10px 15px;border:0;border-bottom:1px solid #f1f3f5;border-radius:0;background:none;box-shadow:none;font-size:14px;line-height:1.5;color:#6b7887}
.catalog-links a:before{display:block;content:'';position:absolute;left:3px;top:19px;width:4px;height:4px;border-radius:50%;background:#dfaa79}
.catalog-links a:after{content:'›';position:absolute;right:5px;top:10px;color:#b9c1ca;font-size:17px}
.catalog-links a:hover{color:#ae6728;background:#fff9f1;box-shadow:none;border-color:#f1f3f5}
.catalog-links .catalog-all{border:0;margin-top:5px;border-radius:7px;background:#fff7ed;padding:10px 12px;font-size:13px;min-height:39px}.catalog-links .catalog-all:before,.catalog-links .catalog-all:after{display:none}
.catalog-bottom{grid-template-columns:1fr;gap:2px}.catalog-bottom a{min-height:40px;background:none;border:0;padding:9px 10px;font-size:14px}.catalog-bottom a:hover{background:#f7f9fb}
.download-panel--below{background:linear-gradient(110deg,#f0faf5,#f8fcfa);border-color:#d5ebde;margin:20px 0 24px;padding:18px 20px;gap:15px}.download-panel--below h2{font-size:18px;color:#276448;margin-bottom:4px}.download-panel--below p{font-size:12px;color:#789887}.download-panel--below .download-button{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(125deg,#2da66c,#16844c);border:1px solid #208e54;border-radius:10px;box-shadow:0 5px 16px #1a91562b;color:#fff;min-height:49px;padding:13px 21px;font-size:15px;gap:11px;transition:transform .2s,box-shadow .2s,background .2s}.download-panel--below .download-button:hover{background:linear-gradient(125deg,#279a61,#117440);color:#fff;transform:translateY(-2px);box-shadow:0 8px 22px #1a91563d}.download-panel--below .download-button:focus-visible{outline:3px solid #247b50;outline-offset:4px}
.news-gallery{border:1px solid var(--line);border-radius:12px;padding:19px;margin:24px 0;background:#fafbfc}.gallery-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:14px}.gallery-heading h2{font-size:20px;line-height:1.35}.gallery-total{font-size:12px;color:#9aa5b2;white-space:nowrap}.gallery-thumbnails{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.gallery-thumb{display:block;position:relative;overflow:hidden;padding:0;border:1px solid #e5e9ef;border-radius:9px;background:#edf0f4;aspect-ratio:1.6;min-height:0;color:inherit}.gallery-thumb img{width:100%;height:100%;object-fit:cover;display:block}.gallery-thumb:hover{background:#edf0f4;border-color:#e3aa72;box-shadow:0 4px 15px #29374a14}.gallery-thumb:after{content:'+';position:absolute;bottom:7px;right:7px;background:#ffffffed;color:#a86d37;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;font-size:18px}.article-poster [role=button],.player-profile-avatar[role=button]{cursor:zoom-in}.article-poster [role=button]:focus-visible{outline:3px solid #ed8b2c;outline-offset:-4px}
.gallery-viewer{position:fixed;inset:0;margin:auto;width:min(1200px,calc(100vw - 36px));max-width:none;height:min(850px,calc(100dvh - 40px));max-height:none;padding:0;border:1px solid #ffffff25;border-radius:14px;background:#151b24;color:white;overflow:hidden;box-shadow:0 24px 100px #0008}.gallery-viewer:not([open]){display:none}.gallery-viewer::backdrop{background:#101621dc;backdrop-filter:blur(5px)}.gallery-viewer-bar{height:60px;display:flex;align-items:center;justify-content:space-between;padding:11px 16px;gap:12px;background:#1c2430}.gallery-viewer-counter{font-size:14px;color:#d8dfe8}.gallery-viewer button{width:38px;min-height:38px;padding:0;background:#ffffff12;color:white;border:1px solid #ffffff14;border-radius:9px;font-size:23px}.gallery-viewer button:hover{background:#ffffff26}.gallery-viewer-stage{position:relative;display:grid;place-items:center;height:calc(100% - 105px);padding:15px 60px}.gallery-viewer-image{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}.gallery-viewer-prev,.gallery-viewer-next{position:absolute;top:50%;transform:translateY(-50%);z-index:2}.gallery-viewer-prev{left:12px}.gallery-viewer-next{right:12px}.gallery-viewer-caption{height:45px;padding:10px 18px;color:#acb7c6;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center}.gallery-viewer-error{font-size:14px;color:#ced6e1;text-align:center}.gallery-viewer button:focus-visible{outline:2px solid #ed8b2c;outline-offset:3px}
@media(max-width:700px){.cs-material-grid,.listing,.cards-grid{gap:16px!important}.news-gallery{padding:15px}.gallery-heading h2{font-size:18px}.gallery-thumbnails{gap:9px;grid-template-columns:repeat(2,minmax(0,1fr))}.download-panel--below{flex-direction:column;align-items:stretch;padding:17px;gap:16px}.download-panel--below .download-button{width:100%;font-size:15px}.gallery-viewer{width:calc(100vw - 16px);height:calc(100dvh - 24px);border-radius:11px}.gallery-viewer-stage{padding:10px 8px 65px}.gallery-viewer-prev,.gallery-viewer-next{top:auto;bottom:10px;transform:none}.gallery-viewer-prev{left:calc(50% - 48px)}.gallery-viewer-next{right:calc(50% - 48px)}}
@media(max-width:560px){.cs-material-grid,.listing,.cards-grid{grid-template-columns:minmax(0,1fr)!important}}
@media(prefers-reduced-motion:reduce){.download-panel--below .download-button:hover{transform:none}}

.gallery-source-image{display:none!important}


.news-gallery {
	margin: 24px 0;
}

.news-gallery .gallery-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.news-gallery .gallery-heading h2 {
	margin: 0;
}

.news-gallery .gallery-thumbnails {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.news-gallery .gallery-thumb {
	display: block;
	overflow: hidden;
	border-radius: 10px;
	background: #f3f5f7;
	aspect-ratio: 16 / 10;
}

.news-gallery .gallery-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .2s ease;
}

.news-gallery .gallery-thumb:hover img {
	transform: scale(1.03);
}

@media (max-width: 800px) {
	.news-gallery .gallery-thumbnails {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 480px) {
	.news-gallery .gallery-thumbnails {
		grid-template-columns: 1fr;
	}
}


/* v2.1: built-in lightbox; importer gallery never navigates to a new tab */
.ci-importer-gallery .gallery-thumb {
	border: 0;
	padding: 0;
	cursor: zoom-in;
	font: inherit;
}

.ci-lightbox[hidden] {
	display: none !important;
}

.ci-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(10, 15, 20, .92);
	padding: 32px 70px;
}

.ci-lightbox-stage {
	max-width: min(1180px, 92vw);
	max-height: 90vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ci-lightbox-image {
	display: block;
	max-width: 100%;
	max-height: 90vh;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 8px;
}

.ci-lightbox-close,
.ci-lightbox-prev,
.ci-lightbox-next {
	position: absolute;
	border: 0;
	background: rgba(255,255,255,.12);
	color: #fff;
	cursor: pointer;
	border-radius: 999px;
	line-height: 1;
}

.ci-lightbox-close {
	top: 18px;
	right: 18px;
	width: 44px;
	height: 44px;
	font-size: 30px;
}

.ci-lightbox-prev,
.ci-lightbox-next {
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	font-size: 38px;
}

.ci-lightbox-prev { left: 18px; }
.ci-lightbox-next { right: 18px; }

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

@media (max-width: 600px) {
	.ci-lightbox {
		padding: 60px 12px 20px;
	}

	.ci-lightbox-prev,
	.ci-lightbox-next {
		width: 40px;
		height: 40px;
		font-size: 30px;
	}

	.ci-lightbox-prev { left: 8px; }
	.ci-lightbox-next { right: 8px; }
}