/* ============================================================
   lidicka-gutenberg.css — styly nativnich Gutenberg bloku
   ve vizualu webu (skola edituje obsah nativnimi bloky).
   Frontend: scope .brxe-post-content … | Editor: scope se
   odstranuje v lidicka-helpers.php (block_editor_settings_all).
   Tabulka zrcadli design .obory-table (designerova trida).
   ============================================================ */

/* ---- core/table ---- */
.brxe-post-content .wp-block-table {
  overflow-x: auto;
  border: 2px solid var(--bg-muted);
  clip-path: var(--clip-chamfer);
  margin-block: 0 var(--space-xl);
}
.brxe-post-content .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  border: 0;
  background-color: var(--bg-surface);
  font-size: var(--text-s);
}
.brxe-post-content .wp-block-table thead {
  border-bottom: 0;
}
.brxe-post-content .wp-block-table thead th,
.brxe-post-content .wp-block-table thead td {
  background-color: var(--text-title);
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  text-align: left;
  padding: var(--space-s) var(--space-m);
  white-space: nowrap;
  border: 0;
}
.brxe-post-content .wp-block-table td,
.brxe-post-content .wp-block-table tbody th {
  padding: var(--space-s) var(--space-m);
  border: 0;
  border-bottom: 1px solid var(--border-primary);
  color: var(--text-body);
  vertical-align: middle;
}
.brxe-post-content .wp-block-table tbody th {
  font-weight: 700;
  color: var(--text-title);
}
.brxe-post-content .wp-block-table tbody tr:last-child td,
.brxe-post-content .wp-block-table tbody tr:last-child th {
  border-bottom: 0;
}
.brxe-post-content .wp-block-table tbody tr:nth-child(even) {
  background-color: var(--bg-muted);
}
.brxe-post-content .wp-block-table tbody tr:hover {
  background-color: var(--primary-5);
}
.brxe-post-content .wp-block-table tfoot td,
.brxe-post-content .wp-block-table tfoot th {
  padding: var(--space-s) var(--space-m);
  border: 0;
  border-top: 2px solid var(--bg-muted);
  font-weight: 700;
  color: var(--text-title);
}
.brxe-post-content .wp-block-table figcaption {
  padding: var(--space-2xs) var(--space-m) var(--space-s);
  margin: 0;
  font-size: 1.2rem;
  color: var(--dark-50);
  text-align: left;
  background-color: var(--bg-surface);
}
/* varianta „pruhy“ z core neutralizovana — pruhujeme sami */
.brxe-post-content .wp-block-table.is-style-stripes {
  border-bottom: 2px solid var(--bg-muted);
}
.brxe-post-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
  background-color: transparent;
}
.brxe-post-content .wp-block-table.is-style-stripes tbody tr:nth-child(even) {
  background-color: var(--bg-muted);
}

/* ---- core/gallery — vizual designerske galerie (.gallery__item) ---- */
.brxe-post-content .wp-block-gallery {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-s) !important;
}
.brxe-post-content .wp-block-gallery .wp-block-image {
  width: auto !important;
  margin: 0 !important;
  background-color: var(--bg-muted);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: transform .2s;
}
.brxe-post-content .wp-block-gallery .wp-block-image:hover {
  transform: var(--hover-lift);
}
.brxe-post-content .wp-block-gallery .wp-block-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}
@media (max-width: 680px) {
  .brxe-post-content .wp-block-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}