/* locations.css — аддитивный блок «Реальные локации» (§5).
   Полностью независим от core: своя сетка (.loc-grid/.loc-gi) и свой lightbox (.loc-lbx),
   чтобы НЕ забирать единственный #galG у блока «Атмосфера». Использует токены темы
   (--scrim-rgb и т.п.), подключается ПОСЛЕ core.css + theme.*.css. core.css не меняется. */

/* ── Сетка (визуально как .galg/.gi из core, но отдельные классы) ── */
.loc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 52px;
}
@media (min-width: 768px) {
  .loc-grid {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 270px 270px;
  }
}
.loc-gi {
  position: relative;
  border: 0;
  padding: 0;
  font: inherit;
  border-radius: 22px;
  background: center/cover no-repeat;
  min-height: 190px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .4s;
}
.loc-gi::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(var(--scrim-rgb), .8) 0%, rgba(var(--scrim-rgb), .15) 55%, transparent 100%);
  opacity: .9;
  transition: opacity .35s;
  pointer-events: none;
}
.loc-gi:hover { transform: scale(1.02); }
.loc-gi:hover::after { opacity: 1; }
@media (min-width: 768px) {
  .loc-gi.big { grid-row: span 2; }
}
.loc-cap {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  text-align: left;
  pointer-events: none;
}
.loc-cap strong {
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
}
.loc-cap span {
  display: block;
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
  letter-spacing: .04em;
  margin-top: 2px;
}
.loc-gi:focus-visible { outline: 2px solid var(--a); outline-offset: 3px; }

/* ── Собственный lightbox (зеркало core .lbx, отдельные классы) ── */
.loc-lbx {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  background: rgba(var(--scrim-rgb), .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.loc-lbx.on { display: flex; }
.loc-lbx-fig {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 92vw;
}
.loc-lbx-img {
  max-width: 88vw;
  max-height: 80vh;
  border-radius: 16px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
  object-fit: contain;
}
.loc-lbx-cap {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  max-width: 600px;
  line-height: 1.5;
}
.loc-lbx-cap span {
  display: block;
  color: rgba(255, 255, 255, .65);
  font-size: 12px;
  font-weight: 500;
  margin-top: 3px;
}
.loc-lbx-x {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .2s;
}
.loc-lbx-x:hover { background: rgba(255, 255, 255, .24); }
.loc-lbx-nav {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .2s;
  flex-shrink: 0;
}
.loc-lbx-nav:hover { background: rgba(255, 255, 255, .24); }
@media (max-width: 640px) {
  .loc-lbx-nav { position: absolute; bottom: 24px; }
  .loc-lbx-prev { left: 26%; }
  .loc-lbx-next { right: 26%; }
}

@media (prefers-reduced-motion: reduce) {
  .loc-gi, .loc-gi::after { transition: none; }
}
