/* Shop entrance: one painting on the Tyrian wall, larger, in a rendered gold Florentine frame.
   The entrance has no buttons: the paintings begin directly below, and the painting and its
   title link to its own page. The frame is a rendering, not the painting's own frame; it is drawn in
   the picture's border from four corner pieces over four edge strips, never over the painting,
   and the painting keeps its own proportions. */
body.shop-page .shop-entrance-hung .shop-hero-art { width: auto; max-width: none; justify-self: center; }
body.shop-page .shop-entrance-hung .shop-hero-art__frame { display: block; width: fit-content; box-shadow: none; transition: translate .8s cubic-bezier(.2, .7, .2, 1); }
body.shop-page .shop-entrance-hung .shop-hero-art__frame:is(:hover, :focus-visible) { box-shadow: none; }
body.shop-page .shop-entrance-hung .shop-hero-art__frame img {
  --f: clamp(26px, 2.6vw, 44px);
  --ph: max(250px, min(calc(100svh - var(--header-height) - 2 * var(--f) - 320px), 560px, calc((42vw - 2 * var(--f) - 40px) / 1.0089)));
  display: block; box-sizing: content-box; height: var(--ph); width: auto; max-width: none; aspect-ratio: 906 / 898; object-fit: cover;
  border: var(--f) solid transparent; border-radius: max(3px, calc(var(--f) * .16)); /* the frame's outer corners are softened a little; the painting's corners stay square */
  background-color: transparent; background-origin: border-box; background-clip: border-box;
  background-image: url(/assets/images/frames/home-florentine-gold-tl.webp), url(/assets/images/frames/home-florentine-gold-tr.webp), url(/assets/images/frames/home-florentine-gold-bl.webp), url(/assets/images/frames/home-florentine-gold-br.webp), url(/assets/images/frames/home-florentine-gold-t.webp), url(/assets/images/frames/home-florentine-gold-b.webp), url(/assets/images/frames/home-florentine-gold-l.webp), url(/assets/images/frames/home-florentine-gold-r.webp);
  background-position: left top, right top, left bottom, right bottom, left top, left bottom, left top, right top;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, round no-repeat, round no-repeat, no-repeat round, no-repeat round;
  background-size: calc(var(--f) * 1.3243) calc(var(--f) * 1.3243), calc(var(--f) * 1.3243) calc(var(--f) * 1.3243), calc(var(--f) * 1.3243) calc(var(--f) * 1.3243), calc(var(--f) * 1.3243) calc(var(--f) * 1.3243), calc(var(--f) * 3.1351) var(--f), calc(var(--f) * 3.1351) var(--f), var(--f) calc(var(--f) * 3.1351), var(--f) calc(var(--f) * 3.1351);
  /* Only a light shadow below the frame, clipped so none falls on its sides or above it. */
  filter: drop-shadow(0 12px 9px rgba(20, 2, 12, .45));
  clip-path: inset(0 0 -40px 0);
}
@media (max-width: 767px) {
  body.shop-page .shop-entrance-hung .shop-hero-art__frame { width: fit-content; margin-inline: auto; }
  body.shop-page .shop-entrance-hung .shop-hero-art__frame img {
    --f: clamp(20px, 6vw, 32px);
    --ph: max(200px, min(calc(100svh - var(--header-height) - 2 * var(--f) - 300px), 330px, calc((100vw - 2 * var(--f) - 88px) / 1.0089)));
  }
}
@media (prefers-reduced-motion: reduce) {
  body.shop-page .shop-entrance-hung .shop-hero-art__frame { transition: none; }
}
