/* ==========================================================================
   GREEKA · Gallery page (gallery.html). Loads AFTER stays.css and about.css,
   so it reuses their tokens, top bar, hero, buttons, footer and bottom nav.
   ========================================================================== */

.gl-sec { padding: 56px 0 8px; }
@media (min-width: 1024px) { .gl-sec { padding: 100px 0 16px; } }

/* ---------- Hero tweak: collection chips are not needed, keep the rest of About's hero ---------- */
.gl-hero .ab-name-title { letter-spacing: .08em; }

/* ==========================================================================
   Collection cards
   ========================================================================== */
.gl-pick-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.gl-pick {
  position: relative; display: flex; min-height: 210px; align-items: flex-end; overflow: hidden;
  padding: 0; border: 0; border-radius: 26px; background: var(--primary-dark); color: #fff; text-align: left;
  cursor: pointer; isolation: isolate; box-shadow: 0 10px 28px rgb(22 32 54 / 16%);
  transition: transform 320ms cubic-bezier(.2,.7,0,1), box-shadow 320ms ease;
}
.gl-pick > img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1000ms cubic-bezier(.2,.7,0,1); }
.gl-pick::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgb(13 21 80 / 10%) 0%, rgb(13 21 80 / 30%) 42%, rgb(13 21 80 / 88%) 100%); }
.gl-pick::after { content: ""; position: absolute; z-index: 1; inset: 10px; border: 1px solid rgb(241 213 138 / 55%); border-radius: 18px; pointer-events: none; opacity: .0; transition: opacity 300ms ease; }
.gl-pick:active { transform: scale(.985); }
.gl-pick-body { position: relative; display: grid; width: 100%; gap: 6px; padding: 22px 22px 22px; }
.gl-pick-count { display: inline-flex; width: fit-content; align-items: center; gap: 7px; padding: 5px 12px; border: 1px solid rgb(241 213 138 / 55%); border-radius: 999px; background: rgb(19 30 102 / 45%); color: #f1d58a; font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.gl-pick-count .ic { font-size: 13px; }
.gl-pick h3 { margin-top: 6px; color: #fff !important; font-size: 26px; line-height: 1.1; text-shadow: 0 2px 14px rgb(0 0 0 / 35%); }
.gl-pick p { max-width: 30em; color: rgb(255 255 255 / 82%); font-size: 12.5px; line-height: 1.65; }
.gl-pick-go { position: absolute; z-index: 2; top: 18px; right: 18px; display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #f6dd98, var(--accent)); color: #2b2108; box-shadow: 0 8px 18px rgb(0 0 0 / 28%); transition: transform 260ms ease; }
.gl-pick-go .ic { font-size: 18px; }
@media (hover: hover) {
  .gl-pick:hover { transform: translateY(-6px); box-shadow: 0 26px 50px rgb(28 42 134 / 26%); }
  .gl-pick:hover > img { transform: scale(1.07); }
  .gl-pick:hover::after { opacity: 1; }
  .gl-pick:hover .gl-pick-go { transform: translateX(3px) rotate(-8deg); }
}
@media (min-width: 640px) { .gl-pick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } .gl-pick { min-height: 360px; } .gl-pick h3 { font-size: 24px; } }
@media (min-width: 1024px) {
  .gl-pick-grid { gap: 26px; }
  .gl-pick { min-height: 500px; border-radius: 32px; }
  .gl-pick-body { padding: 30px 28px 30px; }
  .gl-pick h3 { font-size: 36px; }
  .gl-pick p { font-size: 14px; }
  .gl-pick:nth-child(2) { margin-top: 36px; }          /* gentle stagger */
  .gl-pick:nth-child(2) { margin-bottom: -36px; }
}

/* ==========================================================================
   Sticky filter bar
   ========================================================================== */
.gl-gallery { padding-top: 24px; scroll-margin-top: 70px; }
.gl-bar {
  position: sticky; z-index: 15; top: var(--bar-top, 56px);
  padding: 10px 0 8px; border-bottom: 1px solid transparent;
  background: rgb(243 245 251 / 0%); transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.gl-bar.is-stuck { background: rgb(243 245 251 / 92%); border-bottom-color: rgb(227 231 240 / 90%); box-shadow: 0 8px 22px rgb(22 32 54 / 6%); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); }
.gl-bar-inner { display: grid; gap: 8px; }

.gl-tabs { display: flex; gap: 4px; padding: 4px; overflow-x: auto; border: 1px solid var(--border); border-radius: 999px; background: var(--background); box-shadow: var(--shadow-sm); scrollbar-width: none; }
.gl-tabs::-webkit-scrollbar { display: none; }
.gl-tab { display: inline-flex; min-height: 42px; flex: 1 0 auto; align-items: center; justify-content: center; gap: 6px; padding: 0 11px; border: 0; border-radius: 999px; background: transparent; color: var(--muted-foreground); font-size: 12px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background 220ms ease, color 220ms ease, box-shadow 220ms ease; }
@media (min-width: 420px) { .gl-tab { padding: 0 16px; gap: 8px; font-size: 12.5px; } }
.gl-tab sup { position: static; display: inline-grid; min-width: 20px; height: 20px; place-items: center; padding: 0 5px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 10.5px; font-weight: 700; line-height: 1; font-family: var(--font-num); font-variant-numeric: lining-nums; }
@media (hover: hover) { .gl-tab:hover { color: var(--primary); background: var(--primary-soft); } }
.gl-tab[aria-selected="true"] { background: linear-gradient(135deg, var(--primary), #3446c4); color: #fff; box-shadow: 0 8px 18px rgb(28 42 134 / 28%); }
.gl-tab[aria-selected="true"] sup { background: rgb(255 255 255 / 20%); color: #f1d58a; }

.gl-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 4px; scrollbar-width: none; }
.gl-chips::-webkit-scrollbar { display: none; }
.gl-chip { display: inline-flex; min-height: 34px; flex: 0 0 auto; align-items: center; gap: 6px; padding: 0 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--background); color: var(--foreground); font-size: 11px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background 200ms ease, border-color 200ms ease, color 200ms ease; }
.gl-chip .ic { color: var(--primary); font-size: 13px; }
@media (hover: hover) { .gl-chip:hover { border-color: rgb(217 169 63 / 80%); background: var(--accent-soft); } }
.gl-chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--primary-dark); font-weight: 600; box-shadow: inset 0 0 0 1px var(--accent); }

@media (min-width: 1024px) {
  .gl-gallery { padding-top: 56px; }
  .gl-bar { padding: 14px 0 12px; }
  .gl-bar-inner { grid-template-columns: auto 1fr; align-items: center; gap: 22px; }
  .gl-tabs { padding: 5px; }
  .gl-tab { min-height: 46px; padding: 0 24px; font-size: 13.5px; }
  .gl-chips { justify-content: flex-end; }
  .gl-chip { min-height: 38px; font-size: 12px; padding: 0 18px; }
}

/* ==========================================================================
   Collection sections + masonry
   ========================================================================== */
.gl-block { padding: 34px 0 6px; scroll-margin-top: 150px; }
#gl-sections > .gl-block:first-child { padding-top: 22px; }
.gl-block-head { display: grid; gap: 4px; max-width: 760px; margin-bottom: 20px; }
.gl-block-head h2 { font-size: clamp(26px, 7vw, 34px); line-height: 1.12; }
.gl-block-head p { margin-top: 8px; color: var(--muted-foreground); line-height: 1.75; max-width: 56ch; }
.gl-block-meta { display: inline-flex; width: fit-content; align-items: center; gap: 8px; margin-top: 12px; padding: 5px 12px; border: 1px solid rgb(217 169 63 / 65%); border-radius: 999px; background: var(--accent-soft); color: var(--primary-dark); font-size: 11px; font-weight: 600; }
.gl-block-meta .ic { color: #9a7010; font-size: 14px; }

.gl-masonry { column-count: 2; column-gap: 12px; }
.gl-item {
  position: relative; display: block; width: 100%; margin: 0 0 12px; padding: 0; overflow: hidden;
  border: 0; border-radius: 20px; background: var(--primary-soft); text-align: left; cursor: zoom-in;
  break-inside: avoid; -webkit-column-break-inside: avoid; page-break-inside: avoid;
  box-shadow: 0 4px 16px rgb(22 32 54 / 10%); isolation: isolate;
  opacity: 0; transform: translateY(18px) scale(.985);
  transition: opacity 650ms cubic-bezier(.2,.7,0,1), transform 650ms cubic-bezier(.2,.7,0,1), box-shadow 300ms ease;
}
.gl-item.is-in { opacity: 1; transform: none; }
.gl-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1000ms cubic-bezier(.2,.7,0,1), opacity 400ms ease; }
.gl-item::after { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, rgb(13 21 80 / 26%) 0%, transparent 26%, transparent 52%, rgb(13 21 80 / 78%) 100%); pointer-events: none; transition: opacity 300ms ease; }
.gl-item:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.gl-item-tag { position: absolute; z-index: 2; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px 5px 8px; border: 1px solid rgb(255 255 255 / 30%); border-radius: 999px; background: rgb(19 30 102 / 55%); color: #fff; font-size: 9.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.gl-item-tag .ic { color: #f1d58a; font-size: 12px; }
.gl-item-cap { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; display: grid; gap: 1px; padding: 26px 14px 12px; color: #fff; pointer-events: none; }
.gl-item-cap strong { font-family: var(--font-display); font-size: 15px; font-weight: 700; line-height: 1.2; text-shadow: 0 1px 10px rgb(0 0 0 / 40%); }
.gl-item-cap small { color: rgb(255 255 255 / 78%); font-size: 10.5px; line-height: 1.4; }
.gl-item-zoom { position: absolute; z-index: 2; right: 10px; top: 10px; display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: rgb(255 255 255 / 92%); color: var(--primary); font-size: 14px; opacity: 0; transform: scale(.8); transition: opacity 240ms ease, transform 240ms ease; }
@media (hover: hover) {
  .gl-item:hover { box-shadow: 0 22px 44px rgb(28 42 134 / 22%); }
  .gl-item:hover img { transform: scale(1.07); }
  .gl-item:hover .gl-item-zoom { opacity: 1; transform: none; }
}

@media (min-width: 700px) { .gl-masonry { column-count: 3; column-gap: 16px; } .gl-item { margin-bottom: 16px; border-radius: 22px; } .gl-item-cap strong { font-size: 16px; } }
@media (min-width: 1024px) {
  .gl-block { padding: 70px 0 10px; }
  #gl-sections > .gl-block:first-child { padding-top: 40px; }
  .gl-block-head { margin-bottom: 34px; }
  .gl-block-head h2 { font-size: clamp(44px, 4.2vw, 56px); line-height: 1.04; }
  .gl-block-head p { font-size: 16px; }
  .gl-masonry { column-gap: 22px; }
  .gl-item { margin-bottom: 22px; border-radius: 26px; }
  .gl-item-cap { padding: 40px 20px 16px; transform: translateY(8px); opacity: 0; transition: opacity 320ms ease, transform 320ms ease; }
  .gl-item:hover .gl-item-cap, .gl-item:focus-visible .gl-item-cap { opacity: 1; transform: none; }
  .gl-item::after { opacity: .0; }
  .gl-item:hover::after, .gl-item:focus-visible::after { opacity: 1; }
  .gl-item-cap strong { font-size: 20px; }
  .gl-item-cap small { font-size: 12px; }
  .gl-item-tag { top: 14px; left: 14px; font-size: 10px; }
}

/* Guest photos: soft polaroid-style mat so they feel different from the official shots */
.gl-block[data-cat="guests"] .gl-item { aspect-ratio: auto !important; padding: 8px 8px 0; border: 1px solid var(--border); background: #fff; }
.gl-block[data-cat="guests"] .gl-item img { border-radius: 14px 14px 0 0; height: auto; }
.gl-block[data-cat="guests"] .gl-item::after { display: none; }
.gl-block[data-cat="guests"] .gl-item-tag { top: 18px; left: 18px; }
.gl-block[data-cat="guests"] .gl-item-zoom { top: 18px; right: 18px; }
.gl-block[data-cat="guests"] .gl-item-cap { position: static; padding: 12px 8px 14px; color: var(--foreground); opacity: 1 !important; transform: none !important; }
.gl-block[data-cat="guests"] .gl-item-cap strong { color: var(--primary-dark); text-shadow: none; font-size: 15px; }
.gl-block[data-cat="guests"] .gl-item-cap small { color: var(--muted-foreground); }
.gl-block[data-cat="guests"] .gl-item img { aspect-ratio: var(--ar); }

.gl-empty { display: grid; justify-items: center; gap: 14px; margin: 40px 0; padding: 48px 20px; border: 1px dashed var(--border); border-radius: 24px; color: var(--muted-foreground); text-align: center; }
.gl-empty[hidden] { display: none; }
.gl-empty .ic { color: var(--primary); font-size: 30px; }
.gl-gallery > .wrap { padding-bottom: 52px; }
@media (min-width: 1024px) { .gl-gallery > .wrap { padding-bottom: 100px; } }

/* ==========================================================================
   Photo viewer (lightbox)
   ========================================================================== */
.lx { position: fixed; z-index: 70; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; overflow: hidden; background: #070b26; color: #fff; animation: greeka-fade 220ms ease; padding-top: var(--safe-t); }
.lx[hidden] { display: none; }
.lx-bg { position: absolute; inset: -10%; z-index: 0; background-position: center; background-size: cover; filter: blur(60px) saturate(1.3); opacity: .42; transform: scale(1.1); transition: background-image 400ms ease; }
.lx > *:not(.lx-bg) { position: relative; z-index: 1; }

.lx-top { display: flex; align-items: center; justify-content: space-between; padding: 12px calc(16px + var(--safe-r)) 4px calc(16px + var(--safe-l)); }
.lx-count { color: rgb(255 255 255 / 82%); font-family: var(--font-num); font-size: 14px; font-weight: 600; letter-spacing: .08em; font-variant-numeric: lining-nums tabular-nums; }
.lx-btn { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid rgb(255 255 255 / 24%); border-radius: 50%; background: rgb(255 255 255 / 10%); color: #fff; font-size: 20px; cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background 180ms ease, transform 180ms ease; }
.lx-btn:hover { background: rgb(255 255 255 / 22%); }
.lx-btn:active { transform: scale(.92); }
.lx :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.lx-stage { position: relative; display: grid; min-height: 0; place-items: center; padding: 6px calc(10px + var(--safe-r)) 6px calc(10px + var(--safe-l)); touch-action: pan-y; }
.lx-figure { display: grid; width: 100%; height: 100%; min-height: 0; place-items: center; margin: 0; }
.lx-figure img { max-width: 100%; max-height: calc(100vh - var(--lx-chrome, 270px) - var(--safe-t) - var(--safe-b)); max-height: calc(100dvh - var(--lx-chrome, 270px) - var(--safe-t) - var(--safe-b)); width: auto; height: auto; object-fit: contain; border-radius: 16px; box-shadow: 0 24px 70px rgb(0 0 0 / 50%); user-select: none; -webkit-user-drag: none; transition: opacity 260ms ease, transform 360ms cubic-bezier(.2,.7,0,1); }
.lx-figure img.is-loading { opacity: 0; transform: scale(.985); }
.lx-nav { position: absolute; top: 50%; z-index: 2; width: 42px; height: 42px; transform: translateY(-50%); }
.lx-nav:active { transform: translateY(-50%) scale(.92); }
.lx-prev { left: 12px; } .lx-next { right: 12px; }

.lx-info { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 10px calc(18px + var(--safe-r)) 8px calc(18px + var(--safe-l)); }
.lx-text { min-width: 0; }
.lx-tag { display: inline-flex; align-items: center; gap: 6px; color: #f1d58a; font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.lx-tag::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), #f1d58a); }
.lx-info h3 { margin-top: 4px; color: #fff; font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1.15; }
.lx-sub { margin-top: 2px; color: rgb(255 255 255 / 70%); font-size: 12px; }
.lx-link { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 999px; background: linear-gradient(135deg, #f6dd98, var(--accent)); color: #2b2108 !important; font-size: 12px; font-weight: 600; white-space: nowrap; box-shadow: 0 8px 20px rgb(0 0 0 / 30%); transition: transform 180ms ease; }
.lx-link:active { transform: scale(.96); }
.lx-link .ic { font-size: 15px; }

.lx-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 8px calc(16px + var(--safe-r)) calc(14px + var(--safe-b)) calc(16px + var(--safe-l)); scrollbar-width: none; scroll-behavior: smooth; }
.lx-thumbs::-webkit-scrollbar { display: none; }
.lx-thumb { width: 54px; height: 54px; flex: 0 0 auto; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 12px; background: rgb(255 255 255 / 8%); cursor: pointer; opacity: .55; transition: opacity 200ms ease, border-color 200ms ease, transform 200ms ease; }
.lx-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lx-thumb[aria-current="true"] { border-color: var(--accent); opacity: 1; transform: translateY(-3px); }
@media (hover: hover) { .lx-thumb:hover { opacity: 1; } }

@media (min-width: 768px) {
  .lx { --lx-chrome: 300px; }
  .lx-top { padding-top: 18px; padding-inline: 28px; }
  .lx-stage { padding: 10px 96px; }
  .lx-nav { width: 54px; height: 54px; font-size: 24px; }
  .lx-prev { left: 28px; } .lx-next { right: 28px; }
  .lx-info { max-width: 1100px; width: 100%; margin-inline: auto; padding: 14px 28px 10px; }
  .lx-info h3 { font-size: 30px; }
  .lx-sub { font-size: 13.5px; }
  .lx-thumbs { justify-content: center; padding-bottom: calc(20px + var(--safe-b)); }
  .lx-thumb { width: 66px; height: 66px; border-radius: 14px; }
}
@media (max-width: 767.98px) { .lx-nav { opacity: .85; } .lx-link span { display: none; } }

/* Keep the bottom nav and footer from being hidden under the viewer on phones */
body.sheet-open .greeka-bottom-nav { z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .gl-item { opacity: 1; transform: none; }
}

/* Heading scale for the collection-cards block (same as About's sections) */
.gl-picks h2 { font-size: clamp(28px, 7vw, 36px); line-height: 1.14; }
.gl-picks .ab-head { margin-bottom: 26px; }
@media (min-width: 1024px) { .gl-picks h2 { font-size: clamp(44px, 4.4vw, 60px); line-height: 1.04; } .gl-picks .ab-head { margin-bottom: 52px; } }
