/* ============================================================
   gallery.css — страница галереи ПенаФест
   ============================================================ */

/* ── Заголовок страницы ── */
.gallery-hero {
  background: var(--color-bg);
  padding: 3rem 0 2rem;
}

/* ── Фильтры ── */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  justify-content: center;
  margin-top: 2rem;
}

.gallery-filter {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  border: 2px solid rgba(0, 191, 234, 0.25);
  background: transparent;
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.gallery-filter:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.gallery-filter.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
}

/* ── Сетка ── */
.gallery-full {
  background: var(--color-bg-soft);
  padding: 2.5rem 0 4rem;
}

.gallery-grid {
  columns: 3;
  column-gap: 1rem;
}

@media (max-width: 900px) { .gallery-grid { columns: 2; } }
@media (max-width: 540px) { .gallery-grid { columns: 1; } }

/* ── Карточка ── */
.gallery-item {
  position: relative;
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-img);
  transition: transform var(--transition-lg), box-shadow var(--transition-lg);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

/* Оверлей при наведении */
.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 20, 40, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  color: #fff;
}

.gallery-item__overlay svg {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.gallery-item:hover .gallery-item__overlay {
  opacity: 1;
}

/* Тег категории */
.gallery-item__tag {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  pointer-events: none;
}

/* Бейдж "Видео" */
.gallery-item__badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  pointer-events: none;
}

.gallery-item__badge svg {
  width: 12px;
  height: 12px;
}

/* Скрытые (фильтр) */
.gallery-item.is-hidden {
  display: none;
}

/* ── CTA блок ── */
.gallery-cta {
  background: var(--color-bg);
  padding: 4rem 0;
}

.gallery-cta__inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.gallery-cta__inner h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--fs-2xl);
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.gallery-cta__inner p {
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;
  font-size: var(--fs-md);
}
