/*
Theme Name: Bunten Mall
Theme URI: https://buntenmall.jp
Author: ぶんてんモール
Author URI: https://buntenmall.jp
Description: 前橋市文天周辺地域の生活情報サイト「ぶんてんモール」の公式WordPressテーマ。事業所ディレクトリ、アルバム、まなびやなどの機能を備えたモダンレスポンシブデザイン。
Version: 1.0.4
Requires at least: 6.0
Tested up to: 6.5
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: bunten-mall
Tags: business-directory, japanese, responsive, custom-post-types
*/

/* ============================================
   ぶんてんモール - Modern Responsive CSS
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Meiryo", system-ui, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fafafa;
}

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

a {
  color: #2e7d32;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #ff8f00;
}

ul, ol {
  list-style: none;
}

/* --- Container --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* --- Header --- */
.site-header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-logo img {
  height: 48px;
  width: auto;
}

.site-logo-text {
  display: flex;
  flex-direction: column;
}

.site-logo-text .site-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2e7d32;
  line-height: 1.2;
}

.site-logo-text .site-subtitle {
  font-size: 0.7rem;
  color: #888;
}

/* --- Navigation --- */
.main-nav ul {
  display: flex;
  gap: 0.25rem;
}

.main-nav a {
  display: block;
  padding: 0.5rem 0.5rem;
  color: #555;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  background: #e8f5e9;
  color: #2e7d32;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, #2e7d32 0%, #43a047 100%);
  color: #fff;
  padding: 3rem 1rem;
  text-align: center;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero .hero-subtitle {
  font-size: 1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

.hero .hero-domain {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.4rem 1.2rem;
  background: rgba(255,255,255,0.2);
  border-radius: 20px;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

/* --- Section Common --- */
.section {
  padding: 3rem 0;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2e7d32;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #e8f5e9;
}

.section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1.2em;
  background: #ff8f00;
  margin-right: 0.5rem;
  vertical-align: text-bottom;
  border-radius: 2px;
}

/* --- Category Cards --- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.category-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.category-card a {
  display: block;
  color: inherit;
}

.category-card .card-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.category-card .card-body {
  padding: 1rem;
}

.category-card .card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2e7d32;
  margin-bottom: 0.25rem;
}

.category-card .card-desc {
  font-size: 0.8rem;
  color: #777;
  line-height: 1.5;
}

/* --- Manabiya Banner --- */
.manabiya-banner {
  background: linear-gradient(135deg, #fff8e1 0%, #f1f8e9 100%);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.manabiya-banner img {
  width: 200px;
  border-radius: 8px;
}

.manabiya-banner .manabiya-content h3 {
  font-size: 1.25rem;
  color: #2e7d32;
  margin-bottom: 0.5rem;
}

.manabiya-banner .manabiya-content p {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.manabiya-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.manabiya-list a {
  font-size: 0.85rem;
  color: #555;
  padding: 0.2rem 0;
}

.manabiya-list a::before {
  content: ">";
  margin-right: 0.4rem;
  color: #ff8f00;
  font-weight: 700;
}

/* --- Sidebar Info (New / PickUp on Top) --- */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.info-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.info-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #ff8f00;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #fff3e0;
}

.info-card ul li {
  padding: 0.3rem 0;
  border-bottom: 1px solid #f5f5f5;
}

.info-card ul li:last-child {
  border-bottom: none;
}

.info-card ul li a {
  font-size: 0.875rem;
  color: #333;
}

.info-card ul li a:hover {
  color: #ff8f00;
}

/* --- Shop List (Category Page) --- */
.shop-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.shop-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.shop-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.shop-card a {
  display: flex;
  color: inherit;
}

.shop-card .shop-thumb {
  width: 120px;
  min-height: 100px;
  object-fit: cover;
  flex-shrink: 0;
}

.shop-card .shop-info {
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.shop-card .shop-name {
  font-size: 1rem;
  font-weight: 700;
  color: #2e7d32;
  margin-bottom: 0.25rem;
}

.shop-card .shop-address {
  font-size: 0.75rem;
  color: #999;
}

.shop-card .shop-tel {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.2rem;
}

/* --- Shop Detail Page --- */
.shop-detail {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.shop-detail-header {
  background: linear-gradient(135deg, #2e7d32 0%, #43a047 100%);
  color: #fff;
  padding: 1.5rem 2rem;
}

.shop-detail-header h1 {
  font-size: 1.5rem;
}

.shop-detail-body {
  padding: 2rem;
}

.shop-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.shop-photo img {
  border-radius: 8px;
  width: 100%;
}

.shop-comment {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.8;
}

.shop-data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}

.shop-data-table th,
.shop-data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #eee;
  text-align: left;
  font-size: 0.9rem;
}

.shop-data-table th {
  width: 100px;
  color: #2e7d32;
  font-weight: 600;
  background: #f9fbe7;
}

/* --- Form --- */
.form-section {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #555;
  font-size: 0.9rem;
}

.form-group label .required {
  color: #e53935;
  font-size: 0.75rem;
  margin-left: 0.3rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2e7d32;
  box-shadow: 0 0 0 3px rgba(46,125,50,0.1);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* --- Contact Form 7 スタイル --- */
.wpcf7 label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #555;
  font-size: 0.95rem;
}

.wpcf7 .required {
  color: #e53935;
  font-size: 0.75rem;
  margin-left: 0.3rem;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1.05rem;
  font-family: inherit;
  transition: border-color 0.2s;
  margin-bottom: 1.25rem;
  background: #fafafa;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: #2e7d32;
  box-shadow: 0 0 0 3px rgba(46,125,50,0.1);
  background: #fff;
}

.wpcf7 select {
  padding: 0.9rem 1.2rem;
  appearance: auto;
}

.wpcf7 textarea {
  min-height: 200px;
  resize: vertical;
}

.wpcf7 input[type="submit"] {
  display: inline-block;
  padding: 0.9rem 3rem;
  background: #2e7d32;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-top: 0.5rem;
}

.wpcf7 input[type="submit"]:hover {
  background: #1b5e20;
}

.wpcf7 input[type="submit"]:active {
  transform: scale(0.98);
}

.wpcf7-response-output {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
}

.wpcf7 p {
  margin-bottom: 0.25rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: #2e7d32;
  color: #fff;
}

.btn-primary:hover {
  background: #1b5e20;
}

.btn-secondary {
  background: #e0e0e0;
  color: #555;
}

.btn-secondary:hover {
  background: #bdbdbd;
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 0.75rem 0;
  font-size: 0.8rem;
  color: #999;
}

.breadcrumb a {
  color: #999;
}

.breadcrumb a:hover {
  color: #2e7d32;
}

.breadcrumb span {
  margin: 0 0.4rem;
}

/* --- Page Header --- */
.page-header {
  background: linear-gradient(135deg, #2e7d32 0%, #43a047 100%);
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
}

.page-header h1 {
  font-size: 1.75rem;
}

.page-header p {
  opacity: 0.85;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

/* --- Content Page --- */
.content-page {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-top: 1.5rem;
}

.content-page h2 {
  font-size: 1.25rem;
  color: #2e7d32;
  margin: 1.5rem 0 0.75rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid #e8f5e9;
}

.content-page h2:first-child {
  margin-top: 0;
}

.content-page p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.content-page ul {
  margin: 0.5rem 0 1rem 1.5rem;
  list-style: disc;
}

.content-page ul li {
  margin-bottom: 0.3rem;
}

/* --- Link List --- */
.link-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.link-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: #fafafa;
  border-radius: 8px;
  align-items: flex-start;
}

.link-item .link-name {
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.link-item .link-desc {
  color: #777;
  font-size: 0.875rem;
}

/* --- Sitemap List --- */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.sitemap-section h3 {
  font-size: 1rem;
  color: #2e7d32;
  font-weight: 700;
  margin-bottom: 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid #e8f5e9;
}

.sitemap-section ul {
  list-style: none;
  margin: 0;
}

.sitemap-section ul li {
  padding: 0.3rem 0;
}

.sitemap-section ul li a {
  font-size: 0.9rem;
}

.sitemap-section ul li a::before {
  content: ">";
  margin-right: 0.4rem;
  color: #ff8f00;
}

/* --- 50 List Table --- */
.list-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.list-table--50list th:nth-child(1),
.list-table--50list td:nth-child(1) { width: 32%; }

.list-table--50list th:nth-child(2),
.list-table--50list td:nth-child(2) { width: 23%; }

.list-table--50list th:nth-child(3),
.list-table--50list td:nth-child(3) { width: 30%; }

.list-table--50list th:nth-child(4),
.list-table--50list td:nth-child(4) { width: 15%; }

.list-table th,
.list-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
  text-align: left;
}

.list-table th {
  background: #e8f5e9;
  color: #2e7d32;
  font-weight: 600;
}

.list-table tr:hover {
  background: #f5f5f5;
}

/* --- Footer --- */
.site-footer {
  background: #263238;
  color: #cfd8dc;
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #455a64;
}

.footer-col ul li {
  padding: 0.25rem 0;
}

.footer-col ul li a {
  color: #90a4ae;
  font-size: 0.85rem;
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-col p {
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid #37474f;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: #78909c;
}

/* --- 404 Page --- */
.error-page {
  text-align: center;
  padding: 4rem 1rem;
}

.error-page h1 {
  font-size: 4rem;
  color: #2e7d32;
}

.error-page p {
  font-size: 1.1rem;
  color: #777;
  margin: 1rem 0 2rem;
}

/* --- Thanks Page --- */
.thanks-page {
  text-align: center;
  padding: 4rem 1rem;
}

.thanks-page h1 {
  font-size: 2rem;
  color: #2e7d32;
  margin-bottom: 1rem;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1023px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shop-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  /* Header */
  .hamburger {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 1rem;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav a {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f5f5f5;
  }

  .site-header {
    position: relative;
  }

  .header-inner {
    position: relative;
  }

  /* Hero */
  .hero {
    padding: 2rem 1rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  /* Categories */
  .category-grid {
    grid-template-columns: 1fr;
  }

  /* Info */
  .info-grid {
    grid-template-columns: 1fr;
  }

  /* Shop List */
  .shop-list {
    grid-template-columns: 1fr;
  }

  .shop-card a {
    flex-direction: column;
  }

  .shop-card .shop-thumb {
    width: 100%;
    height: 150px;
  }

  /* Manabiya */
  .manabiya-banner {
    flex-direction: column;
    text-align: center;
  }

  .manabiya-banner img {
    width: 100%;
    max-width: 300px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* Sitemap */
  .sitemap-grid {
    grid-template-columns: 1fr;
  }

  /* Shop Detail */
  .shop-detail-body {
    padding: 1rem;
  }

  /* Form */
  .form-section {
    padding: 1.25rem;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  /* Page Header */
  .page-header {
    padding: 1.5rem 1rem;
  }

  .page-header h1 {
    font-size: 1.35rem;
  }

  /* Content */
  .content-page {
    padding: 1.25rem;
  }

  /* Link items */
  .link-item {
    flex-direction: column;
    gap: 0.25rem;
  }

  .site-logo-text .site-name {
    font-size: 1.1rem;
  }
}

/* ============================================
   WordPress-Specific Styles
   ============================================ */

/* --- WordPress Admin Bar Compatibility --- */
body.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

@media screen and (max-width: 600px) {
  body.admin-bar .site-header {
    top: 0;
  }
}

/* --- Gallery Grid (Album Photos) --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.gallery-grid .gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.gallery-grid .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.gallery-grid .gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.3s ease;
}

.gallery-grid .gallery-item:hover::after {
  background: rgba(0,0,0,0.1);
}

/* WordPress default gallery override */
.wp-block-gallery,
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.wp-block-gallery .wp-block-image,
.gallery .gallery-item {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
}

.wp-block-gallery .wp-block-image img,
.gallery .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-caption {
  padding: 0.5rem;
  font-size: 0.8rem;
  color: #666;
  text-align: center;
  background: #f5f5f5;
}

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

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

/* --- Lightbox Overlay --- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.lightbox-close:hover {
  color: #ff8f00;
}

/* --- Pagination --- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.pagination a {
  background: #fff;
  color: #555;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.pagination a:hover {
  background: #e8f5e9;
  color: #2e7d32;
}

.pagination .current,
.pagination span.current {
  background: #2e7d32;
  color: #fff;
  box-shadow: 0 2px 8px rgba(46,125,50,0.3);
}

.pagination .dots {
  background: none;
  box-shadow: none;
  color: #999;
}

.pagination .prev,
.pagination .next {
  font-weight: 600;
}

/* WP default pagination override */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.nav-links a,
.nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.nav-links a {
  background: #fff;
  color: #555;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.nav-links a:hover {
  background: #e8f5e9;
  color: #2e7d32;
}

.nav-links .current {
  background: #2e7d32;
  color: #fff;
  box-shadow: 0 2px 8px rgba(46,125,50,0.3);
}

.nav-links .dots {
  background: none;
  box-shadow: none;
  color: #999;
}

/* --- WordPress Alignment Classes --- */
.alignleft {
  float: left;
  margin: 0.5rem 1.5rem 1rem 0;
}

.alignright {
  float: right;
  margin: 0.5rem 0 1rem 1.5rem;
}

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

.alignwide {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

img.alignleft,
img.alignright,
img.aligncenter {
  max-width: 100%;
  height: auto;
}

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

.wp-caption-text {
  font-size: 0.8rem;
  color: #777;
  text-align: center;
  padding: 0.5rem 0;
}

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

figure.wp-block-image figcaption {
  font-size: 0.8rem;
  color: #777;
  text-align: center;
  margin-top: 0.5rem;
}

/* --- Screen Reader Text --- */
.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 !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* --- WordPress Post/Page Content Styles --- */
.entry-content::after {
  content: "";
  display: table;
  clear: both;
}

.entry-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.entry-content h2 {
  font-size: 1.25rem;
  color: #2e7d32;
  margin: 1.5rem 0 0.75rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid #e8f5e9;
}

.entry-content h3 {
  font-size: 1.1rem;
  color: #333;
  margin: 1.25rem 0 0.5rem;
}

.entry-content ul,
.entry-content ol {
  margin: 0.5rem 0 1rem 1.5rem;
  list-style: disc;
}

.entry-content ol {
  list-style: decimal;
}

.entry-content li {
  margin-bottom: 0.3rem;
}

.entry-content blockquote {
  border-left: 4px solid #2e7d32;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  background: #f9fbe7;
  border-radius: 0 8px 8px 0;
}

.entry-content blockquote p:last-child {
  margin-bottom: 0;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.entry-content table th,
.entry-content table td {
  padding: 0.6rem 0.75rem;
  border: 1px solid #eee;
  font-size: 0.9rem;
}

.entry-content table th {
  background: #e8f5e9;
  color: #2e7d32;
  font-weight: 600;
}

/* --- Album Gallery Grid --- */
.album-gallery-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.album-gallery-grid a {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #eee;
  transition: transform 0.2s, box-shadow 0.2s;
}

.album-gallery-grid a:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.album-gallery-grid img {
  max-width: 100%;
  height: auto;
}

.album-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  background: #f5f5f5;
  border-radius: 8px;
  font-size: 0.9rem;
}

.album-title {
  font-size: 1.5rem;
  color: #2e7d32;
  margin-bottom: 1rem;
}

.album-content {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* --- Brown Page Header Variant --- */
.page-header--brown {
  background: linear-gradient(135deg, #4e342e 0%, #6d4c41 100%);
}

/* --- Post Navigation --- */
.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.post-navigation a {
  font-size: 0.9rem;
}

/* --- Post Meta --- */
.post-meta {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 1rem;
}

@media (max-width: 767px) {
  .album-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .album-gallery-grid img {
    height: 150px;
  }
}
