/* 1.14.0 — gallery (6 layouts) and lightbox. Loaded on every page after blocks.css. */
.wb-gwrap { margin-inline: auto; }
.wb-g { --gap: 16px; --gr: var(--radius); }
.wb-g__it { position: relative; margin: 0; min-width: 0; }
.wb-g__a { position: relative; display: block; overflow: hidden; border-radius: var(--gr); border: 1px solid var(--line); background: var(--card); color: inherit; cursor: zoom-in; isolation: isolate; }
span.wb-g__a { cursor: default; }
.wb-g__a img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; transition: transform .8s var(--ease), filter .4s; }
.wb-g.has-ratio .wb-g__a img { aspect-ratio: var(--ratio); height: auto; object-fit: cover; }
.wb-g--fit-contain.has-ratio .wb-g__a img { object-fit: contain; background: rgb(255 255 255 / .03); }
.wb-g--shadow .wb-g__a { box-shadow: 0 18px 40px -18px rgb(0 0 0 / .55); }
.wb-g__it figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.wb-g__zoom { position: absolute; right: 12px; top: 12px; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgb(11 12 14 / .65); color: #fff; font-size: 17px; backdrop-filter: blur(8px); opacity: 0; transform: scale(.8); transition: opacity .3s, transform .3s var(--ease); pointer-events: none; }
.wb-g__a:hover .wb-g__zoom, .wb-g__a:focus-visible .wb-g__zoom { opacity: 1; transform: none; }
.wb-g--hover-zoom .wb-g__a:hover img { transform: scale(1.05); }
.wb-g--hover-none .wb-g__zoom { display: none; }
.wb-g--hover-overlay .wb-g__a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgb(0 0 0 / .65)); opacity: 0; transition: opacity .35s; z-index: 1; }
.wb-g--hover-overlay .wb-g__a:hover::after { opacity: 1; }
/* captions over the photo */
.wb-g--cap-over .wb-g__it { overflow: hidden; border-radius: var(--gr); }
.wb-g--cap-over .wb-g__it figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; margin: 0; padding: 9px 13px; border-radius: 12px; background: rgb(11 12 14 / .72); color: #fff; backdrop-filter: blur(10px); pointer-events: none; }
.wb-g--cap-over.wb-g--hover-overlay .wb-g__it figcaption { background: none; backdrop-filter: none; padding: 0 4px; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s var(--ease); font-weight: 600; }
.wb-g--cap-over.wb-g--hover-overlay .wb-g__it:hover figcaption { opacity: 1; transform: none; }
.wb-g__it.is-more { display: none; }
.wb-g.is-all .wb-g__it.is-more { display: block; }
.wb-g__morebar { display: flex; justify-content: center; margin-top: 26px; }
/* grid */
.wb-g--grid { display: grid; grid-template-columns: repeat(var(--c), minmax(0, 1fr)); gap: var(--gap); }
/* masonry (Pinterest) */
.wb-g--masonry { column-count: var(--c); column-gap: var(--gap); }
.wb-g--masonry .wb-g__it { break-inside: avoid; margin-bottom: var(--gap); display: block; }
/* bento: the first (or marked) photo is large */
.wb-g--bento { display: grid; grid-template-columns: repeat(var(--c), minmax(0, 1fr)); gap: var(--gap); grid-auto-flow: row dense; }
.wb-g--bento .wb-g__it.is-big { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
.wb-g--bento .wb-g__it.is-big .wb-g__a { flex: 1; }
.wb-g--bento .wb-g__it.is-big .wb-g__a img { height: 100%; aspect-ratio: auto; object-fit: cover; }
.wb-g--bento.wb-g--fit-contain .wb-g__it.is-big .wb-g__a img { object-fit: contain; }
.wb-g--bento:not(.has-ratio) .wb-g__a img { aspect-ratio: 4 / 3; object-fit: cover; }
/* justified rows (Google Photos): every photo keeps its own width at one row height */
.wb-g--justified { --rh: 260px; display: flex; flex-wrap: wrap; gap: var(--gap); }
.wb-g--justified::after { content: ""; flex-grow: 999999; }
.wb-g--justified .wb-g__it { flex: calc(var(--r, 1.5) * 100) 1 calc(var(--r, 1.5) * var(--rh)); }
.wb-g--justified .wb-g__a img { width: 100%; height: auto; aspect-ratio: var(--r, 1.5); object-fit: cover; }
/* slider with thumbnails */
.wb-g--thumbs .wb-g__stage { position: relative; }
.wb-g--thumbs .wb-g__stage .wb-g__it { display: none; }
.wb-g--thumbs .wb-g__stage .wb-g__it.is-on { display: block; animation: wbgfade .45s var(--ease); }
.wb-g--thumbs:not(.has-ratio) .wb-g__stage .wb-g__a img { aspect-ratio: 16 / 9; object-fit: cover; }
.wb-g--thumbs.wb-g--fit-contain .wb-g__stage .wb-g__a img { object-fit: contain; }
.wb-g__strip { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.wb-g__strip button { flex: 0 0 auto; width: 104px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--card); cursor: pointer; opacity: .55; transition: opacity .25s, border-color .25s; }
.wb-g__strip button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wb-g__strip button:hover { opacity: .9; }
.wb-g__strip button.is-on { opacity: 1; border-color: var(--lime); }
@keyframes wbgfade { from { opacity: 0; } to { opacity: 1; } }
/* carousel layout */
.wb-g-car { --pvx: var(--pv); }
.wb-g-car .wb-car__slide { border: 0; background: none; overflow: visible; }
.wb-g-car .wb-car__slide img { aspect-ratio: var(--ratio); }
.wb-g-car.wb-g--fit-contain .wb-car__slide img { object-fit: contain; }
.wb-g-car .wb-car__slide figcaption { position: static; padding: 0 4px; background: none; backdrop-filter: none; color: var(--muted); margin-top: 10px; }
.wb-g-car.wb-g--cap-over .wb-car__slide figcaption { position: absolute; padding: 9px 13px; background: rgb(11 12 14 / .72); color: #fff; margin: 0; }
.wb-g-car .wb-car__slide:hover img { transform: none; }
.wb-g-car .wb-car__btn { margin-top: -23px; }
/* responsive columns */
@media (max-width: 1024px) {
  .wb-g--grid, .wb-g--bento { grid-template-columns: repeat(var(--ct), minmax(0, 1fr)); }
  .wb-g--masonry { column-count: var(--ct); }
  .wb-g--justified { --rh: 200px; }
  .wb-g-car { --pvx: var(--pvt); }
}
@media (max-width: 640px) {
  .wb-g--grid, .wb-g--bento { grid-template-columns: repeat(var(--cm), minmax(0, 1fr)); }
  .wb-g--bento .wb-g__it.is-big { grid-column: 1 / -1; grid-row: span 1; }
  .wb-g--masonry { column-count: var(--cm); }
  .wb-g--justified { --rh: 150px; }
  .wb-g-car { --pvx: var(--pvm); }
  .wb-g-car .wb-car__slide { flex-basis: calc((100% - (var(--pvx) - 1) * var(--gap)) / var(--pvx)); }
  .wb-g__strip button { width: 76px; }
  .wb-g__zoom { opacity: 1; transform: none; width: 32px; height: 32px; font-size: 14px; }
}
.wb-col .wb-g--grid, .wb-col .wb-g--bento { grid-template-columns: repeat(min(var(--c), 2), minmax(0, 1fr)); }
.wb-col .wb-g--masonry { column-count: min(var(--c), 2); }
a.wb-lbable { display: block; cursor: zoom-in; }

/* ---------- lightbox ---------- */
.wb-lb { position: fixed; inset: 0; z-index: 2147483000; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: rgb(5 6 8 / .96); color: #fff; opacity: 0; transition: opacity .25s; backdrop-filter: blur(6px); }
.wb-lb.is-in { opacity: 1; }
.wb-lb__bar { display: flex; align-items: center; gap: 8px; padding: 14px 16px; }
.wb-lb__count { font: 600 14px/1 var(--mono, monospace); letter-spacing: .08em; opacity: .8; margin-right: auto; }
.wb-lb__btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgb(255 255 255 / .16); border-radius: 50%; background: rgb(255 255 255 / .06); color: #fff; cursor: pointer; font-size: 20px; line-height: 1; transition: background .2s, border-color .2s, color .2s; }
.wb-lb__btn:hover, .wb-lb__btn:focus-visible { background: var(--lime, #c4f135); border-color: var(--lime, #c4f135); color: #0b0c0e; outline: none; }
.wb-lb__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wb-lb__close { width: 48px; height: 48px; }
.wb-lb__stage { position: relative; overflow: hidden; display: grid; place-items: center; min-height: 0; touch-action: none; }
.wb-lb__img { max-width: calc(100vw - 150px); max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; transition: transform .25s var(--ease, ease), opacity .25s; transform-origin: center; cursor: zoom-in; border-radius: 6px; }
.wb-lb.is-zoom .wb-lb__img { cursor: grab; transition: none; }
.wb-lb.is-loading .wb-lb__img { opacity: .25; }
.wb-lb__nav { position: absolute; top: 50%; margin-top: -26px; width: 52px; height: 52px; z-index: 2; }
.wb-lb__prev { left: 18px; } .wb-lb__next { right: 18px; }
.wb-lb__foot { padding: 10px 16px 16px; display: grid; gap: 12px; justify-items: center; }
.wb-lb__cap { max-width: 900px; text-align: center; font-size: 15px; line-height: 1.5; opacity: .9; }
.wb-lb__cap:empty { display: none; }
.wb-lb__thumbs { display: flex; gap: 8px; max-width: 100%; overflow-x: auto; padding: 2px; scrollbar-width: none; }
.wb-lb__thumbs::-webkit-scrollbar { display: none; }
.wb-lb__thumbs button { flex: 0 0 auto; width: 64px; height: 46px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #111; opacity: .45; cursor: pointer; transition: opacity .2s, border-color .2s; }
.wb-lb__thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wb-lb__thumbs button.is-on { opacity: 1; border-color: var(--lime, #c4f135); }
.wb-lb__thumbs button:hover { opacity: .85; }
.wb-lb--one .wb-lb__nav, .wb-lb--one .wb-lb__thumbs, .wb-lb--one .wb-lb__count { display: none; }
html.wb-lb-open { overflow: hidden; }
@media (max-width: 640px) {
  .wb-lb__img { max-width: 100vw; border-radius: 0; }
  .wb-lb__nav { display: none; }
  .wb-lb__bar { padding: 10px; }
  .wb-lb__thumbs button { width: 52px; height: 38px; }
  .wb-lb__fs { display: none; }
}
@media (prefers-reduced-motion: reduce) { .wb-lb, .wb-lb__img { transition: none; } }
