/* gallery.css — PORTED VERBATIM from the live site's selr-gallery.css
   (selrai-company/selrai-website, assets/selr-gallery.css, 2026-08-19).
   Only change: the Framer "Articles" hiding block is gone, there is no Framer
   here, and the template inset padding is zeroed. Re-copy from source when the
   main site's gallery changes; do not fork the design.

   Original header follows.

   selr-gallery.css — the Gallery page (/insights), 2026-08-19.
 *
 * Replaces the template's Insights article grid with a bento gallery of real
 * workshop photography, city tiles and the nine insight articles. Built by
 * selr-gallery.js from selr-gallery-data.js. Every value here follows the
 * measured design language (skill selr-design-language): warm canvas, one
 * purple, Manrope, negative tracking, 30px cards, glass, no shadows.
 *
 * The Framer "Articles" block (featured card, category pills, CMS grid) is
 * faded out here and removed from layout by the script once React is done.
 * That grid was re-fetching the template's demo titles from Framer's CMS on
 * every load, so replacing it also removes the last place the template's own
 * headlines could show up.
 */

.selr-gallery {
  --g-gap: 20px;
  --g-r: 30px;
  --g-ease: cubic-bezier(.4, 0, .2, 1);
  --g-over: cubic-bezier(.22, 1, .36, 1);
  width: 100%;
  padding: 0;
  box-sizing: border-box;
  font-family: Manrope, "Manrope Placeholder", sans-serif;
  color: #242424;
}
.selr-gallery *, .selr-gallery *::before, .selr-gallery *::after { box-sizing: border-box; }
.selr-gallery a { color: inherit; text-decoration: none; }
.selr-gallery button { font: inherit; }

/* ---------- filters ---------- */

.selr-g-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap;
  margin: 0 0 20px;
}
.selr-g-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.selr-g-chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 14px 0 12px;
  border: 0; border-radius: 30px; cursor: pointer;
  background: #FFFFFA; color: #242424;
  font-size: 13px; font-weight: 600; letter-spacing: -0.025em; line-height: 1;
  transition: background-color .3s var(--g-ease), color .3s var(--g-ease), transform .2s var(--g-ease);
}
.selr-g-chip:hover { background: #FFFFFF; }
.selr-g-chip:active { transform: scale(.98); }
.selr-g-chip[aria-pressed="true"] { background: #6736E2; color: #FFFFFA; }
.selr-g-chip .selr-g-n {
  font-size: 12px; opacity: .55; letter-spacing: -0.02em;
}
.selr-g-chip[aria-pressed="true"] .selr-g-n { opacity: .8; }
.selr-g-count {
  font-size: 13px; font-weight: 600; letter-spacing: -0.025em; color: #616161;
  white-space: nowrap;
}

/* ---------- grid ---------- */

.selr-g-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 20px;
  grid-auto-flow: dense;
  gap: var(--g-gap);
}
.selr-g-tile {
  position: relative; overflow: hidden;
  border-radius: var(--g-r);
  background: #E9E6DE;
  grid-column: span 1;
  display: block;
  opacity: 1;
}
.selr-g-tile.is-wide, .selr-g-tile.is-insight, .selr-g-tile.is-city { grid-column: span 2; }
.selr-g-tile.is-featured { grid-column: 1 / -1; }
.selr-g-tile.is-hidden { display: none; }

.selr-g-tile img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .55s var(--g-ease), opacity .55s var(--g-ease);
  will-change: transform;
}
.selr-g-tile img[data-loading] { opacity: 0; }
@media (hover: hover) {
  .selr-g-tile:hover img { transform: scale(1.03); }
}

/* photo tiles: click to open, glass caption */
.selr-g-photo { cursor: zoom-in; border: 0; padding: 0; text-align: left; width: 100%; }
.selr-g-cap {
  position: absolute; left: 20px; bottom: 20px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  max-width: calc(100% - 40px);
  height: 30px; padding: 0 12px 0 10px;
  border-radius: 30px;
  background: rgba(255,255,255,.35); border: 1px solid rgba(227,227,227,.45);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #FFFFFA; font-size: 13px; font-weight: 600; letter-spacing: -0.025em; line-height: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 0 12px rgba(0,0,0,.35);
}
.selr-g-cap b { font-weight: 600; }
.selr-g-cap span { opacity: .82; }
.selr-g-cap .selr-g-dot {
  width: 6px; height: 6px; border-radius: 100%; background: #FFFFFA; flex: 0 0 auto; opacity: .9;
}

/* the dark scrim the insight + city cards carry, same as the template's cards */
.selr-g-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: #242424; opacity: .4;
}
.selr-g-tile.is-featured .selr-g-scrim,
.selr-g-tile.is-city .selr-g-scrim {
  background: linear-gradient(180deg, rgba(36,36,36,.15) 0%, rgba(36,36,36,.55) 100%);
  opacity: 1;
}

/* ---------- insight tiles: the template card, rebuilt ---------- */

.selr-g-insight { color: #FCFCFA; }
.selr-g-label {
  position: absolute; left: 30px; top: 30px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  height: 29px; padding: 2px 11px 2px 2px;
  border-radius: 15px; background: #242424;
  color: #FCFCFA; font-size: 13px; font-weight: 600; letter-spacing: -0.025em; line-height: 1;
}
.selr-g-label i {
  width: 25px; height: 25px; border-radius: 100%; background: #FFFFFF;
  display: inline-grid; place-items: center; flex: 0 0 auto;
}
.selr-g-label svg { width: 13px; height: 13px; stroke: #242424; stroke-width: 3; fill: none;
  stroke-linecap: round; stroke-linejoin: round; }
.selr-g-bottom {
  position: absolute; left: 30px; right: 30px; bottom: 30px; z-index: 2;
  display: flex; flex-direction: column; gap: 8px;
}
.selr-g-date { font-size: 13px; font-weight: 600; letter-spacing: -0.025em; color: #E6E6E6; }
.selr-g-title {
  margin: 0;
  font-family: "Manrope Variable", Manrope, sans-serif;
  font-variation-settings: "wght" 585; font-weight: 400;
  font-size: 30px; line-height: 1.3; letter-spacing: -0.04em;
  color: #FCFCFA;
}
.selr-g-desc {
  margin: 0; font-size: 15px; line-height: 1.5; letter-spacing: -0.03em; font-weight: 600;
  color: rgba(255,255,255,.82);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- city tiles ---------- */

.selr-g-city { color: #FCFCFA; cursor: pointer; border: 0; padding: 0; text-align: left; width: 100%; }
.selr-g-city .selr-g-title { font-size: 45px; line-height: 1.1; }
.selr-g-city .selr-g-meta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: -0.025em; color: #E6E6E6;
}
.selr-g-city .selr-g-meta::before {
  content: ""; width: 10px; height: 10px; border-radius: 100%; background: #FFFFFA;
}
.selr-g-city.is-dark { background: #242424; }
.selr-g-city .selr-g-arrow {
  position: absolute; right: 30px; bottom: 30px; z-index: 2;
  width: 44px; height: 44px; border-radius: 100%;
  background: rgba(255,255,255,.35); border: 1px solid rgba(227,227,227,.45);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: grid; place-items: center;
  transition: background-color .3s var(--g-ease), transform .3s var(--g-over);
}
.selr-g-city .selr-g-arrow svg { width: 16px; height: 16px; stroke: #FFFFFA; stroke-width: 3; fill: none;
  stroke-linecap: round; stroke-linejoin: round; }
.selr-g-city:hover .selr-g-arrow { background: rgba(255,255,255,.5); transform: scale(1.06); }

/* ---------- featured ---------- */

.selr-g-featured { min-height: 520px; color: #FCFCFA; }
.selr-g-featured .selr-g-bottom { left: 40px; right: 40px; bottom: 40px; gap: 14px; }
.selr-g-featured .selr-g-title {
  font-size: 80px; line-height: 1.05; max-width: 20ch;
}
.selr-g-featured .selr-g-sub {
  margin: 0; font-size: 20px; line-height: 1.3; letter-spacing: -0.03em; font-weight: 600;
  color: rgba(255,255,255,.85);
}
.selr-g-featured .selr-g-label { left: 40px; top: 40px; }

/* ---------- empty (Locations tab has no photos for a city yet) ---------- */
.selr-g-empty {
  grid-column: 1 / -1; padding: 60px 30px; text-align: center;
  border-radius: var(--g-r); background: #FFFFFA;
  font-size: 17px; font-weight: 600; letter-spacing: -0.03em; color: #616161;
}

/* ---------- entrance ---------- */
.selr-g-tile.selr-g-in {
  opacity: .001; transform: translateY(40px);
}
.selr-g-tile.selr-g-in.is-shown {
  opacity: 1; transform: none;
  transition: opacity .55s var(--g-ease), transform .55s var(--g-ease);
}

/* ---------- lightbox ---------- */

.selr-g-lb {
  position: fixed; inset: 0; z-index: 9990;
  display: grid; place-items: center;
  background: rgba(22,25,32,.88);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--g-ease);
  font-family: Manrope, "Manrope Placeholder", sans-serif;
}
.selr-g-lb.is-open { opacity: 1; pointer-events: auto; }
.selr-g-lb-stage {
  position: relative; display: grid; gap: 14px; justify-items: center;
  width: min(92vw, 1400px); max-height: 92vh;
}
.selr-g-lb-img {
  display: block; max-width: 100%; max-height: calc(92vh - 60px);
  width: auto; height: auto;
  border-radius: 30px; object-fit: contain;
  background: #161920;
  transform: scale(.96); opacity: 0;
  transition: transform .4s var(--g-over), opacity .3s var(--g-ease);
}
.selr-g-lb.is-open .selr-g-lb-img { transform: none; opacity: 1; }
.selr-g-lb-cap {
  display: inline-flex; align-items: center; gap: 10px;
  height: 34px; padding: 0 14px 0 12px; border-radius: 30px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
  color: #FFFFFA; font-size: 13px; font-weight: 600; letter-spacing: -0.025em;
}
.selr-g-lb-cap span { opacity: .8; }
.selr-g-lb-cap .selr-g-dot { width: 6px; height: 6px; border-radius: 100%; background: #FFFFFA; }
.selr-g-lb-btn {
  position: fixed; z-index: 2;
  width: 44px; height: 44px; border-radius: 100%; border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.12); color: #FFFFFA; cursor: pointer;
  display: grid; place-items: center;
  transition: background-color .3s var(--g-ease), transform .3s var(--g-over);
}
.selr-g-lb-btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 3; fill: none;
  stroke-linecap: round; stroke-linejoin: round; }
.selr-g-lb-btn:hover { background: rgba(255,255,255,.22); transform: scale(1.06); }
.selr-g-lb-x { top: 20px; right: 20px; }
.selr-g-lb-prev { left: 20px; top: 50%; margin-top: -22px; }
.selr-g-lb-next { right: 20px; top: 50%; margin-top: -22px; }
.selr-g-lb-btn[disabled] { opacity: .3; pointer-events: none; }
body.selr-g-lb-open { overflow: hidden; }

/* ---------- breakpoints (Framer's own: 810 / 1200) ---------- */

@media (max-width: 1199px) {
  .selr-g-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .selr-g-tile.is-wide, .selr-g-tile.is-insight, .selr-g-tile.is-city { grid-column: span 2; }
  .selr-g-featured .selr-g-title { font-size: 60px; }
  .selr-g-city .selr-g-title { font-size: 30px; }
  .selr-g-title { font-size: 25px; }
}
@media (max-width: 809px) {
  .selr-gallery { padding: 0; }
  .selr-g-grid { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .selr-g-tile, .selr-g-tile.is-wide, .selr-g-tile.is-insight, .selr-g-tile.is-city { grid-column: span 1; }
  .selr-g-featured { min-height: 420px; }
  .selr-g-featured .selr-g-title { font-size: 35px; }
  .selr-g-featured .selr-g-sub { font-size: 17px; }
  .selr-g-featured .selr-g-bottom { left: 20px; right: 20px; bottom: 20px; }
  .selr-g-featured .selr-g-label { left: 20px; top: 20px; }
  .selr-g-title { font-size: 20px; }
  .selr-g-city .selr-g-title { font-size: 25px; }
  .selr-g-label { left: 20px; top: 20px; }
  .selr-g-bottom { left: 20px; right: 20px; bottom: 20px; }
  .selr-g-cap { left: 15px; bottom: 15px; }
  .selr-g-city .selr-g-arrow { right: 20px; bottom: 20px; }
  .selr-g-count { display: none; }
  .selr-g-lb-img { border-radius: 20px; }
  .selr-g-lb-prev, .selr-g-lb-next { top: auto; bottom: 20px; margin-top: 0; }
  .selr-g-lb-prev { left: 20px; } .selr-g-lb-next { right: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .selr-g-tile.selr-g-in { opacity: 1 !important; transform: none !important; transition: none !important; }
  .selr-g-tile img, .selr-g-chip, .selr-g-lb, .selr-g-lb-img, .selr-g-lb-btn, .selr-g-city .selr-g-arrow {
    transition: none !important; }
  .selr-g-tile:hover img { transform: none; }
}
