.ungl-public-item {
	--ungl-public-text: #1d2733;
	--ungl-public-muted: #667382;
	--ungl-public-border: #e1e7ec;
	--ungl-public-soft: #f5f8fa;
	--ungl-public-blue: #116fc3;
	width: min(100% - 48px, 1180px);
	margin: 48px auto 72px;
	font-family: "Commissioner", sans-serif;
	color: var(--ungl-public-text);
}

.ungl-public-item * {
	font-family: "Commissioner", sans-serif;
}

/* Library archive */
.ungl-library {
	/* display: flex !important; */
	--ungl-gold: #d99a25;
	--ungl-ink: #242329;
	--ungl-beige: #e9e0d1;
	--ungl-line: #d7d2ca;
	box-sizing: border-box;
	width: min(100% - 48px, 1180px);
	margin: 34px auto 80px;
	font-family: "Commissioner", sans-serif;
	color: var(--ungl-ink);
}

.ungl-library *, .ungl-library *::before, .ungl-library *::after { box-sizing: border-box; font-family: "Commissioner", sans-serif; }
.ungl-library .screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.ungl-library__crumbs { margin: 0 0 42px; font-size: 13px; color: #9b7865; }
.ungl-library__form { margin: 0; }
.ungl-library__search { width: 100%; margin: 0 0 12px; }
.ungl-library__search input { width: 100%; height: 42px; min-width: 0; padding: 0 18px; border: 0; border-radius: 0 23px 23px 0; outline-offset: 2px; color: #272326; background: var(--ungl-beige); }
.ungl-library__search input::placeholder { color: #5f5851; }
.ungl-library__layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 74px; align-items: start; }
.ungl-library__sidebar { min-width: 0; }
.ungl-library__count { margin: 0 0 36px; font-size: 13px; color: #a17762; }
.ungl-library__count strong { color: #242329; font-weight: 800;}
.ungl-library__filter-panel > h2 { display: inline-block; margin: 0 0 24px; padding-bottom: 8px; border-bottom: 2px solid #4d4742; font-size: 14px; font-weight: 400; color: #9b7865; }
.ungl-library__filter { margin: 0; border: 0; }
.ungl-library__filter summary { position: relative; padding: 10px 32px 10px 0; list-style: none; cursor: pointer; font-size: 18px; color: var(--ungl-gold); }
.ungl-library__filter summary::-webkit-details-marker { display: none; }
.ungl-library__filter summary::after { position: absolute; top: 16px; right: 10px; width: 0; height: 0; border-top: 8px solid #161619; border-right: 7px solid transparent; border-left: 7px solid transparent; content: ""; transition: transform .15s ease; }
.ungl-library__filter[open] summary { font-weight: 700; color: #242329; }
.ungl-library__filter[open] summary::after { transform: rotate(180deg); }
.ungl-library__filter-options { display: grid; gap: 1px; padding: 0 0 12px; }
.ungl-library__filter-options label { display: block; position: relative; margin: 0; padding: 0; font-size: 18px; font-weight: 400; line-height: 1.28; cursor: pointer; color: #706d6b; }
.ungl-library__filter-options label:hover span { color: #2c2a2a; }
.ungl-library__filter-options input[type="checkbox"] { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; white-space: nowrap; }
.ungl-library__filter-options input[type="checkbox"]:focus-visible + span { outline: 2px solid var(--ungl-gold); outline-offset: 2px; }
.ungl-library__filter-options input[type="checkbox"]:checked + span { font-weight: 700; color: var(--ungl-gold); }
.ungl-library__filter-empty { font-size: 14px; font-style: italic; color: #8a8581; }
.ungl-library__sidebar-image { width: 100%; margin: 72px 0 0; padding: 0; }
.ungl-library__sidebar-image img { display: block; width: 100%; height: auto; max-width: none; border: 0; }
.ungl-library__filter-actions { display: flex; align-items: center; gap: 18px; margin-top: 22px; }
.ungl-library__filter-actions button { padding: 10px 20px; border: 0; border-radius: 22px; font-weight: 700; color: #fff; background: var(--ungl-gold); cursor: pointer; }
.ungl-library__filter-actions a { font-size: 13px; color: #625e5b; }
.ungl-library__mobile-filter { display: none; }
.ungl-library__toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; min-height: 40px; margin-bottom: 60px; font-size: 13px; font-weight: 700; }
.ungl-library__toolbar label { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.ungl-library__toolbar select {
	appearance: none;
	min-width: 142px;
	height: 40px;
	padding: 0 38px 0 18px;
	border: 1px solid transparent;
	border-radius: 22px;
	outline: 0;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	color: #fff;
	background-color: var(--ungl-gold);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.25 6 6.25 11 1.25' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 15px center;
	box-shadow: 0 2px 5px rgba(112, 72, 0, .12);
	cursor: pointer;
	transition: background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.ungl-library__toolbar select:hover { background-color: #c98914; box-shadow: 0 4px 10px rgba(112, 72, 0, .2); }
.ungl-library__toolbar select:focus-visible { border-color: #242329; box-shadow: 0 0 0 3px rgba(217, 154, 37, .28); }
.ungl-library__toolbar select option { font-weight: 600; color: #302d29; background: #fff; }
.ungl-library__toolbar select.ungl-library__per-page { width: 70px; min-width: 70px; padding-right: 29px; padding-left: 13px; background-position: right 11px center; }
.ungl-library__all-filters { display: none; }
.ungl-library__view-switcher { display: flex; align-items: center; gap: 5px; min-width: 0; margin: 0; padding: 0; border: 0; }
.ungl-library__view-switcher legend { float: left; margin-right: 7px; padding: 0; }
.ungl-library__view-switcher label { display: block; position: relative; gap: 0; cursor: pointer; }
.ungl-library__view-switcher input { position: absolute; width: 1px; height: 1px; margin: -1px; clip-path: inset(50%); }
.ungl-view-icon { display: block; position: relative; width: 38px; height: 38px; border: 2px solid var(--ungl-gold); border-radius: 50%; color: var(--ungl-gold); background: #fff; }
.ungl-library__view-switcher input:checked + .ungl-view-icon { color: #fff; background: var(--ungl-gold); }
.ungl-library__view-switcher input:focus-visible + .ungl-view-icon { outline: 2px solid #242329; outline-offset: 2px; }
.ungl-view-icon--list::before { position: absolute; top: 10px; left: 10px; width: 15px; height: 3px; content: ""; background: currentColor; box-shadow: 0 6px 0 currentColor, 0 12px 0 currentColor; }
.ungl-view-icon--grid::before { position: absolute; top: 10px; left: 10px; width: 6px; height: 6px; content: ""; background: currentColor; box-shadow: 9px 0 0 currentColor, 0 9px 0 currentColor, 9px 9px 0 currentColor; }
.ungl-library__items { display: grid; }
.ungl-library-card { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 30px; min-height: 180px; margin: 0; padding: 0 0 28px; border-bottom: 1px solid var(--ungl-line); }
.ungl-library-card + .ungl-library-card { padding-top: 28px; }
.ungl-library-card__image { display: flex; align-items: center; justify-content: center; overflow: hidden; width: 100%; height: 160px; text-decoration: none; background: #ece8e1; }
.ungl-library-card__image img { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; filter: grayscale(1); transition: filter .2s ease, transform .2s ease; }
.ungl-library-card:hover .ungl-library-card__image img { filter: grayscale(.2); transform: scale(1.015); }
.ungl-library-card__image span { text-transform: uppercase; letter-spacing: .18em; color: #8a8176; }
.ungl-library-card__content { min-width: 0; padding-top: 3px; }
.ungl-library-card__eyebrow { margin-bottom: 3px; font-size: 14px; color: var(--ungl-gold); }
.ungl-library-card h2 { margin: 0 0 22px; font-size: 16px; line-height: 1.25; font-weight: 800; }
.ungl-library-card h2 a { text-decoration: none; color: #242329; }
.ungl-library-card h2 a:hover, .ungl-library-card h2 a:focus { color: #a86e00; text-decoration: underline; }
.ungl-library-card p { margin: 0 0 14px; font-size: 15px; line-height: 1.38; color: #66615e; }
.ungl-library-card__date { font-size: 14px; color: var(--ungl-gold); }
.ungl-library-card__date strong { color: #312f31; font-weight: 800; }
.ungl-library__items--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 24px; }
.ungl-library__items--grid .ungl-library-card,
.ungl-library__items--grid .ungl-library-card + .ungl-library-card { display: flex; flex-direction: column; gap: 0; min-width: 0; min-height: 0; padding: 0 0 22px; }
.ungl-library__items--grid .ungl-library-card__image { height: auto; aspect-ratio: 4 / 3; margin-bottom: 18px; }
.ungl-library__items--grid .ungl-library-card__content { padding: 0; }
.ungl-library__items--grid .ungl-library-card h2 { margin-bottom: 12px; }
.ungl-library__items--grid .ungl-library-card p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.ungl-library__empty { padding: 50px 20px; border-top: 1px solid var(--ungl-line); border-bottom: 1px solid var(--ungl-line); text-align: center; }
.ungl-library__pagination { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 34px; font-size: 14px; }
.ungl-library__pagination a { color: #7c5410; }

/* Keep Elementor's global form/button rules from changing the archive UI. */
body .ungl-library .ungl-library__all-filters,
body .ungl-library button.ungl-library__all-filters,
body .ungl-library .ungl-library__mobile-filter {
	display: none !important;
}

body .ungl-library .ungl-library__search input[type="search"] {
	display: block;
	width: 100% !important;
	height: 42px !important;
	min-height: 42px;
	margin: 0 !important;
	padding: 0 18px !important;
	border: 0 !important;
	border-radius: 23px !important;
	outline-offset: 2px;
	font-family: "Commissioner", sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 42px;
	color: #272326 !important;
	background: var(--ungl-beige) !important;
	box-shadow: none !important;
}

body .ungl-library .ungl-library__toolbar select {
	margin: 0 !important;
	border-radius: 22px !important;
	font-family: "Commissioner", sans-serif;
	line-height: normal;
}

body .ungl-library .ungl-library__view-switcher,
body .ungl-library .ungl-library__view-switcher legend {
	margin-top: 0;
	margin-bottom: 0;
}

@media (max-width: 1000px) {
	.ungl-library__layout { grid-template-columns: 260px minmax(0, 1fr); gap: 38px; }
	.ungl-library__toolbar { flex-wrap: wrap; margin-bottom: 38px; }
	.ungl-library-card { grid-template-columns: 200px minmax(0, 1fr); gap: 22px; }
	.ungl-library__items--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
	.ungl-library { width: min(100% - 30px, 620px); margin-top: 24px; }
	.ungl-library__crumbs { margin-bottom: 24px; }
	.ungl-library__search { margin-bottom: 22px; }
	.ungl-library__search input { padding-left: 20px; }
	.ungl-library__layout { display: flex; flex-direction: column; gap: 24px; }
	.ungl-library__sidebar, .ungl-library__results { width: 100%; }
	.ungl-library__count { margin-bottom: 14px; }
	body .ungl-library .ungl-library__mobile-filter { display: block !important; width: 100%; padding: 11px 18px; border: 0; border-radius: 22px; font-weight: 700; color: #fff; background: #29282d; }
	.ungl-library__filter-panel { display: none; margin-top: 18px; padding: 20px; background: #faf8f4; }
	.ungl-library__filter-panel.is-open { display: block; }
	body .ungl-library .ungl-library__sidebar-image { display: none !important; }
	.ungl-library__toolbar { justify-content: flex-start; margin-bottom: 20px; }
	.ungl-library__all-filters { display: none; }
	.ungl-library-card { grid-template-columns: 130px minmax(0, 1fr); gap: 16px; min-height: 0; }
	.ungl-library-card__image { height: 108px; }
	.ungl-library-card h2 { margin-bottom: 9px; }
	.ungl-library-card p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
	body .ungl-library .ungl-library__items--list { grid-template-columns: 1fr; }
	body .ungl-library .ungl-library__items--list .ungl-library-card,
	body .ungl-library .ungl-library__items--list .ungl-library-card + .ungl-library-card { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding-top: 22px; padding-bottom: 22px; }
	body .ungl-library .ungl-library__items--list .ungl-library-card:first-child { padding-top: 0; }
	body .ungl-library .ungl-library__items--list .ungl-library-card__image { height: 108px; margin: 0; aspect-ratio: auto; }
	body .ungl-library .ungl-library__items--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
	body .ungl-library .ungl-library__items--grid .ungl-library-card,
	body .ungl-library .ungl-library__items--grid .ungl-library-card + .ungl-library-card { display: flex; flex-direction: column; gap: 0; padding: 0 0 16px; }
	body .ungl-library .ungl-library__items--grid .ungl-library-card__image { width: 100%; height: auto; margin: 0 0 12px; aspect-ratio: 4 / 3; }
	body .ungl-library .ungl-library__items--grid .ungl-library-card p { display: none; }
}

@media (max-width: 460px) {
	body .ungl-library .ungl-library__items--list .ungl-library-card,
	body .ungl-library .ungl-library__items--list .ungl-library-card + .ungl-library-card { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
	body .ungl-library .ungl-library__items--list .ungl-library-card__image { height: 82px; }
	body .ungl-library .ungl-library__items--list .ungl-library-card p { display: none; }
	body .ungl-library .ungl-library__items--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 10px; }
	body .ungl-library .ungl-library__items--grid .ungl-library-card h2 { font-size: 13px; }
	body .ungl-library .ungl-library__items--grid .ungl-library-card__eyebrow,
	body .ungl-library .ungl-library__items--grid .ungl-library-card__date { font-size: 11px; }
}

.ungl-public-item__article {
	width: 100%;
}

.ungl-public-item .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
	white-space: nowrap;
}

.ungl-public-item__preview {
	margin-bottom: 24px;
	padding: 12px 15px;
	border: 1px solid #efd699;
	border-radius: 7px;
	font-size: 14px;
	color: #6f5310;
	background: #fff9e9;
}

.ungl-public-item__breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-bottom: 18px;
	font-size: 13px;
	color: var(--ungl-public-muted);
}

.ungl-public-item__breadcrumbs span + span::before {
	margin-right: 7px;
	content: "/";
	color: #a4afb8;
}

.ungl-public-item__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 30px;
	padding-bottom: 22px;
	border-bottom: 1px solid var(--ungl-public-border);
}

.ungl-public-item__header.has-hidden-title {
	justify-content: flex-end;
}

.ungl-public-item__header h1 {
	margin: 0;
	font-size: clamp(32px, 5vw, 52px);
	line-height: 1.08;
	letter-spacing: -.025em;
}

.ungl-public-item__dates {
	display: flex;
	align-items: flex-end;
	flex-direction: column;
	gap: 3px;
	flex: 0 0 auto;
	padding-bottom: 5px;
}

.ungl-public-item__dates time {
	flex: 0 0 auto;
	font-size: 13px;
	color: var(--ungl-public-muted);
}

.ungl-public-item__featured {
	overflow: hidden;
	margin: 0 0 32px;
	border-radius: 12px;
	background: var(--ungl-public-soft);
}

.ungl-public-item__featured img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 680px;
	object-fit: contain;
}

.ungl-public-item__description {
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin-bottom: 36px;
	font-size: 17px;
	line-height: 1.75;
}

.ungl-public-item__description > :first-child {
	margin-top: 0;
}

.ungl-public-item__description > :last-child {
	margin-bottom: 0;
}

.ungl-public-item__parameters,
.ungl-public-item__gallery,
.ungl-public-item__videos,
.ungl-public-item__files {
	margin-top: 34px;
}

.ungl-public-item__parameters h2,
.ungl-public-item__gallery h2,
.ungl-public-item__videos h2,
.ungl-public-item__files h2 {
	margin: 0 0 16px;
	font-size: 22px;
}

.ungl-public-item__parameters dl {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	overflow: hidden;
	margin: 0;
	border: 1px solid var(--ungl-public-border);
	border-radius: 9px;
	background: var(--ungl-public-border);
}

.ungl-public-item__parameters dl > div {
	padding: 16px 18px;
	background: #fff;
}

.ungl-public-item__parameters dt {
	margin-bottom: 5px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--ungl-public-muted);
}

.ungl-public-item__parameters dd {
	margin: 0;
	font-size: 15px;
}

.ungl-public-item__gallery-grid {
	display: grid;
	grid-template-columns: repeat(var(--ungl-gallery-columns, 4), minmax(0, 1fr));
	gap: 12px;
}

.ungl-public-item__gallery-link {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: 0;
	background: var(--ungl-public-soft);
}

.ungl-public-item__gallery-link img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	border-radius: 0;
	object-fit: cover;
	transition: transform 180ms ease;
}

.ungl-public-item__gallery-link::after {
	position: absolute;
	z-index: 1;
	right: 0;
	bottom: 0;
	left: 0;
	height: 58%;
	pointer-events: none;
	content: "";
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0) 0%,
		rgba(0, 0, 0, .08) 32%,
		rgba(0, 0, 0, .66) 100%
	);
}

.ungl-public-item__gallery-link:hover img,
.ungl-public-item__gallery-link:focus-visible img {
	transform: scale(1.025);
}

.ungl-public-item__gallery-link > span {
	position: absolute;
	z-index: 2;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 30px 12px 10px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}

.ungl-public-item__video-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.ungl-public-item__video-grid figure {
	overflow: hidden;
	margin: 0;
	border: 1px solid var(--ungl-public-border);
	border-radius: 9px;
	background: #fff;
}

.ungl-public-item__video-grid video {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #101418;
}

.ungl-public-item__video-grid figcaption {
	padding: 11px 13px;
	font-size: 13px;
	color: var(--ungl-public-muted);
}

.ungl-public-item__files ul {
	margin: 0;
	padding: 0;
	border: 1px solid var(--ungl-public-border);
	border-radius: 9px;
	list-style: none;
}

.ungl-public-item__files li {
	margin: 0;
	border-bottom: 1px solid var(--ungl-public-border);
}

.ungl-public-item__files li:last-child {
	border-bottom: 0;
}

.ungl-public-item__files a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 15px 17px;
	text-decoration: none;
}

.ungl-public-item__files a:hover span {
	text-decoration: underline;
}

.ungl-public-item__files small {
	flex: 0 0 auto;
	color: var(--ungl-public-muted);
}

.ungl-public-item__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 32px;
}

.ungl-public-item__tags span {
	padding: 5px 10px;
	border-radius: 14px;
	font-size: 12px;
	color: #235d87;
	background: #eaf3f9;
}

.ungl-lightbox-open {
	overflow: hidden;
}

.ungl-lightbox[hidden] {
	display: none;
}

.ungl-lightbox {
	position: fixed;
	z-index: 100000;
	inset: 0;
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr) 52px;
	align-items: center;
	gap: 16px;
	padding: 34px;
	background: rgba(8, 13, 18, .94);
}

.ungl-lightbox figure {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
	max-height: calc(100vh - 68px);
	margin: 0;
}

.ungl-lightbox figure img {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 120px);
	border-radius: 0;
	object-fit: contain;
}

.ungl-lightbox figure p {
	margin: 0;
	font-size: 13px;
	text-align: center;
	color: #e7edf2;
}

.ungl-lightbox button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 50%;
	font-size: 34px;
	line-height: 1;
	color: #fff;
	background: rgba(255, 255, 255, .08);
	cursor: pointer;
}

.ungl-lightbox button:hover,
.ungl-lightbox button:focus-visible {
	border-color: rgba(255, 255, 255, .55);
	background: rgba(255, 255, 255, .16);
}

.ungl-lightbox__close {
	position: absolute;
	top: 18px;
	right: 18px;
}

@media (max-width: 680px) {
	.ungl-public-item {
		width: min(100% - 28px, 1040px);
		margin-top: 30px;
	}

	.ungl-public-item__header {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
	}

	.ungl-public-item__parameters dl {
		grid-template-columns: 1fr;
	}

	.ungl-public-item__gallery-grid,
	.ungl-public-item__video-grid {
		grid-template-columns: 1fr;
	}

	.ungl-public-item__files a {
		align-items: flex-start;
		flex-direction: column;
		gap: 4px;
	}

	.ungl-lightbox {
		grid-template-columns: 38px minmax(0, 1fr) 38px;
		gap: 6px;
		padding: 24px 8px;
	}

	.ungl-lightbox button {
		width: 38px;
		height: 38px;
		font-size: 28px;
	}

	.ungl-lightbox__close {
		top: 10px;
		right: 10px;
	}
}
