/*
Theme Name:  Frames Unseen
Theme URI:   https://ozzylabs.com
Author:      ozzylabs
Author URI:  https://ozzylabs.com
Description: A left-sidebar travel blog theme inspired by Behold. Full-screen hero slider, alternating post grid, responsive mobile menu.
Version:     1.1.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: frames-unseen
Tags:        blog, photography, travel, custom-menu, featured-images, full-width-template
*/

/* ============================================================
   RESET & ROOT VARIABLES
   ============================================================ */
*, *::before, *::after {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --sw:     260px;
  --cream:  #f4f2ee;
  --dark:   #1a1a1a;
  --mid:    #666666;
  --light:  #aaaaaa;
  --teal:   #4a8fa8;
  --border: #e5e2db;
  --white:  #ffffff;
}

html {
  -webkit-text-size-adjust: 100%;
      -ms-text-size-adjust: 100%;
          text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* ── WordPress admin bar fix ────────────────────────────────
   When logged in, WP adds a 32px (desktop) or 46px (mobile)
   admin bar. Adjust sidebar top so it still starts at the
   very top of the viewport content area.                     */
.admin-bar #sidebar {
  top: 32px;
  height: calc(100vh - 32px);
}
.admin-bar .mob-header {
  top: 46px;
}
@media screen and (max-width: 782px) {
  .admin-bar #sidebar {
    top: 106px; /* 46px admin bar + 60px mob header */
  }
  .admin-bar .mob-header {
    top: 46px;
  }
  .admin-bar #main {
    padding-top: 106px;
  }
  .admin-bar .hero {
    height: calc(100vh - 106px);
    height: calc(var(--vh, 1vh) * 100 - 106px);
  }
}

body {
  font-family: 'Jost', sans-serif;
  background-color: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Kill any browser default margin/padding that causes top gap */
  margin: 0;
  padding: 0;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ============================================================
   LAYOUT
   ============================================================ */
.site-wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  min-height: 100vh;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
#sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sw);
  height: 100vh;
  background-color: var(--cream);
  border-right: 1px solid var(--border);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  z-index: 200;
  -webkit-transition: -webkit-transform 0.35s ease;
          transition: transform 0.35s ease;
  overflow: hidden;
}

/* Logo */
.logo-area {
  padding: 34px 0 22px;
  text-align: center;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.logo-area a { text-decoration: none; }
.logo-name {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  line-height: 1;
}
.logo-tagline {
  font-size: 8px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mid);
  margin-top: 6px;
}

/* Navigation */
nav.snav {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 10px 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

nav.snav > ul > li { text-align: center; }

nav.snav > ul > li > a {
  display: block;
  padding: 13px 20px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--mid);
  text-decoration: none;
  -webkit-transition: color 0.2s;
          transition: color 0.2s;
}
nav.snav > ul > li > a:hover,
nav.snav > ul > li.active > a { color: var(--teal); }

nav.snav > ul > li > a .caret {
  display: inline-block;
  font-size: 7px;
  margin-left: 5px;
  vertical-align: middle;
  -webkit-transition: -webkit-transform 0.25s;
          transition: transform 0.25s;
  opacity: 0.5;
}
nav.snav > ul > li.open > a .caret {
  -webkit-transform: rotate(90deg);
          transform: rotate(90deg);
}

/* Sub-menu */
nav.snav ul.sub {
  display: none;
  background: rgba(0,0,0,0.03);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5px 0;
}
nav.snav > ul > li.open > ul.sub { display: block; }

nav.snav ul.sub li a {
  display: block;
  padding: 8px 20px;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  -webkit-transition: color 0.2s;
          transition: color 0.2s;
}
nav.snav ul.sub li a:hover { color: var(--teal); }

/* Sidebar footer */
.sidebar-foot {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}
.s-soc {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 16px;
  margin-bottom: 10px;
}
.s-soc a {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  color: var(--light);
  -webkit-transition: color 0.2s;
          transition: color 0.2s;
}
.s-soc a svg { width: 15px; height: 15px; }
.s-soc a:hover { color: var(--teal); }
.sb-copy { font-size: 9px; color: var(--light); letter-spacing: 0.07em; line-height: 1.8; }

/* Mobile toggle */
/* Mobile header bar — visible only on mobile */
.mob-header {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  z-index: 300;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: 0 20px;
}

.mob-logo {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--dark);
  text-decoration: none;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.mob-tog {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 5px;
}
.mob-tog span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--dark);
  -webkit-transition: 0.3s;
          transition: 0.3s;
}
.mob-tog.open span:nth-child(1) { -webkit-transform: translateY(6.5px) rotate(45deg); transform: translateY(6.5px) rotate(45deg); }
.mob-tog.open span:nth-child(2) { opacity: 0; }
.mob-tog.open span:nth-child(3) { -webkit-transform: translateY(-6.5px) rotate(-45deg); transform: translateY(-6.5px) rotate(-45deg); }

/* Overlay behind open sidebar */
.mob-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 190;
  opacity: 0;
  -webkit-transition: opacity 0.3s;
          transition: opacity 0.3s;
}
.mob-overlay.visible {
  display: block;
  opacity: 1;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
#main {
  margin-left: var(--sw);
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 0;
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100); /* fix iOS 100vh */
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0;
  -webkit-transition: opacity 1.4s ease;
          transition: opacity 1.4s ease;
  z-index: 1;
}
.slide.active { opacity: 1; z-index: 2; }

.slide-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  -webkit-transform: scale(1.07);
          transform: scale(1.07);
  -webkit-transition: -webkit-transform 8s ease;
          transition: transform 8s ease;
  will-change: transform;
}
.slide.active .slide-bg {
  -webkit-transform: scale(1);
          transform: scale(1);
}

.slide-ov {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.32);
}

.slide-body {
  position: relative;
  z-index: 3;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  text-align: center;
  padding: 0 60px;
  color: #fff;
}

.slide-icon {
  width: 54px;
  margin-bottom: 18px;
  opacity: 0;
  -webkit-transform: translateY(16px);
          transform: translateY(16px);
  -webkit-transition: opacity 0.7s 0.3s, -webkit-transform 0.7s 0.3s;
          transition: opacity 0.7s 0.3s, transform 0.7s 0.3s;
}
.slide.active .slide-icon { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); }

.slide-lbl {
  font-size: 9.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 18px;
  opacity: 0;
  -webkit-transform: translateY(14px);
          transform: translateY(14px);
  -webkit-transition: opacity 0.7s 0.45s, -webkit-transform 0.7s 0.45s;
          transition: opacity 0.7s 0.45s, transform 0.7s 0.45s;
}
.slide.active .slide-lbl { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); }

.slide-ttl {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 72px;
  font-size: clamp(38px, 6vw, 82px);
  font-weight: 500;
  line-height: 1.06;
  margin-bottom: 20px;
  opacity: 0;
  -webkit-transform: translateY(20px);
          transform: translateY(20px);
  -webkit-transition: opacity 0.8s 0.6s, -webkit-transform 0.8s 0.6s;
          transition: opacity 0.8s 0.6s, transform 0.8s 0.6s;
}
.slide.active .slide-ttl { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); }
.slide-ttl em { font-style: italic; }

.slide-exc {
  font-size: 15px;
  line-height: 1.72;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  opacity: 0;
  -webkit-transform: translateY(12px);
          transform: translateY(12px);
  -webkit-transition: opacity 0.7s 0.75s, -webkit-transform 0.7s 0.75s;
          transition: opacity 0.7s 0.75s, transform 0.7s 0.75s;
}
.slide.active .slide-exc { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); }

/* Dot navigation */
.hero-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  z-index: 10;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 18px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.hdot {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.4);
  cursor: pointer;
  -webkit-transition: border-color 0.3s;
          transition: border-color 0.3s;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.hdot::after {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: transparent;
  -webkit-transition: background 0.3s;
          transition: background 0.3s;
}
.hdot.active { border-color: #fff; }
.hdot.active::after { background: #fff; }
.hdot:hover { border-color: rgba(255,255,255,0.8); }

/* ============================================================
   POSTS GRID  — 4-column alternating
   ============================================================ */
.pgrid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 1fr 1fr 1fr;
      grid-template-columns: repeat(4, 1fr);
}

.cell { position: relative; overflow: hidden; }

/* Image cells */
.icell { aspect-ratio: 1 / 1; background-color: #ccc; }

/* Fallback for browsers without aspect-ratio */
@supports not (aspect-ratio: 1) {
  .icell { padding-top: 100%; }
  .icell .ph { position: absolute; top: 0; left: 0; }
}

.icell .ph {
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  display: block;
  -webkit-transition: -webkit-transform 0.7s ease;
          transition: transform 0.7s ease;
}
.icell:hover .ph {
  -webkit-transform: scale(1.05);
          transform: scale(1.05);
}

/* Text cells */
.tcell {
  aspect-ratio: 1 / 1;
  background-color: var(--white);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  padding: 30px 34px 34px;
}

@supports not (aspect-ratio: 1) {
  .tcell { min-height: 280px; }
}

/* Watermark letter */
.wm {
  position: absolute;
  top: -14px; right: 6px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 160px;
  font-weight: 700;
  color: rgba(0,0,0,0.04);
  line-height: 1;
  pointer-events: none;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.cmeta {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 7px;
}
.cmeta .sep { color: var(--teal); opacity: 0.4; font-size: 14px; }

.ctitle {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 22px;
  font-size: clamp(16px, 1.7vw, 22px);
  font-weight: 500;
  line-height: 1.28;
  color: var(--dark);
  margin-bottom: 16px;
}
.ctitle em { font-style: italic; }

.clink {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px dashed var(--teal);
  padding-bottom: 1px;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 5px;
  -webkit-transition: opacity 0.2s;
          transition: opacity 0.2s;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
}
.clink:hover { opacity: 0.65; }
.clink::after { content: '→'; }

.cauthor {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-top: 2px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet — 2 columns */
@media screen and (max-width: 1100px) {
  .pgrid {
    -ms-grid-columns: 1fr 1fr;
        grid-template-columns: repeat(2, 1fr);
  }
}

/* ══════════════════════════════════════════════════════════
   MOBILE — full redesign to match Behold reference
   ══════════════════════════════════════════════════════════ */
@media screen and (max-width: 768px) {

  /* ── Overall layout ── */
  .site-wrap {
    display: block;
    /* No padding here — main handles its own offset */
  }

  /* ── Mobile header bar — fixed at very top ── */
  .mob-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 60px;
    z-index: 300;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
  }

  /* ── Sidebar — fixed panel below header, slides down when open ──
     position: fixed keeps it out of the document flow entirely
     so it never creates a gap in the page layout.                  */
  #sidebar {
    position: fixed;
    top: 60px; /* right below header */
    padding: 0 !important;
    margin: 0 !important;
    left: 0; right: 0;
    width: 100%;
    height: auto;
    max-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    border-right: none;
    border-bottom: none;
    background: var(--cream);
    -webkit-transform: none;
            transform: none;
    -webkit-box-shadow: none;
            box-shadow: none;
    -webkit-transition: max-height 0.4s ease;
            transition: max-height 0.4s ease;
    z-index: 240; /* below search bar (260) */
  }

  #sidebar.open {
    max-height: calc(100vh - 60px);
    border-bottom: 1px solid var(--border);
    -webkit-box-shadow: 0 8px 24px rgba(0,0,0,0.12);
            box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  }

  /* Hide everything before nav on mobile */
  #sidebar .logo-area,
  #sidebar .logo-area * {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    overflow: hidden !important;
    visibility: hidden !important;
    position: absolute !important;
  }



  /* Nav — left-aligned, full width */
  nav.snav {
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
    padding: 0;
    margin: 0;
    overflow-y: visible;
  }

  nav.snav > ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
  }
  nav.snav > ul > li { text-align: left; }

  nav.snav > ul > li > a {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    padding: 18px 24px;
    font-size: 11px;
    letter-spacing: 0.2em;
    border-bottom: 1px solid var(--border);
  }
  nav.snav > ul > li:first-child > a {
    border-top: 1px solid var(--border);
  }

  nav.snav > ul > li > a .caret {
    font-size: 12px;
    opacity: 0.5;
  }
  nav.snav > ul > li.open > a .caret {
    -webkit-transform: rotate(180deg);
            transform: rotate(180deg);
  }

  /* Sub-items */
  nav.snav ul.sub {
    border-top: none;
    border-bottom: none;
    background: rgba(0,0,0,0.025);
    padding: 4px 0;
  }
  nav.snav ul.sub li a {
    padding: 10px 24px 10px 36px;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-align: left;
    font-weight: 500;
    color: var(--teal);
  }

  /* Sidebar footer */
  .sidebar-foot { padding: 16px 24px 20px; }

  /* ── Main content ──
     margin-left: 0 (no sidebar beside it)
     padding-top: 60px to clear the fixed header bar
     The sidebar is fixed so it does NOT push this down.       */
  #main {
    margin-left: 0;
    padding-top: 60px;
  }

  .hero {
    height: calc(100vh - 60px);
    height: calc(var(--vh, 1vh) * 100 - 60px);
  }

  .slide-body { padding: 0 28px; }
  .slide-ttl  { font-size: clamp(30px, 8vw, 48px); }
  .slide-exc  { font-size: 14px; }

  /* Grid — 2 columns on tablet/mobile */
  .pgrid {
    -ms-grid-columns: 1fr 1fr;
        grid-template-columns: repeat(2, 1fr);
  }
  .icell, .tcell { aspect-ratio: 1 / 1; min-height: 160px; }
  .tcell { padding: 18px 20px 22px; }
  .ctitle { font-size: clamp(13px, 3.5vw, 18px); }
  .wm { font-size: 100px; }
  .cmeta { font-size: 8px; }
  .clink { font-size: 8px; }
}

/* Small mobile — 1 column */
@media screen and (max-width: 480px) {
  .pgrid {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
  .icell, .tcell { aspect-ratio: unset; min-height: 260px; }
  .slide-ttl { font-size: 32px; }
  .slide-body { padding: 0 20px; }
}


/* ============================================================
   FEATURED POSTS — editorial alternating rows (Fallsky style)
   ============================================================ */
.fp-section {
  background: #f2f2f2;
}

/* Section label — "Editor's Picks" above first row */
.fp-section-label {
  text-align: center;
  padding: 56px 0 48px;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mid);
}

.fp-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 40px 60px 60px;
  gap: 0;
  background: #f2f2f2;
}
.fp-row.fp-reverse {
  -webkit-box-direction: reverse;
  -webkit-box-orient: horizontal;
      -ms-flex-direction: row-reverse;
          flex-direction: row-reverse;
}

/* Image — contained with natural edges, not full bleed */
.fp-img-wrap {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 58%;
          flex: 0 0 58%;
  display: block;
  overflow: hidden;
  position: relative;
  /* Natural contained height */
  aspect-ratio: 16 / 9;
}
.fp-img {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  -webkit-transition: -webkit-transform 0.7s ease;
          transition: transform 0.7s ease;
}
.fp-img-wrap:hover .fp-img { -webkit-transform: scale(1.04); transform: scale(1.04); }

/* Text content — sits beside image with generous padding */
.fp-content {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 20px 60px;
  background: transparent;
}

/* Reversed row — text is center-aligned */
.fp-row.fp-reverse .fp-content {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  text-align: center;
}
.fp-row.fp-reverse .fp-excerpt { margin-left: auto; margin-right: auto; }

.fp-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(22px, 2.2vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 14px;
}
.fp-title a { color: inherit; text-decoration: none; }
.fp-title a:hover { color: var(--teal); }

.fp-cats {
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 18px;
  font-weight: 500;
}

.fp-excerpt {
  font-size: 15px;
  line-height: 1.78;
  color: var(--mid);
  margin-bottom: 30px;
  max-width: 400px;
}

.fp-btn {
  display: inline-block;
  padding: 13px 30px;
  background: var(--dark);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  -webkit-transition: background 0.2s;
          transition: background 0.2s;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
}
.fp-btn:hover { background: var(--teal); }

/* ============================================================
   LATEST ARTICLES — dark 3-column masonry-style grid
   ============================================================ */
.la-section {
  background: #111111;
  padding: 60px 40px 80px;
}

.la-heading {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffffff;
  text-align: center;
  margin-bottom: 48px;
}

.la-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 20px 1fr 20px 1fr;
      grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  /* Masonry-like: middle cards are taller */
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: start;
}

/* Middle column items are taller */
.la-card:nth-child(3n+2) .la-img { padding-top: 130%; }
.la-card .la-img            { padding-top: 75%; }

.la-card {
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
  display: block;
}
.la-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}
.la-card:hover .la-img-inner { -webkit-transform: scale(1.04); transform: scale(1.04); }

.la-img {
  position: relative;
  overflow: hidden;
  width: 100%;
}
.la-img-inner {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  -webkit-transition: -webkit-transform 0.7s ease;
          transition: transform 0.7s ease;
}

/* Use background-image directly on .la-img */
.la-img {
  background-size: cover;
  background-position: center;
  -webkit-transition: -webkit-transform 0.7s ease;
          transition: transform 0.7s ease;
}
.la-card a:hover .la-img { -webkit-transform: scale(1.04); transform: scale(1.04); }

.la-info {
  background: #111111;
  padding: 18px 20px 20px;
}

.la-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(15px, 1.4vw, 20px);
  font-weight: 500;
  line-height: 1.3;
  color: #ffffff;
  margin-bottom: 8px;
}

.la-cats {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #888888;
  font-weight: 500;
}

/* ============================================================
   FEATURED POSTS — responsive
   ============================================================ */
@media screen and (max-width: 1024px) {
  .fp-content { padding: 36px 36px; }
  .fp-img-wrap { -ms-flex: 0 0 52%; flex: 0 0 52%; }
}

@media screen and (max-width: 768px) {
  /* Stack featured rows vertically */
  .fp-row,
  .fp-row.fp-reverse {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    padding: 20px 20px 32px;
    gap: 0;
  }

  .fp-img-wrap {
    -ms-flex: none;
        flex: none;
    width: 100%;
    aspect-ratio: 4 / 3;
    position: relative;
  }

  .fp-content {
    padding: 24px 4px 0;
    -webkit-box-align: start !important;
        -ms-flex-align: start !important;
            align-items: flex-start !important;
    text-align: left !important;
  }
  .fp-row.fp-reverse .fp-excerpt { margin-left: 0; margin-right: 0; }
  .fp-title { font-size: 20px; }
  .fp-excerpt { font-size: 14px; margin-bottom: 20px; max-width: 100%; }
  .fp-section-label { padding: 24px 0 6px; font-size: 10px; }

  /* Latest articles — single column on mobile */
  .la-section { padding: 40px 16px 60px; }
  .la-grid {
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
    gap: 16px;
  }
  /* Override masonry heights on mobile — all same */
  .la-card:nth-child(3n+2) .la-img,
  .la-card .la-img { padding-top: 65%; }
}

@media screen and (max-width: 480px) {
  .fp-img-wrap { height: 220px; }
  .fp-title { font-size: 20px; }
}


/* ============================================================
   PHOTO GALLERY STRIP
   ============================================================ */
.fu-gallery-wrap {
  padding: 56px 0 48px;
  background: #fff; /* overridden by inline style from CMS */
}

.fu-gallery-heading {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mid);
  text-align: center;
  margin-bottom: 32px;
}

.fu-gallery-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  width: 100%;
  background: transparent;
  gap: 6px; /* overridden by inline style from CMS */
}

.fu-gallery-item {
  display: block;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.fu-gallery-img {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  -webkit-transition: -webkit-transform 0.5s ease, opacity 0.3s;
          transition: transform 0.5s ease, opacity 0.3s;
}
.fu-gallery-item:hover .fu-gallery-img {
  -webkit-transform: scale(1.06);
          transform: scale(1.06);
  opacity: 0.85;
}

/* Lightbox */
.fu-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 1000;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.fu-lightbox.open {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
.fu-lb-img-wrap {
  max-width: 90vw;
  max-height: 90vh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.fu-lb-img-wrap img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
}
.fu-lightbox button {
  position: fixed;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  -webkit-transition: color 0.2s;
          transition: color 0.2s;
  font-weight: 300;
  line-height: 1;
}
.fu-lightbox button:hover { color: #fff; }
.fu-lb-close {
  top: 20px; right: 28px;
  font-size: 40px;
}
.fu-lb-prev {
  left: 20px; top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  font-size: 64px;
}
.fu-lb-next {
  right: 20px; top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  font-size: 64px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.fu-footer {
  background: #111111;
  border-top: 1px solid #1e1e1e;
}
.fu-footer-inner {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: 22px 40px;
  max-width: 100%;
}
.fu-footer-copy {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #666;
}
.fu-footer-social {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 20px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.fu-footer-social a {
  color: #555;
  text-decoration: none;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-transition: color 0.2s;
          transition: color 0.2s;
}
.fu-footer-social a:hover { color: #fff; }

/* Gallery strip mobile */
@media screen and (max-width: 768px) {
  .fu-gallery-wrap { padding: 36px 0 32px; }
  .fu-gallery-heading { margin-bottom: 20px; }
  .fu-gallery-img { height: 140px; }
  .fu-footer-inner { padding: 18px 20px; flex-direction: column; gap: 16px; text-align: center; }
  .fu-lb-prev { left: 8px; }
  .fu-lb-next { right: 8px; }
}
@media screen and (max-width: 480px) {
  .fu-gallery-strip { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .fu-gallery-img { height: 140px; }
}


/* ============================================================
   SIDEBAR SEARCH — desktop
   ============================================================ */
.sb-search {
  padding: 0 0 4px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.sb-search-inner {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 14px 24px;
  gap: 10px;
}
.sb-search-input {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--dark);
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 6px 0;
  outline: none;
  -webkit-transition: border-color 0.2s;
          transition: border-color 0.2s;
}
.sb-search-input:focus { border-color: var(--teal); }
.sb-search-input::-webkit-input-placeholder { color: var(--light); }
.sb-search-input::-moz-placeholder { color: var(--light); }
.sb-search-input:-ms-input-placeholder { color: var(--light); }
.sb-search-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--light);
  padding: 4px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-transition: color 0.2s;
          transition: color 0.2s;
  flex-shrink: 0;
}
.sb-search-btn svg { width: 15px; height: 15px; }
.sb-search-btn:hover { color: var(--teal); }

/* Search item in nav — hide on desktop since we have the search bar */
.menu-item-search { display: none; }

/* ============================================================
   MOBILE SEARCH BAR
   — dark full-width bar with background image, shown when
     menu opens, matches the reference screenshot exactly
   ============================================================ */
.mob-search-bar {
  display: none; /* shown only on mobile via media query */
  position: fixed;
  left: 0; right: 0;
  top: 60px;
  z-index: 260;
  background: #0d1f18;
  /* background-image set via inline style in header.php */
  background-size: cover;
  background-position: center;
  height: 90px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  /* always at full height — hidden visually until menu opens */
  opacity: 0;
  pointer-events: none;
  -webkit-transition: opacity 0.25s ease;
          transition: opacity 0.25s ease;
}
.mob-search-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 20, 12, 0.82);
}
.mob-search-bar.visible {
  opacity: 1;
  pointer-events: all;
}
.mob-search-form {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  width: 100%;
  padding: 0 24px;
  gap: 12px;
}
.mob-search-input {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.04em;
  padding: 8px 0;
  outline: none;
  -webkit-transition: border-color 0.2s;
          transition: border-color 0.2s;
}
.mob-search-input:focus { border-color: rgba(255,255,255,0.7); }
.mob-search-input::-webkit-input-placeholder { color: rgba(255,255,255,0.55); font-weight: 300; }
.mob-search-input::-moz-placeholder { color: rgba(255,255,255,0.55); }
.mob-search-input:-ms-input-placeholder { color: rgba(255,255,255,0.55); }
.mob-search-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.6);
  padding: 4px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-transition: color 0.2s;
          transition: color 0.2s;
  flex-shrink: 0;
}
.mob-search-btn svg { width: 22px; height: 22px; }
.mob-search-btn:hover { color: #fff; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .slide, .slide-bg, .slide-icon, .slide-lbl, .slide-ttl, .slide-exc,
  .icell .ph, .mob-tog span {
    -webkit-transition: none !important;
            transition: none !important;
    -webkit-animation: none !important;
            animation: none !important;
  }
}
