@charset "utf-8";

/* Global header: preserve the LA&M logo's natural width against the default image rule. */
.navbar-brand img.lam-menu-logo {
	width: auto;
	height: 68px;
}

/* Global footer: size and stack the custom footer without overlapping page content. */
body {
	margin-bottom: 102px;
}

#footer a {
	text-decoration: none;
}

#footer a:hover,
#footer a:focus-visible {
	text-decoration: underline;
}

.lam-footer-secondary {
	align-items: baseline;
	display: flex;
	gap: 20px;
	justify-content: space-between;
}

.lam-footer-rights {
	text-align: right;
}

@media (max-width: 767px) {
	body {
		margin-bottom: 142px;
	}

	#footer {
		height: 120px;
	}

	.lam-footer-secondary {
		align-items: flex-start;
		flex-direction: column;
		gap: 0;
	}

	.lam-footer-rights {
		text-align: left;
	}
}

/* Maps: style the accessible state-list disclosure below the interactive map. */
.lam-state-list > summary {
	color: #337ab7;
	cursor: pointer;
	display: list-item;
	font-weight: 600;
	margin: 15px 0;
}

.lam-state-list > summary:hover,
.lam-state-list > summary:focus-visible {
	text-decoration: underline;
}

.lam-state-list > summary .lam-state-list-hide {
	display: none;
}

.lam-state-list[open] > summary .lam-state-list-show {
	display: none;
}

.lam-state-list[open] > summary .lam-state-list-hide {
	display: inline;
}

/* Archives: contain linked collection thumbnails within their listing columns. */
.collectionsList .thumbnail a > img {
	display: block;
	height: auto;
	margin: 0 auto;
	max-width: 100%;
}

/* Detail pages: normalize headings, recognition spacing, and related-record icon sizing. */
.lam-detail-header h1 {
	margin-bottom: 4px;
}

.lam-detail-header h2 {
	margin-top: 0;
}

.lam-detail-header hr {
	margin-bottom: 24px;
	margin-top: 16px;
}

.lam-detail-media .lam-recognition {
	margin-top: 18px;
}

.detail .lam-detail-metadata .unit .media-left img {
	height: auto;
	max-width: 72px;
	width: auto;
}

/* Galleries: provide the responsive card grid, selected-item state, and touch thumbnail rail. */
.gallery .lam-gallery-intro {
	margin-bottom: 24px;
}

.gallery .lam-gallery-intro h1 {
	margin-bottom: 8px;
}

.gallery .lam-gallery-intro p {
	font-size: 13px;
	line-height: 1.55;
	margin: 0 0 7px;
}

.gallery .lam-gallery-index {
	padding-left: 0;
	padding-right: 0;
	width: 100%;
}

.gallery .lam-gallery-grid {
	display: flex;
	flex-wrap: wrap;
}

.gallery .lam-gallery-card-column {
	display: flex;
}

.gallery .lam-gallery-card {
	background: #fff;
	border: 1px solid #ddd;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
	color: #454545;
	display: flex;
	flex-direction: column;
	margin-bottom: 30px;
	overflow: hidden;
	text-decoration: none;
	transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
	width: 100%;
}

.gallery .lam-gallery-card:hover,
.gallery .lam-gallery-card:focus-visible {
	border-color: #aaa;
	box-shadow: 0 3px 9px rgba(0, 0, 0, 0.2);
	color: #222;
	text-decoration: none;
	transform: translateY(-2px);
}

.gallery .lam-gallery-card-image {
	align-items: center;
	aspect-ratio: 4 / 3;
	background: #f4f4f4;
	display: flex;
	justify-content: center;
	overflow: hidden;
	width: 100%;
}

.gallery .lam-gallery-card-image img {
	height: 100%;
	max-height: none;
	max-width: none;
	object-fit: contain;
	width: 100%;
}

.gallery .lam-gallery-card-placeholder {
	color: #aaa;
	font-size: 54px;
}

.gallery .lam-gallery-card-body {
	padding: 16px 18px 18px;
}

.gallery .lam-gallery-card-title {
	color: inherit;
	font-weight: 600;
	line-height: 1.3;
	margin: 0 0 6px;
	padding: 0;
	text-transform: none;
}

.gallery .lam-gallery-card-count,
.gallery .lam-gallery-item-count {
	color: #777;
	font-size: 11px;
	line-height: 1.3;
	margin: 0;
	text-transform: uppercase;
}

.gallery .lam-gallery-item-heading {
	font-size: 22px !important;
	line-height: 1.25;
	margin: 5px 0 3px;
	text-transform: none;
}

.gallery .lam-gallery-item-type {
	color: #777;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 20px;
}

.gallery .lam-gallery-view-record {
	margin-top: 20px;
}

.gallery #galleryDetailImageGrid a.galleryIconActive {
	box-shadow: 0 0 0 3px #8f181b;
	display: block;
}

.gallery #galleryDetailImageArea {
	touch-action: pan-y;
}

/* Search: style record-group links and simplify the narrow-screen summary. */
.multisearch h2 a {
	color: #11808d;
	text-decoration: none;
}

.multisearch h2 a:hover,
.multisearch h2 a:focus-visible {
	color: #11808d;
	text-decoration: underline;
}

@media (max-width: 991px), (hover: none) and (pointer: coarse) {
	.gallery .lam-gallery-thumbnails {
		display: flex;
		flex-wrap: nowrap;
		margin-left: 0;
		margin-right: 0;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		padding: 4px 3px 12px;
		scroll-snap-type: x proximity;
		-webkit-overflow-scrolling: touch;
	}

	.gallery .lam-gallery-thumbnail {
		float: none;
		flex: 0 0 28%;
		max-width: 108px;
		scroll-snap-align: center;
	}

	.gallery .lam-gallery-thumbnail a {
		touch-action: pan-x;
	}
}

@media (max-width: 767px) {
	/* Browse: keep the mobile More Filters panel within the viewport. */
	#bMorePanel {
		box-sizing: border-box;
		width: 100%;
	}

	#bMorePanel #bScrollList {
		box-sizing: border-box;
		float: none;
		width: 100%;
	}

	.gallery .lam-gallery-grid {
		display: block;
	}

	.gallery .lam-gallery-card-column {
		display: block;
	}

	.gallery .lam-gallery-card {
		margin-bottom: 22px;
	}

	.gallery .lam-gallery-selected-item > [class*="col-"] + [class*="col-"] {
		margin-top: 18px;
	}

	.lam-detail-header hr {
		margin-bottom: 18px;
	}

	.lam-detail-media {
		margin-bottom: 22px;
	}
}

@media (max-width: 500px) {
	.multisearch .allLink {
		display: none;
	}
}

@media (max-width: 767px) {
	/* Info: stack institution and location cells on mobile without horizontal scrolling. */
	.lam-info-resource-table {
		margin-bottom: 0;
	}

	.lam-info-resource-table colgroup {
		display: none;
	}

	.lam-info-resource-table thead {
		border: 0;
		clip: rect(0, 0, 0, 0);
		height: 1px;
		margin: -1px;
		overflow: hidden;
		padding: 0;
		position: absolute;
		white-space: nowrap;
		width: 1px;
	}

	.lam-info-resource-table,
	.lam-info-resource-table tbody,
	.lam-info-resource-table tr,
	.lam-info-resource-table td {
		display: block;
	}

	.lam-info-resource-table > tbody > tr {
		border-top: 1px solid #ddd;
		padding: 8px 0;
	}

	.lam-info-resource-table > tbody > tr:first-child {
		border-top: 0;
	}

	.lam-info-resource-table > tbody > tr > td {
		border-top: 0;
		padding-bottom: 2px;
		padding-top: 2px;
	}
}
