/* WaterPic pages: ripple canvases and gallery, loaded after /home-assets/subpage.css */

/* The live ripple sits on the pad like a photo. Native size when it
   fits the notepad column; scales down on small screens. Pointer math in
   waterpic.js uses getBoundingClientRect, so scaling stays accurate.
   Do not rotate the canvas: that would skew the pointer mapping. */
.ripple{
  position:relative;
  display:block;
  width:max-content;
  max-width:100%;
  margin:0 0 var(--lh);
  line-height:0;
}
.ripple water-pic{
  max-width:100%;
  background:#fff;
  padding:6px;
  box-shadow:0 1px 2px rgba(0,0,0,.25),0 3px 8px rgba(60,50,0,.18);
  box-sizing:border-box;
}
.ripple water-pic canvas{
  display:block;
  max-width:100%;
  height:auto;
}
.ripple::before{
  content:"";
  position:absolute;
  z-index:1;
  top:-2px;
  left:calc(var(--lh) * 1.6);
  width:74px;
  height:20px;
  background:rgba(255,253,235,.62);
  box-shadow:0 0 1px rgba(0,0,0,.15);
  transform:rotate(-6deg);
  pointer-events:none;
}

/* Same links as the old pages, each on its own line */
.wp-links a{display:block;margin:0}

/* Gallery thumbs have mixed aspect ratios, so show the whole picture
   instead of the BigPix wallpaper crop. */
.pix.wp{align-items:start}
.pix.wp .snap{height:auto}
.pix.wp .snap a{height:auto;max-width:100%}
.pix.wp .snap img{
  height:auto;
  width:auto;
  max-width:100%;
  max-height:calc(var(--lh) * 9);
  object-fit:contain;
  margin-top:6px;
}

.credit{margin-top:var(--lh);font-size:.86em;color:var(--pencil)}
