/* Galri Studio: blan, Burgundy, kare, san shadow */

.gs-root, .gs-ui {
  --gs-accent: #6b0f2a;
  --gs-accent-dark: #4d0b1e;
  --gs-ink: #1b1417;
  --gs-muted: #82777b;
  --gs-line: #ece4e6;
  --gs-serif: "Bookmania", Georgia, "Times New Roman", serif;
  --gs-sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-family: var(--gs-sans);
  font-size: 16px;
  line-height: 1.4;
  color: var(--gs-ink);
  text-align: left;
}
.gs-root *, .gs-root *::before, .gs-root *::after,
.gs-ui *, .gs-ui *::before, .gs-ui *::after { box-sizing: border-box; border-radius: 0; box-shadow: none; text-shadow: none; }
:where(.gs-root, .gs-ui) button {
  all: unset; box-sizing: border-box; cursor: pointer; font-family: inherit; color: inherit;
  -webkit-tap-highlight-color: transparent;
}
:where(.gs-root, .gs-ui) button:focus-visible { outline: 2px solid var(--gs-accent); outline-offset: 2px; }
html.gs-lock, html.gs-lock body { overflow: hidden !important; }

.gs-ui svg.gs-i, .gs-root svg.gs-i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; stroke-linejoin: miter; flex: none; }
.gs-on svg.gs-fill { fill: currentColor; }
svg.gs-i.gs-solid { fill: currentColor !important; stroke: none !important; }

/* ---------- Grid (style Pinterest, plen ekran) ---------- */
html.gs-page { overflow-x: clip; }
.gs-root, .gs-ui { --gs-gap: 8px; }
@media (min-width: 760px)  { .gs-root, .gs-ui { --gs-gap: 12px; } }
@media (min-width: 1100px) { .gs-root, .gs-ui { --gs-gap: 16px; } }
.gs-root {
  --gs-edge: 8px; background: #fff;
  width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
  padding: var(--gs-top, 0px) var(--gs-edge) calc(96px + env(safe-area-inset-bottom));
}
@media (min-width: 760px)  { .gs-root { --gs-edge: 16px; } }
@media (min-width: 1100px) { .gs-root { --gs-edge: 24px; } }

.gs-grid { column-count: 2; column-gap: var(--gs-gap); margin: 0; padding: 0; }
@media (min-width: 760px)  { .gs-grid { column-count: 3; } }
@media (min-width: 1100px) { .gs-grid { column-count: var(--gs-cols, 4); } }
.gs-grid.gs-masonry { display: flex; align-items: flex-start; column-count: auto; gap: var(--gs-gap); }
.gs-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--gs-gap); }
.gs-masonry .gs-card { margin: 0; }

.gs-card { position: relative; break-inside: avoid; margin: 0 0 var(--gs-gap); padding: 0; }
.gs-thumb { display: block; position: relative; width: 100%; overflow: hidden; background: #f3eeef; }
.gs-root .gs-img, .gs-ui .gs-img { display: block; width: 100%; height: auto; max-width: 100%; margin: 0; transition: opacity .5s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.gs-root .gs-img.gs-wait, .gs-ui .gs-img.gs-wait { opacity: 0; }
.gs-vph { display: block; width: 100%; background: #f3eeef; }
.gs-vid { display: block; width: 100%; height: 100%; object-fit: cover; background: #f3eeef; }
@media (hover: hover) {
  .gs-thumb:hover .gs-img { transform: scale(1.025); }
}

.gs-quick { position: absolute; right: 6px; bottom: 6px; display: flex; gap: 4px; transition: opacity .2s; }
@media (hover: hover) {
  .gs-quick { opacity: 0; }
  .gs-card:hover .gs-quick, .gs-card:focus-within .gs-quick { opacity: 1; }
}
.gs-q { width: 34px; height: 34px; display: grid; place-items: center; background: rgba(255,255,255,.92); color: var(--gs-ink); }
.gs-q svg.gs-i { width: 17px; height: 17px; }
.gs-q:hover, .gs-q.gs-on { color: var(--gs-accent); }

.gs-badge {
  position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 9px; padding: 8px 10px;
  background: rgba(20,12,15,.62); color: #fff; pointer-events: none;
}
.gs-badge svg { width: 11px; height: 11px; fill: #fff; stroke: none; }
.gs-badge svg.gs-bm { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: square; }

/* ---------- Filtre ---------- */
.gs-filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 8px 0 12px; position: sticky; top: var(--gs-top, 0px); z-index: 5;
  background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.gs-filters::-webkit-scrollbar { display: none; }
.gs-chip { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--gs-line); font-size: 14px; font-weight: 500; background: #fff; }
.gs-chip:hover { border-color: var(--gs-accent); color: var(--gs-accent); }
.gs-chip[aria-pressed="true"] { background: var(--gs-accent); border-color: var(--gs-accent); color: #fff; }

/* ---------- Bouton anrejistre ---------- */
.gs-fab {
  position: fixed; right: 18px; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 999992;
  width: 58px; height: 58px; display: grid; place-items: center; background: var(--gs-fab, #fff0db); color: var(--gs-accent); border: 1px solid rgba(107,15,42,.28);
  transition: background .2s, transform .2s;
}
.gs-fab:hover { filter: brightness(.94); transform: translateY(-2px); }
.gs-fab svg.gs-i { width: 24px; height: 24px; }
.gs-fab .gs-n {
  position: absolute; top: -8px; left: -8px; min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center;
  background: var(--gs-accent); color: #fff; border: 0; font-size: 11px; font-weight: 600; line-height: 1;
}
.gs-fab .gs-n[hidden] { display: none; }

/* ---------- Scrim, tiwa, fèy ---------- */
.gs-scrim { position: fixed; inset: 0; background: rgba(255,255,255,.78); z-index: 999995; display: none; }
.gs-scrim.gs-open { display: block; }
.gs-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: #fff; z-index: 999996;
  display: none; flex-direction: column; border-left: 1px solid var(--gs-line);
}
.gs-drawer.gs-open { display: flex; }
.gs-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 22px 18px; border-bottom: 1px solid var(--gs-line); }
.gs-head h2, .gs-head h3 { margin: 0; padding: 0; font-family: var(--gs-serif); font-weight: 400; font-size: 28px; line-height: 1.1; color: var(--gs-ink); }
.gs-head h2 span, .gs-head h3 span { color: var(--gs-muted); font-size: 18px; margin-left: 6px; }
.gs-sq { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--gs-line); background: #fff; flex: none; }
.gs-sq:hover { border-color: var(--gs-accent); color: var(--gs-accent); }
.gs-body { flex: 1; overflow-y: auto; padding: 20px 22px 100px; }
.gs-saved { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gs-saved-item { position: relative; }
.gs-saved-item .gs-thumb { aspect-ratio: 1; }
.gs-saved-item .gs-img, .gs-saved-item .gs-vph { height: 100%; object-fit: cover; }
.gs-saved-item .gs-x { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; display: grid; place-items: center; background: rgba(255,255,255,.94); z-index: 2; }
.gs-saved-item .gs-x:hover { color: var(--gs-accent); }
.gs-saved-item .gs-x svg.gs-i { width: 14px; height: 14px; }
.gs-empty { padding: 48px 4px; }
.gs-empty b { display: block; font-family: var(--gs-serif); font-weight: 400; font-size: 30px; line-height: 1.1; }
.gs-empty p { margin: 12px 0 0; color: var(--gs-muted); line-height: 1.55; font-size: 15px; max-width: 32ch; }

.gs-sheet { position: fixed; z-index: 999996; background: #fff; display: none; flex-direction: column; left: 0; right: 0; bottom: 0; height: min(78vh, 640px); border-top: 1px solid var(--gs-line); }
.gs-sheet.gs-open { display: flex; }
@media (min-width: 900px) { .gs-sheet { left: auto; top: 0; height: auto; width: min(440px, 100%); border-top: 0; border-left: 1px solid var(--gs-line); } }
.gs-sheet .gs-head { padding: 18px 20px 14px; }
.gs-sheet .gs-body { padding: 20px; }

.gs-c-form { padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--gs-line); display: grid; gap: 8px; background: #fff; }
.gs-ui input.gs-input, .gs-ui textarea.gs-input {
  display: block; width: 100%; margin: 0; border: 1px solid var(--gs-line); padding: 12px 14px; font: inherit; font-size: 15px; line-height: 1.4;
  color: var(--gs-ink); background: #fff; -webkit-appearance: none; appearance: none; box-shadow: none; height: auto;
}
.gs-ui textarea.gs-input { min-height: 64px; resize: none; }
.gs-ui input.gs-input:focus, .gs-ui textarea.gs-input:focus { border-color: var(--gs-accent); outline: none; }
.gs-ui .gs-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.gs-send { justify-self: start; background: var(--gs-ink); color: #fff; font-weight: 600; font-size: 14px; padding: 13px 24px; }
.gs-send:hover { background: var(--gs-accent); }
.gs-send[disabled] { opacity: .5; pointer-events: none; }
.gs-c-note { margin: 0; font-size: 13px; color: var(--gs-accent); }
.gs-c-note[hidden] { display: none; }
.gs-c-list { display: grid; gap: 22px; }
.gs-c-item { display: grid; grid-template-columns: 36px 1fr; gap: 14px; }
.gs-avatar { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--gs-line); color: var(--gs-accent); font-family: var(--gs-serif); font-size: 19px; }
.gs-c-item .gs-who { font-size: 14px; font-weight: 600; }
.gs-c-item .gs-when { color: var(--gs-muted); font-weight: 400; margin-left: 8px; font-size: 12px; }
.gs-c-item .gs-txt { margin-top: 3px; font-size: 15px; line-height: 1.5; color: #43373b; overflow-wrap: anywhere; white-space: pre-wrap; }
.gs-c-item.gs-pend { opacity: .7; }
.gs-c-empty { margin: 0; color: var(--gs-muted); font-size: 14px; }

/* ---------- Paj detay ---------- */
.gs-detail { position: fixed; inset: 0; z-index: 999990; background: #fff; overflow-y: auto; overscroll-behavior: contain; display: none; }
.gs-detail.gs-open { display: block; }
.gs-d-inner { --gs-dpad: 28px; position: relative; max-width: 1520px; margin: 0 auto; padding: calc(12px + env(safe-area-inset-top)) var(--gs-dpad) 120px; }
@media (max-width: 560px) { .gs-d-inner { --gs-dpad: 12px; } }
.gs-d-bar { position: absolute; top: calc(24px + env(safe-area-inset-top)); left: calc(var(--gs-dpad) + 12px); padding: 0; z-index: 4; }
.gs-d-bar .gs-sq { background: rgba(255,255,255,.92); border: 0; }
.gs-d-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 900px) {
  .gs-d-grid { grid-template-columns: minmax(0, 1.6fr) minmax(340px, 1fr); gap: 48px; align-items: start; }
  .gs-d-side { position: sticky; top: 24px; }
}
.gs-d-media { position: relative; background: #fff; }
.gs-d-media > .gs-img { width: 100%; height: auto; }
.gs-d-media.gs-video { width: min(100%, calc(80vh * var(--gs-vr, .5625))); margin: 0 auto; }
.gs-vwrap { position: relative; background: #fff; cursor: pointer; }
.gs-vwrap .gs-vid { height: 100%; }
button.gs-play-big { position: absolute; left: 50%; top: 50%; width: 80px; height: 80px; margin: -40px 0 0 -40px; display: grid; place-items: center; background: rgba(255,255,255,.94); cursor: pointer; }
button.gs-play-big svg { width: 28px; height: 28px; fill: var(--gs-accent); stroke: none; margin-left: 4px; }
.gs-d-media.gs-playing button.gs-play-big { display: none; }

.gs-actions { display: flex; align-items: center; gap: 2px; border-top: 1px solid var(--gs-line); border-bottom: 1px solid var(--gs-line); padding: 6px 0; }
.gs-act { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 12px; font-size: 14px; font-weight: 500; color: var(--gs-ink); }
.gs-act:hover, .gs-act.gs-on { color: var(--gs-accent); }
.gs-act.gs-save { margin-left: auto; padding: 0 20px; background: var(--gs-accent); color: #fff; border: 1px solid var(--gs-accent); }
.gs-act.gs-save:hover { background: var(--gs-accent-dark); border-color: var(--gs-accent-dark); }
.gs-act.gs-save.gs-on { background: #fff; color: var(--gs-accent); }
.gs-d-media + .gs-d-note { margin: 0; }
.gs-related { margin-top: 64px; }

/* ---------- Bar videyo ---------- */
.gs-vbar { display: flex; align-items: center; gap: 4px; height: 54px; border-top: 1px solid var(--gs-line); background: #fff; }
.gs-vb { width: 44px; height: 44px; display: grid; place-items: center; flex: none; }
.gs-vb:hover { color: var(--gs-accent); }
.gs-vt { font-size: 12px; font-weight: 500; color: var(--gs-muted); font-variant-numeric: tabular-nums; white-space: nowrap; padding: 0 6px; }
.gs-ui input[type=range].gs-rg { -webkit-appearance: none; appearance: none; background: transparent; height: 28px; margin: 0; padding: 0; border: 0; cursor: pointer; --p: 0%; min-width: 0; }
.gs-ui input[type=range].gs-rg:focus { outline: none; }
.gs-ui input[type=range].gs-rg:focus-visible { outline: 2px solid var(--gs-accent); outline-offset: 2px; }
.gs-ui input[type=range].gs-rg::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(to right, var(--gs-accent) var(--p), var(--gs-line) var(--p)); border: 0; }
.gs-ui input[type=range].gs-rg::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 16px; background: var(--gs-accent); margin-top: -7px; border: 0; }
.gs-ui input[type=range].gs-rg::-moz-range-track { height: 2px; background: var(--gs-line); border: 0; }
.gs-ui input[type=range].gs-rg::-moz-range-progress { height: 2px; background: var(--gs-accent); }
.gs-ui input[type=range].gs-rg::-moz-range-thumb { width: 10px; height: 16px; background: var(--gs-accent); border: 0; border-radius: 0; }
.gs-ui #gs-vs { flex: 1; }
.gs-ui #gs-vv { width: 84px; flex: none; }
@media (max-width: 520px) { .gs-vt { display: none; } .gs-ui #gs-vv { width: 60px; } }

.gs-toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 14px); background: var(--gs-ink); color: #fff; padding: 13px 20px;
  font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 999999;
}
.gs-toast.gs-show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  .gs-img, .gs-fab, .gs-toast, .gs-quick { transition: none !important; }
}

/* ---------- Detay: sèvis, tit, kòafè, Rezève, anvan/apre ---------- */
.gs-d-info { margin-bottom: 16px; }
.gs-d-info[hidden], .gs-bookbar[hidden] { display: none; }
.gs-tag { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--gs-muted); }
.gs-d-info .gs-d-title { margin: 6px 0 4px; font-family: var(--gs-serif); font-weight: 400; font-size: 30px; line-height: 1.15; }
.gs-by { color: var(--gs-muted); font-size: 14px; }
.gs-bookbar { margin-top: 16px; }
a.gs-book { display: flex; align-items: center; justify-content: center; min-height: 52px; background: var(--gs-accent); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; }
a.gs-book:hover { background: var(--gs-accent-dark); }
@media (max-width: 899px) {
  .gs-bookbar { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; z-index: 3; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--gs-line); }
}
.gs-ba { position: absolute; left: 10px; bottom: 10px; display: flex; }
.gs-ba-b { padding: 10px 16px; background: rgba(255,255,255,.92); font-size: 13px; font-weight: 600; }
.gs-ba-b.gs-on { background: var(--gs-accent); color: #fff; }
