/* Guest gallery: mobile-first, one column, readable on a phone in the sun.
 * The look follows the kiosk's Eemschuumers theme: white, red waves at the sides. */

:root {
  --bg: #ffffff;
  --card: #ffffff;
  --text: #1c1c1e;
  --muted: #6b6b73;
  --line: #f0d9d6;
  --accent: #e3141b;
  --accent-dark: #b20f15;
  --radius: 16px;
  --side: max(18px, 13vw);      /* keeps the content clear of the waves */
}
@media (min-width: 720px) { :root { --side: 16px; } }

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}
body { min-height: 100vh; overflow-x: hidden; }

/* -- the waves: the kiosk's masks, fixed behind the page -------------------- */

.decor { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.wave {
  position: absolute; display: block; background: var(--accent);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.wave.tl { left: 0; top: 0; width: 12vmin; height: 45vmin;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http%3A//www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0H72C56 24 62 56 41 80 29 92 13 98 0 100Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http%3A//www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0H72C56 24 62 56 41 80 29 92 13 98 0 100Z'/%3E%3C/svg%3E"); }
.wave.tr { right: 0; top: 0; width: 24vmin; height: 20vmin;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http%3A//www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M14 0C30 36 56 72 100 90V0Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http%3A//www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M14 0C30 36 56 72 100 90V0Z'/%3E%3C/svg%3E"); }
.wave.bl { left: 0; bottom: 0; width: 15vmin; height: 20vmin;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http%3A//www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 8C36 24 56 60 72 100H0Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http%3A//www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 8C36 24 56 60 72 100H0Z'/%3E%3C/svg%3E"); }
.wave.br { right: 0; bottom: 0; width: 14vmin; height: 55vmin;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http%3A//www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M100 0C80 10 72 30 70 50 66 80 40 95 0 100H100Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http%3A//www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M100 0C80 10 72 30 70 50 66 80 40 95 0 100H100Z'/%3E%3C/svg%3E"); }

.top, main, .bottom { position: relative; z-index: 1; }

/* -- header ------------------------------------------------------------------ */

.top { text-align: center; padding: 28px var(--side) 8px; }
.logo { display: block; margin: 0 auto 6px; max-width: min(260px, 60vw); max-height: 120px;
        object-fit: contain; }
.logo.missing { display: none; }
.top h1 { font-size: 28px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
          color: var(--accent); }
.top h1.with-logo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.top .sub { color: var(--muted); font-weight: 600; }

main { max-width: 720px; margin: 0 auto; padding: 0 var(--side) 24px; }

.card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 16px;
  box-shadow: 0 6px 24px rgba(227, 20, 27, .06);
}
.card h2 { font-size: 22px; margin-bottom: 8px; color: var(--accent); }
.card h3 { font-size: 18px; margin: 20px 0 10px; }
.card p { margin-bottom: 10px; }

.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.error { color: var(--accent); font-weight: 600; }

.code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700; letter-spacing: .18em; color: var(--accent);
}

form { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 480px) { form { flex-direction: row; } }
input[type="text"] {
  flex: 1;
  font: inherit; font-size: 24px; text-align: center;
  letter-spacing: .25em; text-transform: uppercase;
  padding: 12px 14px;
  border: 2px solid var(--line); border-radius: 12px;
}
input[type="text"]:focus { outline: none; border-color: var(--accent); }

button, .button {
  display: inline-block;
  font: inherit; font-weight: 700; font-size: 17px;
  color: #fff; background: var(--accent);
  border: 0; border-radius: 999px;
  padding: 13px 24px; text-align: center; text-decoration: none;
  cursor: pointer;
}
button:active, .button:active { background: var(--accent-dark); }

a { color: var(--accent); }

.strip { text-align: center; margin-top: 8px; }
.strip img {
  max-width: 100%; max-height: 70vh;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
}
.strip figcaption { margin-top: 16px; }

/* -- share ------------------------------------------------------------------- */

.share { text-align: center; margin: 8px 0 20px; }
.share-buttons { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 480px) { .share-buttons { grid-template-columns: repeat(3, 1fr); } }
.share-btn { width: 100%; font-size: 16px; }
.share-btn.whatsapp { background: #25d366; color: #fff; }
.share-btn.snapchat { background: #fffc00; color: #000; box-shadow: inset 0 0 0 2px #000; }
.share-btn.instagram { background: linear-gradient(45deg, #f58529, #dd2a7b 50%, #8134af); color: #fff; }
.share-btn:active { filter: brightness(.9); }
#share-hint { margin-top: 10px; }

.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 600px) { .shots { grid-template-columns: repeat(3, 1fr); } }
.shot { display: block; text-decoration: none; color: var(--muted); font-size: 14px; }
.shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; }
.shot span { display: block; margin-top: 4px; text-align: center; }

.bottom { text-align: center; color: var(--muted); font-size: 13px; padding: 12px var(--side) 32px; }
