/* Новости и галерея */

/* ---------- Лента новостей ---------- */

.news-list {
  max-width: 960px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.news-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .25s ease;
}
.news-card:hover { border-color: var(--gold-dim); }
.news-card__date {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.news-card__title {
  font-size: 24px;
  margin-bottom: 12px;
}
.news-card__text {
  color: var(--muted);
  font-size: 16px;
  white-space: pre-line;
}
.news-card__photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.news-card__photos img {
  border-radius: 10px;
  border: 1px solid var(--line);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  cursor: zoom-in;
}
.news-card__link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
}
.news-card__more {
  background: none;
  border: none;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  margin-top: 10px;
  text-decoration: underline;
}
.news-card__more:hover { color: var(--text); }
.news-empty {
  color: var(--muted);
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  max-width: 760px;
}

/* ---------- Галерея ---------- */

.gallery {
  columns: 3 260px;
  column-gap: 14px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 14px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: zoom-in;
  position: relative;
  transition: border-color .25s ease, transform .25s ease;
}
.gallery-item:hover {
  border-color: var(--gold-dim);
  transform: translateY(-2px);
}
.gallery-item img {
  width: 100%;
  display: block;
}

/* Лайтбокс */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 4, 3, .94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 20px 80px rgba(0,0,0,.8);
}
.lightbox__close {
  position: absolute;
  top: 18px;
  right: 24px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 34px;
  cursor: pointer;
  line-height: 1;
}
.lightbox__close:hover { color: var(--gold); }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
  transition: all .2s ease;
}
.lightbox__nav:hover { border-color: var(--gold); color: var(--gold); }
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }
