/* The gallery homepage is laid out like a photographic contact book. */
.showroom {
  max-width: 1080px;
  padding-top: 22px;
  padding-bottom: 64px;
}
.feature {
  container-type: inline-size;
  position: relative;
  isolation: isolate;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-radius: 12px;
  background: #752c31;
}
.feature-track, .feature-slide { position: absolute; inset: 0; }
.feature-slide {
  display: grid;
  grid-template-columns: 46% 54%;
  background: var(--slide-paper);
  color: var(--slide-ink);
  transition: opacity .38s ease;
  touch-action: pan-y pinch-zoom;
}
.feature-slide[aria-hidden="true"] { opacity: 0; visibility: hidden; pointer-events: none; }
.feature-slide:focus-visible { outline-offset: -4px; z-index: 1; }
.tone-1 { --slide-paper: #832d36; --slide-ink: #fff2e4; }
.tone-2 { --slide-paper: #263f55; --slide-ink: #eff5f9; }
.tone-3 { --slide-paper: #244d44; --slide-ink: #f0f3db; }
.feature-copy {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 4cqw 0 4cqw 5cqw;
}
.feature-category {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  font-size: clamp(.76rem, 1.55cqw, 1rem);
  letter-spacing: .12em;
}
.feature-category::before { content: ""; width: 1.6em; height: 1px; background: currentColor; }
.feature-copy strong {
  display: block;
  margin: 3.3cqw 0 3.6cqw;
  font-size: clamp(27px, 6.65cqw, 70px);
  line-height: 1.1;
  letter-spacing: -.045em;
  font-weight: 750;
}
.feature-theme { display: flex; align-items: baseline; gap: .85em; font-size: clamp(.83rem, 2.15cqw, 1.35rem); font-weight: 650; }
.feature-link { font-size: .73em; font-weight: 400; padding-bottom: 1px; border-bottom: 1px solid currentColor; }
.lead-photo { grid-column: 2; width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: 50% 23%; }
.print-photo {
  position: absolute;
  width: 17%;
  height: 46%;
  left: 36.8%;
  bottom: 9%;
  object-fit: cover;
  object-position: 50% 25%;
  border: clamp(3px, .62cqw, 7px) solid #fff9f0;
  transform: rotate(-7deg);
  box-shadow: 0 6px 20px #29161336;
}
.feature-controls {
  position: absolute;
  right: 2.3%;
  bottom: 4%;
  display: flex;
  align-items: center;
  background: #281d21c9;
  color: white;
  border-radius: 24px;
  padding: 0 4px;
}
.feature-controls button { display: grid; place-items: center; width: 24px; height: 30px; padding: 0; color: inherit; }
.slide-dot::before { content: ""; width: 5px; height: 5px; border-radius: 4px; background: #ffffff93; }
.slide-dot[aria-current="true"]::before { width: 15px; background: white; }
.rotation span { width: 8px; height: 9px; border-inline: 2px solid white; }
.rotation[aria-label="播放自动轮播"] span { width: 0; height: 0; border: 5px solid transparent; border-right: 0; border-left: 7px solid white; }
.filters { margin: 26px 0 14px; }
.filter-head, .result-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.filter-head { margin-bottom: 12px; }
.filter-head h2, .result-head h2 { margin: 0; font-weight: 700; line-height: 1.25; }
.filter-head h2 { font-size: 1.05rem; }
#expand { padding: 4px 0 4px 10px; color: var(--muted); font-size: .85rem; }
.category-list { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; padding: 3px; margin: -3px; }
.category-list::-webkit-scrollbar { display: none; }
.category-list.expanded { flex-wrap: wrap; }
.category {
  flex: none;
  padding: 8px 17px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #fffdfa;
  color: #50494b;
  font-size: .94rem;
  line-height: 1.35;
}
.category:hover { border-color: #ae909f; }
.category.active { background: var(--plum); border-color: var(--plum); color: white; font-weight: 700; }
.showroom > .search { width: 100%; margin-bottom: 22px; }
.result-head { margin-bottom: 17px; align-items: baseline; }
.result-head h2 { font-size: clamp(1.25rem, 2.4vw, 1.75rem); }
.theme-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 25px 16px; }
.card { display: block; min-width: 0; }
.cover-frame { aspect-ratio: 2 / 3; overflow: hidden; border-radius: 10px; background: #eae4e0; }
.cover-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .32s ease; }
@media (hover:hover) { .card:hover img { transform: scale(1.025); } }
.card-info { padding: 10px 1px 0; }
.card-info strong { display: block; font-weight: 700; font-size: clamp(1.05rem,2vw,1.4rem); line-height: 1.35; }
.card-info span { display: flex; align-items: center; gap: .5em; margin-top: 3px; font-size: .85rem; color: var(--muted); }
.card-info i { font-style: normal; }
@media (max-width: 720px) {
  .showroom { padding: 12px 14px 42px; }
  .feature { border-radius: 8px; }
  .filters { margin: 18px 0 12px; }
  .filter-head { margin-bottom: 8px; }
  .category { padding: 7px 13px; font-size: .88rem; }
  .showroom > .search { margin-bottom: 16px; }
  body:has(.showroom) .brand b { width: auto; }
  .result-head { margin-bottom: 12px; }
  .result-head .meta { font-size: .76rem; }
  .theme-list { gap: 18px 10px; }
  .cover-frame { border-radius: 7px; }
  .card-info { padding-top: 7px; }
  .card-info span { font-size: .78rem; }
}
@media (max-width: 520px) {
  .feature-theme { display: block; }
  .feature-link { display: none; }
  .feature-controls button { width: 22px; height: 25px; }
}
