/* Maltese-Canadian Museum — selected public collection component. */
.mcm-selected-section {max-width:1190px;margin:0 auto;padding:68px 28px 82px;color:#111}
.mcm-selected-heading {max-width:760px;margin-bottom:25px}
.mcm-selected-heading h2 {font-family:Georgia,serif;font-size:clamp(2.1rem,4vw,3.3rem);line-height:1.15;margin:.2em 0 .32em;font-weight:400}
.mcm-selected-heading>p:last-child {max-width:660px;line-height:1.65}
.mcm-selected-toolbar {display:grid;grid-template-columns:minmax(0,2fr) minmax(175px,1fr);gap:12px 16px;background:#f4efe7;padding:24px;border-left:3px solid #b8121d;margin:18px 0}
.mcm-selected-search-label{font-size:.7rem;letter-spacing:.09em;text-transform:uppercase;font-weight:700;color:#8f0d16}
.mcm-selected-toolbar input,.mcm-selected-toolbar select{width:100%;border:1px solid #c9c3ba;background:white;color:#111;padding:11px 13px;border-radius:0;font:inherit;min-height:44px}
.mcm-selected-summary{font-size:.88rem;color:#5c5a56;margin:20px 0 14px}
.mcm-selected-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.mcm-selected-card{background:#fff;border-top:3px solid #b8121d;box-shadow:0 0 0 1px #e6e1da;min-width:0}
.mcm-selected-card-button{width:100%;height:100%;display:flex;flex-direction:column;border:0;padding:0;background:transparent;color:inherit;text-align:left;cursor:pointer;font:inherit}
.mcm-selected-card-button:hover .mcm-selected-card-link,.mcm-selected-card-button:focus-visible .mcm-selected-card-link{text-decoration:underline}
.mcm-object-media{width:100%;aspect-ratio:5/4;background:#eeeae2;display:flex;align-items:center;justify-content:center;overflow:hidden}
.mcm-object-media img{display:block;width:100%;height:100%;object-fit:contain;background:#f4efe7}
.mcm-image-empty{font-size:.8rem;color:#69655f;text-align:center;padding:22px}
.mcm-selected-card-copy{padding:22px 24px 26px;flex:1}
.mcm-selected-card-copy .eyebrow{margin:0 0 12px}
.mcm-selected-card-copy h3{font-family:Georgia,serif;font-size:clamp(1.23rem,2.2vw,1.7rem);font-weight:400;line-height:1.25;margin:0 0 11px}
.mcm-selected-card-meta{font-size:.85rem;color:#504d49;min-height:2.4em}
.mcm-selected-card-link{color:#8f0d16;font-size:.69rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase;display:inline-block;margin-top:20px}
.mcm-selected-empty{padding:30px;background:#f4efe7;grid-column:1/-1}
.mcm-object-dialog[hidden]{display:none!important}
.mcm-object-dialog{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;padding:20px}
.mcm-object-backdrop{position:absolute;inset:0;background:rgba(10,10,10,.83)}
.mcm-object-window{position:relative;background:#faf7f1;color:#111;max-width:990px;width:100%;max-height:min(90vh,940px);overflow-y:auto;box-shadow:0 22px 70px rgba(0,0,0,.45)}
.mcm-object-close{position:absolute;right:12px;top:10px;z-index:5;border:0;background:#b8121d;color:#fff;font-size:2rem;width:42px;height:42px;cursor:pointer}
.mcm-object-layout{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}
.mcm-object-media-large{min-height:330px;aspect-ratio:auto;height:min(60vh,540px)}
.mcm-object-copy{padding:clamp(25px,4vw,52px)}
.mcm-object-copy h2{font-family:Georgia,serif;font-size:clamp(1.8rem,3.8vw,2.7rem);font-weight:400;line-height:1.2;margin:10px 0 22px}
.mcm-object-description{line-height:1.65;margin-bottom:22px}
.mcm-object-definition{display:grid;grid-template-columns:122px 1fr;gap:10px 14px;font-size:.9rem}
.mcm-object-definition dt{font-weight:700;color:#6e1a1f}
.mcm-object-definition dd{margin:0;line-height:1.5}
.mcm-object-note{font-size:.78rem;color:#68645e;margin-top:28px}
.mcm-object-thumbnails{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin-top:5px}
.mcm-object-thumb{padding:0;border:1px solid #d3c9bb;background:#fff;cursor:pointer}
.mcm-object-thumb .mcm-object-media{aspect-ratio:1}
.mcm-selected-toolbar input:focus-visible,.mcm-selected-toolbar select:focus-visible,.mcm-selected-card-button:focus-visible,.mcm-object-dialog button:focus-visible{outline:3px solid #b8121d;outline-offset:3px}
@media(max-width:840px){.mcm-selected-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mcm-object-layout{grid-template-columns:1fr}.mcm-object-media-large{height:330px}}
@media(max-width:540px){.mcm-selected-section{padding:45px 16px}.mcm-selected-toolbar{grid-template-columns:1fr;padding:16px}.mcm-selected-grid{grid-template-columns:1fr}.mcm-object-window{max-height:94vh}.mcm-object-dialog{padding:10px}.mcm-object-definition{grid-template-columns:100px 1fr}}
@media(prefers-reduced-motion:reduce){.mcm-selected-section *{scroll-behavior:auto!important}}

/* COLLECTION CARDS — Fill the image frame */
.mcm-selected-card .mcm-object-media img {
  object-fit: cover;
  object-position: center;
}

/* OBJECT DETAIL WINDOW — Show the entire photograph */
.mcm-object-media-large img {
  object-fit: contain;
  object-position: center;
}

