/**
 * Gallery revamp for /about/gallery/ (page 1901). Scoped under .kt-gallery /
 * .kt-gallery-offers / .kt-gallery-lb so nothing leaks into the rest of the
 * Bricks page. Inherits the site's Poppins + --primary (rgb(228,54,126)).
 * See inc/gallery-shortcode.php.
 */

.kt-gallery,
.kt-gallery-offers {
  --kt-g-pink: var(--primary, #e4367e);
  --kt-g-pink-deep: #c22a68;
  --kt-g-ink: #363636;
  --kt-g-soft: #6b6b70;
  --kt-g-line: #ece2e7;
  --kt-g-card: #fff;
  --kt-g-radius: 16px;
  --kt-g-shadow: 0 10px 30px -12px rgba(60, 20, 40, .22);
  font-family: inherit;
  max-width: 1180px;
  margin-inline: auto;
}

/* ---- filter bar ---- */
.kt-gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 26px;
}
.kt-g-pill {
  font: 600 14px/1 inherit;
  color: var(--kt-g-ink);
  background: var(--kt-g-card);
  border: 1.5px solid var(--kt-g-line);
  border-radius: 100px;
  padding: 9px 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .18s, color .18s, border-color .18s;
}
.kt-g-pill .kt-g-n {
  font-size: 12px;
  font-weight: 600;
  color: var(--kt-g-soft);
  font-variant-numeric: tabular-nums;
}
.kt-g-pill:hover {
  border-color: var(--kt-g-pink);
  color: var(--kt-g-pink);
}
.kt-g-pill:hover .kt-g-n { color: var(--kt-g-pink); }
.kt-g-pill[aria-pressed="true"] {
  background: var(--kt-g-pink);
  border-color: var(--kt-g-pink);
  color: #fff;
}
.kt-g-pill[aria-pressed="true"] .kt-g-n { color: rgba(255, 255, 255, .82); }
.kt-g-pill:focus-visible {
  outline: 3px solid rgba(228, 54, 126, .35);
  outline-offset: 2px;
}

/* ---- masonry grid ---- */
.kt-gallery-grid {
  column-count: 4;
  column-gap: 14px;
}
@media (max-width: 1000px) { .kt-gallery-grid { column-count: 3; } }
@media (max-width: 680px)  { .kt-gallery-grid { column-count: 2; } }

.kt-g-item {
  break-inside: avoid;
  margin: 0 0 14px;
  position: relative;
  border-radius: var(--kt-g-radius);
  overflow: hidden;
  background: var(--kt-g-card);
  box-shadow: var(--kt-g-shadow);
  cursor: zoom-in;
}
.kt-g-item.kt-g-hide { display: none; }
.kt-g-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .55s ease;
}
.kt-g-item:hover .kt-g-img { transform: scale(1.06); }
.kt-g-ov {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  margin: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(36, 7, 20, .8));
  opacity: 0;
  transition: opacity .25s;
}
.kt-g-item:hover .kt-g-ov,
.kt-g-item:focus-visible .kt-g-ov { opacity: 1; }
.kt-g-tag {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
}
.kt-g-pin { width: 15px; height: 15px; flex: none; }
.kt-g-item:focus-visible {
  outline: 3px solid var(--kt-g-pink);
  outline-offset: 2px;
}

/* ---- offers strip ---- */
.kt-gallery-offers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 44px;
}
@media (max-width: 640px) {
  .kt-gallery-offers { grid-template-columns: 1fr; }
}
.kt-go-card {
  display: block;
  text-decoration: none;
  color: var(--kt-g-ink);
  background: var(--kt-g-card);
  border: 1px solid var(--kt-g-line);
  border-radius: var(--kt-g-radius);
  padding: 22px;
  box-shadow: var(--kt-g-shadow);
  transition: transform .18s, border-color .18s;
}
.kt-go-card:hover {
  transform: translateY(-3px);
  border-color: var(--kt-g-pink);
}
.kt-go-ic {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(228, 54, 126, .1);
  color: var(--kt-g-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 13px;
}
.kt-go-ic svg { width: 23px; height: 23px; }
.kt-go-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.kt-go-desc {
  display: block;
  font-size: 13px;
  color: var(--kt-g-soft);
  line-height: 1.5;
}

/* ---- lightbox (built by gallery.js, appended to body) ---- */
.kt-gallery-lb {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 6, 14, .92);
  backdrop-filter: blur(4px);
}
.kt-gallery-lb.kt-g-open { display: flex; }
.kt-gallery-lb img {
  max-width: 92vw;
  max-height: 82vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.kt-gallery-lb .kt-lb-cap {
  position: absolute;
  bottom: 26px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
}
.kt-gallery-lb button {
  position: absolute;
  border: none;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  border-radius: 50%;
  line-height: 1;
}
.kt-gallery-lb button:hover { background: var(--primary, #e4367e); }
.kt-gallery-lb .kt-lb-x {
  top: 20px;
  right: 24px;
  width: 46px;
  height: 46px;
  font-size: 24px;
}
.kt-gallery-lb .kt-lb-arw {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kt-gallery-lb .kt-lb-prev { left: 20px; }
.kt-gallery-lb .kt-lb-next { right: 20px; }
@media (max-width: 600px) {
  .kt-gallery-lb .kt-lb-arw { width: 42px; height: 42px; font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .kt-g-img, .kt-go-card, .kt-g-pill, .kt-g-ov { transition: none; }
}
