/* Four changes on the existing home only. No catalogue, article or shared photo styles. */
.mf-cover .mf-cover-foot {
  font-family:"Noto Serif TC","Songti TC","PMingLiU",serif;
  font-weight:400;
}
/* The source is re-framed; leave every pixel visible and do not crop it on hover. */
html[lang="zh-Hant"] body main .home-reference-journal .journal-tile.large .home-refine-journal-photo {
  aspect-ratio:auto;
  height:auto;
  overflow:visible;
  background:none;
}
html[lang="zh-Hant"] body main .home-reference-journal .journal-tile.large .home-refine-journal-photo img {
  display:block;
  width:100%;
  height:auto;
  object-fit:contain;
  object-position:right center;
  transform:none;
}
/* Display moulding only. The original museum image and attribution are unchanged. */
.gallery-spread.home-art figure .home-refine-frame {
  --mf-frame:clamp(9px,1.02vw,15px);
  display:block;
  position:relative;
  box-sizing:border-box;
  width:min(100%,450px);
  padding:var(--mf-frame);
  border:1px solid #483321;
  background:conic-gradient(from 45deg,#ad8753,#715131,#bf9b61,#513a27,#ad8753);
  box-shadow:0 2px 5px #31282030,0 1px 0 #ddbf8c inset,0 0 0 2px #735435 inset;
}
.gallery-spread.home-art figure .home-refine-frame::before,
.gallery-spread.home-art figure .home-refine-frame::after {
  content:"";
  position:absolute;
  border:1px solid;
  pointer-events:none;
}
.gallery-spread.home-art figure .home-refine-frame::before {
  inset:3px;
  border-color:#dfc292 #967144 #805d37 #c69f67;
}
.gallery-spread.home-art figure .home-refine-frame::after {
  inset:calc(var(--mf-frame) - 3px);
  border-color:#715234 #c7a670 #ddc28f #674730;
}
.gallery-spread.home-art figure .home-refine-frame img {
  display:block;
  width:100%;
  height:auto;
  object-fit:contain;
  box-sizing:border-box;
  background:none;
  padding:0;
}
.gallery-spread.home-art figure .home-refine-frame:focus-visible {
  outline:2px solid #7d6648;
  outline-offset:6px;
}
.home-refine-atelier {
  align-items:stretch;
}
.home-refine-atelier .home-refine-atelier-photo {
  display:block;
  width:100%;
  height:auto;
  min-height:0;
  max-height:none;
  object-fit:contain;
  object-position:center;
  align-self:center;
}
.home-refine-atelier > div {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
}
/* Phone-safe cover search. A true 16px input avoids the small-text focus zoom in mobile Safari. */
.mf-home-overlay .mf-cover-header #home-cover-search:not([hidden]) {
  box-sizing:border-box;
  width:auto;
  max-width:none;
  inset:100% 0 auto;
  padding:clamp(18px,3.4vw,34px) max(18px,var(--gutter,22px)) clamp(22px,3.6vw,39px);
  border-top:1px solid #d9d3c4;
}
.mf-home-overlay .mf-cover-header #home-cover-search form {
  box-sizing:border-box;
  width:min(100%,680px);
  min-width:0;
}
.mf-home-overlay .mf-cover-header #home-cover-search label {
  margin:0 0 12px;
  color:#293c31;
  font:400 clamp(18px,2.15vw,24px)/1.36 "Noto Serif TC","Songti TC","PMingLiU",serif;
  letter-spacing:.045em;
}
.mf-home-overlay .mf-cover-header #home-cover-search .global-search-form {
  display:grid;
  grid-template-columns:20px minmax(0,1fr) max-content;
  width:100%;
  min-width:0;
  min-height:46px;
  align-items:center;
  gap:7px;
  border-bottom:1px solid #667264;
}
.mf-home-overlay .mf-cover-header #home-cover-search .global-search-form:focus-within {
  border-bottom-color:#634a37;
  box-shadow:0 1px 0 #634a37;
}
.mf-home-overlay .mf-cover-header #home-cover-search .home-refine-search-icon {
  display:block;
  inline-size:17px;
  block-size:17px;
  color:#536458;
}
.mf-home-overlay .mf-cover-header #home-cover-search input {
  box-sizing:border-box;
  width:100%;
  min-width:0;
  min-height:46px;
  padding:6px 0;
  border:0;
  outline:0;
  color:#27382d;
  background:transparent;
  font:400 16px/1.4 var(--sans,system-ui);
  -webkit-text-size-adjust:100%;
}
.mf-home-overlay .mf-cover-header #home-cover-search input::placeholder {
  color:#686b61;
  opacity:1;
}
.mf-home-overlay .mf-cover-header #home-cover-search button {
  box-sizing:border-box;
  min-inline-size:54px;
  min-block-size:44px;
  padding:0 4px;
  color:#293c31;
  white-space:nowrap;
  font-weight:650;
  letter-spacing:.045em;
}
.mf-home-overlay .mf-cover-header #home-cover-search button:hover {color:#775241}
@media(max-width:440px) {
  .mf-home-overlay .mf-cover-header #home-cover-search .global-search-form {
     grid-template-columns:17px minmax(0,1fr) max-content;
     gap:5px;
  }
}
/* The Monet frame only: dark walnut, rubbed antique gold, and a fine inner slip. */
.gallery-spread.home-art figure .home-refine-frame {
  --mf-frame:clamp(9px,1.02vw,15px);
  --mf-walnut:#39291e;
  --mf-rebate:#211911;
  isolation:isolate;
  border-color:#38291e;
  background:
    linear-gradient(to bottom,#e6c78c96 0%,#8e6e4d 21%,#665034 36%,#ad8858 56%,#5e452f 77%,#321f14 100%) top / 100% var(--mf-frame) no-repeat,
    linear-gradient(to top,#8a6948 0%,#624830 23%,#4b3726 38%,#9c764c 59%,#59412c 76%,#302014 100%) bottom / 100% var(--mf-frame) no-repeat,
    linear-gradient(to right,#b3956b 0%,#765735 22%,#5e462e 36%,#a98354 58%,#66472e 76%,#2f2118 100%) left / var(--mf-frame) 100% no-repeat,
    linear-gradient(to left,#74553a 0%,#5c422e 23%,#493626 38%,#9b764d 60%,#553b26 78%,#2c2018 100%) right / var(--mf-frame) 100% no-repeat,
    var(--mf-walnut);
  box-shadow:0 2px 4px #2a211a28,0 9px 21px -13px #35261678,inset 0 0 0 1px #e5c69046;
}
.gallery-spread.home-art figure .home-refine-frame::before {
  inset:2px;
  border-width:1px;
  border-color:#ddbd82a6 #a18052b8 #846039c4 #cda878bd;
  box-shadow:inset 0 1px #35271d9e,inset 1px 0 #3a2c229e,
             inset -1px 0 #3a2a1d9e,inset 0 -1px #392a209e;
  background:
    repeating-linear-gradient(90deg,#dfbd7c6b 0 1px,#3627184c 1px 2px,transparent 2px 4px) top / 100% 1px no-repeat,
    repeating-linear-gradient(90deg,#c1966266 0 1px,#2d21173b 1px 2px,transparent 2px 4px) bottom / 100% 1px no-repeat,
    repeating-linear-gradient(0deg,#d0aa7766 0 1px,#392a2042 1px 2px,transparent 2px 4px) left / 1px 100% no-repeat,
    repeating-linear-gradient(0deg,#af8a5857 0 1px,#37261940 1px 2px,transparent 2px 4px) right / 1px 100% no-repeat;
}
.gallery-spread.home-art figure .home-refine-frame::after {
  inset:calc(var(--mf-frame) - 2px);
  border-width:1px;
  border-color:#b89661 #a28252 #d2ae72 #ad8a59;
  box-shadow:0 0 0 1px var(--mf-rebate);
}
