/* Shared Light — community gallery for A Little Space.
   Palette and type follow site-pages.css / theme.css. */

.gl-hero { padding-bottom: 26px; }
.gl-invite {
  font-size: 1.08rem; color: #33473f;
  background: #e9f2eb; border: 1px solid #dae8dd;
  border-radius: 16px; padding: 16px 20px; max-width: 640px;
}
[data-theme="dark"] .gl-invite { background: #1e2f26; border-color: #33463b; color: #edeade; }
.gl-h2 { margin-bottom: 12px; }

/* ---------- The drifting band ---------- */
.gl-band-wrap { margin: 6px 0 46px; }
.gl-band {
  position: relative;
  height: clamp(190px, 36vw, 320px);
  border-radius: 24px;
  overflow: hidden;
  background: #dfe9e2;
  box-shadow: 0 14px 34px rgba(38, 62, 64, .12);
}
.gl-band .gl-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 2.4s ease-in-out;
}
.gl-band .gl-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.03);
}
.gl-band .gl-slide.is-on { opacity: 1; }
.gl-band .gl-slide.is-on img { animation: gl-drift 9s ease-out forwards; }
@keyframes gl-drift {
  from { transform: scale(1.03) translateX(0); }
  to   { transform: scale(1.1) translateX(-1.2%); }
}
.gl-band-note {
  margin: 10px 4px 0;
  font-size: .86rem;
  color: #5d6a62;
  font-style: italic;
  font-family: 'Literata', Georgia, serif;
}

/* ---------- Filter chips ---------- */
.gl-chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 14px 0 22px; }
.gl-chip {
  border: 1.5px solid #b9cfc0;
  background: #fff;
  color: #285d56;
  border-radius: 999px;
  padding: 9px 18px;
  font: 600 .92rem system-ui, sans-serif;
  cursor: pointer;
  min-height: 44px;
}
.gl-chip:hover { border-color: #528475; }
.gl-chip.is-active { background: #285d56; border-color: #285d56; color: #fff; }
.gl-radio-chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid #b9cfc0; background: #fff; color: #285d56;
  border-radius: 999px; padding: 9px 16px;
  font: 600 .92rem system-ui, sans-serif; cursor: pointer; min-height: 44px;
}
.gl-radio-chip:has(input:checked) { background: #285d56; border-color: #285d56; color: #fff; }
.gl-radio-chip input { accent-color: currentColor; }

/* ---------- The grid ---------- */
.gl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}
.gl-card {
  background: #fff;
  border: 1px solid #d8e3db;
  border-radius: 20px;
  overflow: hidden;
  margin: 0;
  display: flex; flex-direction: column;
  box-shadow: 0 6px 18px rgba(38, 62, 64, .06);
}
.gl-card img {
  width: 100%; aspect-ratio: 4 / 3;
  object-fit: cover; display: block;
  background: #e6eee8;
}
.gl-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.gl-card-caption { font-family: 'Literata', Georgia, serif; font-size: 1.02rem; color: #33473f; margin: 0; }
.gl-card-meta { font-size: .82rem; color: #5d6a62; margin: 0; }
.gl-card-meta .gl-thread { color: #796080; font-weight: 700; letter-spacing: .04em; }
.gl-send {
  margin-top: auto; align-self: flex-start;
  border: 1px solid #cfdfd2; background: #e8f1ea; color: #285d56;
  border-radius: 999px; padding: 9px 16px;
  font: 650 .88rem system-ui, sans-serif; cursor: pointer; min-height: 42px;
}
.gl-send:hover { background: #dcebe0; }
.gl-empty { color: #5d6a62; font-style: italic; }
.gl-seed-note { margin-top: 26px; font-size: .83rem; color: #5d6a62; max-width: 640px; }
.gl-credits { margin-top: 10px; font-size: .83rem; color: #5d6a62; max-width: 640px; }
.gl-credits summary { cursor: pointer; font-weight: 650; color: #285d56; padding: 6px 0; }
.gl-credits p { margin: 6px 0 10px; }
.gl-credits ul { margin: 0; padding-left: 1.15em; }
.gl-credits li { margin: 3px 0; }

/* ---------- Share a photo ---------- */
.gl-share { margin: 58px 0 10px; }
.gl-field { margin: 0 0 18px; }
.gl-field label, .gl-field legend { display: block; font-weight: 650; margin-bottom: 8px; color: #263e40; }
.gl-optional { font-weight: 400; color: #5d6a62; font-size: .86rem; }
.gl-field input[type="text"] {
  width: 100%; max-width: 520px;
  border: 1.5px solid #b7c8be; border-radius: 13px; background: #fff;
  padding: 12px 14px; font-size: 1rem; line-height: 1.5; display: block;
}
.gl-field input[type="file"] { font-size: .95rem; max-width: 100%; }
.gl-field fieldset, fieldset.gl-field { border: 0; padding: 0; margin: 0 0 18px; }
.gl-preview { max-width: 320px; width: 100%; border-radius: 16px; border: 1px solid #d8e3db; }
.gl-consent label { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; max-width: 640px; cursor: pointer; }
.gl-consent input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: #285d56; }
.gl-consent-note { color: #5d6a62; font-size: .92rem; max-width: 640px; }
.gl-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gl-form-error {
  background: #fbeeec; border: 1px solid #e3b7b0; color: #7c352b;
  border-radius: 13px; padding: 12px 16px; max-width: 640px;
}
.gl-form-status { color: #285d56; font-weight: 600; }
.gl-thanks {
  background: #e9f2eb; border: 1px solid #cfe0d2; border-radius: 18px;
  padding: 22px 24px; max-width: 640px;
}

/* ---------- Card maker ---------- */
.gl-maker-backdrop[hidden] { display: none; }
.gl-maker-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(24, 38, 34, .55);
  display: flex; align-items: flex-start; justify-content: center;
  overflow-y: auto; padding: 22px 14px;
}
.gl-maker {
  position: relative;
  background: #fcfaf5; border-radius: 24px;
  max-width: 680px; width: 100%;
  padding: 28px clamp(18px, 4vw, 34px) 30px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}
.gl-maker h2 { padding-right: 44px; }
.gl-maker canvas {
  width: 100%; height: auto; display: block;
  border-radius: 16px; background: #22382b;
}
.gl-maker-close {
  position: absolute; top: 14px; right: 14px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid #d8e3db; background: #fff;
  font-size: 1.4rem; line-height: 1; cursor: pointer; color: #285d56;
}
.gl-quotes { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; }
.gl-quote {
  border: 1.5px solid #b9cfc0; background: #fff; color: #33473f;
  border-radius: 999px; padding: 9px 15px;
  font: italic 500 .92rem Georgia, serif; cursor: pointer; min-height: 42px;
}
.gl-quote.is-active { background: #285d56; border-color: #285d56; color: #fff; }
.gl-maker-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.gl-maker-status { color: #285d56; font-weight: 600; min-height: 1.4em; }

/* ---------- Dark theme ---------- */
[data-theme="dark"] .gl-band { background: #22382b; box-shadow: 0 14px 34px rgba(0,0,0,.4); }
[data-theme="dark"] .gl-band-note,
[data-theme="dark"] .gl-card-meta,
[data-theme="dark"] .gl-seed-note,
[data-theme="dark"] .gl-credits,
[data-theme="dark"] .gl-empty,
[data-theme="dark"] .gl-optional { color: #aebba9; }
[data-theme="dark"] .gl-chip,
[data-theme="dark"] .gl-radio-chip { background: #213129; border-color: #33463b; color: #8fd0bf; }
[data-theme="dark"] .gl-chip.is-active,
[data-theme="dark"] .gl-radio-chip:has(input:checked) { background: #8fd0bf; border-color: #8fd0bf; color: #131e19; }
[data-theme="dark"] .gl-credits summary { color: #8fd0bf; }
[data-theme="dark"] .gl-card { background: #213129; border-color: #33463b; }
[data-theme="dark"] .gl-card-caption { color: #edeade; }
[data-theme="dark"] .gl-send { background: #1e2f26; border-color: #33463b; color: #8fd0bf; }
[data-theme="dark"] .gl-field label, [data-theme="dark"] .gl-field legend { color: #edeade; }
[data-theme="dark"] .gl-field input[type="text"] { background: #213129; border-color: #33463b; color: #edeade; }
[data-theme="dark"] .gl-maker { background: #1d2b24; color: #edeade; }
[data-theme="dark"] .gl-quote { background: #213129; border-color: #33463b; color: #edeade; }
[data-theme="dark"] .gl-quote.is-active { background: #8fd0bf; color: #131e19; border-color: #8fd0bf; }
[data-theme="dark"] .gl-form-error { background: #36272b; border-color: #5c4046; color: #f0c8c0; }

@media (max-width: 560px) {
  .gl-grid { grid-template-columns: 1fr; }
  .gl-band { border-radius: 18px; }
}

/* Taller top banner (Oct 28, 2026): this page's header carries the
   als-header name but loads no site-navigation.css, so its brand strip
   gets the same depth here — matching the canonical header's height. */
header.top { padding-top: 34px; padding-bottom: 34px; }

/* The photo removal section's spacing lives here, not in an inline
   style the page's CSP would block (site check, Nov 4, 2026). */
.gl-removal{margin-top:22px}
