/* Ensure mix-blend-mode works in Chrome — no stacking context on root */
html, body { transform: none !important; filter: none !important; will-change: auto !important; }

/* /includes/simple-fixed.css */

/* Base */
:root { --sfh-fg:#111; --sfh-bg:#fff; }
html, body {
  margin:0; padding:0;
  color:var(--sfh-fg); background:var(--sfh-bg);
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
.sfh-main { min-height:100vh; position:relative; }

/* ===== Fixed Header: LEFT (X + Title + Categories) ===== */
.sfh-header-left{
  position:fixed; top:1.5rem; left:2rem; z-index:1000;
  display:flex; align-items:center; gap:6px;
  flex-wrap:wrap;          /* allows title+cats to wrap on mobile */
  max-width:calc(100vw - 6rem); /* prevent overlap with burger */
  pointer-events:none; /* container */
  isolation: isolate;
}
.sfh-close{
  pointer-events:auto;
  width:34px; height:34px; min-width:34px; min-height:34px;
  display:grid; place-items:center;
  color:#000; text-decoration:none;
  font-size:1rem; font-weight:700; line-height:1;
  font-family:'Noto Sans', sans-serif;
  border-radius:50%;
  background:#fff;
  border:none;
  padding:0;
  transition:background .2s ease, transform .2s ease;
}
.sfh-close:hover{ transform:scale(1.05); background:#ffcc00; }

.sfh-header-text{
  pointer-events:auto;
  display:flex; flex-wrap:wrap; align-items:center; gap:6px;
  background:transparent;
  padding:0;
}
.sfh-title{
  margin:0;
  display:inline-flex; align-items:center; justify-content:center;
  font-family:'Noto Sans', sans-serif;
  height:34px;
  padding:0 12px;
  border-radius:999px;
  background:#ffcc00;
  color:#000;
  font-size:12px;
  font-weight:600;
  line-height:1;
  box-sizing:border-box;
  text-transform:uppercase;
  letter-spacing:.04em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:min(46vw, 620px);
}
.sfh-cats{ display:flex; flex-wrap:wrap; gap:6px; }

/* shared chip style (matches your previous category chips / right buttons) */
.sfh-chip{
  display:inline-flex; align-items:center; gap:4px;
  padding:3px 10px 4px; border-radius:999px;
  background:rgba(0,0,0,.55); color:#fff; text-decoration:none;
  font-size:12px; line-height:1.1; text-transform:uppercase; letter-spacing:.04em;
  border:1px solid rgba(255,255,255,.35);
}
.sfh-chip:hover{ background:rgba(0,0,0,.8); }

/* ===== Fixed Header: RIGHT (About / Contact) ===== */
.sfh-header-right{
  position:fixed; top:1.5rem; right:2rem; z-index:1000;
  display:flex; flex-direction:row-reverse; align-items:center; gap:0.6rem;
  pointer-events:none;
}
.sfh-actions{
  pointer-events:auto;
  display:flex; align-items:center; gap:8px;
  background:rgba(0,0,0,.30); backdrop-filter:blur(4px);
  border-radius:12px; padding:6px 12px;
}

@media (max-width:600px){
  .sfh-header-left{ top:1rem; left:1rem; gap:10px; }
  .sfh-header-right{ top:1rem; right:1rem; }
  .sfh-header-text{ gap:6px; padding:4px 10px; }
  .sfh-actions{ gap:6px; padding:4px 10px; }
  .sfh-title{ max-width:54vw; }
  .sfh-chip{ font-size:10px; }
}

/* ===== Content (no bg/no spacer; starts at top edge) ===== */
.sfh-content{
  width:100%;
  margin:0;
  padding:0;   /* keep 0; header floats above */
  background:transparent;
  border:0; box-shadow:none;
}

/* ===== Classic Editor [gallery] tidy (DL markup) ===== */
.sfh-content .gallery{
  display:flex; flex-wrap:wrap; gap:0; margin:0;
}
.sfh-content .gallery dl.gallery-item{
  float:none!important; width:auto!important; margin:0!important; padding:0!important;
}
.sfh-content .gallery br{ display:none!important; }
.sfh-content .gallery dl.gallery-item .gallery-icon{ margin:0!important; padding:0!important; }
.sfh-content .gallery dl.gallery-item .gallery-icon img{
  width:100%; height:100%; display:block; object-fit:cover;
  border:none!important; box-shadow:none!important; background:none!important;
}

/* 2 columns */
.sfh-content .gallery.gallery-columns-2 dl.gallery-item{
  flex:0 0 50%; max-width:50%;
  aspect-ratio:1/1; overflow:hidden;
}
/* 1 column */
.sfh-content .gallery.gallery-columns-1 dl.gallery-item{
  flex:0 0 100%; max-width:100%;
  aspect-ratio:16/9; overflow:hidden;
}
.sfh-content .gallery .gallery-caption{ display:none; }
@media (max-width:540px){
  .sfh-content .gallery.gallery-columns-2 dl.gallery-item{
    flex:0 0 100%!important; max-width:100%!important;
  }
}

/* ===== Inline video cleanup (works with Classic [video] & Gutenberg) ===== */
.sfh-content .mejs-container .mejs-controls,
.sfh-content .mejs__container .mejs__controls{ display:none!important; }
.sfh-content .mejs-container, .sfh-content .mejs__container{ padding-bottom:0!important; }
.sfh-content .wp-video, .sfh-content .wp-video-shortcode{ margin:0!important; }

/* Optional: make <video> fill its frame neatly */
.sfh-content video{
  width:100%; height:100%; display:block; object-fit:cover; background:#000;
}

/* ===== Header text block — remove dark bg ===== */
.sfh-header-text {
  background: transparent !important;
  backdrop-filter: none !important;
  padding: 0 !important;
  gap: 10px;
}

/* ===== Right actions — remove dark bg ===== */
.sfh-actions {
  background: transparent !important;
  backdrop-filter: none !important;
  padding: 0 !important;
  gap: 0.6rem;
}


@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;600;700&display=swap");

/* ── Shared pill: chips and nav items only ── */
.sfh-chip,
.sfh-pill,
.secondary-menu a,
.srp-pill {
  font-family: 'Noto Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  color: #000;
  background: #fff;
  border: none;
  border-radius: 999px;
  height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-sizing: border-box;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}
.sfh-chip:hover,
.sfh-pill:hover,
.secondary-menu a:hover,
.srp-pill:hover {
  background: #ffcc00;
  color: #000;
  transform: translateY(-2px);
}

/* ── Right actions wrapper ── */
.sfh-actions {
  background: transparent !important;
  backdrop-filter: none !important;
  padding: 0 !important;
  gap: 0.6rem;
  display: flex;
  align-items: center;
  pointer-events: auto;
}

/* ── Burger circle — same shape as .sfh-close ── */
.sfh-burger {
  pointer-events: auto;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: none;
  padding: 0;
  color: #000;
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1;
  font-family: 'Noto Sans', sans-serif;
  transition: background 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}
.sfh-burger:hover {
  background: #ffcc00;
  transform: scale(1.05);
}

/* ── Dropdown: hidden, opens to the right of burger ── */
.sfh-burger-menu {
  pointer-events: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.sfh-burger-menu.is-open {
  pointer-events: auto;
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 600px) {
  .sfh-header-right { top:1rem; right:1rem; }


  /* Burger dropdown stacks vertically on mobile */
  /* top = burger top (1rem) + burger height (34px) + gap (6px) */
  .sfh-burger-menu {
    flex-direction: column;
    align-items: flex-end;
    transform: translateY(-6px);
    position: fixed;
    top: calc(1rem + 34px + 6px);
    right: 1rem;
    gap: 6px;
  }
  .sfh-burger-menu.is-open {
    transform: translateY(0);
  }

  /* Left header: X + arrows on row 1, title+cats below */
  .sfh-header-left {
    top: 1rem;
    left: 1rem;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
  }
  /* Title and cats break to their own row */
  .sfh-header-text {
    flex-basis: 100%;
  }
  /* sfh-header-text stacks title then cats */
  .sfh-header-text {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    /* push title+cats to start at same top as first dropdown item:
       X height (34px) + gap (6px) already consumed by flex gap above */
  }
  .sfh-cats {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* ── Categories burger: circle that expands to capsule ── */
.sfh-cat-burger-wrap {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.sfh-cat-burger {
  pointer-events: auto;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  height: 34px;
  min-width: 34px;
  width: 34px;
  border-radius: 999px;
  background: #fff;
  border: none;
  padding: 0;
  color: #000;
  font-family: 'Noto Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1;
  box-sizing: border-box;
  overflow: hidden;
  white-space: nowrap;
  transition: background 0.2s ease, width 0.35s cubic-bezier(.4,0,.2,1), padding 0.35s cubic-bezier(.4,0,.2,1);
  flex-shrink: 0;
}
.sfh-cat-burger:hover {
  background: #ffcc00;
}
.sfh-cat-burger.is-open {
  background: #ffcc00;
  width: auto;
  padding: 0 14px 0 10px;
  gap: 7px;
}

.sfh-cat-burger-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}
.sfh-cat-burger.is-open .sfh-cat-burger-icon {
  transform: scale(0.9);
}

.sfh-cat-burger-label {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width 0.35s cubic-bezier(.4,0,.2,1), opacity 0.2s ease 0.05s;
  pointer-events: none;
}
.sfh-cat-burger.is-open .sfh-cat-burger-label {
  max-width: 120px;
  opacity: 1;
}

/* Dropdown: opens below the button */
/* Dropdown: horizontal, opens to the right of the button — desktop/tablet */
.sfh-cat-menu {
  pointer-events: none;
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%) translateX(-8px);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: nowrap;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
  z-index: 100;
}
.sfh-cat-menu.is-open {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Mobile: title breathing room + cat menu drops below the button */
@media (max-width: 600px) {
  .sfh-title {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .sfh-cat-menu {
    left: 0;
    top: calc(100% + 6px);
    transform: translateY(-6px);
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .sfh-cat-menu.is-open {
    transform: translateY(0);
  }
}
.sfh-arrow {
  pointer-events: auto;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #000;
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 300;
  line-height: 1;
  border: none;
  box-sizing: border-box;
  transition: background-color 0.2s ease;
  transform: none !important;
  flex-shrink: 0;
  font-family: none;
}
/* Hide the HTML entity text and use SVG chevron instead */
.sfh-arrow.sfh-arrow--prev {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px !important;
  color: transparent;
  background-color: #fff;
}
.sfh-arrow.sfh-arrow--next {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px !important;
  color: transparent;
  background-color: #fff;
}
.sfh-arrow.sfh-arrow--prev:hover,
.sfh-arrow.sfh-arrow--next:hover {
  background-color: #ffcc00;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 18px !important;
  transform: none !important;
  transition: background-color 0.2s ease !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'/%3E%3C/svg%3E");
}
.sfh-arrow.sfh-arrow--next:hover {
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 18px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E");
}
.sfh-arrow:hover {
  background-color: #ffcc00;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 18px !important;
  transform: none !important;
  transition: background-color 0.2s ease !important;
}
.sfh-arrow--disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

@media (max-width: 600px) {
  .sfh-arrow {
    width: 34px;
    height: 34px;
  }
}

/* Arrows must never scale or translate — overrides any inherited transform */
.sfh-arrow,
.sfh-arrow:hover,
.sfh-arrow:focus,
.sfh-arrow:active {
  transform: none !important;
}
