.buns-wdtb-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.25rem 6rem;
}

.page-head {
  text-align: center;
  margin-bottom: 2.2rem;
}

.page-kicker {
  font-family: "Space Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.page-title {
  font-family: "Boogaloo", cursive;
  font-size: clamp(2.2rem, 5vw, 3rem);
  line-height: 1.05;
  margin: 0;
  color: var(--text-primary);
}

.page-lead {
  font-family: "Caveat", cursive;
  font-size: 1.25rem;
  color: var(--text-muted);
  margin: 0.8rem auto 0;
  max-width: 36rem;
}

.bwdtb-hero {
  display: flex;
  justify-content: center;
  padding: 3rem 1rem 2rem;
  margin-bottom: 1rem;
}

.bwdtb-hero__polaroid {
  background: #fff;
  padding: 18px 18px 56px 18px;
  box-shadow: 4px 8px 32px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.2);
  transform: rotate(-1.8deg);
  max-width: 640px;
  width: 100%;
  position: relative;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bwdtb-hero__polaroid:hover {
  transform: rotate(-0.5deg) scale(1.02);
  box-shadow: 8px 16px 48px rgba(0, 0, 0, 0.45), 0 4px 10px rgba(0, 0, 0, 0.25);
}

.bwdtb-hero__img {
  width: 100%;
  display: block;
  pointer-events: none;
  user-select: none;
}

.bwdtb-hero__caption {
  font-family: "Caveat", cursive;
  font-size: 1.4rem;
  color: #333;
  text-align: center;
  margin: 16px 0 0;
  letter-spacing: 0.01em;
}

.bwdtb-grid {
  columns: 3;
  column-gap: 1.5rem;
  padding: 2rem 0;
  background: none;
}

.bwdtb-card {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  background: linear-gradient(145deg, #c9a84c, #a0722a, #c9a84c);
  border-radius: 3px;
  padding: 6px;
  box-shadow: 2px 4px 16px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 220, 100, 0.3);
  transform: rotate(var(--tilt, 0deg));
  transform-origin: top center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  position: relative;
}

.bwdtb-card::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: #4a3800;
  border-radius: 50%;
  z-index: 3;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.bwdtb-card:hover {
  box-shadow: 4px 8px 24px rgba(0, 0, 0, 0.5);
  transform: rotate(0deg) scale(1.02);
}

.bwdtb-wrapper {
  background: #f5f0e8;
  padding: 8px;
  position: relative;
}

.bwdtb-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: all;
  z-index: 2;
}

.bwdtb-wrapper img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  user-select: none;
  pointer-events: none;
}

@media (max-width: 899px) {
  .bwdtb-grid {
    columns: 2;
  }
}

@media (max-width: 519px) {
  .bwdtb-grid {
    columns: 1;
  }
}

.bwdtb-lb {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.bwdtb-lb--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.bwdtb-lb__frame {
  background: linear-gradient(145deg, #c9a84c, #a0722a, #c9a84c);
  padding: 10px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 220, 100, 0.3);
  max-width: 90vw;
  max-height: 90vh;
}

.bwdtb-lb__mat {
  background: #f5f0e8;
  padding: 12px;
  overflow: hidden;
  touch-action: none;
}

.bwdtb-lb__mat.bwdtb-lb__mat--dragging {
  cursor: grabbing;
}

.bwdtb-lb__img {
  display: block;
  max-width: 80vw;
  max-height: 80vh;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.1s ease;
  user-select: none;
  pointer-events: none;
  will-change: transform;
}

.bwdtb-lb__close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  opacity: 0.75;
  cursor: pointer;
}

.bwdtb-lb__close:hover {
  opacity: 1;
}

.bwdtb-lb__hint {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-family: "Space Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-lb {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.hero-lb.is-open {
  opacity: 1;
  pointer-events: all;
}

.hero-lb__polaroid {
  background: #fff;
  padding: 20px 20px 72px 20px;
  box-shadow: 6px 12px 48px rgba(0, 0, 0, 0.6);
  transform: rotate(-1.2deg);
  max-width: min(680px, 90vw);
  width: 100%;
  position: relative;
  overflow: hidden;
  touch-action: none;
}

.hero-lb__polaroid.hero-lb__polaroid--dragging {
  cursor: grabbing;
}

.hero-lb__img {
  width: 100%;
  display: block;
  transform-origin: center center;
  transition: transform 0.1s ease;
  user-select: none;
  pointer-events: none;
  will-change: transform;
}

.hero-lb__caption {
  font-family: "Caveat", cursive;
  font-size: 1.8rem;
  color: #333;
  text-align: center;
  margin: 16px 0 0;
}
