.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 8%;
  padding: 56px 0 50px;
}
.hero-copy {
  max-width: 560px;
}
.hero-note {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 22px;
}
.hero-note:before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  background: var(--brand);
  border-radius: 50%;
}
.hero h1 {
  font-size: 44px;
  line-height: 1.32;
  font-weight: 500;
  letter-spacing: -0.025em;
}
.hero h1 em {
  font-family: "Songti SC", "Noto Serif CJK SC", serif;
  font-style: normal;
  font-weight: 600;
}
.hero p {
  color: var(--muted);
  margin-top: 20px;
  line-height: 1.9;
  max-width: 400px;
}
.hero-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 25px;
  font-size: 13px;
}
.hero-actions .quiet {
  color: var(--muted);
}
.hero-visual {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 14px;
  align-items: center;
  position: relative;
  padding-right: 10px;
}
.hero-visual a {
  overflow: hidden;
  border-radius: 3px;
  background: var(--surface);
}
.hero-visual a:first-child {
  transform: rotate(-3deg);
  aspect-ratio: 4/4.4;
}
.hero-visual a:nth-child(2) {
  transform: translateY(18px) rotate(4deg);
  aspect-ratio: 3/4.3;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-caption {
  position: absolute;
  bottom: -25px;
  right: 0;
  font-size: 11px;
  color: var(--muted);
}
.gallery-section {
  scroll-margin-top: 20px;
}
.library-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 10px 0 20px;
}
.library-heading h2 {
  font-size: 21px;
  font-weight: 500;
}
.library-heading span {
  font-size: 12px;
  color: var(--muted);
}
.toolbar {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter {
  border: 0;
  background: none;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--muted);
  border-radius: 25px;
}
.filter:hover {
  background: var(--surface);
}
.filter.active {
  background: var(--ink);
  color: white;
}
.search-area {
  display: flex;
  gap: 12px;
  align-items: center;
}
.search-field {
  position: relative;
}
.search-field span {
  position: absolute;
  top: 8px;
  left: 12px;
  font-size: 20px;
}
.search-field input {
  padding: 9px 12px 9px 37px;
  width: 220px;
  font-size: 13px;
  background: var(--surface);
  border-color: transparent;
}
.search-area select {
  max-width: 135px;
  font-size: 13px;
  padding: 9px 10px;
}
.masonry {
  columns: 4;
  column-gap: 22px;
}
.image-card {
  break-inside: avoid;
  margin: 0 0 27px;
  position: relative;
}
.image-frame {
  display: block;
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  background: var(--surface);
}
.image-frame img {
  width: 100%;
  height: auto;
  transition: filter 0.2s;
}
.image-frame:hover img {
  filter: brightness(0.94);
}
.image-card .save-button {
  position: absolute;
  right: 10px;
  top: 10px;
  border: 0;
  background: oklch(1 0 0 / 0.94);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s;
  font-size: 19px;
}
.image-card:hover .save-button,
.image-card:focus-within .save-button,
.save-button.saved {
  opacity: 1;
}
.save-button.saved {
  color: var(--brand);
}
.image-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-top: 9px;
  font-size: 13px;
}
.image-caption h3 {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.image-caption span {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.image-subtitle {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}
.load-more {
  display: flex;
  justify-content: center;
  margin: 25px;
}
.result-state {
  padding: 80px 15px;
  text-align: center;
  color: var(--muted);
}
.result-state h2 {
  color: var(--ink);
  font-size: 23px;
  margin-bottom: 10px;
}
.result-state .button {
  margin-top: 20px;
}
.initial-loading {
  height: 60vh;
  display: grid;
  place-items: center;
  color: var(--muted);
}
