/* ===== Фотогалерея Валерии — мозаика + лайтбокс ===== */

.gallery-hero {
  padding: 48px 0 28px;
  background: #F5F0E8;
}
.gallery-crumbs {
  font-size: 13px;
  color: #8a8378;
  margin-bottom: 14px;
}
.gallery-crumbs a { color: #6B1D2A; text-decoration: none; }
.gallery-crumbs a:hover { text-decoration: underline; }
.gallery-crumbs span { margin: 0 6px; }
.gallery-crumbs .cur { color: #8a8378; }
.gallery-hero__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 5vw, 46px);
  color: #2C2C2C;
  margin: 0 0 10px;
}
.gallery-hero__sub {
  font-size: 16px;
  line-height: 1.6;
  color: #5c564d;
  max-width: 62ch;
  margin: 0;
}

.gallery-section {
  padding: 8px 0 56px;
  background: #F5F0E8;
}

.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .gallery-mosaic { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 480px) { .gallery-mosaic { grid-template-columns: 1fr 1fr; gap: 8px; } }

.gallery-item {
  position: relative;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #e7e0d4;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 14px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0));
  opacity: 0;
  transition: opacity .3s ease;
}
.gallery-item:hover .gallery-item__cap { opacity: 1; }

.gallery-empty {
  text-align: center;
  padding: 60px 0;
  color: #8a8378;
  font-size: 16px;
}

/* CTA */
.gallery-cta {
  padding: 56px 0;
  background: #6B1D2A;
  text-align: center;
}
.gallery-cta__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 4vw, 34px);
  color: #fff;
  margin: 0 0 12px;
}
.gallery-cta__sub {
  color: rgba(255,255,255,.85);
  font-size: 16px;
  margin: 0 0 24px;
}
.gallery-cta__sub b { color: #E7C87E; }
.gallery-cta__btn {
  display: inline-block;
  padding: 14px 34px;
  border: 2px solid #B09E6B;
  border-radius: 4px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  transition: background .3s, color .3s;
}
.gallery-cta__btn:hover { background: #B09E6B; color: #2C2C2C; }

/* ===== Lightbox ===== */
.vlb {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(20,12,10,.94);
  display: none;
  align-items: center;
  justify-content: center;
}
.vlb.open { display: flex; }
.vlb img {
  max-width: 92vw;
  max-height: 84vh;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
}
.vlb__close, .vlb__nav {
  position: absolute;
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.vlb__close:hover, .vlb__nav:hover { background: rgba(255,255,255,.24); }
.vlb__close { top: 20px; right: 20px; font-size: 26px; line-height: 1; }
.vlb__nav { top: 50%; transform: translateY(-50%); font-size: 30px; line-height: 1; }
.vlb__nav.prev { left: 16px; }
.vlb__nav.next { right: 16px; }
.vlb__cap {
  position: absolute;
  bottom: 22px;
  left: 0; right: 0;
  text-align: center;
  color: rgba(255,255,255,.85);
  font-size: 14px;
  padding: 0 20px;
}
@media (max-width: 600px) {
  .vlb__close, .vlb__nav { width: 44px; height: 44px; }
  .vlb__nav.prev { left: 8px; }
  .vlb__nav.next { right: 8px; }
}
