/* ACA Exhibits — front end. Mirrors the hand-built Divi exhibit card on /gallery/. */
.aca-exhibits { --aca-ex-accent: #cc3333; --aca-ex-ink: #333; --aca-ex-muted: #666; }

.aca-exhibits--cards { display: grid; gap: 30px; margin: 0 0 20px; }

.aca-exhibit {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	background: #fff;
	border-radius: 5px;
	overflow: hidden;
	box-shadow: 0 2px 18px 0 rgba(0, 0, 0, .3);
	color: var(--aca-ex-ink);
	text-align: left;
}
.aca-exhibit--no-image { grid-template-columns: minmax(0, 1fr); }

.aca-exhibit__media { min-height: 100%; background: #f4f4f4; }
.aca-exhibit__media img,
.aca-exhibit__img { display: block; width: 100%; height: 100%; min-height: 428px; max-height: 560px; object-fit: cover; }

.aca-exhibit__body { padding: 36px 40px 32px; font-size: 14px; line-height: 1.7; }
.aca-exhibit--no-image .aca-exhibit__body { padding: 36px 48px 32px; border-left: 6px solid var(--aca-ex-accent); }

.aca-exhibit__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.aca-exhibit__badge,
.aca-exhibit__audience {
	display: inline-block; padding: 3px 10px; border-radius: 3px;
	font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; line-height: 1.6;
}
.aca-exhibit__badge { background: var(--aca-ex-accent); color: #fff; }
.aca-exhibit__badge--upcoming { background: #333; }
.aca-exhibit__badge--ended { background: #888; }
.aca-exhibit__audience { background: #f2f2f2; color: var(--aca-ex-muted); }

.aca-exhibit .aca-exhibit__title { font-size: 29px; line-height: 1.3em; margin: 0 0 6px; padding: 0; }
.aca-exhibit .aca-exhibit__dates { font-size: 18px; font-weight: 600; color: var(--aca-ex-accent); margin: 0 0 14px; padding: 0; }
.aca-exhibit__desc p { padding-bottom: 1em; margin: 0; }
.aca-exhibit__desc p:last-child { padding-bottom: .5em; }

.aca-exhibit ul.aca-exhibit__details,
.aca-exhibits__panel-body ul.aca-exhibit__details { margin: 4px 0 0; padding: 0 0 0 1.2em; list-style: disc; }
.aca-exhibit__details li { margin: 0 0 4px; }

.aca-exhibit__actions { margin-top: 20px; text-align: right; }
body #page-container .aca-exhibit .aca-exhibit__button,
body #page-container .aca-exhibits__panel .aca-exhibit__button,
.aca-exhibit .aca-exhibit__button,
.aca-exhibits__panel .aca-exhibit__button {
	display: inline-block; color: #fff !important; background-color: var(--aca-ex-accent);
	border: 2px solid var(--aca-ex-accent); text-decoration: none;
}
body #page-container .aca-exhibit .aca-exhibit__button:hover,
body #page-container .aca-exhibits__panel .aca-exhibit__button:hover { background-color: #b32b2b; border-color: #b32b2b; }
.aca-exhibit .aca-exhibit__button:not(.et_pb_button),
.aca-exhibits__panel .aca-exhibit__button:not(.et_pb_button) { padding: .4em 1.2em; border-radius: 3px; font-weight: 600; }

/* List layout */
.aca-exhibits--list { list-style: none !important; margin: 0; padding: 0 !important; }
.aca-exhibits--list > .aca-exhibits__item { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid rgba(0, 0, 0, .12); }
.aca-exhibits--list > .aca-exhibits__item:last-child { border-bottom: 0; }
.aca-exhibits--list:not(.aca-exhibits--expandable) > .aca-exhibits__item { padding: 12px 0; }

.aca-exhibits__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.aca-exhibits__item-title { font-weight: 700; color: #333; }
.aca-exhibits__item-dates { margin-left: auto; color: var(--aca-ex-muted); }
.aca-exhibits__excerpt { display: block; margin-top: 4px; font-size: 14px; line-height: 1.6; color: var(--aca-ex-muted); }

.aca-exhibits__summary { display: block; cursor: pointer; padding: 14px 0; list-style: none; border-radius: 3px; }
.aca-exhibits__summary::-webkit-details-marker { display: none; }
.aca-exhibits__summary::marker { content: ""; }
.aca-exhibits__summary:hover .aca-exhibits__item-title { color: var(--aca-ex-accent); }
.aca-exhibits__summary:focus-visible { outline: 2px solid var(--aca-ex-accent); outline-offset: 2px; }

.aca-exhibits__toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--aca-ex-accent); white-space: nowrap; }
.aca-exhibits__toggle::after {
	content: ""; width: 7px; height: 7px; margin-top: -3px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg); transition: transform .2s ease;
}
.aca-exhibits__toggle-less { display: none; }
.aca-exhibits__details[open] .aca-exhibits__toggle::after { transform: rotate(-135deg); margin-top: 3px; }
.aca-exhibits__details[open] .aca-exhibits__toggle-more { display: none; }
.aca-exhibits__details[open] .aca-exhibits__toggle-less { display: inline; }
.aca-exhibits__details[open] .aca-exhibits__excerpt { display: none; }

.aca-exhibits__panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 4px 0 22px; font-size: 14px; line-height: 1.7; color: var(--aca-ex-ink); }
.aca-exhibits__panel--has-image { grid-template-columns: 220px minmax(0, 1fr); }
.aca-exhibits__panel-media img, .aca-exhibits__panel-media .aca-exhibit__img { display: block; width: 100%; height: auto; min-height: 0; max-height: 280px; object-fit: cover; border-radius: 3px; }
.aca-exhibits__panel-body .aca-exhibit__desc p { padding-bottom: 1em; margin: 0; }
.aca-exhibits__panel-body .aca-exhibit__actions { margin-top: 16px; text-align: left; }

/* Full gallery view: card(s) + Coming Up panel */
.aca-exhibits-view > .aca-exhibits--cards { margin-bottom: 30px; }
.aca-exhibits__upcoming {
	background: #fff; border-radius: 5px; box-shadow: 0 2px 18px 0 rgba(0, 0, 0, .3);
	padding: 26px 40px 10px; color: var(--aca-ex-ink, #333); text-align: left;
	--aca-ex-accent: #cc3333; --aca-ex-ink: #333; --aca-ex-muted: #666;
}
.aca-exhibits__upcoming .aca-exhibits__heading { font-size: 24px; line-height: 1.3; margin: 0 0 4px; padding: 0; color: #333; }

.aca-exhibits__empty { text-align: center; }
.aca-exhibits__preview { background: #fff8c5; color: #333; padding: 8px 12px; border-radius: 3px; font-size: 13px; }

@media (max-width: 980px) {
	.aca-exhibit { grid-template-columns: minmax(0, 1fr); }
	.aca-exhibit__media img, .aca-exhibit__img { min-height: 0; max-height: 420px; height: auto; }
	.aca-exhibit__body, .aca-exhibit--no-image .aca-exhibit__body { padding: 24px 22px; }
	.aca-exhibit .aca-exhibit__title { font-size: 24px; }
	.aca-exhibit__actions { text-align: left; }
	.aca-exhibits__item-dates { margin-left: 0; width: 100%; order: 3; }
	.aca-exhibits__toggle { order: 4; }
	.aca-exhibits__panel--has-image { grid-template-columns: minmax(0, 1fr); }
	.aca-exhibits__upcoming { padding: 20px 22px 6px; }
}
