/* ── BLOG / JOURNAL ARCHIVE ──────────────────────────────────── */
.blog-header {
  padding: 72px 0 32px;
}

.blog-header h1 {
  font-family: var(--f-italiana);
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: 0.03em;
  line-height: 1;
  margin-top: 10px;
  color: var(--ink);
}

/* Filter bar + search on one line */
.blog-filterbar {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  background: var(--bone);
  z-index: 10;
}

.blog-filterbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.journal-filter {
  display: flex;
  gap: 0;
  overflow: visible;
}

.filter-btn {
  font-family: var(--f-sans);
  text-transform: uppercase; /* Bebas was caps-only */
  font-size: 11px;
  letter-spacing: 0.135em;
  padding: 14px 18px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--mid);
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  text-decoration: none;
  white-space: nowrap;
  display: inline-block;
}

.filter-btn.active,
.filter-btn:hover {
  color: var(--ink);
  border-bottom-color: var(--green);
}

/* Inline search */
.blog-search-inline {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.blog-search-input {
  width: 140px;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  outline: none;
  padding: 4px 6px;
  font-family: var(--f-cg);
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  transition: border-color 0.2s, width 0.3s ease;
}

.blog-search-input:focus {
  border-bottom-color: var(--ink);
  width: 200px;
}

.blog-search-input::placeholder {
  color: rgba(0, 0, 0, 0.3);
}

.blog-search-btn {
  background: none;
  border: none;
  padding: 4px 6px;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.blog-search-btn:hover {
  color: var(--ink);
}

/* Search results label */
.journal-search-results-label {
  font-family: var(--f-sans);
  font-size: 11px;
  letter-spacing: 0.135em;
  color: var(--mid);
  text-transform: uppercase;
  margin-bottom: 32px;
}

/* Blog post grid — TeriB-style: centered, narrower, more air */
.blog-section {
  padding-top: 64px;
  padding-bottom: 80px;
}

.blog-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 40px;
}

.journal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px 48px;
}

.journal-post {
  display: block;
  text-decoration: none;
}

.journal-post-img-wrap {
  display: block;
  overflow: hidden;
}

.journal-post-img {
  width: 100%;
  height: auto; /* the <img height> attribute otherwise beats aspect-ratio */
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.journal-post-img-wrap:hover .journal-post-img {
  transform: scale(1.02);
}

.journal-post-body {
  padding-top: 14px;
}

/* Meta row: category + tags on same line */
.journal-post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.journal-post-cat {
  font-family: var(--f-sans);
  text-transform: uppercase; /* Bebas was caps-only */
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--green);
  text-decoration: none;
  transition: color 0.15s;
}

.journal-post-cat:hover {
  color: var(--ink);
}

.journal-post-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.journal-post-tag {
  font-family: var(--f-sans);
  text-transform: uppercase; /* Bebas was caps-only */
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--mid);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 2px 8px;
  text-decoration: none;
  transition: all 0.15s;
}

.journal-post-tag:hover,
.journal-post-tag.active {
  color: var(--ink);
  border-color: rgba(0, 0, 0, 0.3);
}

.journal-post-title {
  font-family: var(--f-italiana);
  font-size: clamp(18px, 2vw, 23px);
  letter-spacing: 0.03em;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.15;
}

.journal-post-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.journal-post-title a:hover {
  color: var(--green);
}

.journal-post-excerpt {
  font-family: var(--f-cg);
  font-size: 15px;
  line-height: 1.8;
  color: rgba(0, 0, 0, 0.5);
  margin-bottom: 10px;
}

/* ── ADVANCED FILTER PANEL ───────────────────────────────────── */
.blog-filters {
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  padding-bottom: 24px;
}

.blog-filters-toggle {
  font-family: var(--f-sans);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--mid);
  background: none;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}

.blog-filters-toggle:hover,
.blog-filters-toggle[aria-expanded="true"] {
  color: var(--ink);
  border-color: rgba(0, 0, 0, 0.3);
}

.blog-filters-arrow {
  display: inline-block;
  transition: transform 0.2s;
}

.blog-filters-toggle[aria-expanded="true"] .blog-filters-arrow {
  transform: rotate(180deg);
}

.blog-filters-panel {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blog-filters-panel[hidden] {
  display: none;
}

.blog-filter-group {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.blog-filter-label {
  font-family: var(--f-sans);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--mid);
  text-transform: uppercase;
  white-space: nowrap;
  padding-top: 5px;
  min-width: 88px;
}

.blog-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.blog-pill {
  font-family: var(--f-sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--mid);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 4px 10px;
  text-decoration: none;
  transition: all 0.15s;
  text-transform: uppercase;
}

.blog-pill:hover,
.blog-pill.active {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

/* ── WEDDING INFO TABLE ──────────────────────────────────────── */
.wi-table {
  border: 1px solid rgba(0, 0, 0, 0.09);
  margin-bottom: 36px;
}

.wi-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.wi-row:last-child {
  border-bottom: none;
}

.wi-label {
  font-family: var(--f-sans);
  text-transform: uppercase; /* Bebas was caps-only */
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--green);
  padding: 11px 14px;
  background: rgba(0, 0, 0, 0.025);
  display: flex;
  align-items: center;
  border-right: 1px solid rgba(0, 0, 0, 0.07);
}

.wi-value {
  font-family: var(--f-cg);
  font-size: 16px;
  color: var(--ink-soft);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  line-height: 1.5;
}

/* ── SINGLE POST LEDE ────────────────────────────────────────── */
.post-body--top {
  padding-top: 48px;
}

/* Post footer nav */
.post-footer {
  padding: 48px 0 72px;
  max-width: 680px;
  margin: 0 auto;
}

/* ── SINGLE POST ─────────────────────────────────────────────── */
.post-header {
  padding: 64px 0 48px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.post-header .eyebrow {
  margin-bottom: 18px;
}

.post-header h1 {
  font-family: var(--f-italiana);
  font-size: clamp(30px, 3.6vw, 44px);
  letter-spacing: 0.03em;
  line-height: 1.05;
  margin-bottom: 18px;
}

.post-subtitle {
  font-family: var(--f-cg);
  font-style: italic;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.5;
  color: var(--mid);
  max-width: 560px;
  margin: -6px auto 18px;
}

.post-header .caption-meta {
  display: block;
  margin-top: 12px;
}

.post-hero-img {
  width: 100%;
  max-height: 60vh;
  object-fit: cover;
  display: block;
  margin-bottom: 56px;
}

.post-body {
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  /* width available to bleed images/galleries: keeps growing with the
     viewport on large screens (fixed 80px side margin) instead of
     capping at the text container's max-width */
  --bleed-w: min(92vw, calc(100vw - 160px));
}

.post-body p {
  font-family: var(--f-cg);
  font-size: 18px;
  line-height: 1.9;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.post-body h2 {
  font-family: var(--f-italiana);
  font-size: clamp(24px, 2.8vw, 34px);
  margin-top: 40px;
  margin-bottom: 16px;
}

.post-body h3 {
  font-family: var(--f-cg);
  font-weight: 500;
  font-size: 20px;
  margin-top: 32px;
  margin-bottom: 12px;
}

.post-body blockquote {
  font-family: var(--f-cg);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.5;
  color: var(--ink-soft);
  border-left: 2px solid var(--green);
  padding-left: 20px;
  margin: 28px 0;
}

.post-body img,
.post-body figure {
  width: 100%;
  display: block;
  margin: 32px 0;
}

/* Images and galleries in post content bleed wider than the text column,
   using --bleed-w (viewport width capped at the site container) so they
   never cross the container's own side margin. */
.post-body > img,
.post-body > figure {
  width: var(--bleed-w);
  margin-left: calc((100% - var(--bleed-w)) / 2);
}

/* Gallery blocks inside the article (2 across, or 3-across grid), bleeding like images.
   The theme's figure rule above would otherwise stack them at full width. */
.post-body .wp-block-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: var(--bleed-w);
  margin: 32px 0 32px calc((100% - var(--bleed-w)) / 2);
}

.post-body .wp-block-gallery figure.wp-block-image {
  display: flex;
  margin: 0;
  width: auto;
  flex: 0 0 calc((100% - 24px) / 3);
}

/* exactly two photos: side by side */
.post-body .wp-block-gallery figure.wp-block-image:first-child:nth-last-child(2),
.post-body .wp-block-gallery figure.wp-block-image:nth-child(2):last-child {
  flex-basis: calc((100% - 12px) / 2);
}

.post-body .wp-block-gallery figure.wp-block-image img {
  flex: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}

/* the gallery sits inside a Columns block: let the column hold the full bleed width */
.post-body .wp-block-columns { display: block; }
.post-body .wp-block-column { flex-basis: auto !important; }

@media (max-width: 700px) {
  .post-body .wp-block-gallery { width: 100%; margin-left: 0; gap: 8px; }
  .post-body .wp-block-gallery figure.wp-block-image { flex-basis: calc((100% - 8px) / 2); }
}

.post-body a {
  color: var(--green);
  border-bottom: 1px solid rgba(154, 124, 105, 0.3);
  transition: border-color 0.2s;
}

.post-body a:hover {
  border-color: var(--green);
}

/* Post navigation */
.post-nav {
  display: flex;
  justify-content: space-between;
  padding: 48px 0 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  margin-top: 64px;
}

.post-nav a {
  font-family: var(--f-cg);
  font-style: italic;
  font-size: 16px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: all 0.2s;
}

.post-nav a:hover {
  color: var(--green);
  border-color: var(--green);
}

/* Blog pagination */
.nav-links {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.page-numbers {
  font-family: var(--f-sans);
  text-transform: uppercase; /* Bebas was caps-only */
  font-size: 12px;
  letter-spacing: 0.105em;
  color: var(--mid);
  padding: 8px 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.18s;
}

.page-numbers.current,
.page-numbers:hover {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 860px) {
  .blog-container {
    padding: 0 24px;
  }

  .blog-filterbar-inner {
    flex-wrap: wrap;
    gap: 0;
  }

  .blog-search-inline {
    padding: 10px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    width: 100%;
  }

  .blog-search-input {
    width: 100%;
    flex: 1;
  }

  .blog-search-input:focus {
    width: 100%;
  }

  .journal-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .post-header {
    text-align: left;
    padding: 40px 20px 32px;
  }

  .post-nav {
    flex-direction: column;
    gap: 16px;
  }

  /* Post body/gallery containers: less side margin on mobile so content uses more width */
  .single-post .container {
    padding: 0 20px;
  }

  .post-body p {
    line-height: 1.55;
  }

  .post-body > img,
  .post-body > figure {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }

  .blog-filter-group {
    flex-direction: column;
    gap: 8px;
  }

  .blog-filter-label {
    min-width: unset;
    padding-top: 0;
  }
}

/* ── GALLERY TEMPLATES ───────────────────────────────────────── */

/* Shared caption */
.gal-cap {
  font-family: var(--f-cg);
  font-style: italic;
  font-size: 15px;
  color: var(--mid);
  text-align: center;
  padding: 8px 0 0;
  line-height: 1.5;
}

/* ── Cinematic Full-Bleed ── */
.gal-cinematic {
  margin-top: 64px;
}

.gal-cin-frame {
  overflow: hidden;
  margin-bottom: 4px;
  display: block;
}

.gal-cin-frame img {
  width: 100%;
  max-height: 80vh;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.gal-cin-frame:hover img {
  transform: scale(1.015);
}

.gal-cin-cap {
  font-family: var(--f-cg);
  font-style: italic;
  font-size: 15px;
  color: var(--mid);
  text-align: right;
  padding: 6px 24px 24px;
  line-height: 1.5;
}

/* ── Masonry ── */
.gal-masonry {
  margin-top: 64px;
  padding: 0 24px;
}

.gal-masonry-grid {
  columns: 3;
  column-gap: 6px;
}

.gal-masonry-item {
  break-inside: avoid;
  margin-bottom: 6px;
  overflow: hidden;
  display: block;
}

.gal-masonry-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.gal-masonry-item:hover img {
  transform: scale(1.03);
}

/* ── Classic Grid ── */
.gal-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 0 24px;
}

.gal-grid-item {
  overflow: hidden;
  display: block;
}

.gal-grid-item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

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

/* ── Slideshow ── */
.gal-slideshow {
  position: relative;
  margin-top: 64px;
  background: var(--ink);
  overflow: hidden;
  user-select: none;
}

.gal-ss-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.gal-ss-slide {
  min-width: 100%;
  position: relative;
}

.gal-ss-slide img {
  width: 100%;
  height: 60vh;
  object-fit: cover;
  display: block;
}

.gal-ss-cap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
  padding: 28px 32px 16px;
  font-family: var(--f-cg);
  font-style: italic;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.gal-ss-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 15, 13, 0.45);
  color: var(--white);
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}

.gal-ss-btn:hover {
  background: var(--green);
}

.gal-ss-prev { left: 16px; }
.gal-ss-next { right: 16px; }

.gal-ss-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.gal-ss-dot {
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.gal-ss-dot.on {
  background: var(--green-lt, #C3A18C);
}

/* ── Split Screen ── */
.gal-split {
  margin-top: 64px;
  max-width: 1060px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

.gal-split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 56px;
}

.gal-split-row.flip {
  direction: rtl;
}

.gal-split-row.flip > * {
  direction: ltr;
}

.gal-split-img {
  overflow: hidden;
  margin: 0;
}

.gal-split-img img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.gal-split-img:hover img {
  transform: scale(1.02);
}

.gal-split-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gal-split-cap {
  font-family: var(--f-italiana);
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: 0.03em;
  color: var(--ink);
  line-height: 1.15;
  margin: 0;
}

.gal-split-desc {
  font-family: var(--f-cg);
  font-size: 18px;
  line-height: 1.9;
  color: rgba(0, 0, 0, 0.5);
  margin: 0;
}

.gal-split-img-secondary {
  overflow: hidden;
  margin: 0;
}

.gal-split-img-secondary img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.gal-split-img-secondary:hover img {
  transform: scale(1.02);
}

/* ── Scrapbook ── */
.gal-scrapbook {
  margin-top: 64px;
  position: relative;
  width: 100%;
}

.gal-scrapbook-item {
  background: var(--white);
  padding: 8px 8px 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gal-scrapbook-item:hover {
  transform: rotate(0deg) scale(1.04) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  z-index: 10;
}

.gal-scrapbook-item img {
  width: 100%;
  display: block;
}

.gal-scrapbook-item .gal-cap {
  text-align: left;
  padding: 6px 2px 0;
}

/* ── Gallery responsive ── */
@media (max-width: 860px) {
  .gal-masonry-grid {
    columns: 2;
  }

  .gal-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 16px;
  }

  .gal-split-row,
  .gal-split-row.flip {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 24px;
  }

  .gal-ss-slide img {
    height: 50vw;
  }
}
