/* Catalog-specific paper composition. The home page keeps its own styles.
   Natural contours come from the original generated PNG alpha channels. */
html,
body.page-catalog { min-height: 100%; background: #1e1e1b !important; }
.page-catalog .site-shell { background-color: #cbbca6; }
.catalog-body,
.catalog-hero {
  background-color: #e9decf;
  background-image: var(--paper-grain), radial-gradient(ellipse at 45% 10%, #fff9ee38, transparent 65%);
  background-size: var(--grain-tile-size), 100% 100%;
  background-repeat: repeat, no-repeat;
}
.catalog-hero { z-index: 2; min-height: 325px; }
.catalog-hero::after { display: none; }
.catalog-hero-sheet {
  position: absolute;
  z-index: 0;
  inset: 0 0 -80px;
  overflow: hidden;
  background-color: #cbbba4;
  background-image: url("../images/catalog-aged-paper-header.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  -webkit-mask-image: var(--footer-raster-mask), linear-gradient(#000, #000);
  mask-image: var(--footer-raster-mask), linear-gradient(#000, #000);
  -webkit-mask-size: max(900px, 100%) 200px, 100% calc(100% - 100px);
  mask-size: max(900px, 100%) 200px, 100% calc(100% - 100px);
  -webkit-mask-position: center top, center bottom;
  mask-position: center top, center bottom;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  mask-mode: alpha;
  transform: scaleY(-1);
  pointer-events: none;
}
.catalog-hero-sheet::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;
  height: 200px;
  background: url("../images/footer-torn-edge.png") center top / max(900px, 100%) 100% no-repeat;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 50%, transparent 100%);
}
.catalog-hero-sheet .catalog-lace {
  z-index: 1;
  top: auto;
  bottom: 0;
  left: -1px;
  width: 34%;
  height: calc(100% - 65px);
  transform: scaleY(-1);
  object-position: left bottom;
  opacity: .91;
  filter: sepia(.08) brightness(.96);
}
.catalog-heading { padding-bottom: 10px; }
.angel-card { z-index: 2; }
.angel-photo { width: 100%; height: 100%; overflow: hidden; background: #74634d; }
/* The generated print has a pale scan border outside its paper edges.
   Fill the photo window with the image itself, keeping the paper frame separate. */
.angel-photo img { transform: scale(1.09); transform-origin: center; }
.angel-card span {
  bottom: -34px;
  left: -36px;
  width: 250px;
  padding: 16px 24px;
  background: url("../images/featured-label-b.png") center / 100% 100% no-repeat;
  box-shadow: none;
  filter: drop-shadow(0 2px 1px #71573524);
}
.cameo {
  z-index: 5;
  left: 22%;
  bottom: -31px;
  width: 100px;
  height: auto;
  display: block;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  transform: rotate(-7deg);
  filter: drop-shadow(1px 3px 2px #58432d33);
  pointer-events: none;
}
.cameo img { width: 100%; height: auto; opacity: 1; mix-blend-mode: normal; }
.catalog-layout { z-index: 2; padding-top: 48px; padding-bottom: 18px; }
.catalog-sidebar { align-self: start; padding-bottom: 220px; }
.catalog-toolbar { gap: 12px 18px; }
.catalog-toolbar .page-size-label { margin-left: 0; font-size: 15px; gap: 6px; white-space: nowrap; }
.catalog-toolbar .page-size-label select { padding: 1px 3px; border: 0; border-bottom: 1px solid #9f8b6f; font: inherit; }
.results-count { margin-left: auto; }
.catalog-bottom { margin-top: 43px; min-height: 50px; display: flex; justify-content: center; }
.pagination { gap: 13px; }
.pagination button { min-width: 43px; width: 43px; height: 43px; font: 400 19px/1 var(--serif); }
.pagination button.is-active,
.pagination button[aria-current="page"] { background: #a29481; color: #fff7e9; }
.pagination .pagination-arrow { width: 48px; border-radius: 0; }
.pagination .icon { width: 34px; height: 34px; stroke-width: .8; }
.pagination button:disabled { opacity: .42; }
.pagination button:not(:disabled):not(.is-active):hover { color: #8d7457; background-color: #ae97731a; }
.pagination .pagination-ellipsis { display: grid; place-items: center; min-width: 25px; height: 43px; font: 19px/1 var(--serif); }
.catalog-end-ornament { margin: 27px 0 18px; opacity: .7; }
.catalog-end-ornament .icon { width: 248px; height: 40px; stroke-width: .9; }
.catalog-paper-end {
  position: relative;
  z-index: 1;
  height: 0;
  margin: 0;
  background: none;
  -webkit-mask-image: none;
  mask-image: none;
  pointer-events: none;
}
.catalog-paper-end::before {
  content: "";
  position: absolute;
  inset: -100px 0 auto;
  height: 220px;
  background: url("../images/footer-torn-edge.png") center top / max(900px, 100%) 100% no-repeat;
  transform: scaleY(-1);
  -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 65%, transparent 100%);
}
.catalog-footer {
  position: relative;
  min-height: 115px;
  background-color: #c5b49d;
  background-image: url("../images/catalog-aged-paper-footer.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.catalog-footer-collage { position: absolute; z-index: 3; bottom: 0; left: 0; width: 330px; height: 435px; pointer-events: none; }
.catalog-footer-collage img { position: absolute; height: auto; max-width: none; }
.catalog-footer-lady { z-index: 0; width: 265px; left: 5px; bottom: 51px; transform: rotate(-9deg); filter: drop-shadow(2px 2px 2px #77634820); }
.catalog-footer-sprigs { z-index: 1; width: 143px; left: 0; bottom: 62px; transform: rotate(-12deg); filter: drop-shadow(1px 2px 1px #70523830); }
.catalog-footer-lace { z-index: 2; width: 415px; left: -27px; bottom: -43px; transform: rotate(-2deg); }
@media (max-width: 1200px) {
  .catalog-sidebar { padding-bottom: 190px; }
  .catalog-footer-collage { width: 285px; height: 390px; }
  .catalog-footer-lady { width: 230px; left: -2px; }
  .catalog-footer-sprigs { width: 125px; left: -4px; }
  .catalog-footer-lace { width: 360px; left: -25px; bottom: -36px; }
}
@media (max-width: 1000px) {
  .catalog-sidebar { padding-bottom: 140px; }
  .catalog-hero { min-height: 265px; }
  .catalog-hero-sheet .catalog-lace { width: 33%; }
  .cameo { left: 20%; width: 83px; bottom: -28px; }
  .angel-card span { width: 190px; left: -28px; padding: 14px 19px; font-size: 16px; }
  .catalog-toolbar { gap: 12px; }
  .catalog-toolbar .page-size-label { font-size: 14px; }
  .catalog-footer-collage { width: 220px; height: 345px; }
  .catalog-footer-lady { width: 190px; left: -5px; bottom: 49px; }
  .catalog-footer-sprigs { width: 106px; left: -6px; bottom: 51px; }
  .catalog-footer-lace { width: 300px; left: -25px; bottom: -28px; }
  .pagination { gap: 8px; }
}
@media (max-width: 700px) {
  .catalog-hero { min-height: 234px; }
  .catalog-hero-sheet .catalog-lace { width: 42%; opacity: .58; }
  .catalog-heading { padding-top: 15px; padding-bottom: 8px; }
  .cameo { left: 11%; width: 65px; bottom: -26px; }
  .catalog-layout { padding-top: 42px; padding-bottom: 8px; }
  .catalog-sidebar { padding-bottom: 23px; }
  .catalog-toolbar { gap: 11px; }
  .catalog-toolbar .sort-label { flex: 1 1 55%; }
  .catalog-toolbar .page-size-label { font-size: 13px; }
  .catalog-toolbar .results-count { width: 100%; margin-left: 0; font-size: 14px; }
  .catalog-bottom { margin-top: 31px; min-height: 50px; padding-top: 0; gap: 0; }
  .pagination { gap: 2px; }
  .pagination button { min-width: 34px; width: 34px; height: 37px; font-size: 18px; }
  .pagination .pagination-arrow { min-width: 37px; width: 37px; }
  .pagination .pagination-ellipsis { min-width: 18px; height: 37px; }
  .pagination .icon { width: 28px; height: 28px; }
  .catalog-end-ornament { margin: 20px 0 5px; }
  .catalog-end-ornament .icon { width: 200px; height: 35px; }
  .catalog-paper-end { height: 0; }
  .catalog-footer { min-height: 222px; }
  .catalog-footer-collage { width: 230px; height: 226px; }
  .catalog-footer-lady { width: 162px; left: 15px; bottom: 15px; }
  .catalog-footer-sprigs { width: 88px; left: 6px; bottom: 19px; }
  .catalog-footer-lace { width: 277px; left: -17px; bottom: -35px; }
}
@media print {
  .catalog-hero-sheet, .catalog-paper-end, .catalog-footer { display: none; }
}
