/*
Theme Name: Mert Overcash — Cartridge Edition
Theme URI: https://example.com/mert-overcash
Author: Custom
Author URI: https://example.com
Description: A dark-header, olive-card editorial theme for essays and field notes, with a Game Boy Pocket cartridge-nav header. "modding the art canon."
Version: 2.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: mert-overcash
*/

/* -------------------------------------------------------
   Fonts — self-hosted (no external requests, no FOUT/FOIT
   fallback flicker). Files live in /assets/fonts/. See
   assets/fonts/ADD-THESE-TWO-FONTS.txt for the two new ones.
------------------------------------------------------- */

@font-face {
  font-family: "Playfair Display";
  src: url("assets/fonts/playfair-display-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("assets/fonts/playfair-display-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("assets/fonts/playfair-display-latin-500-italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "EB Garamond";
  src: url("assets/fonts/eb-garamond-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "EB Garamond";
  src: url("assets/fonts/eb-garamond-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "EB Garamond";
  src: url("assets/fonts/eb-garamond-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Audiowide";
  src: url("assets/fonts/audiowide-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bungee";
  src: url("assets/fonts/bungee-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Game Boy Pocket silver plastic device — matte champagne finish */
  --moc-header-bg: #0f0f0f;
  --moc-header-bg-2: #1a1a1a;
  --moc-cream: #f8f8f8;
  --moc-tan: #e2e2e2;
  --moc-nav-text: #b0b0b0;
  --moc-divider: #2a2a2a;
  --moc-accent: #3a3a3a;

  /* Silver Game Boy Pocket plastic body — champagne-to-gray gradient */
  --moc-body-bg-top: #e5e5e5;
  --moc-body-bg-mid: #d8d8d8;
  --moc-body-bg-bottom: #c8c8c8;
  --moc-body-shadow-dark: #a0a0a0;
  --moc-outer-card: #d9d9d9;
  --moc-outer-border: #888888;
  --moc-inner-card: #e8e8e8;
  --moc-inner-card-border: #a0a0a0;

  /* Enhanced shadows for plastic depth and metallic light */
  --moc-inner-shadow: rgba(0, 0, 0, 0.12);
  --moc-highlight-shadow: rgba(255, 255, 255, 0.35);
  --moc-depth-shadow: rgba(0, 0, 0, 0.3);
  --moc-gloss-light: rgba(255, 255, 255, 0.25);

  /* Text colors for contrast on silver */
  --moc-title-dark: #1a1a1a;
  --moc-meta-gray: #555555;
  --moc-body-text: #252525;
  --moc-link: #2d5a80;

  --moc-font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --moc-font-body-serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --moc-font-mono: "JetBrains Mono", "IBM Plex Mono", "Courier New", monospace;
  --moc-font-brand: "Audiowide", sans-serif;
  --moc-font-cart: "Bungee", cursive;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px; /* fixed baseline so rem sizing can't be skewed by a host theme/plugin resetting the root font-size */
}

body {
  margin: 0;
  padding: 0;
  /* Game Boy Pocket silver plastic — brushed metallic finish */
  background:
    /* Main metallic gradient */
    linear-gradient(
      to bottom,
      #f0f0f0 0%,
      #e5e5e5 8%,
      #d8d8d8 20%,
      #d0d0d0 35%,
      #c8c8c8 50%,
      #d0d0d0 65%,
      #d8d8d8 80%,
      #e0e0e0 95%,
      #dcdcdc 100%
    );
  background-attachment: fixed;
  min-height: 100vh;
  font-family: var(--moc-font-body-serif);
  color: var(--moc-body-text);
  position: relative;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    /* Brushed metal texture — diagonal lines */
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.02) 2px,
      rgba(0, 0, 0, 0.02) 4px
    ),
    /* Horizontal shine lines */
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 60px,
      rgba(255, 255, 255, 0.05) 60px,
      rgba(255, 255, 255, 0.05) 62px,
      transparent 62px,
      transparent 120px
    ),
    /* Vertical grain */
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 1px,
      rgba(0, 0, 0, 0.015) 1px,
      rgba(0, 0, 0, 0.015) 2px
    );
  pointer-events: none;
  z-index: 0;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Radial light reflection like physical plastic */
  background: radial-gradient(
    ellipse 200% 150% at 50% 0%,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.05) 20%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--moc-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* -------------------------------------------------------
   Header — silver body plastic, no border of its own.
   The "ID sticker" (site title/tagline) and the cartridge
   bay (nav) are the only elements that read as separate
   physical objects sitting on top of it.
------------------------------------------------------- */

.site-header {
  position: relative;
  padding: 34px 30px 10px 30px;
  z-index: 1;
}

.id-plate {
  background: linear-gradient(160deg, #f0f0f0 0%, #e4e4e4 100%);
  border: 1px solid #8a8a8a;
  border-radius: 2px;
  padding: 14px 16px 10px 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 2px 5px rgba(0, 0, 0, 0.18);
  max-width: 440px;
  margin: 0 auto;
}

.id-plate .brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: 1.5px solid #3a3a3a;
  padding-bottom: 8px;
  margin-bottom: 6px;
}

.id-plate .site-title {
  margin: 0;
  font-family: var(--moc-font-brand);
  font-style: italic;
  font-size: 1.4rem;
  color: #1a1a1a;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.id-plate .site-title a {
  color: inherit;
  text-decoration: none;
}

.id-plate .site-title .cap {
  font-size: 1.35em;
}

.id-plate .tagline-badge {
  font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.9rem;
  color: #f0f0f0;
  background: #1a1a1a;
  padding: 4px 12px 4px 12px;
  border-radius: 10px;
}

.id-plate .meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.id-plate .model-no,
.id-plate .copyright {
  font-family: var(--moc-font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.02em;
  color: #555;
}

.cart-bay {
  position: relative;
  margin: 30px 4px 0 4px;
  background: linear-gradient(180deg, #2c2c2c 0%, #1c1c1c 100%);
  border-radius: 8px 8px 0 0;
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.6);
  padding: 14px 18px 0 18px;
}

.screw {
  position: absolute;
  top: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e8e8e8, #8a8a8a 70%);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
}

.screw::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 1px;
  background: #5a5a5a;
  transform: translate(-50%, -50%) rotate(35deg);
}

.screw.left { left: 8px; }
.screw.right { right: 8px; }

.cart-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding-bottom: 14px;
  list-style: none;
  margin: 0;
}

.cart-well {
  min-width: 84px;
  width: auto;
  height: 36px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(180deg, #2c2c2c 0%, #1c1c1c 100%);
  border-radius: 3px 3px 0 0;
}

.cart-nav a {
  display: block;
  text-decoration: none;
}

.cart-body {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, #d4d4d4 0%, #c2c2c2 55%, #b4b4b4 100%);
  border: 1px solid #8f8f8f;
  border-radius: 3px 9px 2px 2px;
  padding: 5px 5px 8px 5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -2px 3px rgba(0, 0, 0, 0.12);
  transform: translateY(0);
  transition: transform 0.18s ease;
}

.cart-label {
  font-family: var(--moc-font-cart);
  font-size: 0.5rem;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  padding: 7px 6px 5px 6px;
  border-radius: 2px;
  background: #ece7d8;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.12);
  white-space: nowrap;
}

.a1 .cart-label { color: #5b6b3a; border-bottom: 3px solid #8fae4f; }
.a2 .cart-label { color: #8a4a1e; border-bottom: 3px solid #d68a3a; }
.a3 .cart-label { color: #2f5c8a; border-bottom: 3px solid #5a9fd6; }
.a4 .cart-label { color: #555;    border-bottom: 3px solid #999; }
.a5 .cart-label { color: #6b3a5b; border-bottom: 3px solid #a35a8a; }

.cart-ridges {
  height: 4px;
  margin: 6px 3px 0 3px;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.15) 0 2px, transparent 2px 4px);
}

.cart-nav a:hover .cart-body { transform: translateY(9px); }
.cart-nav a.is-active .cart-body { transform: translateY(19px); }

.title-screen {
  max-width: 130px;
  margin: -8px auto 0 auto;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #aab89a 0%, #9fae8e 100%);
  border: 1px solid #6f7a63;
  border-radius: 4px;
  padding: 16px 10px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.title-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.04) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.04) 0 1px, transparent 1px 4px);
  pointer-events: none;
}

.title-screen span {
  position: relative;
  font-family: var(--moc-font-mono);
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: #33421f;
  text-transform: uppercase;
}

/* -------------------------------------------------------
   Content wrapper (Game Boy Pocket plastic bezel/frame)
------------------------------------------------------- */

.site-content-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 40px 40px 80px 40px;
  position: relative;
  z-index: 1;
}

.outer-card {
  /* Game Boy Pocket plastic bezel — champagne to gray */
  background: linear-gradient(135deg, #e0e0e0 0%, #d5d5d5 25%, #c8c8c8 50%, #bfbfbf 75%, #b8b8b8 100%);
  border: 3px solid #707070;
  border-radius: 32px;
  box-shadow:
    /* Outer drop shadow — plastic depth */
    0 28px 80px rgba(0, 0, 0, 0.35),
    /* Outer edge highlight */
    0 -1px 0 rgba(255, 255, 255, 0.4) inset,
    /* Top inset light */
    inset 0 3px 8px rgba(255, 255, 255, 0.35),
    /* Bottom inset shadow */
    inset 0 -4px 12px rgba(0, 0, 0, 0.25),
    /* Inner depth shadow */
    inset 0 0 40px rgba(0, 0, 0, 0.08),
    /* Far outer shadow for 3D depth */
    0 60px 120px rgba(0, 0, 0, 0.15);
  padding: 22px;
  backdrop-filter: blur(0.5px);
  position: relative;
}

/* -------------------------------------------------------
   Posts (Game Boy Pocket content cards)
------------------------------------------------------- */

.post-card {
  /* Content area with subtle Game Boy LCD green tint */
  background: linear-gradient(135deg, #f2f7f2 0%, #e8f0e8 40%, #e0ebe0 100%);
  border: 2px solid #888888;
  border-radius: 18px;
  box-shadow:
    /* Inset top light */
    inset 0 2px 4px rgba(255, 255, 255, 0.6),
    /* Inset bottom shadow */
    inset 0 -3px 8px rgba(0, 0, 0, 0.12),
    /* Subtle inner depth */
    inset 0 0 12px rgba(0, 0, 0, 0.06),
    /* Outer shadow for depth */
    0 12px 32px rgba(0, 0, 0, 0.22),
    /* Fine border definition */
    0 0 0 1px rgba(0, 0, 0, 0.08);
  padding: 36px 42px;
  position: relative;
  z-index: 2;
}

.post-card + .post-card {
  margin-top: 24px;
}

.post-card-header {
  margin-bottom: 22px;
}

.post-eyebrow-title {
  margin: 0 0 10px 0;
  font-family: var(--moc-font-mono);
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--moc-title-dark);
  line-height: 1.35;
}

.post-eyebrow-title a {
  color: inherit;
  text-decoration: none;
}

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

.post-meta {
  font-family: var(--moc-font-mono);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  color: var(--moc-meta-gray);
}

.post-meta .sep {
  margin: 0 6px;
  opacity: 0.7;
}

.post-content,
.entry-content {
  font-family: var(--moc-font-body-serif);
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--moc-body-text);
}

.post-content p,
.entry-content p {
  margin: 0 0 1.1em 0;
}

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

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: var(--moc-font-serif);
  color: var(--moc-title-dark);
}

.entry-content blockquote {
  margin: 1.4em 0;
  padding-left: 1.2em;
  border-left: 3px solid var(--moc-accent);
  font-style: italic;
  color: #3a3a2e;
}

.entry-content a {
  color: var(--moc-link);
  text-decoration: underline;
}

.entry-content img {
  border-radius: 8px;
  margin: 1.2em 0;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.4em;
}

/* -------------------------------------------------------
   Archive / page titles, pagination, no posts
------------------------------------------------------- */

.archive-title,
.page-title {
  font-family: var(--moc-font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
  color: var(--moc-title-dark);
  margin: 4px 8px 18px 8px;
}

.no-posts {
  font-family: var(--moc-font-body-serif);
  color: var(--moc-body-text);
  padding: 10px 8px;
}

.moc-pagination {
  margin-top: 28px;
  padding: 0 8px;
  display: flex;
  gap: 18px;
  font-family: var(--moc-font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--moc-title-dark);
}

.moc-pagination a {
  color: var(--moc-title-dark);
}

/* -------------------------------------------------------
   Comments (kept simple, on-brand)
------------------------------------------------------- */

.comments-area {
  margin-top: 24px;
  padding: 28px 8px 0 8px;
  font-family: var(--moc-font-body-serif);
}

.comments-title {
  font-family: var(--moc-font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  color: var(--moc-title-dark);
}

/* -------------------------------------------------------
   Blog Comments Preview (on index/archive pages)
------------------------------------------------------- */

.blog-comments-preview {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-family: var(--moc-font-body-serif);
}

.blog-comments-title {
  font-family: var(--moc-font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  color: var(--moc-title-dark);
  margin-bottom: 16px;
  font-weight: 600;
}

.blog-comments-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.blog-comment {
  padding: 12px 0;
  font-size: 0.95rem;
  line-height: 1.5;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.blog-comment:last-child {
  border-bottom: none;
}

.blog-comment-author {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.blog-comment-author strong {
  color: var(--moc-title-dark);
  font-weight: 600;
}

.blog-comment-date {
  font-family: var(--moc-font-mono);
  font-size: 0.8rem;
  color: var(--moc-meta-gray);
  letter-spacing: 0.02em;
}

.blog-comment-text {
  color: var(--moc-body-text);
  word-break: break-word;
}

.blog-comment-text p {
  margin: 0.6em 0;
}

.blog-comment-text p:first-child {
  margin-top: 0;
}

.blog-comment-text p:last-child {
  margin-bottom: 0;
}

.blog-comments-more {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.blog-comments-more a {
  font-family: var(--moc-font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--moc-link);
  text-decoration: none;
}

.blog-comments-more a:hover {
  text-decoration: underline;
}

/* -------------------------------------------------------
   Footer easter egg — battery cover + phones/DC 3V IN
------------------------------------------------------- */

.moc-footer-egg {
  margin-top: 6px;
  padding: 6px 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.batt-cover {
  width: 100%;
  max-width: 520px;
  height: 46px;
  background: linear-gradient(160deg, #c6c6c6 0%, #b4b4b4 100%);
  border: 1px solid #8a8a8a;
  border-radius: 5px;
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.4), inset 0 -3px 5px rgba(0, 0, 0, 0.15);
  position: relative;
}

.batt-cover::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  transform: translateX(-50%);
  width: 26px;
  height: 9px;
  background: linear-gradient(180deg, #9a9a9a, #7a7a7a);
  border-radius: 0 0 3px 3px;
}

.phones-row {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--moc-font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  color: #9a9a9a;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5), 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.headphone-icon {
  position: relative;
  width: 16px;
  height: 13px;
  margin-right: 2px;
}

.headphone-icon .band {
  position: absolute;
  top: 0;
  left: 2px;
  right: 2px;
  height: 8px;
  border: 2px solid #9a9a9a;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}

.headphone-icon .cup {
  position: absolute;
  bottom: 0;
  width: 5px;
  height: 6px;
  border-radius: 2px;
  background: #9a9a9a;
}

.headphone-icon .cup.left { left: 0; }
.headphone-icon .cup.right { right: 0; }

/* -------------------------------------------------------
   Footer (Game Boy Pocket bottom bezel)
------------------------------------------------------- */

.site-footer {
  background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
  padding: 32px 40px;
  box-shadow:
    inset 0 2px 6px rgba(255, 255, 255, 0.08),
    inset 0 -2px 8px rgba(0, 0, 0, 0.5);
  border-top: 3px solid #505050;
}

.site-footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  font-family: var(--moc-font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a8a8a8;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* -------------------------------------------------------
   Responsive
------------------------------------------------------- */

@media (max-width: 720px) {
  .site-content-wrap {
    padding-left: 20px;
    padding-right: 20px;
  }

  .site-content-wrap {
    padding-top: 24px;
  }

  .post-card {
    padding: 26px 22px;
  }

  .site-header {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* -------------------------------------------------------
   Image carousel (for use inside post content)
------------------------------------------------------- */

.moc-carousel-wrap {
  position: relative;
  margin: 1em 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.moc-carousel {
  display: flex;
  gap: 0;
  overflow-x: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  padding-bottom: 6px;
}

.moc-carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  margin: 0;
}

.moc-carousel-slide img {
  width: 100%;
  border-radius: 8px;
  border: 2px solid #888888;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.4), inset 0 -2px 6px rgba(0, 0, 0, 0.12);
  margin: 0;
}

.moc-carousel-slide figcaption {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-family: var(--moc-font-mono);
  font-size: 0.78rem;
  font-style: normal;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: var(--moc-meta-gray);
  text-align: center;
}

/* Standalone image captions (classic .wp-caption and block-editor
   figure/figcaption), matched to the carousel caption style above. */
.entry-content .wp-caption-text,
.entry-content figure.wp-block-image figcaption {
  margin-top: 8px;
  font-family: var(--moc-font-mono);
  font-size: 0.8rem;
  font-style: italic;
  color: var(--moc-meta-gray);
}

.entry-content .wp-caption-text a,
.entry-content figure.wp-block-image figcaption a {
  color: var(--moc-link);
  text-decoration: underline;
}

/* -------------------------------------------------------
   Image collage (grid alternative to the carousel — add
   the "moc-collage" CSS class to a Gallery block to use it)
------------------------------------------------------- */

.moc-collage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 1em 0;
}

.moc-collage-tile {
  margin: 0;
}

.moc-collage-tile img {
  width: 100%;
  border-radius: 8px;
  border: 2px solid #888888;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.4), inset 0 -2px 6px rgba(0, 0, 0, 0.12);
  margin: 0;
}

.moc-collage-tile figcaption {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-family: var(--moc-font-mono);
  font-size: 0.78rem;
  font-style: normal;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: var(--moc-meta-gray);
  text-align: center;
}

.moc-carousel-btn {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: radial-gradient(circle at 35% 30%, #4a4a4a 0%, #2a2a2a 55%, #161616 100%);
  color: #d8d8d8;
  font-family: var(--moc-font-mono);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.2),
    inset 0 -3px 5px rgba(0, 0, 0, 0.5),
    0 3px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.moc-carousel-btn:hover {
  background: radial-gradient(circle at 35% 30%, #5a5a5a 0%, #363636 55%, #202020 100%);
}

.moc-carousel-btn:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.6),
    0 1px 2px rgba(0, 0, 0, 0.25);
}

.moc-carousel::-webkit-scrollbar { height: 6px; }
.moc-carousel::-webkit-scrollbar-thumb { background: var(--moc-accent); border-radius: 3px; }

@media (max-width: 720px) {
  .moc-carousel-slide { flex-basis: 90%; }
  .moc-carousel-btn { display: none; }
}
