.coloring-gallery-page #main {
  --gallery-paper: url("/assets/riddle-desk-paper.webp") center top / 670px auto;
  background: var(--gallery-paper), #f9f0df;
  background-blend-mode: screen;
}
.coloring-gallery-hero { border-bottom: 1px solid #d5c1a0; }
.coloring-gallery-intro {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(16px, 4vw, 55px);
  padding-block: clamp(22px, 4.5vw, 58px);
}
.coloring-gallery-intro h1 {
  max-width: 12ch;
  margin: 0;
  color: #14263b;
  font: 700 clamp(2.45rem, 5vw, 4.7rem)/.96 var(--font-editorial);
  letter-spacing: -.045em;
}
.coloring-gallery-intro h1::after, .coloring-gallery-theme h2::after {
  display: block;
  width: min(61%, 255px);
  height: 9px;
  margin-top: 7px;
  border-top: 4px solid var(--brand-action);
  border-radius: 50%;
  content: "";
  transform: rotate(-2deg);
}
.coloring-gallery-intro p { margin: 12px 0 16px; font-size: clamp(1rem, 1.6vw, 1.22rem); }
.coloring-gallery-actions, .coloring-gallery-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.coloring-gallery-actions .btn {
  min-height: 44px;
  padding-inline: clamp(11px, 1.45vw, 22px);
  border-radius: 8px 13px 8px 10px;
  font-family: var(--font-editorial);
  box-shadow: none;
}
.coloring-gallery-actions .btn-secondary { background: #fff8e8; color: #762a19; border-color: #a34a31; }
.coloring-gallery-featured {
  position: relative;
  isolation: isolate;
  width: min(100%, 580px);
  margin: 0;
  justify-self: center;
  padding: clamp(12px, 2.3vw, 25px);
}
.coloring-gallery-featured::before {
  position: absolute;
  inset: 2% 6% 0 8%;
  transform: rotate(-3deg);
  z-index: -1;
  border-radius: 9% 5% 6% 3%;
  background: var(--gallery-paper), #efdbb8;
  background-blend-mode: luminosity;
  box-shadow: 4px 7px 13px #674f3533;
  content: "";
}
.coloring-gallery-featured::after {
  position: absolute;
  inset: 0 auto 0 -2%;
  z-index: -2;
  width: 37%;
  background: url("/assets/riddle-poppy-sprig.webp") left center / contain no-repeat;
  content: "";
}
.coloring-gallery-featured img, .coloring-gallery-card img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #b4a487;
  background: #fff;
}
.coloring-gallery-browse { padding-block: 20px 55px; }
.coloring-gallery-themes h2, .coloring-gallery-theme h2 {
  margin: 0 0 12px;
  font: 700 clamp(1.55rem, 3.2vw, 2.65rem)/1.03 var(--font-editorial);
}
.coloring-gallery-themes > div { display: flex; flex-wrap: wrap; gap: 7px; }
.coloring-gallery-themes a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #c3af88;
  border-radius: 8px 12px 9px 7px;
  background: #f5e7cb;
  color: #1e342d;
  font-weight: 650;
  text-decoration: none;
}
.coloring-gallery-themes a:is(:hover,:focus-visible) { border-color: #3d6148; background: #e5ecd5; }
.coloring-gallery-theme { margin-top: clamp(25px, 4vw, 49px); scroll-margin-top: calc(var(--header-h) + 12px); }
.coloring-gallery-theme h2::after { width: min(40%, 160px); }
.coloring-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 13px; }
.coloring-gallery-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 9px;
  padding: 12px;
  border: 1px solid #d4c2a2;
  border-radius: 11px 7px 13px 9px;
  background: #fff8e9;
  box-shadow: 2px 3px 3px #61411617;
}
.coloring-gallery-card h3 { margin: 0; font: 700 clamp(1.1rem, 1.56vw, 1.5rem)/1.1 var(--font-editorial); }
.coloring-gallery-card h3 a { color: #14263b; text-decoration: none; }
.coloring-gallery-card h3 a:hover { text-decoration: underline; }
.coloring-gallery-card-actions { margin-top: auto; font-size: .9rem; }
.coloring-gallery-card-actions :is(.btn,.text-link,.save-btn) { min-height: 44px; }
.coloring-gallery-card-actions .text-link { display: inline-flex; align-items: center; }
.coloring-gallery-more { margin-top: 10px; }
.coloring-gallery-more summary { display: list-item; width: fit-content; min-height: 44px; padding-block: 10px; cursor: pointer; color: #274e3b; }
@media (max-width: 920px) {
  .coloring-gallery-intro { gap: 16px; }
  .coloring-gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .coloring-gallery-intro { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .coloring-gallery-featured { width: min(100%, 322px); padding-block: 8px; }
  .coloring-gallery-featured img { height: clamp(160px,49vw,200px); object-fit: contain; }
  .coloring-gallery-actions .btn { font-size: .93rem; }
  .coloring-gallery-grid { grid-template-columns: minmax(0, 1fr); }
}
.coloring-gallery-guide { margin: 15px 0 0; }
