/* Scoped to the two gallery archive templates only. */
.roots-gallery-archive .roots-gallery-filters {
	margin: 24px 0 28px;
}
.roots-gallery-archive .roots-gallery-filter + .roots-gallery-filter {
	margin-top: 14px;
}
.roots-gallery-archive .roots-gallery-filter__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.roots-gallery-archive .roots-gallery-filter__list > li {
	margin: 0;
	padding: 0;
}
.roots-gallery-archive .roots-gallery-filter__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 9px 18px;
	border: 1px solid #c8cdd2;
	border-radius: 5px;
	background: #fff;
	color: #333;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none;
	transition: background-color .15s, color .15s, border-color .15s;
}
.roots-gallery-archive .roots-gallery-filter__link:hover,
.roots-gallery-archive .roots-gallery-filter__link.is-active {
	border-color: #252525;
	background: #252525;
	color: #fff;
}
.roots-gallery-archive .roots-gallery-filter__link:focus-visible {
	outline: 2px solid #1565c0;
	outline-offset: 3px;
}
.roots-gallery-archive .roots-gallery-description {
	margin-bottom: 24px;
}
@media (max-width: 599px) {
	.roots-gallery-archive .roots-gallery-filters { margin: 20px 0 24px; }
	.roots-gallery-archive .roots-gallery-filter__link { padding: 9px 12px; font-size: 13px; }
}


/* Preserve pre-2024 portraits, including the all-years archive. */
.roots-gallery-archive .roots-gallery-portrait .c-postThumb__figure {
    aspect-ratio: var(--roots-gallery-portrait-ratio);
}
.roots-gallery-archive .roots-gallery-portrait .c-postThumb__figure::before {
    display: none;
}
.roots-gallery-archive .roots-gallery-portrait .c-postThumb__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* Zooming would crop the edges again when hovering over a portrait. */
.roots-gallery-archive .p-postList__link:hover .roots-gallery-portrait .c-postThumb__img {
    transform: none;
}
