/* Joshbox banner: photo-booth strip of Josh */
.jb-banner {
  --jb-yellow: #ffd400;
  position: relative;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 26px 32px 30px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 212, 0, .18) 1.2px, transparent 1.6px) 0 0 / 14px 14px,
    radial-gradient(ellipse at 20% 0%, #2a2a2a 0%, #000 70%);
  border-bottom: 4px solid var(--jb-yellow);
}

.jb-title { flex: 0 0 auto; z-index: 1; }
.jb-title h1 {
  margin: 0;
  font: 900 clamp(44px, 6vw, 78px)/0.9 system-ui, -apple-system, "Segoe UI", Impact, sans-serif;
  letter-spacing: .02em;
  transform: rotate(-3deg);
  text-shadow: 4px 4px 0 #000, 6px 6px 0 var(--jb-yellow);
}
.jb-title h1 span { color: var(--jb-yellow); text-shadow: 4px 4px 0 #000, 6px 6px 0 #fff; }
.jb-title p {
  margin: 14px 0 0;
  font: 600 15px/1.3 system-ui, sans-serif;
  color: #cfcfcf;
  max-width: 260px;
}

.jb-strip {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
}
.jb-card {
  flex: 0 0 auto;
  width: clamp(98px, 12.4vw, 140px);
  margin: 0 -3px;
  padding: 7px 7px 0;
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .55);
  transform: rotate(var(--r));
  transition: transform .2s ease, box-shadow .2s ease;
  animation: jb-drop .6s cubic-bezier(.2, 1.4, .4, 1) var(--d) both;
  cursor: default;
}
.jb-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.jb-card figcaption {
  padding: 7px 2px 9px;
  min-height: 2.6em;
  font: 700 clamp(11px, 1.1vw, 13px)/1.15 "Segoe Print", "Bradley Hand", "Marker Felt", "Comic Sans MS", cursive;
  color: #111;
  text-align: center;
}
.jb-card:hover, .jb-card:focus-within {
  transform: rotate(0deg) translateY(-8px) scale(1.12);
  box-shadow: 0 18px 36px rgba(0, 0, 0, .7), 0 0 0 3px var(--jb-yellow);
  z-index: 2;
  position: relative;
}
.jb-card:nth-child(odd):hover { animation: jb-wiggle .4s ease; }

@keyframes jb-drop {
  from { opacity: 0; transform: translateY(-60px) rotate(calc(var(--r) * -2)); }
  to { opacity: 1; transform: rotate(var(--r)); }
}
@keyframes jb-wiggle {
  0%, 100% { transform: rotate(0deg) translateY(-8px) scale(1.12); }
  25% { transform: rotate(-4deg) translateY(-8px) scale(1.12); }
  75% { transform: rotate(4deg) translateY(-8px) scale(1.12); }
}

/* With the banner on top, the sticky bar's name can be small */
.jb-banner ~ .topbar .brand-text { font-size: 24px; line-height: 40px; }

/* Medium screens: strip under the title */
@media (max-width: 1100px) {
  .jb-banner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .jb-title { align-self: center; text-align: center; }
  .jb-title p { max-width: none; }
  .jb-strip { align-self: stretch; }
}

/* Phones: swipeable strip */
@media (max-width: 700px) {
  .jb-banner { padding: 20px 0 22px; }
  .jb-title h1 { font-size: 46px; }
  .jb-title p { font-size: 13px; padding: 0 16px; }
  .jb-strip {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 18px 28px 12px;
    scrollbar-width: none;
  }
  .jb-strip::-webkit-scrollbar { display: none; }
  .jb-card { width: 112px; margin: 0 -4px; scroll-snap-align: center; }
  .jb-card figcaption { font-size: 12px; }
  .jb-banner ~ .topbar .brand-text { font-size: 20px; line-height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .jb-card { animation: none; transition: none; }
  .jb-card:hover { animation: none; }
}
