/* Worst Photographer — authentic late-90s chaos */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  /* iOS: avoid min font size blowing layout width */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0.5rem;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
  /* Avoid 100vw scrollbar bug; never wider than screen */
  min-width: 0;
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
  line-height: 1.35;
  color: #00ff00;
  background-color: #000033;
  background-image:
    radial-gradient(ellipse at 20% 30%, rgba(255, 0, 255, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(0, 255, 255, 0.12) 0%, transparent 45%),
    repeating-linear-gradient(
      0deg,
      #000022 0px,
      #000022 2px,
      #000044 2px,
      #000044 4px
    ),
    repeating-linear-gradient(
      90deg,
      #000033 0px,
      #000033 8px,
      #110022 8px,
      #110022 16px
    );
}

/* Sparkle trail + custom cursor (disabled when prefers-reduced-motion) */
.sparkle-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99998;
  overflow: hidden;
}

.sparkle-particle {
  position: fixed;
  margin: 0;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  pointer-events: none;
  transform: translate(-50%, -50%);
  will-change: opacity, transform, filter;
  /* Multi-layer glow = reads like 90s glitter trail on dark bg */
  text-shadow:
    0 0 1px #fff,
    0 0 4px #fff,
    0 0 10px rgba(255, 255, 255, 0.95),
    0 0 18px currentColor,
    0 0 28px #ff00ff,
    0 0 36px #00ffff;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 12px rgba(255, 0, 255, 0.65));
  z-index: 99999;
  transition:
    opacity 0.55s ease-out,
    transform 0.55s ease-out,
    filter 0.55s ease-out;
}

.sparkle-particle.sparkle-fade {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.35) rotate(72deg);
  filter: drop-shadow(0 0 2px transparent);
}

.sparkle-particle.sparkle-particle--micro {
  font-size: 11px;
  opacity: 0.95;
  text-shadow:
    0 0 2px #fff,
    0 0 8px currentColor,
    0 0 14px #ffff00;
}

/* Yellow star cursor (SVG polygon — reads reliably vs emoji) */
body.cringe-cursor {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpolygon fill='%23ffff00' stroke='%23cc9900' stroke-width='1' points='12 2 15 9 22 9 17 14 19 22 12 18 5 22 7 14 2 9 9 9'/%3E%3C/svg%3E")
      12 12,
    crosshair;
}

body.cringe-cursor a,
body.cringe-cursor button {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpolygon fill='%23ffff00' stroke='%23cc9900' stroke-width='1' points='12 2 15 9 22 9 17 14 19 22 12 18 5 22 7 14 2 9 9 9'/%3E%3C/svg%3E")
      12 12,
    pointer;
}

@media (prefers-reduced-motion: reduce) {
  .sparkle-layer {
    display: none;
  }

  body.cringe-cursor {
    cursor: auto;
  }

  body.cringe-cursor a,
  body.cringe-cursor button {
    cursor: pointer;
  }
}

a {
  color: #ffff00;
  text-decoration: underline;
}

a:visited {
  color: #ff99ff;
}

a:hover {
  color: #00ffff;
  background: #330066;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.5rem 1rem;
  background: #000;
  color: #0f0;
  font-family: Arial, Helvetica, sans-serif;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.outer-wrap {
  width: 100%;
  max-width: min(880px, 100%);
  margin: 0 auto;
  box-sizing: border-box;
  min-width: 0;
}

.main-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  border: 6px ridge #ff00ff;
  background: #000022;
  box-shadow: 4px 4px 0 #000, 8px 8px 0 #333366;
  min-width: 0;
}

.main-table td {
  vertical-align: top;
  padding: 0;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.cell-pad {
  padding: 8px !important;
}

/* --- Top bar --- */
.top-bar {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: #ccc;
  background: linear-gradient(180deg, #222266 0%, #111133 100%);
  border-bottom: 3px groove #6666cc;
}

.top-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 4px 8px;
}

.blink-welcome {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  color: #ffff00;
  animation: blink-slow 1.8s step-end infinite;
}

@keyframes blink-slow {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0.15;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blink-welcome {
    animation: none;
    opacity: 1;
  }

  marquee {
    animation: none;
  }

  .blink-hard,
  .blink-hard-delay,
  .rainbow-text,
  .blink-email-link {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
}

.hit-counter {
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
  color: #0f0;
  background: #000;
  border: 2px inset #666;
  padding: 2px 8px;
  letter-spacing: 0.15em;
}

/* --- Marquee strip --- */
.marquee-strip {
  background: #330033;
  border-top: 2px solid #ff00ff;
  border-bottom: 2px solid #00ffff;
  padding: 2px 0;
  max-width: 100%;
  overflow: hidden;
}

.marquee-strip marquee {
  font-family: Comic Sans MS, Comic Sans, cursive;
  font-size: 14px;
  color: #ffcc00;
}

.marquee-strip-alt {
  background: #002020;
  border-top: 2px solid #00ff66;
  border-bottom: 2px solid #ff00aa;
}

.marquee-strip-alt marquee {
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  color: #ffccff;
}

/* --- Hero --- */
.hero-box {
  text-align: center;
  padding: 12px 8px;
  background: repeating-linear-gradient(
    -45deg,
    #1a0033,
    #1a0033 10px,
    #330066 10px,
    #330066 20px
  );
  border: 4px double #00ff00;
}

.site-title {
  margin: 0 0 8px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  font-weight: normal;
  color: #ff00ff;
  text-shadow:
    2px 2px 0 #00ffff,
    4px 4px 0 #000;
  letter-spacing: 0.02em;
}

.subtitle {
  margin: 0;
  font-family: Comic Sans MS, Comic Sans, cursive;
  font-size: 1rem;
  color: #ffff99;
}

.amateur-oath {
  margin: 10px 0 0;
  font-family: Impact, Haettenschweiler, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

.blink-hard {
  display: inline-block;
  color: #ff3300;
  animation: blink-hard 0.85s step-end infinite;
}

.blink-hard-delay {
  animation-delay: 0.42s;
}

@keyframes blink-hard {
  0%,
  45% {
    opacity: 1;
  }
  46%,
  100% {
    opacity: 0.12;
  }
}

.rainbow-text {
  display: inline-block;
  padding: 0 4px;
  font-weight: bold;
  color: #ff0000;
  animation: rainbow-hue 2.5s linear infinite;
}

@keyframes rainbow-hue {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}

.font-bar {
  margin: 6px 0 0;
}

.new-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 10px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: bold;
  color: #fff;
  background: #ff0000;
  border: 2px outset #ff6666;
  animation: new-pulse 0.8s ease-in-out infinite alternate;
}

@keyframes new-pulse {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .new-badge {
    animation: none;
  }
}

/* --- Rainbow HR --- */
hr.rainbow {
  border: 0;
  height: 8px;
  margin: 0;
  background: linear-gradient(
    90deg,
    #f00,
    #ff0,
    #0f0,
    #0ff,
    #00f,
    #f0f,
    #f00
  );
}

/* --- Sections --- */
.section {
  padding: 10px 12px;
  border-bottom: 3px ridge #6666ff;
}

.section-alt {
  background: #110011;
}

.section h2 {
  margin: 0 0 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.15rem;
  color: #00ffff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section p,
.section li {
  font-family: Georgia, "Times New Roman", Times, serif;
  color: #ccffcc;
  margin: 0 0 8px;
}

.section ul {
  margin: 0 0 8px;
  padding-left: 1.5rem;
}

.section li {
  margin-bottom: 4px;
}

.font-comic {
  font-family: Comic Sans MS, Comic Sans, cursive !important;
  color: #ffccff !important;
}

.font-courier {
  font-family: "Courier New", Courier, monospace !important;
  color: #ffff00 !important;
}

.warning-box {
  margin-top: 8px;
  padding: 8px;
  border: 3px dashed #ff6600;
  background: #331100;
  color: #ffcc99;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
}

/* --- Photo gallery table --- */
.gallery-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 6px;
}

.gallery-table td {
  width: 33.33%;
  padding: 4px;
  vertical-align: top;
}

.photo-slot {
  border: 4px ridge #cccc00;
  background: #222;
  min-height: 120px;
  text-align: center;
  padding: 6px;
}

.photo-slot img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 140px;
  object-fit: cover;
  border: 2px inset #666;
}

.photo-slot__btn {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  line-height: 0;
  vertical-align: top;
}

.photo-slot__btn:focus-visible {
  outline: 3px solid #ffff00;
  outline-offset: 2px;
}

.photo-slot__btn img {
  pointer-events: none;
}

.slot-caption {
  margin-top: 6px;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  color: #0ff;
}

.gallery-above-fold {
  padding-top: 6px !important;
}

.gallery-above-fold .gallery-table {
  margin-top: 4px;
}

.gallery-lede {
  margin: 0 0 8px;
  font-family: Comic Sans MS, Comic Sans, cursive;
  font-size: 13px;
  color: #ccff99;
}

/* --- Form --- */
.form-table {
  width: 100%;
  border-collapse: collapse;
}

.form-table td {
  padding: 6px 4px;
  vertical-align: top;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: #99ff99;
}

.form-table label {
  display: block;
  font-weight: bold;
  color: #ff99ff;
  margin-bottom: 2px;
}

input[type="text"],
input[type="email"],
input[type="file"],
textarea {
  width: 100%;
  max-width: 420px;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  padding: 4px;
  border: 3px inset #999;
  background: #ffffcc;
  color: #000;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.submit-row td {
  text-align: center;
  padding-top: 12px;
}

button[type="submit"] {
  font-family: Impact, Haettenschweiler, sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  padding: 8px 24px;
  color: #fff;
  background: linear-gradient(180deg, #6633cc 0%, #330099 100%);
  border: 4px outset #9966ff;
  cursor: pointer;
}

button[type="submit"]:hover {
  background: linear-gradient(180deg, #8844ee 0%, #4422aa 100%);
}

button[type="submit"]:active {
  border-style: inset;
}

/* --- Sidebar / nav --- */
/* Narrow sidebar column; main column takes the rest (see <colgroup> in index.html) */
.sidebar {
  width: 140px;
  max-width: 140px;
  min-width: 0;
  background: #003300;
  border-left: 4px groove #00cc00;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
}

td#main {
  width: auto;
}

.sidebar h3 {
  margin: 0 0 6px;
  font-size: 11px;
  color: #0ff;
  text-align: center;
  text-transform: uppercase;
}

.sidebar ul {
  margin: 0;
  padding: 0 8px 8px;
  list-style: none;
}

.sidebar li {
  margin-bottom: 6px;
}

.sidebar a {
  display: block;
  word-break: break-word;
}

.construction {
  text-align: center;
  padding: 8px 4px;
  font-size: 10px;
  color: #ff0;
}

.construction-bar {
  display: inline-block;
  padding: 2px 6px;
  border: 2px dashed #ff0;
  background: repeating-linear-gradient(
    90deg,
    #000,
    #000 4px,
    #333 4px,
    #333 8px
  );
}

/* --- Footer --- */
.footer {
  padding: 10px 12px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  color: #999;
  text-align: center;
  background: #0a0a1a;
  border-top: 3px ridge #444;
}

.footer-webring {
  margin-bottom: 8px;
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  color: #666;
}

.footer-webring a {
  margin: 0 4px;
}

/* --- Netscape notice --- */
.netscape-notice {
  margin-top: 8px;
  font-size: 10px;
  color: #666;
}

/* --- Email --- */
.mailto-line {
  margin-top: 6px;
  font-family: Comic Sans MS, Comic Sans, cursive;
  font-size: 13px;
  color: #ff0;
}

/* --- Cringe zone (90s homepage pack) --- */
.cringe-zone {
  background: #0d0033 !important;
  border: 4px double #ff6600 !important;
}

.cringe-title {
  font-family: Comic Sans MS, Comic Sans, cursive !important;
  color: #ff99ff !important;
  text-align: center;
  text-shadow: 2px 2px 0 #6600cc;
  letter-spacing: 0.15em;
  margin-bottom: 12px !important;
}

.cringe-table {
  width: 100%;
  border-collapse: collapse;
}

.cringe-cell {
  width: 50%;
  vertical-align: middle;
  padding: 8px;
}

@media (max-width: 600px) {
  .cringe-table tr {
    display: block;
  }

  .cringe-cell {
    display: block;
    width: 100%;
  }
}

.visitor-box {
  text-align: center;
  padding: 10px;
  background: #000;
  border: 4px inset #444;
  box-shadow: inset 0 0 20px #220044;
}

.visitor-label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  color: #0ff;
  letter-spacing: 0.2em;
  margin-bottom: 6px;
}

.visitor-digits {
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(1.5rem, 6vw, 2.5rem);
  font-weight: bold;
  color: #0f0;
  background: #001100;
  border: 3px ridge #0f0;
  padding: 8px 12px;
  letter-spacing: 0.25em;
  text-shadow: 0 0 8px #0f0;
  animation: lcd-flicker 4s ease-in-out infinite;
}

@keyframes lcd-flicker {
  0%,
  92%,
  100% {
    opacity: 1;
  }
  93% {
    opacity: 0.85;
  }
  94% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .visitor-digits {
    animation: none;
  }
}

.visitor-sub {
  margin-top: 6px;
  font-family: Comic Sans MS, Comic Sans, cursive;
  font-size: 11px;
  color: #f9f;
}

.stats-stack {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: #ccc;
}

.stats-line {
  margin: 0 0 6px;
}

.stats-label {
  color: #99ccff;
}

.stats-num {
  font-family: "Courier New", Courier, monospace;
  color: #ff0;
  font-weight: bold;
}

.site-updated {
  margin: 10px 0 0;
  font-size: 11px;
  color: #aaa;
}

.blink-tag {
  font-family: "Courier New", Courier, monospace;
  color: #666;
  font-size: 10px;
}

.best-viewed {
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  color: #ffcc00;
  margin: 12px 0 8px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 12px 0;
}

.fake-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  min-height: 31px;
  padding: 4px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: bold;
  line-height: 1.15;
  text-align: center;
  color: #fff;
  border: 2px outset #ccc;
  box-shadow: 2px 2px 0 #000;
}

.fake-badge-netscape {
  background: linear-gradient(180deg, #0066cc 0%, #003366 100%);
}

.fake-badge-ie {
  background: linear-gradient(180deg, #0066ff 0%, #000088 100%);
  font-size: 9px;
}

.fake-badge-notepad {
  background: linear-gradient(180deg, #666 0%, #222 100%);
  font-size: 9px;
}

.fake-badge-hot {
  background: linear-gradient(180deg, #ff3300 0%, #990000 100%);
  color: #ff0;
}

.quick-links-cringe {
  text-align: center;
  font-family: Comic Sans MS, Comic Sans, cursive;
  font-size: 12px;
  line-height: 1.8;
  padding: 8px;
  overflow-wrap: anywhere;
  word-break: break-word;
  background: repeating-linear-gradient(
    90deg,
    #1a0033,
    #1a0033 12px,
    #220044 12px,
    #220044 24px
  );
  border: 2px dotted #ff00ff;
}

.qlink-sep {
  color: #666;
  margin: 0 4px;
}

.webmaster-line {
  margin: 10px 0 0;
  text-align: center;
  font-family: "Times New Roman", Times, serif;
  font-size: 12px;
  color: #99ff99;
}

.guestbook-blink {
  font-family: Impact, Haettenschweiler, sans-serif;
  color: #ff0;
  animation: guestbook-flash 1.2s step-end infinite;
}

@keyframes guestbook-flash {
  0%,
  49% {
    color: #ff0;
  }
  50%,
  100% {
    color: #f0f;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guestbook-blink {
    animation: none;
    color: #ff0;
  }
}

.sidebar-counter {
  margin: 12px 6px;
  padding: 8px 4px;
  text-align: center;
  background: #000;
  border: 3px ridge #ff00ff;
}

.sidebar-counter-label {
  font-size: 9px;
  color: #0ff;
  letter-spacing: 0.1em;
}

.sidebar-counter-digits {
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  font-weight: bold;
  color: #0f0;
  margin-top: 4px;
  word-break: break-all;
}

.sidebar-hot {
  margin: 8px 6px;
  font-size: 10px;
  text-align: center;
  color: #ccc;
}

.hot-text {
  color: #f00;
  font-weight: bold;
  animation: hot-wiggle 0.5s ease-in-out infinite alternate;
}

@keyframes hot-wiggle {
  from {
    transform: rotate(-3deg) scale(1);
  }
  to {
    transform: rotate(3deg) scale(1.15);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hot-text {
    animation: none;
  }
}

.midi-joke {
  margin-top: 8px;
  font-size: 10px;
  color: #555;
  font-style: italic;
}

/* --- Photo lightbox (click gallery for larger view) --- */
body.photo-lightbox-open {
  overflow: hidden;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
}

.photo-lightbox[hidden] {
  display: none !important;
}

.photo-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: pointer;
}

.photo-lightbox__panel {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1280px);
  max-height: 92vh;
  padding: 12px 14px 16px;
  background: #111;
  border: 6px ridge #ff00ff;
  box-shadow:
    0 0 0 4px #000,
    8px 8px 0 #330066,
    0 0 40px rgba(255, 0, 255, 0.35);
  overflow: auto;
  text-align: center;
}

.photo-lightbox__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  font-family: Impact, Haettenschweiler, sans-serif;
  font-size: 14px;
  padding: 6px 12px;
  color: #fff;
  background: linear-gradient(180deg, #cc0000 0%, #660000 100%);
  border: 3px outset #ff6666;
  cursor: pointer;
}

.photo-lightbox__close:hover {
  background: linear-gradient(180deg, #ff2222 0%, #880000 100%);
}

.photo-lightbox__close:focus-visible {
  outline: 3px solid #ffff00;
  outline-offset: 2px;
}

.photo-lightbox__title {
  margin: 0 120px 10px 8px;
  font-family: Comic Sans MS, Comic Sans, cursive;
  font-size: 14px;
  color: #ffcc00;
  text-align: left;
}

.photo-lightbox__img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: min(78vh, 900px);
  margin: 0 auto;
  border: 4px inset #999;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.25);
}

@media (prefers-reduced-motion: reduce) {
  .photo-lightbox__panel {
    box-shadow: 0 0 0 4px #000;
  }
}

/* Sidebar: blinking email link (classic GeoCities) */
.sidebar-blink-mail {
  margin: 10px 4px 0;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
}

.blink-email-link {
  color: #00ffff !important;
  font-weight: bold;
  animation: blink-email 1.1s step-end infinite;
}

@keyframes blink-email {
  0%,
  40% {
    color: #00ffff;
    text-shadow: 0 0 6px #ff00ff;
  }
  41%,
  100% {
    color: #ffff00;
    text-shadow: 0 0 8px #00ff00;
  }
}

/* --- Mobile: keep layout within viewport width --- */
img,
video {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
  }

  body {
    padding: 0.35rem;
    padding-left: max(0.35rem, env(safe-area-inset-left));
    padding-right: max(0.35rem, env(safe-area-inset-right));
  }

  .outer-wrap {
    overflow-x: hidden;
    max-width: 100%;
  }

  .blink-welcome {
    font-size: clamp(0.75rem, 3.5vw, 1.4rem);
    letter-spacing: 0.04em;
  }

  /*
   * Turn the outer layout table into blocks so the table never forces
   * a min-width wider than the viewport (common mobile overflow cause).
   */
  .main-table {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  .main-table colgroup {
    display: none;
  }

  .main-table tbody {
    display: block;
    width: 100%;
  }

  .main-table > tbody > tr {
    display: block;
    width: 100%;
  }

  .main-table > tbody > tr > td {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .sidebar {
    width: 100% !important;
    max-width: 100% !important;
    border-left: none;
    border-top: 4px groove #00cc00;
  }

  /* Photo grid: one column, cannot exceed parent */
  .gallery-table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
  }

  .gallery-table tr {
    display: block;
  }

  .gallery-table td {
    display: block;
    width: 100% !important;
  }

  .photo-lightbox__title {
    margin: 0 0 10px;
    padding-right: 72px;
  }

  .visitor-digits {
    letter-spacing: 0.04em;
    font-size: clamp(1.1rem, 5vw, 2.2rem);
  }

  .badge-row {
    justify-content: center;
  }

  /* Lightbox: avoid vw wider than visual viewport on iOS */
  .photo-lightbox__panel {
    max-width: calc(100% - 16px);
  }
}
