/*
Theme Name: Anton Belitsky
Theme URI: https://antonb.ru
Author: Anton Belitsky
Author URI: https://antonb.ru
Description: Кастомная тема для antonb.ru — минималистичный дизайн с акцентом на контент. Адаптивная, с настраиваемым меню и виджетами.
Version: 1.1.0
License: GPL v2 or later
Text Domain: antonb
*/

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  background: #ffffff;
  color: #0a0a0a;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

a {
  color: #008FCC;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #0077aa;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== ALIGNMENTS (WordPress core) ===== */
.alignleft {
  float: left;
  margin-right: 1.5em;
  margin-bottom: 1em;
}

.alignright {
  float: right;
  margin-left: 1.5em;
  margin-bottom: 1em;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 14px;
  color: #545964;
  margin-top: 8px;
  text-align: center;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* ===== HEADER (DESKTOP) ===== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo {
  display: block;
}

.site-logo img {
  width: auto;
  height: 40px;
  border-radius: 8px;
}

.site-title {
  font-size: 24px;
  font-weight: 700;
  color: #0a0a0a;
}

.site-title a {
  color: #0a0a0a;
  text-decoration: none;
}

.site-title a:hover {
  color: #008FCC;
}

/* Desktop Nav */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.desktop-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.desktop-nav a {
  color: rgba(10, 10, 10, 0.6);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav .current-menu-item a,
.desktop-nav .current_page_item a {
  color: #0a0a0a;
}

/* ===== HEADER (MOBILE) ===== */
.mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-site-title {
  font-size: 20px;
  font-weight: 700;
  color: #0a0a0a;
  text-decoration: none;
}

.hamburger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s;
  color: #0a0a0a;
  padding: 0;
}

.hamburger-btn:hover {
  background: #f0f0f0;
}

.hamburger-btn svg {
  width: 20px;
  height: 20px;
}

/* ===== MOBILE MENU OVERLAY ===== */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 100;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mobile-menu-overlay.open {
  display: block;
  opacity: 1;
}

.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  max-width: 80vw;
  background: #ffffff;
  z-index: 101;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
  overflow-y: auto;
}

.mobile-menu-panel.open {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.mobile-menu-title {
  font-size: 18px;
  font-weight: 700;
  color: #0a0a0a;
  text-decoration: none;
}

.mobile-menu-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s;
  color: #888;
}

.mobile-menu-close-btn:hover {
  background: #f5f5f5;
  color: #0a0a0a;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  padding: 8px 0;
}

.mobile-menu-links a,
.mobile-menu-links li a {
  display: block;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 500;
  color: #0a0a0a;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.mobile-menu-links a:hover,
.mobile-menu-links li a:hover,
.mobile-menu-links .current-menu-item a {
  background: #f5f5f5;
  color: #0a0a0a;
}

/* ===== HERO ===== */
.hero {
  display: flex;
  gap: 64px;
  align-items: center;
  padding: 80px 0 60px;
}

.hero-image {
  flex-shrink: 0;
}

.hero-image img {
  width: 280px;
  height: 280px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-content h1 {
  font-size: 60px;
  font-weight: 700;
  line-height: 60px;
  margin-bottom: 16px;
  color: #0a0a0a;
}

.hero-content .bio {
  font-size: 18px;
  font-weight: 400;
  color: #545964;
  line-height: 28px;
  max-width: 500px;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  height: 40px;
  padding: 0 32px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  line-height: 1;
}

.btn-telegram {
  background: #008FCC;
  color: #ffffff;
}

.btn-telegram:hover {
  background: #0077aa;
  color: #ffffff;
}

.btn-telegram svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-outline {
  background: transparent;
  color: #0a0a0a;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
}

.btn-outline:hover {
  border-color: #008FCC;
  color: #008FCC;
}

/* ===== PROJECT CARDS (Спички + Концерты) ===== */
.project-cards {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
  padding: 48px 0;
  border-top: 1px solid #f0f0f0;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 28px;
  text-decoration: none;
  color: #0a0a0a;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  position: relative;
}

.project-card:hover {
  border-color: #008FCC;
  box-shadow: 0 4px 20px rgba(0, 143, 204, 0.08);
}

/* --- Спички (короткая карточка) --- */
.project-card--spichki {
  align-items: center;
  text-align: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 36px 24px;
}

.project-card--spichki .card-cta {
  margin-top: auto;
}

.spichki-logo {
  width: 100px;
  height: 100px;
  border-radius: 16px;
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.spichki-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.spichki-title {
  font-size: 20px;
  font-weight: 700;
  color: #0a0a0a;
  line-height: 1.3;
}

.spichki-desc {
  font-size: 13px;
  line-height: 1.5;
  color: #545964;
  max-width: 280px;
}

/* --- Концертная съёмка (длинная карточка) --- */
.project-card--concert {
  padding: 28px;
  gap: 16px;
}

.concert-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.concert-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0a0a0a;
  line-height: 1.3;
}

.concert-icon {
  font-size: 22px;
  line-height: 1;
}

.project-card--concert .concert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  aspect-ratio: 2 / 1.2;
  border-radius: 12px;
  overflow: hidden;
}

.project-card--concert .concert-photo {
  overflow: hidden;
  border-radius: 8px;
  background: #f5f5f5;
}

.project-card--concert .concert-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.project-card--concert:hover .concert-photo img {
  transform: scale(1.05);
}

.project-card--concert .concert-photo--1 {
  grid-column: 1;
  grid-row: 1 / 3;
}

.project-card--concert .concert-photo--2 {
  grid-column: 2;
  grid-row: 1;
}

.project-card--concert .concert-photo--3 {
  grid-column: 2;
  grid-row: 2;
}

.card-cta {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #008FCC;
  padding: 10px 20px;
  border: 1.5px solid #008FCC;
  border-radius: 8px;
  text-align: center;
  transition: all 0.25s ease;
  align-self: flex-start;
  margin-top: 4px;
}

.project-card--concert:hover .card-cta {
  background: #008FCC;
  color: #ffffff;
}

/* Responsive: project cards */
@media (max-width: 768px) {
  .project-cards {
    grid-template-columns: 1fr;
  }
  .project-card--spichki {
    padding: 28px 20px;
  }
  .spichki-logo {
    width: 80px;
    height: 80px;
  }
  .project-card--concert .concert-grid {
    aspect-ratio: auto;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .project-card--concert .concert-photo--1 {
    grid-column: 1 / 3;
    grid-row: 1;
    aspect-ratio: 16 / 9;
  }
  .project-card--concert .concert-photo--2 {
    grid-column: 1;
    grid-row: 2;
    aspect-ratio: 4 / 3;
  }
  .project-card--concert .concert-photo--3 {
    grid-column: 2;
    grid-row: 2;
    aspect-ratio: 4 / 3;
  }
}

/* ===== PAGE CONTENT ===== */
.page-content,
.archive-content {
  padding: 60px 0;
}

.single-content {
  padding: 30px 0 60px;
}

.page-content h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 32px;
  color: #0a0a0a;
}

.page-content h2 {
  font-size: 32px;
  font-weight: 700;
  margin: 40px 0 16px;
  color: #0a0a0a;
}

.page-content h3 {
  font-size: 24px;
  font-weight: 600;
  margin: 32px 0 12px;
  color: #0a0a0a;
}

.page-content p {
  margin-bottom: 20px;
  font-size: 17px;
  line-height: 1.7;
  color: #333;
}

.page-content ul,
.page-content ol {
  margin: 0 0 20px 24px;
}

.page-content li {
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.6;
}

.page-content blockquote {
  border-left: 4px solid #008FCC;
  padding: 16px 24px;
  margin: 24px 0;
  background: #f8f9fa;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #545964;
}

.page-content pre {
  background: #f4f4f5;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.6;
}

.page-content code {
  background: #f4f4f5;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
}

.page-content img {
  border-radius: 12px;
  margin: 24px 0;
}

.page-content iframe {
  max-width: 100%;
  border-radius: 12px;
}

.page-content hr {
  border: none;
  border-top: 1px solid #f0f0f0;
  margin: 40px 0;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.page-content th,
.page-content td {
  padding: 12px;
  border: 1px solid #f0f0f0;
  text-align: left;
}

.page-content th {
  background: #f8f9fa;
  font-weight: 600;
}

/* ===== SINGLE POST ===== */
.single-article {
  max-width: 720px;
  margin: 0 auto;
  word-break: break-word;
}

/* --- Header --- */
.single-header {
  margin-top: clamp(20px, 1.82vw + 12.72px, 36px);
  margin-bottom: 40px;
}

.single-category {
  margin-bottom: 12px;
}

.single-category a {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #008FCC;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.single-category a:hover {
  opacity: 0.8;
}

.single-title {
  font-size: clamp(34px, 1.36vw + 28.5px, 46px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.022em;
  color: #0a0a0a;
}

/* --- Featured Image --- */
.single-featured-image {
  margin-bottom: clamp(28px, 2vw + 20px, 48px);
  display: block;
}

.single-featured-image .featured-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

/* --- Entry Content (Source typography) --- */
.single-article .entry-content {
  font-size: 18px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  color: #0a0a0a;
}

/* Base vertical rhythm */
.single-article .entry-content p,
.single-article .entry-content ul,
.single-article .entry-content ol,
.single-article .entry-content figure,
.single-article .entry-content .wp-block-image,
.single-article .entry-content .wp-block-gallery,
.single-article .entry-content .wp-block-embed,
.single-article .entry-content .wp-block-table,
.single-article .entry-content .wp-block-quote,
.single-article .entry-content pre,
.single-article .entry-content table,
.single-article .entry-content .wp-caption {
  margin-bottom: 32px;
}

/* Headings */
.single-article .entry-content h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #0a0a0a;
  margin-top: 56px;
  margin-bottom: 20px;
}

.single-article .entry-content h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.017em;
  line-height: 1.2;
  color: #0a0a0a;
  margin-top: 48px;
  margin-bottom: 16px;
}

/* First heading in content doesn't need big top margin */
.single-article .entry-content h2:first-child,
.single-article .entry-content h3:first-child {
  margin-top: 0;
}

/* Links */
.single-article .entry-content a {
  color: #008FCC;
  text-decoration: underline;
  text-decoration-color: rgba(0, 143, 204, 0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s ease;
}

.single-article .entry-content a:hover {
  text-decoration-color: #008FCC;
}

/* Blockquote */
.single-article .entry-content blockquote {
  padding-left: 2rem;
  border-left: 4px solid #008FCC;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 28px;
}

.single-article .entry-content blockquote p {
  margin-bottom: 0;
}

/* Lists */
.single-article .entry-content ul,
.single-article .entry-content ol {
  padding-left: 28px;
}

.single-article .entry-content li {
  margin-bottom: 8px;
}

.single-article .entry-content li:last-child {
  margin-bottom: 0;
}

/* Images */
.single-article .entry-content img {
  border-radius: 12px;
  display: block;
  max-width: 100%;
  height: auto;
  margin-top: 32px;
  margin-bottom: 32px;
}

/* WordPress block image figure */
.single-article .entry-content .wp-block-image img {
  margin-top: 0;
  margin-bottom: 0;
}

/* Figcaption */
.single-article .entry-content figcaption {
  text-align: center;
  font-size: 14px;
  color: #888;
  margin-top: 12px;
  margin-bottom: 0;
}

/* HR */
.single-article .entry-content hr {
  width: 100%;
  height: 1px;
  background-color: #e8e8e8;
  border: 0;
  margin: 48px 0;
}

/* Iframe */
.single-article .entry-content iframe {
  max-width: 100%;
  border-radius: 12px;
}

/* Code */
.single-article .entry-content pre {
  overflow: auto;
  padding: 16px;
  font-size: 15px;
  line-height: 1.5;
  background: #f4f4f5;
  border-radius: 6px;
}

.single-article .entry-content :not(pre) > code {
  padding: 0.15em 0.4em;
  font-size: 0.95em;
  line-height: 1em;
  background: #f4f4f5;
  border-radius: 4px;
}

/* --- Page Links (multi-page) --- */
.page-links {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #f0f0f0;
  font-size: 14px;
  font-weight: 500;
  color: #545964;
}

/* --- Header Meta (под заголовком — аватар, имя, дата) --- */
.single-header-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding-bottom: 0;
}

.single-meta-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.single-header-meta .author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.single-meta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.single-author-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.013em;
  color: #0a0a0a;
  line-height: 1.3;
}

.single-author-name a {
  color: #0a0a0a;
  text-decoration: none;
}

.single-author-name a:hover {
  opacity: 0.8;
}

.single-meta-detail {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.006em;
  color: #888;
}

.meta-sep {
  display: inline-block;
  margin: 0 6px;
  color: #ccc;
}

.reading-time {
  color: #888;
}

/* --- Tags --- */
.single-tags {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid #f0f0f0;
}

.tags-label {
  font-size: 14px;
  font-weight: 600;
  color: #545964;
  white-space: nowrap;
  margin-top: 2px;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-link {
  display: inline-block;
  padding: 6px 14px;
  background: #f0f0f0;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #545964;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tag-link:hover {
  background: #e0e0e0;
  color: #0a0a0a;
}

/* --- Related Posts (Смотрите так же) --- */
.related-posts {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid #f0f0f0;
}

.related-posts-title {
  font-size: 20px;
  font-weight: 700;
  color: #0a0a0a;
  margin-bottom: 24px;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.related-post-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  background: #fff;
}

.related-post-card:hover {
  border-color: #008FCC;
  box-shadow: 0 4px 20px rgba(0,143,204,0.08);
}

.related-post-thumb {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.related-post-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-post-card:hover .related-post-img {
  transform: scale(1.03);
}

.related-post-body {
  padding: 14px 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.related-post-category {
  font-size: 12px;
  font-weight: 600;
  color: #008FCC;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  margin-bottom: 2px;
}

.related-post-title {
  font-size: 15px;
  font-weight: 600;
  color: #0a0a0a;
  line-height: 1.4;
  margin: 0;
  transition: color 0.2s ease;
}

.related-post-card:hover .related-post-title {
  color: #008FCC;
}

.related-post-date {
  font-size: 12px;
  color: #888;
  margin-top: auto;
}

/* Responsive */
@media (max-width: 900px) {
  .related-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .related-posts-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== BLOG INDEX (home.php) — карточная сетка ===== */
.blog-index {
  padding: 60px 0;
}

.blog-index-header {
  margin-bottom: 36px;
}

.blog-index-header h1 {
  font-size: 42px;
  font-weight: 700;
  color: #0a0a0a;
  margin-bottom: 8px;
}

.blog-index-subtitle {
  font-size: 18px;
  color: #888;
  margin-bottom: 0;
}

.blog-index-sep {
  border: none;
  border-top: 1px solid #f0f0f0;
  margin: 24px 0 0;
}

/* 3-column grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Card */
.blog-card {
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  background: #fff;
}

.blog-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border-color: #e0e0e0;
}

/* Card image */
.blog-card-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #fafafa;
  text-decoration: none;
}

.blog-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-thumb {
  transform: scale(1.03);
}

/* No-image placeholder */
.blog-card-no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #ccc;
  background: #f5f5f5;
}

/* Card body */
.blog-card-body {
  padding: 18px 20px 22px;
}

/* Category */
.blog-card-category {
  margin-bottom: 6px;
}

.blog-card-category a {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #008FCC;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: opacity 0.2s;
}

.blog-card-category a:hover {
  opacity: 0.75;
}

/* Date */
.blog-card-date {
  display: block;
  font-size: 13px;
  color: #888;
  margin-bottom: 8px;
}

/* Title */
.blog-card-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  color: #0a0a0a;
}

.blog-card-title a {
  color: #0a0a0a;
  text-decoration: none;
  transition: color 0.2s;
}

.blog-card-title a:hover {
  color: #008FCC;
}

/* Excerpt */
.blog-card-excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: #888;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== ARCHIVE / BLOG LIST ===== */
.archive-header {
  margin-bottom: 40px;
}

.archive-header h1 {
  font-size: 42px;
  font-weight: 700;
  color: #0a0a0a;
  margin-bottom: 8px;
}

.archive-header .archive-description {
  color: #545964;
  font-size: 18px;
}

.posts-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.post-card {
  padding: 32px;
  background: #f8f9fa;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.post-card:hover {
  background: #f0f2f5;
}

.post-card h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.post-card h2 a {
  color: #0a0a0a;
  text-decoration: none;
}

.post-card h2 a:hover {
  color: #008FCC;
}

.post-card .post-meta {
  font-size: 13px;
  color: #888;
  margin-bottom: 12px;
}

.post-card .post-excerpt {
  font-size: 16px;
  color: #545964;
  line-height: 1.6;
}

.post-card .post-excerpt p {
  margin-bottom: 0;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  background: #f8f9fa;
  color: #0a0a0a;
  text-decoration: none;
}

.pagination .current {
  background: #008FCC;
  color: #ffffff;
}

.pagination a:hover {
  background: #e8e8e8;
}

/* ===== LATEST POSTS (full-width section on front page) ===== */
.latest-posts {
  background: #f8f9fa;
  padding: 64px 0;
  margin-top: 20px;
}

.latest-posts-title {
  font-size: 32px;
  font-weight: 700;
  color: #0a0a0a;
  margin-bottom: 36px;
}

.latest-posts-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.latest-post-item {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 22px 24px 26px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.latest-post-item:hover {
  border-color: #008FCC;
  box-shadow: 0 4px 16px rgba(0, 143, 204, 0.06);
}

.latest-post-item + .latest-post-item {
  margin-top: 12px;
}

.latest-post-date {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #888;
  margin-bottom: 6px;
}

.latest-post-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}

.latest-post-title a {
  color: #0a0a0a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.latest-post-title a:hover {
  color: #008FCC;
}

.latest-post-excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: #888;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.latest-post-excerpt p {
  margin-bottom: 0;
}

.latest-posts-empty {
  font-size: 14px;
  color: #888;
  text-align: center;
  padding: 32px 0;
}

.latest-posts-cta {
  display: inline-block;
  margin-top: 28px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  color: #008FCC;
  border: 1.5px solid #008FCC;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.latest-posts-cta:hover {
  background: #008FCC;
  color: #ffffff;
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid #f0f0f0;
  padding: 40px 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-nav ul {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  list-style: none;
}

.footer-nav a {
  color: rgba(10, 10, 10, 0.6);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.footer-nav a:hover {
  color: #0a0a0a;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f0f0f0;
  color: #545964;
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background: #008FCC;
  color: #ffffff;
}

.footer-social a svg {
  width: 18px;
  height: 18px;
}

.footer-copyright {
  text-align: center;
  font-size: 13px;
  color: #aaa;
}

/* ===== 404 PAGE ===== */
.error-404 {
  text-align: center;
  padding: 120px 0;
}

.error-404 h1 {
  font-size: 100px;
  font-weight: 700;
  color: #f0f0f0;
  line-height: 1;
  margin-bottom: 8px;
}

.error-404 h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #0a0a0a;
}

.error-404 p {
  color: #545964;
  margin-bottom: 32px;
}

/* ===== SEARCH ===== */
.search-form {
  display: flex;
  gap: 8px;
  max-width: 400px;
  margin: 0 auto;
}

.search-form input[type="search"] {
  flex: 1;
  height: 44px;
  padding: 0 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.search-form input[type="search"]:focus {
  border-color: #008FCC;
}

.search-form button {
  height: 44px;
  padding: 0 20px;
  background: #008FCC;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.search-form button:hover {
  background: #0077aa;
}

.search-no-results {
  text-align: center;
  padding: 60px 0;
}

/* ===== COMMENTS ===== */
.comments-area {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #f0f0f0;
}

.comments-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}

.comment-list {
  list-style: none;
  margin: 0 0 40px;
}

.comment {
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
}

.comment .comment-author {
  font-weight: 600;
  margin-bottom: 4px;
}

.comment .comment-meta {
  font-size: 13px;
  color: #888;
  margin-bottom: 12px;
}

.comment .comment-content p {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.6;
}

.comment-reply-link {
  font-size: 13px;
  font-weight: 500;
  color: #008FCC;
}

.comment-respond {
  margin-top: 32px;
}

.comment-reply-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
}

.comment-form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  color: #545964;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 16px;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: #008FCC;
}

.comment-form .submit {
  height: 44px;
  padding: 0 32px;
  background: #008FCC;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.comment-form .submit:hover {
  background: #0077aa;
}

/* ===== WIDGETS ===== */
.widget-area {
  margin-top: 40px;
}

.widget {
  margin-bottom: 32px;
}

.widget-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #0a0a0a;
}

.widget ul {
  list-style: none;
}

.widget li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.widget li:last-child {
  border-bottom: none;
}

.widget a {
  color: #545964;
  font-size: 15px;
}

.widget a:hover {
  color: #008FCC;
}

/* ===== GALLERY (WP core blocks) ===== */
.wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.wp-block-image img {
  border-radius: 12px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .desktop-nav,
  .site-header {
    display: none !important;
  }

  .mobile-header {
    display: flex !important;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    padding: 48px 0 40px;
  }

  .hero-content .bio {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-content h1 {
    font-size: 40px;
    line-height: 40px;
  }

  .hero-image img {
    width: 220px;
    height: 220px;
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }

  .page-content,
  .single-content,
  .archive-content {
    padding: 40px 0;
  }

  .page-content h1,
  .archive-header h1 {
    font-size: 32px;
  }

  .single-title {
    font-size: 34px;
  }

  .single-article .entry-content {
    font-size: 16px;
  }

  .single-article .entry-content h2 {
    font-size: 24px;
    margin-top: 40px;
  }

  .single-article .entry-content h3 {
    font-size: 20px;
    margin-top: 32px;
  }

  .single-article {
    max-width: 100%;
  }

  .single-featured-image {
    margin-left: -16px;
    margin-right: -16px;
  }

  .single-featured-image .featured-image {
    border-radius: 0;
  }

  .single-header {
    margin-top: 32px;
  }

  .footer-nav {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .footer-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .post-navigation {
    flex-direction: column;
  }

  .post-navigation a {
    max-width: 100%;
  }

  /* Blog grid → 2 columns */
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .blog-index-header h1 {
    font-size: 32px;
  }

  .blog-card-title {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 32px;
    line-height: 34px;
  }

  .hero-content .bio {
    font-size: 16px;
    line-height: 24px;
  }

  .hero-image img {
    width: 180px;
    height: 180px;
    border-radius: 18px;
  }

  .btn {
    padding: 0 24px;
    font-size: 13px;
  }

  .post-card {
    padding: 20px;
  }

  /* Blog grid → 1 column */
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .blog-card-title {
    font-size: 17px;
  }

  .blog-index {
    padding: 40px 0;
  }
}

/* ===== HIDE EXTERNAL POPUPS (safety) ===== */
.elementor-popup-modal,
.dialog-widget,
.dialog-lightbox-widget,
.dialog-type-lightbox,
[data-elementor-type="popup"],
div[class*="elementor-popup"],
div[id*="elementor-popup"],
[class*="dialog-type-lightbox"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

/* --- Jetpack subscription block inside content --- */
.single-article .entry-content .wp-block-jetpack-subscriptions {
  margin-top: 48px;
  margin-bottom: 0;
  padding: 32px;
  background: #f8f9fa;
  border-radius: 12px;
}

.single-article .entry-content .wp-block-jetpack-subscriptions h3 {
  margin-top: 0;
  font-size: 20px;
  font-weight: 700;
}

.single-article .entry-content .wp-block-jetpack-subscriptions p {
  font-size: 14px;
  color: #545964;
  margin-bottom: 16px;
}

.single-article .entry-content .wp-block-jetpack-subscriptions input[type="email"],
.single-article .entry-content .wp-block-jetpack-subscriptions input[type="text"] {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
}

.single-article .entry-content .wp-block-jetpack-subscriptions button {
  height: 44px;
  padding: 0 24px;
  background: #0a0a0a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
}

/* --- Old-style WordPress captions --- */
.single-article .entry-content .wp-caption {
  max-width: 100%;
  margin-bottom: 32px;
}

.single-article .entry-content .wp-caption img {
  margin: 0;
  border-radius: 12px;
}

.single-article .entry-content .wp-caption-text {
  font-size: 14px;
  color: #888;
  text-align: center;
  margin-top: 12px;
}

/* --- Images inside paragraph links (classic editor) --- */
.single-article .entry-content p > a > img {
  margin: 0;
}


/* ============================================================
   CONCERT ARCHIVE — каталог концертных съёмок
   ============================================================ */

/* Utility: screen-reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Filters bar --- */
.concert-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 0 0 16px;
  border-bottom: 1px solid #eee;
}

.filter-search {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 320px;
}

.filter-search .search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: #bbb;
  pointer-events: none;
}

.filter-input {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 32px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: #fff;
  transition: border-color 0.2s;
}

.filter-input:focus {
  border-color: #333;
}

.filter-input::placeholder {
  color: #bbb;
}

/* --- Artist dropdown --- */
.filter-artists {
  position: relative;
}

/* --- Year dropdown --- */
.filter-years {
  position: relative;
}

.filter-venues {
  position: relative;
}

.filter-select {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  color: #555;
  transition: border-color 0.2s;
}

.filter-select:hover {
  border-color: #333;
}

.filter-select .chevron {
  width: 14px;
  height: 14px;
  opacity: 0.5;
}

.filter-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 20;
  min-width: 120px;
  max-height: 240px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  list-style: none;
  padding: 4px 0;
  margin: 0;
}

.filter-dropdown li {
  margin: 0;
}

.filter-dropdown button {
  display: block;
  width: 100%;
  padding: 6px 14px;
  border: none;
  background: none;
  font-size: 13px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  color: #555;
  transition: background 0.15s;
}

.filter-dropdown button:hover {
  background: #f5f5f5;
}

.filter-dropdown button.active {
  background: #0a0a0a;
  color: #fff;
  font-weight: 600;
}

/* --- Filter count --- */
.filter-count {
  margin-left: auto;
  font-size: 12px;
  color: #aaa;
  white-space: nowrap;
}

/* --- Alphabet navigation --- */
.filter-alpha {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  max-width: 100%;
}

.alpha-btn {
  width: 26px;
  height: 24px;
  border: none;
  border-radius: 3px;
  background: transparent;
  font-size: 11px;
  font-family: inherit;
  color: #ccc;
  cursor: default;
  transition: all 0.12s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.alpha-row-break {
  width: 100%;
  height: 2px;
  flex-basis: 100%;
}

.alpha-btn.has-artists {
  color: #777;
  cursor: pointer;
}

.alpha-btn.has-artists:hover {
  background: #0a0a0a;
  color: #fff;
}

.alpha-btn.has-artists.active {
  background: #0a0a0a;
  color: #fff;
}

.alpha-btn:disabled {
  opacity: 0.25;
}

/* --- Concert grid --- */
.concert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* --- Concert card --- */
.concert-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #f0f0f0;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.concert-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-color: #ddd;
}

.card-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}

.card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.concert-card:hover .card-image img {
  transform: scale(1.03);
}

.card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ddd;
}

.card-placeholder svg {
  width: 36px;
  height: 36px;
}

.card-info {
  padding: 14px;
}

.card-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: #999;
  margin-bottom: 6px;
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: 3px;
}

.card-artists {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.artist-tag {
  display: inline-block;
  padding: 1px 7px;
  background: #f8f8f8;
  border-radius: 4px;
  font-size: 11px;
  color: #888;
  white-space: nowrap;
}

/* --- Pagination --- */
.concert-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  padding-top: 20px;
}

.pagination-btn {
  padding: 7px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  color: #555;
  transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
  border-color: #333;
  background: #333;
  color: #fff;
}

.pagination-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pagination-info {
  font-size: 13px;
  color: #999;
}

/* --- Empty state --- */
.concert-empty {
  text-align: center;
  padding: 40px 20px;
  color: #999;
  background: #fafafa;
  border-radius: 10px;
}

.concert-empty p {
  font-size: 14px;
  margin-bottom: 12px;
}

.reset-btn {
  padding: 8px 20px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: transparent;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  color: #666;
  transition: all 0.2s;
}

.reset-btn:hover {
  background: #333;
  color: #fff;
  border-color: #333;
}


/* ============================================================
   SINGLE CONCERT — страница съёмки
   ============================================================ */

/* --- Taxonomy parent link --- */
.taxonomy-parent-link {
  margin-bottom: 6px;
}

.taxonomy-parent-link a {
  font-size: 13px;
  color: #999;
  text-decoration: none;
}

.taxonomy-parent-link a:hover {
  color: #333;
}

.taxonomy-count {
  font-size: 14px;
  font-weight: 400;
  color: #bbb;
  margin-left: 8px;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 20px 0 8px;
  font-size: 12px;
  color: #bbb;
}

.breadcrumbs a {
  color: #999;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: #333;
}

.breadcrumbs .sep {
  color: #ddd;
}

.breadcrumbs .current {
  color: #666;
}

/* --- Concert header --- */
.concert-header {
  margin-bottom: 32px;
}

.concert-header h1 {
  margin: 0 0 12px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
}

.concert-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 14px;
  color: #888;
}

.concert-meta svg {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

.concert-date,
.concert-venue {
  display: flex;
  align-items: center;
  gap: 5px;
}

.venue-city {
  color: #bbb;
}

/* --- Artist links --- */
.concert-artists {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.artist-link {
  display: inline-block;
  padding: 3px 12px;
  background: #f5f5f5;
  border-radius: 6px;
  font-size: 13px;
  color: #555;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.artist-link:hover {
  background: #333;
  color: #fff;
}

/* --- Photo gallery --- */
.concert-gallery {
  margin-bottom: 24px;
  overflow: hidden;
}

.gallery-link {
  float: left;
  width: calc(33.333% - 4px);
  margin: 0 6px 6px 0;
  display: block;
  overflow: hidden;
  border-radius: 6px;
  cursor: zoom-in;
  text-decoration: none;
  line-height: 0;
}

.gallery-link:nth-child(3n) {
  margin-right: 0;
}

.gallery-link img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.3s;
}

.gallery-link:hover img {
  transform: scale(1.02);
}

.gallery-caption {
  padding: 8px 10px;
  font-size: 12px;
  color: #aaa;
  text-align: center;
  background: #fff;
  border-top: 1px solid #f5f5f5;
}

/* --- Copyright line --- */
.concert-copyright {
  margin: 12px 0 24px;
  font-size: 12px;
  color: #bbb;
  text-align: right;
}

/* --- No photos --- */
.concert-no-photos {
  text-align: center;
  padding: 48px 24px;
  background: #fafafa;
  border-radius: 10px;
  color: #aaa;
  font-size: 14px;
  margin-bottom: 24px;
}

/* --- Navigation between concerts --- */
.concert-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 24px 0;
  margin-top: 20px;
  border-top: 1px solid #eee;
}

.nav-prev,
.nav-next {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  padding: 10px;
  border-radius: 8px;
  transition: background 0.2s;
}

.nav-prev:hover,
.nav-next:hover {
  background: #f8f8f8;
}

.nav-prev {
  justify-self: start;
  text-align: left;
}

.nav-next {
  justify-self: end;
  text-align: right;
}

.nav-label {
  display: block;
  font-size: 11px;
  color: #bbb;
  margin-bottom: 1px;
}

.nav-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #555;
}

.nav-all {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  color: #888;
  text-decoration: none;
  transition: all 0.2s;
}

.nav-all svg {
  width: 14px;
  height: 14px;
  opacity: 0.5;
}

.nav-all:hover {
  border-color: #333;
  background: #333;
  color: #fff;
}


/* ============================================================
   RESPONSIVE — CONCERT PAGES
   ============================================================ */

@media (max-width: 768px) {
  .concert-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .filter-search {
    max-width: 100%;
  }

  .filter-select {
    width: 100%;
    justify-content: space-between;
  }

  .filter-dropdown {
    width: 100%;
    left: 0;
    right: 0;
  }

  .filter-alpha {
    justify-content: flex-start;
  }

  .filter-count {
    margin-left: 0;
    text-align: left;
  }

  .concert-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
  }

  .concert-header h1 {
    font-size: 24px;
  }

  .gallery-link {
    width: calc(50% - 3px);
  }
  .gallery-link:nth-child(3n) {
    margin-right: 6px;
  }
  .gallery-link:nth-child(2n) {
    margin-right: 0;
  }

  .concert-nav {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .nav-prev,
  .nav-next {
    justify-self: stretch;
  }

  .nav-all {
    justify-self: center;
    order: -1;
  }

  .nav-title {
    max-width: 140px;
  }
}

@media (max-width: 480px) {
  .concert-grid {
    grid-template-columns: 1fr;
  }

  .gallery-link {
    width: 100%;
    margin-right: 0;
    float: none;
  }

  .concert-header h1 {
    font-size: 22px;
  }

  .concert-meta {
    flex-direction: column;
    gap: 6px;
  }
}

/* --- Lightbox --- */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.92);
  animation: lbFadeIn 0.2s ease;
}
.lightbox-overlay.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}
@keyframes lbFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  transition: background 0.2s;
  z-index: 10;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }

.lightbox-image-wrap {
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-image-wrap img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-nav:disabled { opacity: 0.25; cursor: default; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

@media (max-width: 768px) {
  .lightbox-nav { width: 36px; height: 36px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 8px; right: 8px; }
}
