/* Multiscroll 1.4.x: mobile slideshow sizing and full-panel messages. */

/* ---- Mobile slideshow: the slide always fills the space ---- */
.multiscrolltemplate.ms-mobile {
	height: auto !important;
}

.ms-mobile #myContainer {
	height: auto;
	margin: 0;
	padding: 0;
}

/* Desktop dot navigation: empty on mobile, but its list margins left a gap. */
.ms-mobile .multiscrollmenu,
.ms-mobile #multiscroll-nav {
	display: none;
}

.ms-mobile .sss {
	margin: 0;
	height: 400px;
	padding-bottom: 0 !important;
}

.ms-mobile .ssslide {
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

@media (max-width: 500px) {
	.ms-mobile .sss {
		height: 300px;
	}
}

/* ---- Full-panel message ---- */
.ms-section .ms-message {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2;
	display: flex;
	padding: 4% 12%;
	box-sizing: border-box;
	container-type: size;
	justify-content: center;
	align-items: center;
	text-align: center;
}

.ms-section .ms-message--h-left {
	justify-content: flex-start;
	text-align: left;
}

.ms-section .ms-message--h-right {
	justify-content: flex-end;
	text-align: right;
}

.ms-section .ms-message--v-top {
	align-items: flex-start;
}

.ms-section .ms-message--v-bottom {
	align-items: flex-end;
}

.ms-section .ms-message__inner {
	max-width: 34em;
	max-height: 100%;
	box-sizing: border-box;
	color: #222;
	/* Fallback for browsers without container units, then size to the panel. */
	font-size: 14px;
	font-size: clamp(10px, 2.9cqw, 17px);
	line-height: 1.45;
}

.ms-section .ms-message--backdrop-light .ms-message__inner {
	padding: 1em 1.4em;
	background: rgba(255, 255, 255, 0.85);
}

.ms-section .ms-message--backdrop-dark .ms-message__inner {
	padding: 1em 1.4em;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
}

.ms-section .ms-message__title {
	margin: 0 0 0.6em;
	font-size: 1.7em;
	font-weight: 700;
	line-height: 1.2;
	color: #a31621;
	text-wrap: balance;
}

.ms-section .ms-message--title-band .ms-message__title {
	padding: 0.35em 0.7em;
	background-color: #a31621;
	color: #fff;
}

.ms-section .ms-message__body p {
	margin: 0 0 0.75em;
	padding: 0;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

.ms-section .ms-message__body p:last-child {
	margin-bottom: 0;
}

.ms-section .ms-message__body a {
	color: inherit;
	text-decoration: underline;
}

/* Undo the theme's positioning rules for spans inside panels. */
.ms-section .ms-message span {
	display: inline;
	width: auto;
	margin: 0;
	padding: 0;
	text-align: inherit;
}
