/* Only the galleries embedded in News; preserve the full article content. */
.msad-news-gallery { margin: 24px 0; }
.msad-news-gallery[data-news-gallery-ready] .msad-news-gallery__fallback { display: none; }
.msad-news-gallery__preview {
	display: grid;
	grid-template-columns: repeat(var(--news-gallery-columns, 3), minmax(0, 1fr));
	gap: 12px;
}
.msad-news-gallery__preview br { display: none; }
.msad-news-gallery__tile {
	display: block;
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 12px;
	background: var(--h26-navy, #1b2d59);
}
.msad-news-gallery .msad-news-gallery__image {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	border-radius: 0;
}
.msad-news-gallery__tile:focus-visible {
	outline: 3px solid var(--h26-navy, #1b2d59);
	outline-offset: 4px;
}
.msad-news-gallery__more {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgb(15 25 47 / 68%);
	color: #fff;
	font-size: clamp(24px, 4vw, 38px);
	font-weight: 700;
}
.msad-news-gallery__tile:hover .msad-news-gallery__more { background: rgb(27 45 89 / 80%); }
.msad-news-gallery .msad-news-gallery__hint {
	margin: 10px 0 0;
	color: #505c6d;
	font-size: 13px;
	line-height: 1.5;
}
.msad-news-gallery__viewer {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	height: 100dvh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 16px 24px;
	border: 0;
	background: #101828;
	color: #fff;
}
.msad-news-gallery__viewer::backdrop { background: rgb(16 24 40 / 90%); }
.msad-news-gallery__viewer-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	max-width: 1500px;
	margin: 0 auto;
	gap: 12px;
}
.msad-news-gallery__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex: none;
}
.msad-news-gallery__counter { font-size: 15px; font-weight: 700; }
.msad-news-gallery__close,
.msad-news-gallery__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid rgb(255 255 255 / 35%);
	border-radius: 50%;
	background: rgb(27 45 89 / 88%);
	color: #fff;
	cursor: pointer;
	font-size: 22px;
}
.msad-news-gallery__close { font-size: 30px; }
.msad-news-gallery__arrow[hidden] { display: none; }
.msad-news-gallery__close:hover,
.msad-news-gallery__arrow:hover { background: #314978; }
.msad-news-gallery__stage {
	position: relative;
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	min-height: 0;
	padding: 0 64px;
}
.msad-news-gallery .msad-news-gallery__full {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	margin: 0;
	object-fit: contain;
	border-radius: 0;
	touch-action: pan-y;
}
.msad-news-gallery__arrow { position: absolute; top: calc(50% - 24px); }
.msad-news-gallery__previous { left: 0; }
.msad-news-gallery__next { right: 0; }
.msad-news-gallery .msad-news-gallery__caption {
	flex: none;
	margin: 0;
	text-align: center;
	color: #fff;
	font-size: 14px;
	max-height: 4.5em;
	overflow-y: auto;
}
.msad-news-gallery__thumbnails {
	display: flex;
	flex: none;
	gap: 10px;
	max-width: 100%;
	padding: 5px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	margin: 0 auto;
}
.msad-news-gallery__thumbnail {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 7px;
	background: #1b2d59;
	opacity: .65;
	overflow: hidden;
	cursor: pointer;
}
.msad-news-gallery .msad-news-gallery__thumbnail img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	border-radius: 0;
}
.msad-news-gallery__thumbnail.is-current { opacity: 1; border-color: #7de0b1; }
.msad-news-gallery__thumbnail:hover { opacity: 1; }
.msad-news-gallery__viewer button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; opacity: 1; }
@media (max-width: 600px) {
	.msad-news-gallery__preview { gap: 8px; }
	.msad-news-gallery__tile { border-radius: 8px; }
	.msad-news-gallery__viewer { padding: 12px; }
	.msad-news-gallery__stage { padding: 0; }
	.msad-news-gallery__arrow { width: 44px; height: 44px; top: calc(50% - 22px); }
	.msad-news-gallery__thumbnail { flex-basis: 52px; width: 52px; height: 52px; }
}
