/*
Theme Name: Christlicher Maennertreff Kressbronn
Theme URI: https://www.christlicher-maennertreff-kressbronn.de/
Author: Christlicher Männertreff Kressbronn
Description: Minimalistisches, datenschutzfreundliches WordPress-Theme für den Christlichen Männertreff Kressbronn ohne Frameworks, externe Webfonts oder Tracking.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: maennertreff
*/

/* ==========================================================================
   1. Lokale Schriftarten (PlayfairDisplay & SourceSansPro, kein Google Fonts)
   ========================================================================== */
@font-face {
  font-family: 'PlayfairDisplay';
  src: url('assets/fonts/PlayfairDisplay-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PlayfairDisplay';
  src: url('assets/fonts/PlayfairDisplay-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'PlayfairDisplay';
  src: url('assets/fonts/PlayfairDisplay-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PlayfairDisplay';
  src: url('assets/fonts/PlayfairDisplay-600italic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'PlayfairDisplay';
  src: url('assets/fonts/PlayfairDisplay-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PlayfairDisplay';
  src: url('assets/fonts/PlayfairDisplay-700italic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'SourceSansPro';
  src: url('assets/fonts/SourceSansPro-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SourceSansPro';
  src: url('assets/fonts/SourceSansPro-300italic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'SourceSansPro';
  src: url('assets/fonts/SourceSansPro-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SourceSansPro';
  src: url('assets/fonts/SourceSansPro-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SourceSansPro';
  src: url('assets/fonts/SourceSansPro-600italic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'SourceSansPro';
  src: url('assets/fonts/SourceSansPro-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   2. Design-Tokens (exakt nach Original-Theme der Website)
   ========================================================================== */
:root {
  --mt-bg: #ffffff;
  --mt-surface: #f7f6f2;
  --mt-border: #e5e2d9;
  --mt-gold: #ebae16;
  --mt-gold-text: #99700a;
  --mt-gold-dark: #4e3702;
  --mt-text: #4D5656;
  --mt-text-header: #363c3c;
  --mt-green: #248913;
  --mt-red: #CB0F33;
  --mt-red-hover: #a60c29;
  --mt-nav-active: #014342;
  --mt-nav-active-bg: rgba(1, 67, 66, 0.12);
  --mt-nav-hover-bg: rgba(1, 67, 66, 0.06);
  --mt-teal-accent: #0DC4C2;

  --mt-font-heading: 'PlayfairDisplay', Georgia, 'Times New Roman', serif;
  --mt-font-body: 'SourceSansPro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --mt-container: 960px;
  --mt-radius: 4px;
}

/* ==========================================================================
   3. Reset & Grundtypografie
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--mt-bg);
  color: var(--mt-text);
  font-family: var(--mt-font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 0 auto;
}

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

figure {
  margin: 0 0 1.5rem;
}

figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #667070;
  text-align: center;
}

a {
  color: var(--mt-gold-text);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.18s ease, background-color 0.18s ease, opacity 0.18s ease;
}

a:hover,
a:focus-visible {
  color: var(--mt-gold-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--mt-nav-active);
  outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--mt-font-heading);
  font-weight: 400;
  line-height: 1.25;
  margin-top: 0;
  margin-bottom: 1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

h1 { font-size: 40px; color: var(--mt-gold-text); }
h2 { font-size: 33px; color: var(--mt-gold-text); }
h3 { font-size: 28px; color: var(--mt-gold-text); }
h4 { font-size: 23px; color: var(--mt-gold-text); }
h5 { font-size: 19px; color: var(--mt-text); }
h6 { font-size: 16px; color: var(--mt-text); }

p {
  margin-top: 0;
  margin-bottom: 1.1rem;
}

p:last-child {
  margin-bottom: 0;
}

ul, ol {
  margin-top: 0;
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.35rem;
}

hr,
.wp-block-separator {
  border: 0;
  border-top: 1px solid var(--mt-border);
  margin: 2rem 0;
}

blockquote,
.wp-block-quote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--mt-gold);
  background: var(--mt-surface);
  font-style: italic;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--mt-nav-active);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  z-index: 9999;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

/* ==========================================================================
   4. Container & Abschnitte
   ========================================================================== */
.mt-container {
  width: 100%;
  max-width: var(--mt-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

.mt-section {
  padding-top: 40px;
  padding-bottom: 40px;
  background-color: var(--mt-bg);
}

.mt-section + .mt-section {
  padding-top: 24px;
}

.mt-section--compact {
  padding-top: 24px;
  padding-bottom: 24px;
}

.mt-section--spacious {
  padding-top: 56px;
  padding-bottom: 56px;
}

.mt-section--tinted {
  background-color: var(--mt-surface);
}

.mt-section--divider {
  border-top: 1px solid var(--mt-border);
}

/* Hero-Bereich mit originalem Hintergrundbild (Home, Impressum, Datenschutz) */
.mt-hero-section {
  position: relative;
  padding-top: 56px;
  padding-bottom: 56px;
  background-color: #ffffff;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)),
    url('assets/img/hero-bg.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50% 50%;
}

.mt-hero-section--slanted {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), 0 100%);
  padding-bottom: 76px;
}

.mt-hero-title-green,
.mt-hero-title-green strong {
  color: var(--mt-green) !important;
  font-size: 52px;
  line-height: 1.15;
}

.mt-hero-title-light {
  color: #ffffff !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

/* ==========================================================================
   5. Header & Hauptnavigation (Originalfarbe #ebae16)
   ========================================================================== */
.site-header {
  background-color: var(--mt-gold);
  color: var(--mt-text-header);
  position: relative;
  z-index: 100;
  border-bottom: 1px solid rgba(78, 55, 2, 0.12);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.site-branding {
  flex: 0 0 auto;
  width: 160px;
  max-width: 45vw;
}

.site-logo-link {
  display: block;
  text-decoration: none;
  line-height: 0;
}

.site-logo-img {
  width: 100%;
  height: auto;
  border-radius: 2px;
}

/* Pure-CSS Mobile Menu Toggle */
.nav-toggle-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-label {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(54, 60, 60, 0.35);
  border-radius: var(--mt-radius);
  color: var(--mt-text-header);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  user-select: none;
  background: rgba(255, 255, 255, 0.18);
}

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 20px;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  background-color: var(--mt-text-header);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav {
  flex: 1 1 auto;
}

.site-nav-list,
.site-nav > div > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 6px;
}

.site-nav li {
  margin: 0;
  position: relative;
}

.site-nav a {
  display: inline-block;
  padding: 7px 11px;
  font-family: var(--mt-font-body);
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--mt-text-header);
  text-decoration: none;
  border-radius: var(--mt-radius);
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background-color: var(--mt-nav-hover-bg);
  color: var(--mt-nav-active);
}

.site-nav .current-menu-item > a,
.site-nav .current_page_item > a,
.site-nav .current-menu-ancestor > a,
.site-nav .current_page_parent > a,
.site-nav a[aria-current="page"] {
  color: var(--mt-nav-active);
  background-color: var(--mt-nav-active-bg);
  font-weight: 600;
}

/* Submenus (falls im WP-Menü angelegt) */
.site-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: #ffffff;
  border: 1px solid var(--mt-border);
  border-radius: var(--mt-radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  list-style: none;
  padding: 6px;
  margin: 4px 0 0;
  z-index: 200;
}

.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu {
  display: block;
}

.site-nav .sub-menu a {
  display: block;
  width: 100%;
  color: var(--mt-text);
  white-space: normal;
  padding: 8px 12px;
}

.site-nav .sub-menu a:hover {
  background-color: var(--mt-surface);
  color: var(--mt-nav-active);
}

/* ==========================================================================
   6. Footer (Originalfarbe #ebae16 mit zentriertem 2x2-CMTK-Logo)
   ========================================================================== */
.site-footer {
  background-color: var(--mt-gold);
  color: var(--mt-text-header);
  padding-top: 28px;
  padding-bottom: 28px;
  margin-top: auto;
  border-top: 1px solid rgba(78, 55, 2, 0.12);
}

.site-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.footer-logo-link {
  display: block;
  width: 112px;
  max-width: 35vw;
  line-height: 0;
}

.footer-logo-img {
  width: 100%;
  height: auto;
  border-radius: 2px;
}

.footer-nav-list,
.footer-nav > div > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 8px;
}

.footer-nav li {
  margin: 0;
}

.footer-nav a {
  display: inline-block;
  padding: 5px 10px;
  color: var(--mt-text-header);
  font-size: 15px;
  text-decoration: none;
  border-radius: var(--mt-radius);
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  background-color: var(--mt-nav-hover-bg);
  color: var(--mt-nav-active);
}

.footer-nav .current-menu-item > a,
.footer-nav .current_page_item > a,
.footer-nav a[aria-current="page"] {
  color: var(--mt-nav-active);
  background-color: var(--mt-nav-active-bg);
  font-weight: 600;
}

/* ==========================================================================
   7. Gutenberg-Blöcke (Absätze, Überschriften, Spalten, Bilder, Galerien, Buttons)
   ========================================================================== */
.entry-content > *:last-child {
  margin-bottom: 0;
}

.has-text-align-center { text-align: center; }
.has-text-align-right  { text-align: right; }
.has-text-align-left   { text-align: left; }

.wp-block-group {
  width: 100%;
}

/* :where() damit spezialisierte Grid-Klassen nie überschrieben werden */
:where(.wp-block-columns) {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  margin-bottom: 1.5rem;
}

:where(.wp-block-columns.are-vertically-aligned-center) {
  align-items: center;
}

:where(.wp-block-column) {
  flex: 1 1 0;
  min-width: 0;
}

.wp-block-image {
  margin: 0 0 1.5rem;
}

.wp-block-image img {
  width: 100%;
  height: auto;
  border-radius: 2px;
}

.wp-block-image.aligncenter {
  text-align: center;
}

.wp-block-image.aligncenter img {
  margin-left: auto;
  margin-right: auto;
}

.wp-block-image.is-style-narrow img {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.wp-block-image.is-style-button-img img {
  width: auto;
  max-width: 200px;
}

.wp-block-image a {
  display: block;
}

.wp-block-image a:hover img {
  opacity: 0.92;
}

/* Galerien */
.wp-block-gallery {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 1.25rem 0 1.75rem;
}

.wp-block-gallery.columns-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wp-block-gallery.columns-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wp-block-gallery .wp-block-image {
  margin: 0;
  overflow: hidden;
  border-radius: 3px;
  background-color: var(--mt-surface);
}

.wp-block-gallery .wp-block-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.wp-block-gallery .wp-block-image:hover img {
  transform: scale(1.03);
}

/* Cover-Blöcke (z. B. dunkles Banner auf Radfahrer-Gottesdienst) */
.wp-block-cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  padding: 48px 20px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  color: #ffffff;
}

.wp-block-cover .wp-block-cover__image-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.wp-block-cover .wp-block-cover__background {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.wp-block-cover.mt-cover-light .wp-block-cover__background {
  background-color: rgba(255, 255, 255, 0.72);
}

.wp-block-cover .wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--mt-container);
  margin: 0 auto;
}

.wp-block-cover:not(.mt-cover-light) h1,
.wp-block-cover:not(.mt-cover-light) h2,
.wp-block-cover:not(.mt-cover-light) h3,
.wp-block-cover:not(.mt-cover-light) p {
  color: #ffffff;
}

/* Buttons (Originalfarbe #CB0F33) */
.wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 1rem 0 1.5rem;
}

.wp-block-buttons.is-content-justification-center {
  justify-content: center;
}

.wp-block-button__link,
.mt-btn {
  display: inline-block;
  padding: 11px 22px;
  background-color: var(--mt-red);
  color: #ffffff !important;
  font-family: var(--mt-font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  border: 2px solid var(--mt-red);
  border-radius: var(--mt-radius);
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.wp-block-button__link:hover,
.wp-block-button__link:focus-visible,
.mt-btn:hover,
.mt-btn:focus-visible {
  background-color: var(--mt-red-hover);
  border-color: var(--mt-red-hover);
  color: #ffffff !important;
}

.is-style-outline > .wp-block-button__link,
.mt-btn--outline {
  background-color: transparent;
  color: var(--mt-red) !important;
}

.is-style-outline > .wp-block-button__link:hover,
.mt-btn--outline:hover {
  background-color: var(--mt-red);
  color: #ffffff !important;
}

/* Tabellen */
.wp-block-table {
  margin: 1.5rem 0;
  overflow-x: auto;
}

.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
}

.wp-block-table th,
.wp-block-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--mt-border);
  text-align: left;
  vertical-align: top;
}

.wp-block-table th {
  background-color: var(--mt-surface);
  font-weight: 600;
  color: var(--mt-gold-dark);
}

/* DSGVO-freundliche Karten- & Video-Hinweisbox (kein automatischer Drittanbieter-Load) */
.mt-embed-card {
  background-color: var(--mt-surface);
  border: 1px solid var(--mt-border);
  border-left: 4px solid var(--mt-gold);
  border-radius: var(--mt-radius);
  padding: 20px 24px;
  margin: 1.25rem 0;
}

.mt-embed-card h3,
.mt-embed-card h4 {
  margin-bottom: 0.5rem;
}

.mt-embed-card p {
  margin-bottom: 0.85rem;
  font-size: 0.96rem;
}

.mt-embed-card .wp-block-buttons {
  margin-bottom: 0;
}

/* Terminliste auf Monatliche Treffs */
.mt-dates-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mt-dates-list li {
  padding: 7px 0;
  border-bottom: 1px solid var(--mt-border);
  margin: 0;
}

.mt-dates-list li:last-child {
  border-bottom: none;
}

/* ==========================================================================
   8. Blog- / Veranstaltungsberichte (home.php, single.php, index.php)
   ========================================================================== */
.mt-archive-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--mt-gold);
}

.mt-post-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.mt-post-card {
  background: var(--mt-bg);
  border: 1px solid var(--mt-border);
  border-radius: var(--mt-radius);
  padding: 24px;
  transition: box-shadow 0.2s ease;
}

.mt-post-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.mt-post-card-thumb {
  margin-bottom: 16px;
}

.mt-post-card-thumb img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 2px;
}

.mt-post-meta {
  font-size: 0.9rem;
  color: #6b7474;
  margin-bottom: 0.75rem;
}

.mt-post-card-title {
  margin-bottom: 0.5rem;
}

.mt-post-card-title a {
  color: var(--mt-gold-text);
  text-decoration: none;
}

.mt-post-card-title a:hover {
  text-decoration: underline;
}

.mt-single-header {
  margin-bottom: 1.75rem;
}

.mt-single-thumb {
  margin-bottom: 1.75rem;
}

.mt-single-nav {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--mt-border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.navigation.pagination {
  margin-top: 2rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-links .page-numbers {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--mt-border);
  border-radius: var(--mt-radius);
  text-decoration: none;
  color: var(--mt-text);
}

.nav-links .page-numbers.current {
  background-color: var(--mt-gold);
  border-color: var(--mt-gold);
  color: var(--mt-text-header);
  font-weight: 600;
}

/* ==========================================================================
   9. Responsive Design (Tablet & Smartphone)
   ========================================================================== */
@media (max-width: 960px) {
  h1 { font-size: 35px; }
  h2 { font-size: 29px; }
  h3 { font-size: 24px; }
  h4 { font-size: 20px; }
  h5 { font-size: 17px; }
  h6 { font-size: 15px; }

  .mt-hero-title-green,
  .mt-hero-title-green strong {
    font-size: 40px;
  }
}

@media (max-width: 820px) {
  .site-header-inner {
    flex-wrap: wrap;
  }

  .nav-toggle-label {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    flex-basis: 100%;
    padding-top: 12px;
    border-top: 1px solid rgba(78, 55, 2, 0.18);
  }

  .nav-toggle-checkbox:checked ~ .site-nav {
    display: block;
  }

  .site-nav-list,
  .site-nav > div > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .site-nav a {
    display: block;
    width: 100%;
    padding: 10px 12px;
    white-space: normal;
  }

  .site-nav .sub-menu {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    background: rgba(255, 255, 255, 0.25);
    margin: 2px 0 4px 12px;
  }

  :where(.wp-block-columns) {
    flex-wrap: wrap;
    flex-direction: column;
  }

  :where(.wp-block-column) {
    flex-basis: 100% !important;
  }

  .wp-block-gallery,
  .wp-block-gallery.columns-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mt-hero-title-green,
  .mt-hero-title-green strong {
    font-size: 34px;
    text-align: left;
  }

  .mt-hero-section {
    padding-top: 36px;
    padding-bottom: 40px;
  }
}

@media (max-width: 520px) {
  .wp-block-gallery,
  .wp-block-gallery.columns-2,
  .wp-block-gallery.columns-4 {
    grid-template-columns: 1fr;
  }

  .wp-block-gallery .wp-block-image img {
    height: auto;
    max-height: 320px;
  }
}
