.gallery-page { --gallery-heading: 52px; --gallery-title: 26px; --gallery-gap: 32px; }
.gallery-page h1, .gallery-page h2, .gallery-page h3, .gallery-page .filter-label, .gallery-page .detail-kicker { letter-spacing: 0; }
.gallery-page .collection-hero { width: 100%; margin: 0; padding: 88px 0 54px; background: transparent; }
.gallery-page .collection-hero h1 { margin: 0 0 22px; font-size: var(--gallery-heading); line-height: 1.2; }
.gallery-page .hero-copy { font-size: 20px; max-width: 620px; }
.gallery-page .collection-hero-aside { display: none; }
.gallery-page .collection-toolbar { gap: 22px; margin-top: 0; padding: 28px 0; border: 0; border-block: 1px solid var(--site-line); border-radius: 0; background: transparent; }
.gallery-page .toolbar-summary { border: 0; padding-bottom: 0; }
.gallery-page .search-wrap { max-width: 560px; }
.gallery-page .search-field { border-radius: var(--site-radius); background: var(--site-surface-soft); }
.gallery-page .filter-button { border-radius: var(--site-button-radius); }
.gallery-page .filter-button.is-active { background: var(--site-primary); }
.gallery-page .toolbar-filters { grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr); }
.gallery-page .filter-label { font-size: 13px; }
.gallery-page .collection-group { margin-top: 52px; }
.gallery-page .collection-group-head { padding-bottom: 20px; }
.gallery-page .collection-group-head h2 { font-size: 30px; font-weight: 600; }
.gallery-page .collection-group-head span { font-size: 15px; }
.gallery-page .collection-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--gallery-gap); padding-bottom: 32px; }
.gallery-page .project-card { border: 0; border-radius: var(--site-image-radius); box-shadow: none; background: var(--site-surface-soft); }
.gallery-page .project-card:hover { transform: none; box-shadow: var(--site-shadow); }
.gallery-page [data-group="case"] .collection-grid { grid-template-columns: minmax(0, 1fr); }
.gallery-page .project-card[data-kind="case"]:not([hidden]) { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; }
.gallery-page .project-card[data-kind="case"] .project-info { padding: 36px; }
.gallery-page .card-cover { aspect-ratio: 16 / 10; padding: 0; border-radius: var(--site-image-radius); }
.gallery-page .cover-demo .cover-photo { border: 0; border-radius: var(--site-image-radius); }
.gallery-page .cover-skill .cover-photo { object-fit: cover; }
.gallery-page .project-info { padding: 26px 28px 28px; border: 0; }
.gallery-page .project-info h2 { font-size: var(--gallery-title); line-height: 1.35; }
.gallery-page .project-info p { margin: 12px 0 20px; font-size: 16px; }
.gallery-page .tag { padding: 0; border: 0; border-radius: 0; background: transparent; min-height: 24px; font-size: 12px; }
.gallery-page .tag + .tag::before { content: "/"; color: var(--site-line-strong); margin-right: 6px; }
.gallery-page .tag-list { gap: 6px; }
.gallery-page .cover-note--collection { position: absolute; right: 12px; bottom: 12px; padding: 3px 8px; border-radius: var(--site-radius); color: #fff; background: rgba(20,22,25,.72); font-size: 11px; }
.gallery-page .detail-hero { grid-template-columns: minmax(0,1fr); justify-items: center; padding: 54px 0 48px; gap: 40px; text-align: center; }
.gallery-page .detail-hero h1 { max-width: 900px; margin: 12px auto 20px; font-size: var(--gallery-heading); }
.gallery-page .detail-summary { margin-inline: auto; }
.gallery-page .detail-actions { justify-content: center; }
.gallery-page .detail-art { width: min(100%,1040px); }
.gallery-page .detail-art .card-cover { min-height: 0; aspect-ratio: 16 / 9; border: 0; border-radius: var(--site-image-radius); }
.gallery-page .detail-body, .gallery-page .skill-detail-body { padding-top: 36px; gap: 48px; }
.gallery-page .detail-body h2, .gallery-page .skill-intro h2 { font-size: 28px; }
.gallery-page .detail-kicker { color: var(--site-muted); font-size: 14px; }
.gallery-page .demo-detail-extra section { padding: 24px 0; border: 0; border-top: 1px solid var(--site-line); border-radius: 0; }
.gallery-page .detail-note { border: 0; border-radius: var(--site-radius); }
.gallery-page .skill-flow-step, .gallery-page .flow-terminal, .gallery-page .flow-decision, .gallery-page .skill-output { border-radius: var(--site-radius); }
.gallery-page .noscript-hero { padding: 64px 0 32px; border: 0; background: transparent; }
.gallery-page .noscript-hero p { display: none; }
.gallery-page .noscript-hero h1 { font-size: var(--gallery-heading); }
@media (max-width:1040px) {
  .gallery-page { --gallery-heading: 44px; --gallery-title: 23px; --gallery-gap: 24px; }
  .gallery-page .toolbar-filters { grid-template-columns: minmax(0,1fr); gap: 16px; }
}
@media (max-width:760px) {
  .gallery-page .project-card[data-kind="case"]:not([hidden]) { grid-template-columns: minmax(0, 1fr); }
  .gallery-page .project-card[data-kind="case"] .project-info { padding: 24px; }
  .gallery-page { --gallery-heading: 36px; }
  .gallery-page .collection-hero { padding: 56px 0 36px; }
  .gallery-page .hero-copy { font-size: 18px; }
  .gallery-page .collection-toolbar { padding: 22px 0; }
  .gallery-page .toolbar-filters { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .gallery-page .filter-group { min-width: 0; }
  .gallery-page .filter-label { font-size: 12px; }
  .gallery-page .filter-list { flex-wrap: wrap; }
  .gallery-page .filter-button { padding-inline: 12px; }
  .gallery-page .collection-grid { grid-template-columns: minmax(0,1fr); }
  .gallery-page .collection-group { margin-top: 36px; }
  .gallery-page .collection-group-head h2 { font-size: 26px; }
  .gallery-page .project-info { padding: 24px; }
  .gallery-page .detail-hero { padding-top: 32px; }
  .gallery-page .detail-body, .gallery-page .skill-detail-body { grid-template-columns: minmax(0,1fr); gap: 28px; }
}
@media (max-width:560px) {
  .gallery-page { --gallery-heading: 32px; --gallery-title: 23px; }
  .gallery-page .toolbar-filters { grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 12px; }
  .gallery-page .filter-button { padding-inline: 10px; }
  .gallery-page .project-info { padding: 22px; }
}
