/* One shared gallery: fixed image areas keep portrait, square and landscape flyers intact. */
[data-flyer-gallery]{
  display:grid;
  grid-column:1 / -1;
  grid-row:3;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:24px clamp(16px,2.4vw,30px);
  width:100%;
  max-width:none;
  margin-top:28px;
  align-items:start;
}
[data-flyer-gallery][hidden],.flyer-board-status[hidden],.flyer-board-status button[hidden]{display:none}
/* Reserve precisely one image row while the initially empty gallery is loading. */
[data-flyer-gallery][data-flyer-state="loading"]:empty::before{
  content:"";
  display:block;
  width:100%;
  aspect-ratio:2 / 3;
}
.flyer-board-item{display:flex;flex-direction:column;min-width:0;margin:0}
.flyer-board-figure{
  display:block;
  width:100%;
  aspect-ratio:2 / 3;
  margin:0;
  overflow:hidden;
  border:1px solid #edf0ec40;
  box-shadow:0 9px 20px -11px #000a;
}
.flyer-board-figure img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
.flyer-board-pdf{display:block;margin-top:9px;font-size:12px;line-height:1.5;text-underline-offset:4px}
.flyer-board-status,.flyer-board-noscript{grid-column:1 / -1;grid-row:4;max-width:640px;margin-top:18px;font-size:14px;line-height:1.5}
.flyer-board-status p{margin:0}
.flyer-board-status button{
  min-height:44px;
  margin-top:10px;
  padding:9px 16px;
  border:1px solid currentColor;
  border-radius:3px;
  color:inherit;
  background:transparent;
  font:inherit;
  cursor:pointer;
}
.flyer-board-status button:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.flyer-board-status button:disabled{opacity:.6;cursor:wait}
@media(max-width:900px){[data-flyer-gallery]{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){[data-flyer-gallery]{grid-template-columns:minmax(0,1fr);max-width:360px}}
