/* The real sample's rim and finish in the catalogue, its complete original photograph in the viewer. */
[data-mmc-tools].mmc-filters { gap:clamp(12px,2.5vw,32px); margin-block:30px 10px }
[data-mmc-tools] :is(input,select) { min-height:48px; border-color:#97aaa5; color:#173b38; background:#fff }
[data-mmc-tools] :is(input,select):focus-visible,
[data-mmc-library] :is(button,a):focus-visible,
#mmc-lightbox[data-mmc-detail] :is(button,a):focus-visible,
#mmc-clear:focus-visible { outline:3px solid #08736e; outline-offset:3px }
#mmc-count:has(+ #mmc-clear) { display:inline-block; margin:12px 0 18px; color:#34514e; font-variant-numeric:tabular-nums }
#mmc-clear { min-height:44px; margin-inline-start:18px; padding:0 5px; color:#135954; font:inherit; font-weight:600; border:0; background:none; text-decoration:underline; text-underline-offset:.2em; cursor:pointer }
[data-mmc-library].mmc-colours { grid-template-columns:repeat(4,minmax(0,1fr)); gap:clamp(10px,1.5vw,24px); }
[data-mmc-library] article[data-colour] { min-width:0; display:flex; flex-direction:column; align-items:flex-start; padding:clamp(5px,.55vw,9px); border:1px solid #ccd7d0; background:#fafbf7; color:#123a37; text-align:start }
[data-mmc-library] article[hidden], #mmc-clear[hidden] { display:none }
[data-mmc-library] button.mmc-sample { display:block; overflow:hidden; position:relative; isolation:isolate; min-width:0; aspect-ratio:1.4; margin:0; border:0; border-radius:0; width:100%; background:#e5e8df; cursor:zoom-in }
[data-mmc-library] button.mmc-sample img { display:block; position:absolute; width:170%; height:230%; inset:auto auto -6% -35%; max-width:none; max-height:none; margin:0; object-fit:cover; object-position:center bottom; transition:transform 250ms cubic-bezier(.23,1,.32,1) }
[data-mmc-library].mmc-colours h2 { margin:clamp(11px,1.1vw,18px) 8px 0; font:600 clamp(20px,2vw,36px)/1.1 Arial,sans-serif; letter-spacing:-.045em; overflow-wrap:anywhere }
[data-mmc-library].mmc-colours article p { margin:5px 8px 3px; font-size:14px; line-height:1.35; color:#4b625e }
[data-mmc-library].mmc-colours a.mmc-link { display:inline-flex; align-items:center; margin:0 8px; padding-block:6px; min-height:44px; max-width:calc(100% - 16px); column-gap:.4em; color:#165e59; font-size:14px; line-height:1.3 }
#mmc-lightbox[data-mmc-detail] { position:fixed; inset:0; margin:auto; color:#193834; width:min(820px,calc(100vw - 38px)); max-width:none; max-height:calc(100vh - 38px); max-height:calc(100dvh - 38px); height:fit-content; padding:0; border:0; border-radius:3px; background:#f4f6ef; overflow:auto; overscroll-behavior:contain; box-shadow:0 18px 76px #051d263d }
#mmc-lightbox[data-mmc-detail]::backdrop { background:rgb(8 25 24 / 68%); opacity:1; transition:opacity 180ms cubic-bezier(.23,1,.32,1) }
#mmc-lightbox[data-mmc-detail].mmc-leaving::backdrop { opacity:0 }
html:has(#mmc-lightbox[data-mmc-detail][open]) { overflow:hidden }
#mmc-lightbox[data-mmc-detail] .mmc-sample-panel { box-sizing:border-box; display:grid; grid-template-columns:1.2fr 1fr; align-items:center; gap:clamp(18px,3vw,40px); padding:clamp(12px,2.2vw,32px) }
#mmc-lightbox[data-mmc-detail] .mmc-sample-photo { display:grid; grid-template: minmax(0,1fr) / minmax(0,1fr); place-items:center; width:100%; min-width:0; aspect-ratio:1; overflow:hidden; background:#e9ece3 }
#mmc-lightbox[data-mmc-detail] img { display:block; width:100%; height:100%; max-width:100%; max-height:100%; margin:0; object-fit:contain }
#mmc-lightbox[data-mmc-detail] #mmc-close,
#mmc-lightbox[data-mmc-detail] .mmc-sample-controls button { box-sizing:border-box; display:grid; place-items:center; float:none; width:44px; height:44px; margin:0; padding:0; border:1px solid #9aafa8; border-radius:0; color:#173d39; background:#f7faf2; cursor:pointer; font:normal 22px/1 Arial,sans-serif }
#mmc-lightbox[data-mmc-detail] #mmc-close { position:absolute; z-index:1; inset-block-start:8px; inset-inline-end:8px }
#mmc-lightbox[data-mmc-detail] .mmc-sample-description { padding-block:25px 8px; min-width:0; text-align:start }
#mmc-reference { color:#49625d; font-family:inherit; font-size:13px; font-weight:600; line-height:1.45 }
#mmc-lightbox[data-mmc-detail] #mmc-code { word-break:break-word; margin:4px 0; padding:0; color:#173b37; text-align:match-parent; font:550 clamp(34px,4.2vw,66px)/1.08 Arial,sans-serif; letter-spacing:-.065em }
#mmc-lightbox[data-mmc-detail] p { text-align:start; margin:0; line-height:1.55 }
#mmc-lightbox[data-mmc-detail] #mmc-kind { color:#10625a; font-weight:650; font-size:16px }
#mmc-lightbox[data-mmc-detail] .mmc-sample-note { padding-block:16px; color:#485f5b; font-size:14px }
#mmc-lightbox[data-mmc-detail] .mmc-action { display:inline-flex; align-items:center; justify-content:center; padding:10px 15px; min-height:46px; color:white; background:#075852; text-decoration:none; font-weight:650; line-height:1.35 }
#mmc-lightbox[data-mmc-detail] .mmc-sample-controls { display:flex; width:fit-content; align-items:center; gap:9px; margin-top:18px }
#mmc-lightbox[data-mmc-detail] .mmc-sample-controls button:disabled { opacity:.35; cursor:default }
#mmc-lightbox[data-mmc-detail] .mmc-sample-position { direction:ltr; min-width:55px; color:#3c5753; text-align:center; font:500 13px/1 ui-monospace,monospace }
[dir=rtl] #mmc-lightbox[data-mmc-detail] #mmc-code { text-align:right }
[dir=rtl] #mmc-lightbox[data-mmc-detail] .mmc-sample-controls button span { transform:scaleX(-1) }
#mmc-lightbox[data-mmc-detail] .mmc-sample-status { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap }
@media (hover:hover) and (pointer:fine) {
  [data-mmc-library] .mmc-sample:hover img { transform:scale(1.045) }
  [data-mmc-library] article:has(.mmc-sample:hover) { border-color:#426c61 }
  #mmc-lightbox[data-mmc-detail] .mmc-action:hover { background:#10443e }
}
@media (max-width:800px) {
  [data-mmc-library].mmc-colours { grid-template-columns:repeat(2,minmax(0,1fr)) }
}
@media (max-width:570px) {
  #mmc-lightbox[data-mmc-detail] { width:calc(100vw - 26px); max-height:calc(100vh - 24px); max-height:calc(100dvh - 24px) }
  #mmc-lightbox[data-mmc-detail] .mmc-sample-panel { grid-template-columns:1fr; gap:0 }
  #mmc-lightbox[data-mmc-detail] .mmc-sample-photo { height:32vh; height:32dvh; aspect-ratio:auto }
  #mmc-lightbox[data-mmc-detail] .mmc-sample-description { padding:11px 3px 3px }
  #mmc-lightbox[data-mmc-detail] .mmc-sample-note { padding-block:8px }
  #mmc-lightbox[data-mmc-detail] .mmc-sample-controls { margin-top:10px }
}
@media (prefers-reduced-motion:reduce) {
  [data-mmc-library] .mmc-sample img, #mmc-lightbox[data-mmc-detail]::backdrop { transition:none }
  [data-mmc-library] .mmc-sample:hover img { transform:none }
}
