/* Preserve brochure photographs at an appropriate display size. */
.compact-gallery .provider-photo-board {
 height:auto;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),210px));
 grid-template-rows:auto;gap:24px;overflow:visible;border-radius:0;background:transparent;
}
.compact-gallery .provider-photo-board > button {
 display:flex;flex-direction:column;width:100%;grid-row:auto;grid-column:auto;
 flex:none;border-radius:14px;color:var(--ink);background:var(--cream);
}
.compact-gallery .provider-photo-board button::after {display:none;}
.compact-gallery .provider-photo-board img {display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;}
.compact-gallery .provider-photo-board button:hover img {transform:none;}
.compact-gallery .provider-photo-board span {position:static;max-width:none;padding:14px;font:500 1rem/1.4 var(--sans);}
.compact-gallery .provider-photo-board button:focus-visible {outline:3px solid var(--gold);outline-offset:4px;}
.compact-gallery .profile-lightbox {width:min(620px,calc(100% - 32px));height:min(540px,calc(100% - 32px));}
.compact-gallery .profile-lightbox figure img {width:auto;height:auto;max-width:100%;max-height:100%;place-self:center;}
@media (max-width:650px) {
 .compact-gallery .provider-photo-board {grid-template-columns:repeat(2,minmax(0,240px));gap:14px;}
 .compact-gallery .provider-photo-board span {padding:10px;font-size:.85rem;}
}

.profile-brochure {display:block;width:100%;max-width:240px;margin:24px auto;text-align:center;}
.profile-brochure img {display:block;width:100%;height:auto;border-radius:12px;box-shadow:0 8px 24px #173f3818;}
.profile-brochure span {display:block;margin-top:12px;font-weight:700;}
