/* GENERATED FILE - DO NOT EDIT.
   Source: shared/gallery.css - run `npm run sync:shared` after editing. */

/* Trip → Gallery (owner 2026-11-23, shared/gallery.js) — web and app */
.gl { --gl-ink: #1d2a22; --gl-soft: #7a6f5c; --gl-line: #e6dcc6; --gl-card: #fffdf7; --gl-dark: #1d3a2e; --gl-gold: #e6c56e; display: grid; gap: 16px; font-family: "DM Sans", system-ui, sans-serif; color: var(--gl-ink); }
.gl-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.gl-head h2 { margin: 0; font: 700 28px/1.1 "Playfair Display", Georgia, serif; }
.gl-head p { margin: 4px 0 0; font-size: 14px; color: var(--gl-soft); }
.gl-add { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--gl-dark); color: #fff; font: 700 14px/1 "DM Sans", sans-serif; cursor: pointer; }
.gl-add svg { width: 16px; height: 16px; }
.gl-gate { display: inline-flex; align-items: center; min-height: 40px; padding: 0 15px; border: 1px dashed #cdbf9f; border-radius: 999px; font: 600 13px/1.2 "DM Sans", sans-serif; color: var(--gl-soft); }

/* the slideshow: one photo at a time, a soft cross-fade, never a jump */
/* taller so a group photo keeps its heads (owner 2026-11-23: "make it bigger a bit so it centers well") */
.gl-show { position: relative; height: clamp(280px, 56vw, 560px); border-radius: 20px; overflow: hidden; background: #2b2a26; }
.gl-slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity 0.9s ease, visibility 0s linear 0.9s; }
.gl-slide.is-on { opacity: 1; visibility: visible; transition: opacity 0.9s ease; }
.gl-slide img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; transform: scale(1.02); transition: transform 6s ease-out; }
.gl-slide.is-on img { transform: scale(1.07); }
.gl-slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 56px 22px 30px; background: linear-gradient(180deg, transparent, rgba(20, 22, 18, 0.74)); color: #fff; pointer-events: none; }
.gl-slide figcaption span { display: block; font: 700 11.5px/1.2 "DM Sans", sans-serif; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.86; }
.gl-slide figcaption b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 6px; font: 700 clamp(19px, 3vw, 26px)/1.15 "Playfair Display", Georgia, serif; }
.gl-slide figcaption p { margin: 4px 0 0; font-size: 14px; opacity: 0.92; max-width: 60ch; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.gl-slide figcaption .gl-held { font-size: 12.5px; opacity: 0.8; }
.gl-edit { position: absolute; top: 12px; right: 12px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 253, 247, 0.92); color: var(--gl-ink); cursor: pointer; }
.gl-edit svg { width: 18px; height: 18px; }
.gl-dots { position: absolute; right: 16px; bottom: 14px; z-index: 2; display: flex; gap: 2px; }
.gl-dot { position: relative; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.gl-dot::after { content: ""; position: absolute; top: 8px; left: 8px; width: 8px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.5); transition: width 0.3s ease, left 0.3s ease; }
.gl-dot.is-on::after { left: 2px; width: 20px; background: #fff; }
.gl-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 3px; background: rgba(255, 255, 255, 0.16); }
.gl-bar i { display: block; width: 0; height: 100%; background: var(--gl-gold); }
.gl-bar i.run { width: 100%; transition: width 5s linear; }

.gl-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.gl-chip { display: inline-flex; align-items: center; gap: 5px; min-height: 40px; padding: 0 14px; border: 1px solid #e0d6bf; border-radius: 999px; background: var(--gl-card); font: 600 13px/1 "DM Sans", sans-serif; color: #3b3a33; cursor: pointer; }
.gl-chip em { font-style: normal; font-weight: 500; opacity: 0.7; }
.gl-chip.is-on { background: var(--gl-dark); border-color: var(--gl-dark); color: #fff; }
.gl-day { display: grid; gap: 10px; }
.gl-day-h { display: flex; align-items: baseline; gap: 10px; }
.gl-day-h b { font: 700 12px/1.2 "DM Sans", sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gl-soft); }
.gl-day-h span { font-size: 12.5px; color: #9a8f7a; }
.gl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-rows: 150px; grid-auto-flow: dense; gap: 8px; }
.gl-tile { position: relative; overflow: hidden; padding: 0; border: 0; border-radius: 12px; background: #e9dfca; cursor: zoom-in; }
.gl-tile.is-big { grid-column: span 2; grid-row: span 2; }
.gl-tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.gl-tile:hover img { transform: scale(1.04); }
.gl-tag { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 4px 9px; border-radius: 999px; background: rgba(255, 253, 247, 0.94); font: 700 11px/1.2 "DM Sans", sans-serif; color: var(--gl-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gl-tag.is-review { color: #7a5313; }
.gl-tag.is-group { background: #1f3a2c; color: #fff; }
.gl-empty { padding: 32px 18px; border: 1px dashed #dccfb2; border-radius: 18px; text-align: center; }
.gl-empty b { font: 700 16px/1.3 "DM Sans", sans-serif; }
.gl-empty p { margin: 6px 0 0; font-size: 13.5px; color: var(--gl-soft); }
@media (max-width: 560px) {
  .gl-head h2 { font-size: 24px; }
  .gl-add { width: 100%; justify-content: center; }
  .gl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 112px; gap: 4px; }
  .gl-tile { border-radius: 8px; }
  .gl-tag { display: none; }
}

/* the full view */
dialog.gl-view { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 14, 12, 0.94); }
dialog.gl-view::backdrop { background: rgba(12, 14, 12, 0.94); }
dialog.gl-view img { position: absolute; inset: 0; margin: auto; max-width: calc(100vw - 32px); max-height: calc(100dvh - 96px); object-fit: contain; border-radius: 10px; }
.gl-vx, .gl-vp, .gl-vn { position: absolute; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; font: 400 26px/1 "DM Sans", sans-serif; cursor: pointer; }
.gl-vx { top: max(14px, var(--safe-top, env(safe-area-inset-top, 0px))); right: 14px; font-size: 18px; }
.gl-vp { left: 12px; top: 50%; transform: translateY(-50%); }
.gl-vn { right: 12px; top: 50%; transform: translateY(-50%); }
.gl-vc { position: absolute; left: 0; right: 0; bottom: max(18px, env(safe-area-inset-bottom, 0px)); text-align: center; color: rgba(255, 255, 255, 0.8); font: 600 13px/1 "DM Sans", sans-serif; }

/* Add / edit a group photo */
dialog.gl-dlg { width: min(460px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 22px; background: #fffdf7; color: #1d2a22; box-shadow: 0 24px 60px rgba(24, 32, 26, 0.28); font-family: "DM Sans", system-ui, sans-serif; }
dialog.gl-dlg::backdrop { background: rgba(20, 26, 22, 0.38); }
.gl-dlg-b { display: grid; gap: 15px; padding: 20px; }
.gl-dlg-h { display: flex; align-items: center; justify-content: space-between; }
.gl-dlg-h b { font: 600 21px/1.2 "Playfair Display", Georgia, serif; }
.gl-x { width: 44px; height: 44px; margin: -10px -10px -10px 0; border: 0; background: none; font-size: 18px; color: #7a6f5c; cursor: pointer; }
.gl-drop { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #f3ecdd; }
/* the photo shown whole in one fixed landscape frame: a tall photo gets black bars left and right (owner 2026-11-23) */
.gl-drop:not(.is-empty) { background: #000; }
.gl-drop img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gl-drop.is-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1.5px dashed #cdbf9f; color: #7a6f5c; font: 700 14px/1 "DM Sans", sans-serif; cursor: pointer; }
.gl-drop.is-empty svg { width: 26px; height: 26px; }
.gl-chg { position: absolute; right: 10px; bottom: 10px; padding: 10px 13px; border-radius: 999px; background: rgba(255, 253, 247, 0.94); font: 700 12.5px/1 "DM Sans", sans-serif; cursor: pointer; }
.gl-f { display: grid; gap: 7px; }
.gl-f > span { font: 700 13px/1 "DM Sans", sans-serif; color: #3b3a33; }
.gl-f > span i { font-style: normal; font-weight: 500; color: #9a8f7a; }
.gl-f input, .gl-f textarea, .gl-f select { width: 100%; box-sizing: border-box; min-height: 46px; padding: 11px 13px; border: 1px solid #dccfb2; border-radius: 12px; background: #fff; font: 500 15px/1.4 "DM Sans", sans-serif; color: #1d2a22; }
.gl-f textarea { resize: vertical; min-height: 76px; }
.gl-slots { margin: 0; font-size: 12.5px; color: #7a6f5c; }
.gl-err { margin: 0; font: 600 13px/1.4 "DM Sans", sans-serif; color: #a32d2d; }
.gl-dlg-f { display: flex; gap: 10px; }
.gl-btn { min-height: 46px; padding: 0 20px; border: 1px solid #e0d6bf; border-radius: 999px; background: #fff; font: 700 14.5px/1 "DM Sans", sans-serif; color: #1d3a2e; cursor: pointer; }
.gl-btn.is-dark { flex: 1 1 auto; border: 0; background: #1d3a2e; color: #fff; }
.gl-btn[disabled] { opacity: 0.6; cursor: progress; }
.gl-btn.is-quiet { color: #a32d2d; }
@media (prefers-reduced-motion: reduce) {
  .gl-slide, .gl-slide img, .gl-bar i.run, .gl-tile img { transition: none; }
  .gl-slide.is-on img { transform: none; }
}
