/* ============================================================
   Bear Park — Our Centres gallery band
   Dark full-bleed section: mono label + serif statement,
   region tabs, slow-drifting centre cards. Cards are .oc-card
   so the existing centre overlay (centres.js) opens them.
   ============================================================ */

.ourgal { position: relative; background: var(--tw-bg-dark, #20271f); color: var(--v2-cream, #f2eee3); height: 100svh; min-height: 540px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; padding: clamp(20px, 3vh, 44px) 0; overflow: hidden; }
.ourgal-head { margin: 0 0 clamp(28px, 3.6vw, 50px); padding: 0 clamp(20px, 4vw, 56px); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.ourgal-head .eyebrow { display: inline-flex; margin-bottom: 18px; color: var(--v2-cream); }
.ourgal-head h2 { margin: 0; font-size: calc(clamp(2rem, 4.3vw, 3.9rem) * var(--tw-head-scale, 1)); font-weight: var(--tw-head-weight, 350); line-height: 1.06; color: var(--v2-cream, #f2eee3); max-width: 18ch; }
.ourgal-arrows { display: flex; gap: 10px; }
.ourgal-arrows button {
  width: 46px; height: 46px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(242, 238, 227, .35); background: transparent; color: var(--v2-cream, #f2eee3);
  cursor: pointer; transition: background .25s, color .25s;
}
.ourgal-arrows button::before {
  content: ""; width: 17px; height: 17px;
  background: currentColor;
  -webkit-mask: var(--bp-paw) center / contain no-repeat;
  mask: var(--bp-paw) center / contain no-repeat;
}
.ourgal-arrows button.prev::before { transform: rotate(-90deg); }
.ourgal-arrows button.next::before { transform: rotate(90deg); }
.ourgal-arrows button:hover { background: var(--v2-cream, #f2eee3); color: #20271f; }

.ourgal-tabs { margin: 0 0 clamp(24px, 3vw, 42px); padding: 0 clamp(20px, 4vw, 56px); display: flex; gap: 8px; flex-wrap: wrap; }
.ourgal-tab {
  font-family: var(--tw-font-label, var(--v2-label-fallback, monospace)); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(242, 238, 227, .6); background: transparent;
  border: 1px solid rgba(242, 238, 227, .25); border-radius: 30px; padding: 9px 16px;
  cursor: pointer; white-space: nowrap; transition: color .25s, border-color .25s, background .25s;
}
.ourgal-tab:hover { color: var(--v2-cream, #f2eee3); border-color: rgba(242, 238, 227, .5); }
.ourgal-tab.on { background: var(--v2-cream, #f2eee3); color: #20271f; border-color: var(--v2-cream, #f2eee3); }

.ourgal-mq { overflow: hidden; cursor: grab; touch-action: pan-y; }
.ourgal-mq:active { cursor: grabbing; }
.ourgal-track { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 24px); will-change: transform; padding: 0 clamp(20px, 4vw, 56px); }

/* card scale rides the viewport with hard limits per device class (Josh, 10 Jul:
   the 340px cap read small on big screens) */
.gal-card {
  flex: 0 0 clamp(240px, 25vw, 470px); height: clamp(300px, 50vh, 620px);
  position: relative; overflow: hidden; cursor: pointer;
  transition: transform .55s cubic-bezier(.34, 1.56, .64, 1); will-change: transform;
}
.gal-card:hover { transform: scale(1.04); z-index: 2; }
.gal-card .oc-ph { position: absolute; inset: 0; overflow: hidden; }
/* Adjustable brand tint over the placeholder/photo (colour + strength via Tweaks) */
.gal-card .oc-ph::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--tw-gallery-tint, #20271f);
  opacity: var(--tw-gallery-tint-strength, 0.22);
  mix-blend-mode: multiply;
  transition: opacity .3s ease;
}
.gal-card image-slot {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  background: var(--bp-dusty-olive, #9aa893);
  transition: transform .7s cubic-bezier(.4, 0, .2, 1);
}
.gal-card:nth-child(4n+2) image-slot { background: var(--bp-warm-taupe, #c4b8a8); }
.gal-card:nth-child(4n+3) image-slot { background: var(--bp-powder-blue, #b3c2cc); }
.gal-card:nth-child(4n) image-slot { background: color-mix(in srgb, var(--bp-dusty-rose, #cdb3ac) 70%, var(--v2-cream, #f2eee3)); }
.gal-card:hover image-slot { transform: scale(1.05); }
.gal-card:after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 25, 19, .55), rgba(20, 25, 19, 0) 55%); pointer-events: none; }
.gal-card .greg { position: absolute; top: 14px; left: 16px; z-index: 2; font-family: var(--tw-font-label, var(--v2-label-fallback, monospace)); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.gal-card .gname { position: absolute; left: 16px; right: 16px; bottom: 40px; z-index: 2; font-size: clamp(1.5rem, 2.4vw, 2.5rem); font-weight: 350; color: #fff; line-height: 1; margin: 0; }
.gal-card .gmeta { position: absolute; left: 16px; bottom: 17px; z-index: 2; font-family: var(--tw-font-label, var(--v2-label-fallback, monospace)); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.gal-card .gmeta:before { content: "+ "; color: var(--tw-btn, #c94e1d); }

@media (prefers-reduced-motion: reduce) {
  .gal-card, .gal-card image-slot { transition: none; }
}
