/* Phone layout for justforfunk.com.
   The desktop layout (fixed 700px tables) is untouched: everything here only applies on narrow screens.
   Classes are set on the layout tables by tools/convert.py (layout()). */
@media (max-width: 760px) {
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body { margin: 0; overflow-x: hidden; }

  /* decorative frame pieces, spacers and the menu's tiled border */
  .jff-hide, .jff-spacer { display: none !important; }

  /* turn the layout tables into stacked blocks */
  table.jff-page, table.jff-main, table.jff-menu, table.jff-menubox, table.jff-frame,
  .jff-page > tbody, .jff-page > tbody > tr, .jff-page > tbody > tr > td,
  .jff-main > tbody, .jff-main > tbody > tr, .jff-main > tbody > tr > td,
  .jff-menu > tbody, .jff-menu > tbody > tr, .jff-menu > tbody > tr > td,
  .jff-menubox > tbody, .jff-menubox > tbody > tr,
  .jff-frame > tbody, .jff-frame > tbody > tr {
    display: block; width: auto !important; height: auto !important;
  }

  /* logo + menu on top */
  .jff-side { text-align: center; padding: 16px 16px 4px; }
  .jff-logo { padding-bottom: 10px; }
  .jff-items { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 6px; }
  .jff-items #menu_new { padding: 0; border-radius: 4px; box-shadow: 0 1px 0 rgba(0, 0, 0, .12); }
  .jff-items #menu_new a { display: block; padding: 8px 11px; }

  /* the peach content box */
  .jff-body { padding: 12px 10px 24px; }
  .jff-frame { background: #FDCC99; border-radius: 10px; }
  .jff-content { display: block !important; width: auto !important; padding: 14px 14px 18px; }

  /* content: nothing wider than the screen */
  .jff-content table { width: auto !important; max-width: 100%; }
  .jff-content img { max-width: 100%; height: auto; }

  /* home page: news text and "dernier concert" box stacked */
  .jff-stack, .jff-stack > tbody, .jff-stack > tbody > tr, .jff-stack > tbody > tr > td {
    display: block; width: auto !important;
  }
  .jff-stack > tbody > tr > td > div { padding-right: 0 !important; }
  .jff-stack table { margin: 0 auto; }

  /* photo galleries: full-width boxes, thumbnails wrap */
  .jff-content table[bgcolor="#F56323"], .jff-content table[bgcolor="#FDCC99"] { width: 100% !important; }
}

/* Archive footer under the content box (all screen sizes) */
.jff-foot { padding: 12px 10px 0 0; font: bold 11px Verdana, Arial, Helvetica, sans-serif;
            color: #FDCC99; text-shadow: 0 1px 2px rgba(150, 50, 0, .6); letter-spacing: .03em; }
@media (max-width: 760px) {
  .jff-foot { display: block; padding: 4px 16px 28px; }
}


/* Pressbook cards (coin presse) - wrap on narrow screens */
.jff-books { display: flex; flex-wrap: wrap; gap: 14px; margin: 8px 0 4px; }
.jff-book { width: 128px; text-align: center; font-size: 11px; line-height: 1.35; }
.jff-book img { width: 120px; height: auto; border: 1px solid #F56323; margin-bottom: 4px; }



