/* Image Bank — hero, toolbar, hover cards */

.m2m-image-library {
	overflow-x: hidden;
	font-family: "Dosis", sans-serif;
	font-weight: 300;
	font-size: 14px;
}

/*
 * Bootstrap sets html { font-size: 10px } for rem grid math — use px for UI copy
 * so text never renders below 12px (e.g. 0.875rem === 8.75px).
 */

.m2m-image-library-region-map-panel {
	padding: 2rem 1.5rem 1rem;
	background: #fff;
}

/* Hero */
.m2m-image-library-hero {
	position: relative;
	min-height: 55vh;
	height: auto;
	background-color: #222;
	background-position: center;
	background-size: cover;
	text-align: center;
}

.m2m-image-library-hero--subpage {
	height: 300px;
	min-height: 300px;
	max-height: 300px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.m2m-image-library-hero--subpage > .container {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-height: 0;
	width: 100%;
}

.m2m-image-library-hero > .container {
	position: relative;
	z-index: 1;
}

.m2m-image-library-hero .pushdown {
	padding: 140px 15px 80px;
	color: #fff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
	text-align: center;
}

/* Subpage hero (300px) — override site.css #container-category-header padding-top: 300px */
#container-category-header.m2m-image-library-hero--subpage .pushdown {
	padding: 15px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	flex: 1 1 auto;
	min-height: 0;
	height: 100%;
	box-sizing: border-box;
}

.m2m-image-library #container-category-header .pushdown h1,
.m2m-image-library #container-category-header .pushdown h2,
.m2m-image-library #container-category-header .pushdown h3,
.m2m-image-library #container-category-header .pushdown p {
	color: #fff;
}

.m2m-image-library-hero .pushdown h1 {
	font-size: clamp(2.5rem, 6vw, 4.375rem);
	font-family: "Dosis", sans-serif;
	text-transform: uppercase;
	margin: 0 0 0.5rem;
	font-weight: 300;
	line-height: 1.05;
}

.m2m-image-library-hero--subpage .pushdown h1 {
	font-size: clamp(1.5rem, 4vw, 2rem);
	line-height: 1.1;
	margin-bottom: 0.25rem;
}

.m2m-image-library-hero--subpage .pushdown .m2m-hero-taxonomy-label {
	font-size: clamp(12px, 2vw, 16px);
	margin-top: 0.15rem;
}

.m2m-image-library-hero .pushdown .m2m-hero-tagline,
.m2m-image-library-hero .pushdown .m2m-hero-taxonomy-label,
.m2m-image-library-hero .pushdown p {
	font-family: "Dosis", sans-serif;
	font-size: clamp(12px, 2.2vw, 24px);
	text-transform: uppercase;
	margin: 0;
	letter-spacing: 0.04em;
}

.m2m-image-library-hero .pushdown .m2m-hero-tagline {
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

.m2m-image-library-hero .pushdown .m2m-hero-taxonomy-label {
	margin-top: 0.35rem;
	opacity: 0.95;
}

.m2m-hero-search-form {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	width: min(100%, 36rem);
	margin-top: 2rem;
	margin-left: auto;
	margin-right: auto;
	padding: 0.35rem 0.35rem 0.35rem 1.25rem;
	background: #fff;
	border-radius: 999px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.m2m-hero-search-icon {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E");
}

.m2m-hero-search-form input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	background: transparent;
	color: #414042;
	caret-color: #414042;
	font-size: 18px;
	padding: 0.85rem 0;
	outline: none;
	box-shadow: none;
}

.m2m-hero-search-form input[type="search"]::placeholder {
	color: rgba(65, 64, 66, 0.55);
}

/* Sticky toolbar */
.m2m-library-toolbar {
	position: sticky;
	top: 75px;
	background: #fff;
	color: #777;
	width: 100%;
	z-index: 1020;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.m2m-library-toolbar-inner {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	gap: 0;
	max-width: 100%;
}

.m2m-library-filters-form {
	display: flex;
	flex: 1 1 auto;
	align-items: stretch;
	min-width: 0;
	margin: 0;
}

/* Desktop: row wrappers are transparent so all cells sit on one line */
.m2m-toolbar-row--filters,
.m2m-toolbar-row--actions {
	display: contents;
}

.m2m-toolbar-cell {
	display: flex;
	align-items: center;
	gap: 1.3rem;
	padding: 0 2.5rem;
	border-right: 1px solid rgba(0, 0, 0, 0.15);
	min-height: 6.5rem;
}

.m2m-toolbar-cell select {
	appearance: none;
	-webkit-appearance: none;
	border: 0;
	background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23777' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") right center / 1.3rem no-repeat;
	color: #777;
	font-family: "Dosis", sans-serif;
	font-size: 1.9rem;
	text-transform: uppercase;
	padding: 0.7rem 2.5rem 0.7rem 0;
	min-width: 14rem;
	max-width: 24rem;
	cursor: pointer;
	outline: none;
}

.m2m-toolbar-cell select option {
	color: #111;
	background: #fff;
}

.m2m-toolbar-cell--search {
	flex: 1 1 auto;
	position: relative;
	padding-left: 2rem;
}

.m2m-toolbar-search-icon {
	flex: 0 0 2rem;
	width: 2rem;
	height: 2rem;
	background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E");
	opacity: 0.85;
}

.m2m-toolbar-cell--search input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	background: transparent;
	color: #777;
	font-family: "Dosis", sans-serif;
	font-size: 18px;
	text-transform: uppercase;
	padding: 0.7rem 0;
	outline: none;
	box-shadow: none;
}

.m2m-toolbar-cell--search input[type="search"]::placeholder {
	color: rgba(119, 119, 119, 0.65);
	font-size: 18px;
	text-transform: uppercase;
}

.m2m-toolbar-clear-link {
	color: #777;
	font-family: "Dosis", sans-serif;
	font-size: 1.7rem;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
}

.m2m-toolbar-clear-link:hover,
.m2m-toolbar-clear-link:focus {
	text-decoration: none;
	color: #555;
}

.m2m-library-toolbar-commerce {
	display: flex;
	align-items: stretch;
	flex: 0 0 auto;
}

.m2m-library-account-link,
.m2m-library-cart-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 6.5rem;
	min-height: 6.5rem;
	border: 0;
	border-left: 1px solid rgba(0, 0, 0, 0.15);
	background: transparent;
	color: #777;
	padding: 0;
	cursor: pointer;
	text-decoration: none;
	position: relative;
}

.m2m-library-account-link {
	background: center / 2.5rem no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='1.75'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 3.5-7 8-7s8 3 8 7'/%3E%3C/svg%3E");
}

.m2m-library-cart-toggle {
	background: center / 2.5rem no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='1.75'%3E%3Cpath d='M6 6h15l-1.5 9h-12z'/%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3Cpath d='M6 6L5 3H2'/%3E%3C/svg%3E");
}

.m2m-library-cart-count {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	min-width: 1.4rem;
	height: 1.4rem;
	padding: 0 0.3rem;
	border-radius: 999px;
	background: #ce1b22;
	color: #fff;
	font-size: 12px;
	line-height: 1.4rem;
	text-align: center;
}

.m2m-library-cart-count:empty,
.m2m-library-cart-count[data-count="0"] {
	display: none;
}

.m2m-library-mini-cart {
	position: relative;
}

.m2m-library-cart-dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	min-width: 36rem;
	max-width: 44rem;
	background: #fff;
	color: #222;
	border: 1px solid #ddd;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
	z-index: 1050;
	padding: 0.75rem;
}


/* Grid panel */
.m2m-image-library-grid-panel {
	padding-top: 1.5rem;
	padding-bottom: 2rem;
}

.m2m-library-gallery-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	padding: 1.5rem 0 0.5rem;
	font-family: "Dosis", sans-serif;
}

.m2m-library-gallery-count {
	margin: 0;
	color: #777;
	font-size: 1.6rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.m2m-library-no-results {
	width: 100%;
	margin: 3rem 0;
	color: #777;
	font-size: 1.8rem;
	letter-spacing: 0.04em;
	text-align: center;
	text-transform: uppercase;
}

.m2m-library-pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
}

.m2m-library-pager .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.4rem;
	padding: 0.4rem 0.7rem;
	color: #777;
	font-size: 1.6rem;
	text-decoration: none;
	text-transform: uppercase;
}

.m2m-library-pager a.page-numbers:hover,
.m2m-library-pager a.page-numbers:focus {
	color: #ce1b22;
}

.m2m-library-pager .page-numbers.current {
	color: #111;
	font-weight: 600;
}

.m2m-library-gallery-nav--above {
	padding: 0 0 1rem;
}

.m2m-library-gallery-nav--pager {
	justify-content: flex-end;
}

.m2m-image-library .m2m-image-grid .work-item {
	position: relative;
	overflow: hidden;
}

.m2m-image-library .m2m-image-grid .work-item .inner img {
	display: block;
	width: 100%;
	height: auto;
}

/* Subject category tiles — title bar always visible */
.m2m-subject-browse .m2m-subject-tile-link {
	position: absolute;
	inset: 0;
	z-index: 2;
	text-indent: -9999px;
	overflow: hidden;
}

.m2m-subject-browse .m2m-subject-tile .inner img {
	display: block;
	width: auto;
	height: 100%;
	max-width: none;
}

.m2m-subject-browse .m2m-subject-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 220px;
	background: #ddd;
}

.m2m-subject-browse .m2m-subject-hover-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 0;
	background: rgba(238, 244, 247, 0.96);
	border-top: 1px solid rgba(0, 0, 0, 0.06);
	z-index: 3;
}

.m2m-subject-browse .m2m-subject-hover-title {
	flex: 1 1 auto;
	padding: 1.7rem 2rem;
	font-family: "Dosis", sans-serif;
	font-size: 2rem;
	font-weight: 300;
	text-transform: uppercase;
	color: #ce1b22;
	letter-spacing: 0.04em;
}

.m2m-subject-browse .m2m-subject-hover-chevron {
	flex: 0 0 6rem;
	align-self: stretch;
	display: flex;
	align-items: center;
	justify-content: center;
	border-left: 1px solid rgba(0, 0, 0, 0.12);
	font-size: 2.7rem;
	line-height: 1;
	color: #666;
}

/* Image gallery — full image opens modal; meta bar on hover */
.m2m-image-library .m2m-library-item .inner {
	position: relative;
}

.m2m-image-library .m2m-library-sale-badge {
	position: absolute;
	top: 0.6rem;
	left: 0.6rem;
	z-index: 3;
	padding: 0.2rem 0.5rem;
	background: #ce1b22;
	color: #fff;
	font-family: "Dosis", sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.2;
	text-transform: uppercase;
	pointer-events: none;
}

/* MLA thumbnail may output a linked image; keep a single visible image per tile */
.m2m-image-library .m2m-library-item .inner > a:not(.m2m-library-tile-link) {
	display: block;
	position: relative;
	z-index: 1;
	pointer-events: none;
}

.m2m-image-library .m2m-library-item .inner img:not(:first-of-type) {
	display: none !important;
}

.m2m-image-library .m2m-library-item .inner .m2m-library-video-poster {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

.m2m-image-library .m2m-library-item[data-mime^="video/"] .inner {
	position: relative;
}

.m2m-image-library .m2m-library-video-play {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 2;
	transform: translate(-50%, -50%);
	pointer-events: none;
	line-height: 1;
}

.m2m-image-library .m2m-library-video-play .fa-circle-play {
	font-size: 3.25rem;
	color: rgba(255, 255, 255, 0.95);
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

.m2m-image-library .m2m-library-tile-link {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: block;
	text-indent: -9999px;
	overflow: hidden;
}

.m2m-image-library .m2m-library-hover-bar {
	display: flex;
	align-items: stretch;
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(245, 240, 234, 0.97);
	border-top: 1px solid rgba(0, 0, 0, 0.06);
	opacity: 0;
	visibility: hidden;
	transform: translateY(100%);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
	z-index: 3;
}

.m2m-image-library .m2m-library-item:hover .m2m-library-hover-bar,
.m2m-image-library .m2m-library-item:focus-within .m2m-library-hover-bar {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.m2m-image-library .m2m-library-hover-link {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	padding: 0.85rem 1.25rem;
	text-decoration: none;
	color: inherit;
}

.m2m-image-library .m2m-library-hover-title {
	display: block;
	font-size: 14px;
	line-height: 1.3;
	font-weight: 300;
	color: #666;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.m2m-image-library .m2m-library-hover-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: 0.5rem;
	margin-top: 0.4rem;
	font-family: "Dosis", sans-serif;
	font-size: 12px;
	font-weight: 300;
	text-transform: uppercase;
	color: #9a4a3a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.m2m-image-library .m2m-meta-sep {
	flex: 0 0 auto;
	opacity: 0.65;
	font-weight: 400;
}

.m2m-image-library .m2m-library-hover-creator:empty,
.m2m-image-library .m2m-library-hover-subject:empty {
	display: none;
}

.m2m-image-library .m2m-library-hover-creator:empty + .m2m-meta-sep,
.m2m-image-library .m2m-meta-sep:has(+ .m2m-library-hover-subject:empty) {
	display: none;
}

.m2m-image-library .m2m-library-add-cart-grid {
	flex: 0 0 3.25rem;
	align-self: stretch;
	border: 0;
	border-left: 1px solid rgba(0, 0, 0, 0.12);
	background: center / 1.35rem no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='1.75'%3E%3Cpath d='M6 6h15l-1.5 9h-12z'/%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3Cpath d='M6 6L5 3H2'/%3E%3C/svg%3E") transparent;
	cursor: pointer;
	padding: 0;
}

.m2m-image-library .m2m-library-add-cart-grid:hover,
.m2m-image-library .m2m-library-add-cart-grid:focus {
	background-color: rgba(0, 0, 0, 0.04);
	outline: none;
}

.m2m-image-library .m2m-library-add-cart-grid.is-loading {
	opacity: 0.5;
	pointer-events: none;
}

.m2m-image-library .m2m-library-add-cart-grid.is-added,
#imageLibraryModal .m2m-library-add-cart.is-added {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
	opacity: 1;
	pointer-events: none;
	cursor: default;
}

/* Lightbox — full viewport (Screen Collective style) */
#imageLibraryModal.modal {
	padding: 0 !important;
}

#imageLibraryModal .m2m-library-modal-dialog {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	max-width: none;
}

#imageLibraryModal .m2m-library-modal {
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: #eaeaea;
}

#imageLibraryModal .m2m-library-modal-header {
	display: flex;
	align-items: stretch;
	flex: 0 0 auto;
	min-height: 6.5rem;
	background: #fff;
	border-bottom: 1px solid rgba(0, 0, 0, 0.15);
	color: #777;
}

#imageLibraryModal .m2m-library-modal-detail {
	display: flex;
	flex-direction: column;
	justify-content: center;
	flex: 1 1 auto;
	min-width: 0;
	padding: 1rem 2rem;
}

#imageLibraryModal .m2m-library-detail-title {
	display: block;
	font-family: "Dosis", sans-serif;
	font-size: 14px;
	line-height: 1.3;
	font-weight: 300;
	color: #666;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

#imageLibraryModal .m2m-library-modal-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: 0.5rem;
	margin-top: 0.4rem;
	font-family: "Dosis", sans-serif;
	font-size: 12px;
	font-weight: 300;
	text-transform: uppercase;
	color: #9a4a3a;
}

#imageLibraryModal .m2m-library-detail-price {
	display: block;
	margin-top: 0.35rem;
	font-family: "Dosis", sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.3;
	color: #414042;
}

#imageLibraryModal .m2m-library-detail-price del {
	opacity: 0.65;
	margin-right: 0.4rem;
}

#imageLibraryModal .m2m-library-detail-price ins {
	text-decoration: none;
	font-weight: 600;
	color: #ce1b22;
}

#imageLibraryModal .m2m-library-hover-creator:empty,
#imageLibraryModal .m2m-library-hover-subject:empty {
	display: none;
}

#imageLibraryModal .m2m-library-hover-creator:empty + .m2m-meta-sep,
#imageLibraryModal .m2m-meta-sep:has(+ .m2m-library-hover-subject:empty) {
	display: none;
}

#imageLibraryModal .m2m-meta-sep {
	flex: 0 0 auto;
	opacity: 0.65;
}

#imageLibraryModal .m2m-library-description img {
	display: none !important;
}

#imageLibraryModal .m2m-library-image-stage img:not(.m2m-library-image) {
	display: none !important;
}

#imageLibraryModal .m2m-library-modal-actions {
	display: flex;
	align-items: stretch;
	flex: 0 0 auto;
}

#imageLibraryModal .m2m-library-modal-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 6.5rem;
	min-height: 6.5rem;
	padding: 0;
	border: 0;
	border-left: 1px solid rgba(0, 0, 0, 0.15);
	background: transparent center / 2.5rem no-repeat;
	cursor: pointer;
	text-indent: -9999px;
	overflow: hidden;
}

#imageLibraryModal .m2m-library-modal-icon:hover,
#imageLibraryModal .m2m-library-modal-icon:focus {
	background-color: rgba(0, 0, 0, 0.04);
	outline: none;
}

#imageLibraryModal .m2m-library-modal-icon:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

#imageLibraryModal .m2m-library-prev {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 6l-6 6 6 6'/%3E%3C/svg%3E");
}

#imageLibraryModal .m2m-library-next {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 6l6 6-6 6'/%3E%3C/svg%3E");
}

#imageLibraryModal .m2m-library-add-cart {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='1.75'%3E%3Cpath d='M6 6h15l-1.5 9h-12z'/%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3Cpath d='M6 6L5 3H2'/%3E%3C/svg%3E");
}

#imageLibraryModal .m2m-library-modal-close {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='1.75' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
	opacity: 1;
	text-shadow: none;
}

#imageLibraryModal .m2m-library-modal-body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	padding: 0;
	overflow: hidden;
}

#imageLibraryModal.loading .m2m-library-image-stage {
	opacity: 0.45;
}

#imageLibraryModal .m2m-library-image-stage {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 auto;
	min-height: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	box-sizing: border-box;
	overflow: hidden;
}

#imageLibraryModal .m2m-library-image,
#imageLibraryModal .m2m-library-video {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

#imageLibraryModal .m2m-library-video {
	background: #000;
}

#imageLibraryModal .m2m-library-image[hidden],
#imageLibraryModal .m2m-library-video[hidden] {
	display: none !important;
}

#imageLibraryModal .m2m-library-description {
	flex: 0 0 auto;
	max-height: 8rem;
	overflow-y: auto;
	padding: 0.75rem 2rem 1.25rem;
	font-size: 12px;
	color: #555;
	background: #eaeaea;
}

#imageLibraryModal .m2m-library-description:empty {
	display: none;
}

@media (max-width: 991px) {
	#imageLibraryModal .m2m-library-modal-header {
		min-height: 4.25rem;
	}

	#imageLibraryModal .m2m-library-modal-detail {
		padding: 0.75rem 1rem;
	}

	#imageLibraryModal .m2m-library-modal-icon {
		width: 4.25rem;
		min-height: 4.25rem;
		background-size: 2rem;
	}
}

@media (max-width: 991px) {
	.m2m-library-toolbar {
		top: 60px;
	}

	.m2m-library-toolbar-inner {
		flex-direction: column;
	}

	.m2m-library-filters-form {
		flex-direction: column;
		width: 100%;
	}

	.m2m-toolbar-row--filters,
	.m2m-toolbar-row--actions {
		display: flex;
		width: 100%;
		align-items: stretch;
	}

	.m2m-toolbar-row--filters {
		border-bottom: 1px solid rgba(0, 0, 0, 0.15);
	}

	.m2m-toolbar-row--actions {
		border-bottom: 0;
	}

	.m2m-toolbar-row--filters .m2m-toolbar-cell {
		flex: 1 1 0;
		min-width: 0;
		border-right: 1px solid rgba(0, 0, 0, 0.15);
		border-bottom: 0;
		padding: 0 0.5rem;
		min-height: 4.25rem;
	}

	.m2m-toolbar-row--filters .m2m-toolbar-cell:last-child {
		border-right: 0;
	}

	.m2m-toolbar-row--filters .m2m-toolbar-cell select {
		min-width: 0;
		max-width: 100%;
		width: 100%;
		font-size: 14px;
		padding: 0.5rem 1.75rem 0.5rem 0;
		background-size: 1rem;
	}

	.m2m-toolbar-row--actions .m2m-toolbar-cell {
		flex: 0 0 auto;
		border-right: 1px solid rgba(0, 0, 0, 0.15);
		border-bottom: 0;
		min-height: 4.25rem;
		padding: 0 1rem;
	}

	.m2m-toolbar-row--actions .m2m-toolbar-cell--search {
		flex: 1 1 auto;
		min-width: 0;
		padding-left: 1rem;
	}

	.m2m-toolbar-cell--search input[type="search"],
	.m2m-toolbar-cell--search input[type="search"]::placeholder {
		font-size: 18px;
		padding: 0.5rem 0;
	}

	.m2m-toolbar-clear-link {
		font-size: 14px;
	}

	.m2m-library-toolbar-commerce {
		display: flex;
		flex: 0 0 auto;
		align-items: stretch;
		border-right: 0;
		padding: 0;
		min-height: 0;
	}

	.m2m-library-account-link,
	.m2m-library-cart-toggle {
		width: 4.25rem;
		min-height: 4.25rem;
		border-left: 1px solid rgba(0, 0, 0, 0.15);
	}

	.m2m-image-library-hero .pushdown {
		padding-top: 110px;
		padding-bottom: 60px;
	}

	#container-category-header.m2m-image-library-hero--subpage .pushdown {
		padding: 15px;
	}

	.m2m-hero-search-row {
		margin-top: 1.25rem;
	}

	.m2m-hero-search-form {
		flex: 1 1 100%;
		width: 100%;
		max-width: 36rem;
	}

	.m2m-hero-search-row .m2m-library-gallery-nav--hero {
		flex: 1 1 auto;
		justify-content: center;
	}

	.m2m-image-library-hero .pushdown .m2m-hero-search-row .m2m-library-gallery-count,
	.m2m-hero-search-row .m2m-library-gallery-nav--hero .m2m-library-gallery-count {
		white-space: normal;
		text-align: center;
	}

	.m2m-subject-browse .m2m-subject-hover-title {
		font-size: 1.5rem;
		padding: 1.2rem 1.4rem;
	}

	.m2m-subject-browse .m2m-subject-hover-chevron {
		flex: 0 0 4.5rem;
		font-size: 2rem;
	}

	.m2m-image-library .m2m-library-add-cart-grid {
		flex: 0 0 3rem;
	}
}

/* How it works steps → matching FAQ accordion */
.m2m-ib-steps-hint {
	margin: 0 0 1.6rem;
	font-family: "Dosis", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	color: #414042;
}

.m2m-ib-steps__trigger {
	display: flex;
	align-items: center;
	gap: 1.6rem;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	text-align: left;
	cursor: pointer;
	font: inherit;
	color: inherit;
}

.m2m-ib-steps__trigger:hover .m2m-ib-steps__label,
.m2m-ib-steps__trigger:focus-visible .m2m-ib-steps__label {
	text-decoration: underline;
}

.m2m-ib-steps__trigger:focus {
	outline: none;
}

.m2m-ib-steps__trigger:focus-visible {
	outline: 2px solid #ce1b22;
	outline-offset: 4px;
}
