.store-page {
  margin: 0;
  background: #eceae5 url(/media/d7f22577d889a139a7d1.jpg) center fixed;
  color: #242723;
  font: 14px/1.55 Verdana, Arial, sans-serif;
}

.store-layout {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: clamp(18px, 2.5vw, 40px);
  max-width: 1520px;
  margin: 72px auto 56px;
  padding: 0 clamp(18px, 3vw, 44px);
}

.store-layout .site-nav a { display: block; text-decoration: none; }
.store-page .language-switch { right: max(18px, calc((100vw - 1432px) / 2)); }
.artwork-page .site-nav a[href$="/Store/"]:not(:hover) { color: #000; }
.store a { color: inherit; }
.store [hidden], .studio [hidden] { display: none; }

.store h1 {
  margin: 0;
  font: 700 clamp(1.8rem, 3.3vw, 2.65rem)/1.16 Georgia, "Songti SC", SimSun, serif;
  overflow-wrap: anywhere;
}

.store-header { border-bottom: 1px solid #c3b9a7; padding-bottom: 12px; }
.store-tools { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; margin: 16px 0 24px; }
.store-tools label { display: flex; gap: 5px; align-items: center; }
.store-tools input[type="search"] { width: min(100%, 280px); }
#store-status:empty { display: none; }

.store-grid { column-count: 4; column-gap: clamp(14px, 2vw, 28px); }
.store-work {
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  margin: 0 0 24px;
  vertical-align: top;
  text-decoration: none;
}

.store-work:hover h2 { text-decoration: underline; text-underline-offset: 3px; }
.work-cover { background: #e9e5dc; }
.work-cover img { display: block; width: 100%; height: auto; aspect-ratio: auto 4 / 5; }
.store-work-summary { padding: 8px 0 0; overflow-wrap: anywhere; }
.store-work-summary h2 { font-size: 1rem; font-weight: 700; line-height: 1.35; margin: 0; }
.store-work-summary p { color: #545850; margin: 3px 0 0; }

.store-back { display: inline-block; margin-bottom: 16px; text-underline-offset: 3px; }
.artwork {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(18px, 3.5vw, 52px);
}

.artwork-photos { display: grid; gap: 14px; }
.artwork-stage {
  position: relative;
  display: block;
  width: 100%;
  align-self: start;
  padding: 0;
  border: 0;
  background: #e9e5dc;
  cursor: zoom-in;
}

.artwork-stage img { display: block; width: 100%; height: auto; aspect-ratio: auto 4 / 5; }
.artwork-zoom {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 8px;
  border: 1px solid #fffd;
  background: #242723eb;
  color: white;
  font: 16px/1.6 Verdana, sans-serif;
}

.artwork-info {
  border-left: 2px solid #a79b86;
  padding: 0 0 0 clamp(14px, 2vw, 30px);
  overflow-wrap: anywhere;
}

.artwork-heading { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; }
.artwork-byline { margin: 6px 0 18px; color: #4c544e; }
.artwork-save, .read-description, .artwork-inquiry button, .studio button {
  padding: 6px 11px;
  border: 1px solid #314d43;
  border-radius: 2px;
  background: #fcfaf3;
  color: #243a32;
  font: inherit;
  cursor: pointer;
}

.artwork-save[aria-pressed="true"], .artwork-inquiry button { background: #314d43; color: #fff; }
.artwork-inquiry button:hover { background: #20352d; }
.artwork-meta { border-top: 1px solid #cfc6b7; margin: 0 0 18px; }
.artwork-meta div { display: grid; grid-template-columns: minmax(74px, 0.4fr) minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid #cfc6b7; }
.artwork-meta dt { color: #4c544e; }
.artwork-meta dd { margin: 0; white-space: pre-line; }
.artwork-price { font-weight: 700; }
.artwork-description { white-space: pre-wrap; margin: 14px 0 8px; }
.read-description { display: block; }
.artwork-tags { display: flex; flex-wrap: wrap; gap: 5px; list-style: none; margin: 14px 0 0; padding: 0; }
.artwork-tags li { border-bottom: 1px solid #a79b86; padding: 2px 6px; }
.artwork-inquiry { border-top: 1px solid #cfc6b7; margin-top: 23px; padding-top: 16px; }
.artwork-inquiry h2 { font-size: 1.15rem; margin: 0 0 9px; }
.artwork-inquiry button { text-align: left; }

.store-tools input[type="search"], .studio :is(input, textarea) {
  box-sizing: border-box;
  padding: 8px;
  border: 1px solid #a29d90;
  border-radius: 2px;
  background: #fff;
  color: #222;
  font: inherit;
}

.studio :is(input, textarea) { display: block; width: 100%; }
.studio textarea { resize: vertical; }
.artwork-lightbox { max-width: 94vw; max-height: 94vh; padding: 10px; border: 0; background: #232724; }
.artwork-lightbox::backdrop, .studio-dialog::backdrop { background: #151815d9; }
.artwork-lightbox img { display: block; max-width: 88vw; max-height: 82vh; object-fit: contain; }
.artwork-lightbox button, .studio-dialog button {
  display: block;
  margin: 0 0 8px auto;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font: 22px/1 Arial, sans-serif;
  cursor: pointer;
}

.artwork-lightbox { color: #fff; }
.studio-dialog {
  box-sizing: border-box;
  width: min(410px, calc(100% - 36px));
  padding: 18px 24px 24px;
  border: 1px solid #b7ad9a;
  background: #fcfaf3;
  color: #242723;
  overflow-wrap: anywhere;
}

.studio-dialog h2 { margin: 0 0 12px; font-size: 1.2rem; }
.studio-dialog dl { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 8px 12px; margin: 0; }
.studio-dialog dt { color: #4c544e; }
.studio-dialog dd { margin: 0; }

.studio { margin: 0; background: #eceae5; font: 14px/1.6 Verdana, Arial, sans-serif; color: #222; }
.studio main { max-width: 820px; margin: 36px auto; padding: 0 18px; }
.studio a { color: #38516a; }
.studio header { margin-bottom: 14px; }
.studio h1 { font-size: 1.7em; margin: 0 0 14px; }
.studio h2 { font-size: 1.14em; margin: 0 0 12px; }
.studio section { margin: 22px 0; padding: 18px; background: #f9f8f3; }
.studio label { display: block; margin: 8px 0; min-width: 0; }
.studio label :is(input, textarea) { margin-top: 3px; }
.studio button:not(:disabled):hover { background: #e8ece3; }
.studio button:disabled { opacity: 0.45; cursor: default; }
.studio #login { max-width: 360px; }
.studio-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.studio :is(ul, ol) { padding: 0; }
.studio li { display: flex; align-items: center; gap: 8px; margin: 8px 0; flex-wrap: wrap; }
.studio li img { width: 48px; height: 42px; object-fit: contain; }
.studio li span { flex: 1 0 74px; overflow-wrap: anywhere; }
.editor-layout { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 18px; align-items: start; margin-bottom: 16px; }
.editor-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.editor-fields label:has(input[name="price"]) { grid-column: 1 / -1; }
.editor-images { min-width: 0; border: 1px solid #bbb6aa; margin: 0; }
#image-note { margin-top: 0; }
#editor-image-list li { border-top: 1px solid #cfc6b7; padding-top: 8px; }
#editor-image-list li img { width: 100%; height: auto; max-height: 200px; background: #eceae5; }

@media (max-width: 1150px) {
  .store-grid { column-count: 3; }
}

@media (max-width: 850px) {
  .store-grid { column-count: 2; }
  .artwork, .editor-layout { grid-template-columns: minmax(0, 1fr); }
  .artwork-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .artwork-photos .artwork-stage:first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .store-page .language-switch { position: static; justify-content: flex-end; margin: 10px 12px 0; }
  .store-layout { display: block; margin-top: 22px; padding: 0 14px; }
  .store-layout .site-nav { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 18px; }
  .editor-fields { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 360px) {
  .store-grid { column-count: 1; }
}
