.artist-storefront.shop-section {
  padding-block: clamp(1.4rem, 3vw, 2.7rem) 3.5rem;
  scroll-margin-top: 1rem;
}

.artist-storefront-head, .artist-storefront-owner-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.artist-storefront-head :is(h1, h2) {
  margin: 0;
  font: 400 clamp(1.55rem, 3vw, 2.4rem)/1.15 Georgia, serif;
  color: var(--midnight-text);
}

.artist-storefront[lang="th"] .artist-storefront-head :is(h1, h2) {
  font-family: inherit;
  font-weight: 650;
}

.artist-storefront-head p, .artist-storefront-bio, .artist-storefront-feedback,
.artist-storefront-search, .artist-storefront-empty {
  color: var(--midnight-muted);
  margin: 0;
}

.artist-storefront-tagline { color: var(--midnight-gold); font-weight: 650; margin: .55rem 0 .25rem; }

.artist-storefront-portraits {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5rem, 1fr));
  gap: .6rem;
  margin-block: .85rem .65rem;
  padding-inline: 0;
  list-style: none;
}

.artist-storefront-portrait {
  min-width: 0;
}

.artist-storefront-choice {
  display: grid;
  align-content: start;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #465965;
  border-radius: .5rem;
  background: #1b2d39;
  color: var(--midnight-text);
  text-decoration: none;
}

.artist-storefront-choice figure {
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  background: #223642;
}

.artist-storefront-choice img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 37%;
}

.artist-storefront-choice span {
  min-height: 2.65rem;
  display: grid;
  place-items: center;
  padding: .35rem .25rem;
  font-size: .8rem;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
}

.artist-storefront-choice[aria-current="true"] {
  border-color: var(--midnight-gold);
  background: var(--midnight-gold);
  color: #0b1720;
  font-weight: 700;
}

.artist-storefront-scroll { display: none; }
.artist-storefront-scroll button, .artist-storefront-filters a, .artist-storefront-pagination a,
.gallery-more-subjects > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border: 1px solid #536570;
  border-radius: 2rem;
  padding: .45rem .8rem;
  background: #192c38;
  color: var(--midnight-text);
  font: inherit;
  font-size: .85rem;
  text-decoration: none;
}

.artist-storefront-scroll button { min-width: 2.75rem; cursor: pointer; font-size: 1.15rem; }
.artist-storefront-filters, .artist-storefront-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
}

.gallery-subjects { margin-bottom: 1.35rem; }
.gallery-subjects h2 { margin: 0 0 .65rem; font-size: clamp(1.1rem, 2.3vw, 1.45rem); }
.gallery-more-subjects { margin-top: .45rem; }
.gallery-more-subjects > summary { cursor: pointer; }
.gallery-more-subjects > summary::marker { content: ''; }
.gallery-more-subjects > summary::-webkit-details-marker { display: none; }
.gallery-more-subjects[open] > summary { border-color: var(--midnight-gold); }
.gallery-more-subjects > .artist-storefront-filters { margin-top: .45rem; }

.artist-storefront-filters [aria-current="true"] {
  background: var(--midnight-gold);
  border-color: var(--midnight-gold);
  color: #0b1720;
}

.artist-storefront-results {
  border-top: 1px solid #43545f;
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  scroll-margin-top: 1rem;
}

.artist-storefront-results .artist-storefront-filters { margin-top: .7rem; }
.artist-storefront-bio { margin-top: .5rem; max-width: 43rem; }
.artist-storefront-feedback, .artist-storefront-search, .artist-storefront-empty { margin-top: .85rem; }
.artist-storefront-search a { color: var(--midnight-gold); margin-inline-start: .45rem; }
.artist-storefront-pagination { margin-top: 1.25rem; justify-content: center; }

.artist-storefront-works {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
  margin-top: .85rem;
}

.artist-storefront-works .work-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid #d9cfc0;
  border-radius: .45rem;
  background: #f5f0e8;
  color: #18242c;
  text-align: left;
}

.artist-storefront-works .work-card figure {
  margin: 0;
  aspect-ratio: 1.42;
  background: #e5dbcf;
  overflow: hidden;
}

.artist-storefront-works .work-card figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.artist-storefront-works .work-card figure img[src*="/artist-media/lead-rooms/"] { object-fit: cover; }
.artist-storefront-works .work-card figure img[src*="/artist-media/collection-w1-lp-tv-"] {
  object-fit: cover;
  object-position: 50% 22%;
}

.artist-storefront-works .card-body { display: grid; gap: .3rem; padding: .7rem .8rem; }
.artist-storefront-works .card-title { margin: 0; font-size: 1rem; line-height: 1.35; }
.artist-storefront-works .catalog-code { font-size: .79rem; color: #56616a; }
.artist-storefront-album { margin-block: 1.35rem 2rem; scroll-margin-top: 1rem; }
.artist-storefront-album .nila-studio-group { margin-block: 1rem 1.5rem; }
.artist-storefront-album :is(h3, h4) { margin-block: 0; }
.artist-storefront-album .artist-storefront-works { margin-top: .6rem; }
.artist-storefront-works .work-card figure img.nila-room-cover { object-fit: cover; }
.artist-storefront-works .artist-storefront-buy {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 2.75rem;
  padding: .45rem .8rem;
  border: 1px solid #c5ab7f;
  border-radius: .35rem;
  background: #e8d4ae;
  color: #14222c;
  font-weight: 650;
  font-size: .86rem;
}
.artist-storefront-works .gallery-card-tools button { min-height: 2.75rem; min-width: 2.75rem; }

.artist-storefront-dialog {
  width: min(calc(100% - 1.25rem), 68rem);
  max-height: calc(100dvh - 1.25rem);
  padding: 0;
  border: 1px solid #546671;
  border-radius: .6rem;
  background: #172934;
  color: var(--midnight-text);
  overflow: auto;
}

.artist-storefront-dialog::backdrop { background: #060f16c9; }
.artist-preview-toolbar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .45rem .9rem;
  background: #111d28;
  border-bottom: 1px solid #455965;
}

.artist-preview-toolbar button {
  width: 2.75rem;
  height: 2.75rem;
  background: #213642;
  color: var(--midnight-text);
  border: 1px solid #566975;
  border-radius: .3rem;
  font: inherit;
  font-size: 1.25rem;
  cursor: pointer;
}

.artist-storefront-dialog [data-artist-preview-body] { padding: clamp(.8rem, 3vw, 1.3rem); }
.artist-storefront-dialog .work-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .85fr);
  align-items: start;
  gap: 1.25rem;
}
.artist-storefront-dialog .work-heading :is(h2, h3, p) { margin: 0 0 .65rem; }
.artist-storefront-dialog .work-id, .artist-storefront-dialog .purchase-note, .artist-storefront-dialog [data-viewer-caption] { color: var(--midnight-muted); }
.artist-storefront-dialog .purchase-option { padding: .75rem; margin: 0 0 .7rem; border: 1px solid #4f626d; border-radius: .4rem; }
.artist-storefront-dialog .action {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .5rem .75rem;
  border-radius: .35rem;
  background: var(--midnight-gold);
  color: #14222c;
  font-weight: 650;
  text-decoration: none;
}
.artist-storefront-dialog a:not(.action) { color: var(--midnight-gold); }
.artist-storefront-dialog [data-viewer-tools] button { background: #213642; border-color: #536570; color: var(--midnight-text); }
.artist-storefront-dialog [data-viewer-tools] button[aria-pressed="true"] { background: var(--midnight-gold); color: #14222c; }

@media (max-width: 58rem) {
  .artist-storefront-portraits {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: clamp(5.3rem, 24vw, 7.2rem);
    justify-content: start;
    overflow-x: auto;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
    padding-bottom: .4rem;
  }
  .artist-storefront-portrait { scroll-snap-align: start; }
  .artist-storefront-scroll { display: flex; gap: .35rem; }
}

@media (max-width: 44rem) {
  .artist-storefront-works, .artist-storefront-dialog .work-detail-grid { grid-template-columns: minmax(0, 1fr); }
  .artist-storefront-owner-actions { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .artist-storefront-owner-actions a { padding-inline: .45rem; text-align: center; }
}
