/*
Theme Name: Defiant Ink
Theme URI: https://example.com
Author: Your Studio
Author URI: https://example.com
Description: A stark, editorial black-and-white WordPress theme built for a tattoo studio. Bold condensed headlines, hairline dividers, full-bleed photography, and a full-screen mobile menu. Five core pages: Home, About, Artists, Gallery, Contact.
Version: 1.0.0
Requires at least: 6.0
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: defiant-ink
Tags: black, white, one-column, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   TOKENS
   ========================================================================== */
:root{
  --black: #000000;
  --white: #ffffff;
  --off-white: #f4f4f2;
  --line-on-black: #2b2b2b;
  --line-on-white: #d9d9d5;
  --grey: #8c8c88;
  --grey-dark: #4a4a47;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --max-w: 1240px;
  --measure: 62ch;

  --dur: 220ms;
  --ease: cubic-bezier(.4,0,.2,1);

  --grain: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxODAiIGhlaWdodD0iMTgwIj4KPGZpbHRlciBpZD0ibiI+PGZlVHVyYnVsZW5jZSB0eXBlPSJmcmFjdGFsTm9pc2UiIGJhc2VGcmVxdWVuY3k9IjAuOSIgbnVtT2N0YXZlcz0iMiIgc3RpdGNoVGlsZXM9InN0aXRjaCIvPjxmZUNvbG9yTWF0cml4IHR5cGU9InNhdHVyYXRlIiB2YWx1ZXM9IjAiLz48L2ZpbHRlcj4KPHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsdGVyPSJ1cmwoI24pIiBvcGFjaXR5PSIwLjUiLz4KPC9zdmc+");
}

/* ==========================================================================
   RESET
   ========================================================================== */
*, *::before, *::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body{
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
button{ font-family: inherit; cursor: pointer; }
h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 .5em;
  letter-spacing: .002em;
}
p{ margin: 0 0 1.2em; }
:focus-visible{ outline: 2px solid var(--black); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   LAYOUT HELPERS
   ========================================================================== */
.wrap{ max-width: var(--max-w); margin-inline: auto; padding-inline: var(--gutter); }
.measure{ max-width: var(--measure); }
.section{ padding-block: clamp(56px, 9vw, 120px); }
.section--tight{ padding-block: clamp(32px, 5vw, 64px); }
.rule{ border: 0; border-top: 1px solid var(--line-on-white); margin: 0; }
.invert .rule{ border-top-color: var(--line-on-black); }
.invert{ background: var(--black); color: var(--white); position: relative; }
.invert a{ color: var(--white); }
.on-off-white{ background: var(--off-white); }

/* Fine grain texture on black sections — one deliberate material cue,
   applied consistently, rather than decoration scattered per-element. */
.invert::before, .hero::before, .page-hero::before{
  content: "";
  position: absolute; inset: 0;
  background-image: var(--grain);
  opacity: .05;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}
.invert > *, .hero-panel, .page-hero .wrap{ position: relative; z-index: 2; }

.grid-2{ display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
@media (max-width: 780px){ .grid-2{ grid-template-columns: 1fr; } }

.btn{
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .95em 1.9em;
  border: 2px solid currentColor;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  background: transparent;
  color: inherit;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:hover{ background: currentColor; transform: translateY(-1px); }
.btn:hover span{ color: var(--white); mix-blend-mode: difference; }
.invert .btn:hover{ color: var(--black); }
.btn--solid{ background: var(--black); color: var(--white); border-color: var(--black); }
.btn--solid:hover{ background: transparent; color: var(--black); }
.invert .btn--solid, .hero-panel .btn--solid, .page-hero .btn--solid, .site-footer .btn--solid{ background: var(--white); color: var(--black); border-color: var(--white); }
.invert .btn--solid:hover, .hero-panel .btn--solid:hover, .page-hero .btn--solid:hover, .site-footer .btn--solid:hover{ background: transparent; color: var(--white); }
.footer-col .btn{ display: inline-flex; margin: 1em 0 0; }

.eyebrow-index{ font-family: var(--font-display); font-size: .85rem; color: var(--grey); margin-bottom: .8em; }

/* ==========================================================================
   IMAGE PLACEHOLDER — shown wherever a CPT/Customizer image hasn't been
   set yet. Fills the same slot as the real image would, so layout never
   breaks, and tells the owner exactly where to add it.
   ========================================================================== */
.noir-placeholder{
  width: 100%; height: 100%;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1em;
  background: repeating-linear-gradient(45deg, #efefec, #efefec 10px, #e4e4e0 10px, #e4e4e0 20px);
  border: 1px dashed var(--grey);
}
.noir-placeholder span{
  font-family: var(--font-display);
  font-size: .82rem;
  color: var(--grey-dark);
  letter-spacing: .02em;
}
.invert .noir-placeholder{ background: repeating-linear-gradient(45deg, #161616, #161616 10px, #0d0d0d 10px, #0d0d0d 20px); border-color: var(--grey); }
.invert .noir-placeholder span{ color: var(--grey); }

.noir-framed{ border: 3px solid var(--black); filter: grayscale(1); width: 100%; display: block; }
.invert .noir-framed{ border-color: var(--white); }

/* ==========================================================================
   SITE HEADER
   ========================================================================== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--black);
}
.site-header .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.site-branding{ display: flex; align-items: center; }
.site-branding a{ display: flex; align-items: center; gap: .6em; }
.site-branding img{ max-height: 46px; width: auto; }
.site-title{
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin: 0;
}
.site-tagline{ display: none; }
.site-branding{ min-width: 0; }
.menu-toggle{ flex-shrink: 0; margin-left: 16px; }
@media (max-width: 480px){
  .site-title{ font-size: 1.2rem; line-height: 1.05; }
}

.primary-nav{ display: none; }
@media (min-width: 900px){
  .primary-nav{ display: block; }
  .primary-nav ul{ display: flex; gap: clamp(20px, 3vw, 44px); }
  .primary-nav a{
    font-family: var(--font-display);
    font-size: 1rem;
    padding: .4em 0;
    border-bottom: 1px solid transparent;
    transition: border-color var(--dur) var(--ease);
  }
  .primary-nav a:hover, .primary-nav .current-menu-item a{ border-color: var(--black); }
}

.menu-toggle{
  display: flex;
  align-items: center;
  gap: .6em;
  background: none;
  border: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 0;
}
@media (min-width: 900px){ .menu-toggle{ display: none; } }
.menu-toggle .bars{ display: flex; flex-direction: column; gap: 4px; width: 24px; }
.menu-toggle .bars span{ display: block; height: 2px; background: var(--black); transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.menu-open .menu-toggle .bars span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle .bars span:nth-child(2){ opacity: 0; }
.menu-open .menu-toggle .bars span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

.mobile-nav{
  position: fixed;
  inset: 0;
  top: 84px;
  background: var(--black);
  color: var(--white);
  transform: translateY(-100%);
  visibility: hidden;          /* closed: invisible and untappable, so it can't cover the header */
  pointer-events: none;
  transition: transform var(--dur) var(--ease), visibility 0s linear var(--dur);
  z-index: 90;
  overflow-y: auto;
}
.menu-open .mobile-nav{
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform var(--dur) var(--ease), visibility 0s;
}
.mobile-nav .wrap{ padding-block: 48px; display: flex; flex-direction: column; height: 100%; justify-content: space-between; }
.mobile-nav ul{ display: flex; flex-direction: column; gap: 6px; }
.mobile-nav a{
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3rem);
  padding: .18em 0;
  display: inline-block;
}
.mobile-nav .contact-line{ margin-top: 40px; font-size: .95rem; color: var(--grey); }
.mobile-nav .contact-line a{ color: var(--white); font-family: var(--font-body); border-bottom: 1px solid var(--line-on-black); }
@media (min-width: 900px){ .mobile-nav{ display: none; } }

/* ==========================================================================
   HERO — split screen: a black type panel against a hard vertical edge,
   not a photo-with-gradient-and-caption. The seal overlaps the seam.
   ========================================================================== */
.hero{
  position: relative;
  display: grid;
  /* Exactly one screen tall (minus the sticky header). The photo column is
     sized to the 9:16 reel so the video fits whole instead of being cropped. */
  --hero-h: max(560px, calc(100vh - 88px));
  height: var(--hero-h);
  grid-template-columns: 1fr min(50%, calc(var(--hero-h) * 0.5625));
  grid-template-rows: minmax(0, 1fr);
  background: var(--black);
}
.hero-panel{
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(20px, 4vh, 64px) clamp(24px, 6vw, 80px);
  color: var(--white);
  min-height: 0;
}
.hero-kicker{
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--grey);
  margin-bottom: 1.4em;
}
.hero-panel h1{
  font-size: clamp(2.6rem, min(8vw, 11vh), 6.4rem);
  line-height: .96;
  max-width: 12ch;
  text-transform: uppercase;
}
.hero-panel p{ max-width: 40ch; font-size: 1.1rem; color: #c9c9c6; margin-top: .6em; }
.hero-photo{ position: relative; background: #111; }
.hero-photo img, .hero-photo video{ width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); }

/* The seal: a rotating flash-style stamp, sitting on the seam between the
   two hero halves. mix-blend-mode makes it read correctly on both the
   black panel and the photo without separate light/dark variants. */
.seal{
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  width: clamp(110px, 12vw, 160px);
  height: clamp(110px, 12vw, 160px);
  z-index: 5;
  mix-blend-mode: difference;
  animation: spin 24s linear infinite;
}
.seal svg{ width: 100%; height: 100%; display: block; }
.seal text{ fill: #fff; font-family: var(--font-display); font-size: 8.6px; letter-spacing: .05em; }
.seal .seal-mark{ fill: #fff; }
@keyframes spin{ to{ transform: translate(-50%, -50%) rotate(360deg); } }
@media (max-width: 860px){
  .hero{ grid-template-columns: 1fr; height: auto; min-height: auto; }
  /* Tall enough that a vertical (9:16) reel isn't cropped on phones. */
  .hero-photo{ height: min(74vh, 150vw); order: -1; }
  .hero-photo video, .hero-photo img{ object-position: center 35%; }
  .seal{ top: 100%; left: 50%; }
}

.page-hero{
  position: relative;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  padding-block: clamp(64px, 10vw, 110px);
}
.page-hero h1{ font-size: clamp(2.6rem, 7vw, 4.6rem); max-width: 18ch; text-transform: uppercase; }
.page-hero p{ color: var(--grey); max-width: 50ch; font-size: 1.05rem; }
.page-hero-media{ position: absolute; inset: 0; z-index: 0; }
.page-hero-media img{ width: 100%; height: 100%; object-fit: cover; opacity: .35; filter: grayscale(1); }
.page-hero-media::after{ content:""; position:absolute; inset:0; background: linear-gradient(100deg, rgba(0,0,0,.94) 20%, rgba(0,0,0,.55) 100%); }

/* ==========================================================================
   MANIFESTO — one full-bleed typographic statement. This is where the
   theme spends its boldness; everything else stays disciplined around it.
   ========================================================================== */
.manifesto{
  padding-block: clamp(72px, 14vw, 160px);
  border-top: 3px solid var(--white);
  border-bottom: 3px solid var(--white);
}
.manifesto h2{
  font-size: clamp(2.6rem, 7.2vw, 6.2rem);
  line-height: 1.02;
  max-width: 16ch;
  text-transform: uppercase;
}
.manifesto h2 s{ text-decoration-thickness: .06em; text-decoration-color: var(--grey); }
.manifesto p{ max-width: 44ch; color: var(--grey); font-size: 1.1rem; margin-top: .8em; }

/* ==========================================================================
   STATS
   ========================================================================== */
.stats{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 3px solid var(--line-on-white);
}
.stats div{ padding: 32px clamp(16px, 3vw, 32px); border-right: 3px solid var(--line-on-white); }
.stats div:last-child{ border-right: 0; }
.stats .num{ font-family: var(--font-display); font-size: clamp(2.4rem, 5.6vw, 3.8rem); display: block; line-height: 1; margin-bottom: .2em; }
.stats .label{ color: var(--grey); font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; }
.invert .stats{ border-top-color: var(--line-on-black); }
.invert .stats div{ border-right-color: var(--line-on-black); }
@media (max-width: 700px){
  .stats{ grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(2){ border-right: 0; }
}

/* ==========================================================================
   PINNED PHOTO MOSAIC — framed, tilted, tagged like sheets pinned to a
   board, rather than a clean even grid.
   ========================================================================== */
.mosaic{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 3vw, 40px);
  padding-block: clamp(20px, 4vw, 40px);
}
.mosaic figure{
  margin: 0;
  position: relative;
  border: 3px solid var(--black);
  background: var(--white);
  padding: 10px 10px 34px;
}
.mosaic figure a{ display: block; overflow: hidden; }
.mosaic figure:nth-child(1){ grid-column: span 7; transform: rotate(-1.2deg); }
.mosaic figure:nth-child(2){ grid-column: span 5; transform: rotate(1.4deg); margin-top: 28px; }
.mosaic figure:nth-child(3){ grid-column: span 5; transform: rotate(1deg); }
.mosaic figure:nth-child(4){ grid-column: span 7; transform: rotate(-.8deg); margin-top: -10px; }
.mosaic figcaption{
  position: absolute; left: 10px; bottom: 8px;
  font-family: var(--font-display);
  font-size: .8rem;
  letter-spacing: .04em;
  color: var(--black);
}
@media (max-width: 780px){
  .mosaic{ grid-template-columns: 1fr; }
  .mosaic figure{ grid-column: 1 / -1 !important; transform: none !important; margin-top: 0 !important; }
}

/* ==========================================================================
   Grayscale-until-hover — the one interactive signature, applied wherever
   photography is clickable.
   ========================================================================== */
.mosaic img, .strip img, .gallery-grid img, .artist-row .thumb img, .artist-work img{
  filter: grayscale(1) contrast(1.05);
  transition: filter .5s var(--ease), transform .6s var(--ease);
}
.mosaic a:hover img, .mosaic a:focus-visible img,
.strip a:hover img, .strip a:focus-visible img,
.gallery-grid a:hover img, .gallery-grid a:focus-visible img,
.artist-work a:hover img, .artist-work a:focus-visible img,
.artist-row:hover .thumb img{
  filter: grayscale(0) contrast(1);
  transform: scale(1.03);
}

/* ==========================================================================
   IMAGE STRIP / GALLERY
   ========================================================================== */
.strip{
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), 1fr);
  border-top: 3px solid var(--black);
}
.strip figure{
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-right: 3px solid var(--black);
  position: relative;
}
.strip figure:last-child{ border-right: 0; }
.strip img, .mosaic img{ width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 780px){
  .strip{ grid-template-columns: repeat(2, 1fr); }
}

.gallery-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-grid figure{ margin: 0; aspect-ratio: 1; overflow: hidden; background: var(--white); position: relative; border: 3px solid var(--black); }
.gallery-grid img{ width: 100%; height: 100%; object-fit: cover; }
.gallery-grid .tag{
  position: absolute; top: 10px; left: 10px;
  background: var(--black); color: var(--white);
  font-family: var(--font-display); font-size: .78rem; letter-spacing: .03em;
  padding: .3em .6em;
  transform: rotate(-2deg);
  z-index: 2;
}
@media (max-width: 780px){ .gallery-grid{ grid-template-columns: repeat(2, 1fr); } }
.gallery-filter{ display: flex; flex-wrap: wrap; gap: 8px 28px; margin-bottom: 40px; }
.gallery-filter button{
  background: none; border: 0; font-family: var(--font-display);
  font-size: 1rem; color: var(--grey); padding: 0 0 6px; border-bottom: 2px solid transparent;
}
.gallery-filter button.is-active, .gallery-filter button:hover{ color: var(--black); border-color: var(--black); }

/* ==========================================================================
   ARTISTS
   ========================================================================== */
.artist-list{ border-top: 3px solid var(--black); }
.artist-row{
  display: grid;
  grid-template-columns: 70px 160px 1fr auto;
  gap: clamp(16px, 3vw, 40px);
  align-items: center;
  padding-block: 32px;
  border-bottom: 3px solid var(--black);
}
.artist-row .row-num{ font-family: var(--font-display); font-size: 1.4rem; color: var(--grey); }
.artist-row .thumb{ aspect-ratio: 1; overflow: hidden; border: 3px solid var(--black); }
.artist-row .thumb img{ width: 100%; height: 100%; object-fit: cover; }
.artist-row h3{ font-size: 1.6rem; margin-bottom: .25em; }
.artist-row .specialty{ color: var(--grey); font-size: .95rem; margin-bottom: 0; }

/* Each artist's work samples, spanning the full row beneath their details */
.artist-work{
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 4px;
}
.artist-work a{ display: block; aspect-ratio: 1; overflow: hidden; border: 2px solid var(--black); }
.artist-work img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.artist-work-more, .artist-work-hint{ grid-column: 1 / -1; margin: 0; font-size: .92rem; }
.artist-work-more a{ border-bottom: 2px solid var(--black); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .03em; }
.artist-work-hint{ color: var(--grey); font-style: italic; }
@media (max-width: 780px){ .artist-work{ grid-template-columns: repeat(3, 1fr); } }

.gallery-artist-note{ margin: 0 0 24px; font-family: var(--font-display); font-size: 1.05rem; }
.gallery-artist-note a{ margin-left: .6em; border-bottom: 2px solid var(--black); }
@media (max-width: 780px){
  .artist-row{ grid-template-columns: 44px 90px 1fr; }
  .artist-row .btn{ grid-column: 1 / -1; justify-self: start; margin-top: 12px; }
}

/* ==========================================================================
   CONTACT / FORM
   ========================================================================== */
.contact-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
@media (max-width: 900px){ .contact-grid{ grid-template-columns: 1fr; } }
.info-block{ margin-bottom: 32px; }
.info-block h3{ font-size: 1rem; margin-bottom: .4em; }
.info-block p{ color: var(--grey-dark); margin-bottom: 0; }
.info-block a{ border-bottom: 1px solid var(--line-on-white); }

.form-row{ margin-bottom: 22px; }
.form-row label{ display: block; font-family: var(--font-display); font-size: .9rem; margin-bottom: .5em; }
.form-row input, .form-row textarea, .form-row select{
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-on-white);
  padding: .7em 0;
  font-family: var(--font-body);
  font-size: 1rem;
  background: transparent;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus{ border-color: var(--black); outline: none; }
.form-row textarea{ resize: vertical; min-height: 120px; }
.info-map{ margin-top: 1em; border: 3px solid var(--black); }
.info-map iframe{ width: 100%; height: 300px; border: 0; display: block; filter: grayscale(1) contrast(1.1); transition: filter .5s var(--ease); }
.info-map:hover iframe{ filter: grayscale(0); }

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.cta-band{ text-align: left; }
.cta-band h2{ font-size: clamp(2rem, 5vw, 3.2rem); max-width: 18ch; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer{ background: var(--black); color: var(--white); padding-top: clamp(48px, 8vw, 80px); }
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-on-black);
}
@media (max-width: 860px){ .footer-grid{ grid-template-columns: 1fr 1fr; } .footer-grid .footer-col:first-child{ grid-column: 1 / -1; } }
.footer-map{ margin-top: 1em; border: 2px solid var(--white); }
.footer-map iframe{ width: 100%; height: 190px; border: 0; display: block; filter: grayscale(1) invert(.92) contrast(.9); transition: filter .5s var(--ease); }
.footer-map:hover iframe{ filter: none; }
.footer-col h4{ font-size: .95rem; margin-bottom: .9em; }
.footer-col p, .footer-col a{ color: #b9b9b6; font-size: .95rem; display: block; margin-bottom: .5em; }
.footer-col a:hover{ color: var(--white); }
.footer-bottom{
  display: flex; justify-content: space-between; align-items: center;
  padding-block: 24px; font-size: .85rem; color: var(--grey);
  flex-wrap: wrap; gap: 12px;
}

/* ==========================================================================
   GENERIC PAGE CONTENT (page.php fallback)
   ========================================================================== */
.entry-content h2{ font-size: 1.8rem; margin-top: 1.4em; }
.entry-content p, .entry-content li{ max-width: var(--measure); }
.entry-content ul{ list-style: disc; padding-left: 1.2em; margin-bottom: 1.2em; }

/* Lightbox */
.lightbox{ position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.94); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden]{ display: none; }
.lb-img{ max-width: 94vw; max-height: 86vh; object-fit: contain; display: block; }
.lightbox button{ position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font-size: 2.6rem; line-height: 1; padding: .3em .5em; }
.lightbox button:hover, .lightbox button:focus-visible{ background: rgba(255,255,255,.14); }
.lb-close{ top: 6px; right: 6px; font-size: 3rem !important; }
.lb-prev{ left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next{ right: 4px; top: 50%; transform: translateY(-50%); }
.lightbox.single .lb-prev, .lightbox.single .lb-next{ display: none; }
.lb-count{ position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #bbb; font-size: .85rem; letter-spacing: .1em; }
@media (max-width: 780px){ .lb-prev, .lb-next{ top: auto; bottom: 8px; transform: none; } .lb-img{ max-height: 80vh; } }