/* Stable boxes for the shared template. Does not change copy or images. */

.topbarbg picture {
	display: block;
	width: 100%;
	aspect-ratio: 1920 / 150;
	line-height: 0;
}

.topbarimg {
	width: 100%;
	height: auto;
	max-width: 100%;
	aspect-ratio: 1920 / 150;
	object-fit: contain;
	object-position: center;
	display: block;
}

/* Mobile logo is in the first screen on every page. */
.mobile-logo .unitedlogo {
	width: 70px;
	height: auto;
	aspect-ratio: 486 / 532;
	object-fit: contain;
	flex: 0 0 70px;
}

/* Reserve the hamburger slot so the icon font cannot push the logo. */
.mobile-logo .navSidebar-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
}

.mobile-logo .navSidebar-button i {
	display: block;
	width: 26px;
	height: 26px;
	line-height: 26px;
	text-align: center;
}

/* Homepage slider: 16:9 from the first paint. Owl cannot restretch it. */
.slider_list.owl-carousel {
	display: block !important;
	width: 100%;
	overflow: hidden;
}

.slider_list.owl-carousel:not(.owl-loaded) > div {
	display: none;
}

.slider_list.owl-carousel:not(.owl-loaded) > div:first-child {
	display: block;
}

.slider_list .owl-stage-outer {
	height: auto !important;
}

.slider_list .slider-image,
.slider_list picture img {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
}

/* Course heroes are 1050x530. Box exists before the file decodes. */
.courses-details-thumb .gallery-item {
	position: relative;
	width: 100%;
	aspect-ratio: 1050 / 530;
	overflow: hidden;
	background: #f3f6f3;
}

.courses-details-thumb .gallery-item img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	display: block;
}

/* Listing cards are 416x333. Both images fill that box; the second stays overlaid. */
.course-thumb {
	aspect-ratio: 416 / 333;
}

.course-thumb > a {
	position: absolute;
	inset: 0;
	display: block;
}

.course-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Homepage affiliations strip (1170x200). */
.gallery-grid > .gallery-item > img[alt="United College of Technology Notification"] {
	width: 100%;
	height: auto;
	aspect-ratio: 1170 / 200;
	display: block;
}
