/**
 * SLN Fluid Shell — companion to sln-site-shell fluid-layout.css.
 * Keeps window-drag widths from overflowing and holds Careers / SLN Cares mosaics.
 */

html {
	overflow-x: clip;
}

body.sln-fluid-shell-enabled {
	overflow-x: clip;
	max-width: 100%;
}

body.sln-fluid-shell-enabled img,
body.sln-fluid-shell-enabled video,
body.sln-fluid-shell-enabled svg {
	height: auto;
	max-width: 100%;
}

body.sln-fluid-shell-enabled .row {
	flex-wrap: wrap;
	max-width: 100%;
}

body.sln-fluid-shell-enabled [class*="col-"] {
	min-width: 0;
}

body.sln-fluid-shell-enabled .image-grid {
	box-sizing: border-box;
	max-width: min(950px, 100%);
	padding-left: 1rem;
	padding-right: 1rem;
	width: 100%;
}

body.sln-fluid-shell-enabled .image-grid .row {
	display: grid;
	gap: 0.55rem;
	grid-template-columns: 1fr;
	margin-left: 0 !important;
	margin-right: 0 !important;
	width: 100%;
}

body.sln-fluid-shell-enabled .image-grid .row-4 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.sln-fluid-shell-enabled .image-grid [class*="col-"] {
	box-sizing: border-box;
	max-width: none;
	min-width: 0;
	padding: 0;
	width: 100%;
}

body.sln-fluid-shell-enabled .image-grid a {
	display: block;
	line-height: 0;
	width: 100%;
}

body.sln-fluid-shell-enabled .image-grid img {
	aspect-ratio: 1 / 1;
	display: block;
	height: auto;
	max-width: 100%;
	object-fit: cover;
	width: 100%;
}

body.sln-fluid-shell-enabled .image-grid .flex-grow-0 img {
	aspect-ratio: 16 / 11;
}

body.sln-fluid-shell-enabled .image-grid .d-flex.flex-grow-1 {
	flex-grow: 0 !important;
	min-height: 0 !important;
}

@media (min-width: 576px) {
	body.sln-fluid-shell-enabled .image-grid .row:not(.row-4) {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	body.sln-fluid-shell-enabled .image-grid .row-4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	body.sln-fluid-shell-enabled .image-grid img,
	body.sln-fluid-shell-enabled .image-grid .flex-grow-0 img {
		aspect-ratio: auto;
	}
}

body.sln-fluid-shell-enabled .sbi_error,
body.sln-fluid-shell-enabled #sb_instagram:empty,
body.sln-fluid-shell-enabled iframe[src=""] {
	display: none !important;
	height: 0 !important;
	min-height: 0 !important;
}
