/* Shared layout for the Camilla Valley Farm weaving pages. */

body {
  background-image: url("../pics/backdrop.gif");
  color: #000090;
}

/*
  align="left" / align="right" floats the image. When that image is the
  only thing inside a link, new WebKit collapses the link and lays the
  surrounding text across the picture. Float the link instead, and keep
  the image in normal flow so the link box is the picture.
*/
a[href]:has(> img[align="left" i]):not(:has(> :not(img))) {
  float: left;
}

a[href]:has(> img[align="right" i]):not(:has(> :not(img))) {
  float: right;
}

a[href]:has(> img[align="left" i]):not(:has(> :not(img))) > img,
a[href]:has(> img[align="right" i]):not(:has(> :not(img))) > img {
  float: none;
  display: block;
}
