/*
 * Single Post Hero Block — style.css
 * Path: theme-name/theme-parts/block/fullwidth-hero/style.css
 *
 * All element selectors use .lx-module-* scoped classes to avoid
 * conflicts with theme-level p/h1 styles.
 * All <p> tags have been replaced with <div> in the markup and
 * selectors updated accordingly.
 * No helper classes. No display:none. Visibility is controlled
 * entirely by conditional rendering in render.php.
 */

/* ─── Wrapper ──────────────────────────────────────────────────────────────── */
.lx-module-single-post-fullwidth-hero-wrapper {
  width: 100%;
  margin: 0;
  padding: 0 0 64px;
}

/* ─── Hero Section ─────────────────────────────────────────────────────────── */
.lx-module-single-post-fullwidth-hero-section {
  position: relative;
  width: calc(100% + 48px);
  height: 800px;
  overflow: visible;
  margin: 0;
  margin-left: -24px;
  padding: 0 20px;
}

/* Background image */
.lx-module-single-post-fullwidth-hero-section .lx-module-single-post-fullwidth-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 50% 50%; /* default: center — overridden by alignment classes below */
  z-index: 0;
  overflow: hidden;
}

.lx-module-single-post-fullwidth-hero-section .lx-fullwidth-hero-image-top {
  background-position: 50% 15%;
}

.lx-module-single-post-fullwidth-hero-section .lx-fullwidth-hero-image-center {
  background-position: 50% 50%;
}

.lx-module-single-post-fullwidth-hero-section .lx-fullwidth-hero-image-bottom {
  background-position: 50% 80%;
}

/* Gradient overlay */
.lx-module-single-post-fullwidth-hero-section .lx-module-single-post-fullwidth-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.2) 30%,
    rgba(0, 0, 0, 0.72) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* ─── Content Container ────────────────────────────────────────────────────── */
.lx-module-single-post-fullwidth-hero-section .lx-module-single-post-fullwidth-container {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  width: 100%;
  min-height: 800px;
  margin: 0 auto;
  padding: 24px 0 80px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 0;
  box-sizing: border-box;
}

/* ─── Content Wrapper ──────────────────────────────────────────────────────── */
.lx-module-single-post-fullwidth-hero-section .lx-module-single-post-fullwidth-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

/* Row wrappers */
.lx-module-single-post-fullwidth-hero-section .lx-module-single-post-fullwidth-hero-eyebrow-row,
.lx-module-single-post-fullwidth-hero-section .lx-module-single-post-fullwidth-hero-heading-row,
.lx-module-single-post-fullwidth-hero-section .lx-module-single-post-fullwidth-hero-meta-row {
  margin: 0;
  padding: 0;
  width: 100%;
}

/* ─── Eyebrow ──────────────────────────────────────────────────────────────── */
.lx-module-single-post-fullwidth-hero-section .lx-module-single-post-fullwidth-hero-eyebrow {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.lx-module-single-post-fullwidth-hero-section .lx-module-single-post-fullwidth-hero-eyebrow a {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 16px;
  font-weight: normal;
  letter-spacing: 1.8px;
  text-decoration: underline;
  -webkit-text-decoration: underline;
  line-height: 26px;
  text-transform: uppercase;
  color: #ffffff;
}

.lx-module-single-post-fullwidth-hero-section .lx-module-single-post-fullwidth-hero-eyebrow span {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 16px;
  font-weight: normal;
  letter-spacing: 1.8px;
  text-decoration: none;
  -webkit-text-decoration: none;
  line-height: 26px;
  text-transform: uppercase;
  color: #ffffff;
}

/* Dot separator */
.lx-module-single-post-fullwidth-hero-section .lx-module-single-post-fullwidth-hero-eyebrow-dot {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 16px;
  line-height: 26px;
  color: #ffffff;
  text-decoration: none;
  -webkit-text-decoration: none;
  letter-spacing: 0;
  user-select: none;
}

/* ─── H1 Heading ───────────────────────────────────────────────────────────── */
.lx-module-single-post-fullwidth-hero-section .lx-module-single-post-fullwidth-hero-heading {
  margin: 0;
  padding: 0;
  max-width: 65%;
}

.lx-full-width-hero-image-not-available .lx-module-single-post-fullwidth-hero-heading {
  max-width: none;
}

.lx-module-single-post-fullwidth-hero-section .lx-module-single-post-fullwidth-hero-heading h1 {
  font-family: 'Libre Caslon Display', serif;
  font-size: 64px;
  line-height: 74px;
  font-weight: normal;
  color: #ffffff;
  margin: 0;
  padding: 0;
}

/* ─── Meta Row ─────────────────────────────────────────────────────────────── */
.lx-module-single-post-fullwidth-hero-section .lx-module-single-post-fullwidth-hero-meta {
  margin: 0;
  padding: 0;
}

.lx-module-single-post-fullwidth-hero-section .lx-module-single-post-fullwidth-hero-meta-line {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 16px;
  line-height: 26px;
  color: #ffffff;
  margin: 0;
  padding: 0;
  display: block;
}

/* All meta child elements — fully explicit, no theme inheritance */
.lx-module-single-post-fullwidth-hero-section .lx-module-single-post-fullwidth-hero-meta-line .lx-meta-label {
  font-family: 'Instrument Sans', sans-serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 26px !important;
  color: #ffffff !important;
  text-decoration: none !important;
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
}

.lx-module-single-post-fullwidth-hero-section .lx-module-single-post-fullwidth-hero-meta-line .lx-meta-link {
  font-family: 'Instrument Sans', sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 26px !important;
  color: #ffffff !important;
  text-decoration: underline !important;
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
}

.lx-module-single-post-fullwidth-hero-section .lx-module-single-post-fullwidth-hero-meta-line .lx-meta-sep {
  font-family: 'Instrument Sans', sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 26px !important;
  color: #ffffff !important;
  text-decoration: none !important;
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
}

.lx-module-single-post-fullwidth-hero-section .lx-module-single-post-fullwidth-hero-meta-line .lx-meta-date {
  font-family: 'Instrument Sans', sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 26px !important;
  color: #ffffff !important;
  text-decoration: none !important;
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Caption photo credit label */
.lx-module-single-post-fullwidth-hero-caption-photo .lx-meta-label,
.lx-module-single-post-fullwidth-hero-caption-photo .lx-meta-label--dark {
  font-family: 'Instrument Sans', sans-serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 26px !important;
  color: #000000 !important;
  text-decoration: none !important;
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
}

.lx-module-single-post-fullwidth-hero-caption-photo .lx-meta-link--dark {
  font-family: 'Instrument Sans', sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 26px !important;
  color: #000000 !important;
  text-decoration: underline !important;
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
}

.lx-module-single-post-fullwidth-hero-caption-photo .lx-meta-date--dark {
  font-family: 'Instrument Sans', sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 26px !important;
  color: #000000 !important;
  text-decoration: none !important;
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ─── Caption Section ──────────────────────────────────────────────────────── */
.lx-module-single-post-fullwidth-hero-caption-section {
  display: none;
  width: 100%;
  padding: 12px 0;
}

.lx-module-single-post-fullwidth-hero-caption-section .lx-module-single-post-fullwidth-hero-caption-container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 64px;
}

.lx-module-single-post-fullwidth-hero-caption-section .lx-module-single-post-fullwidth-hero-caption-description {
  margin: 0;
  padding: 0;
  max-width: calc(60% - 24px);
  flex-shrink: 0;
}

.lx-module-single-post-fullwidth-hero-caption-section .lx-module-single-post-fullwidth-hero-caption-description-text {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 16px;
  line-height: 26px;
  color: #000;
  margin: 0;
  padding: 0;
}

.lx-module-single-post-fullwidth-hero-caption-section .lx-module-single-post-fullwidth-hero-caption-photo {
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  text-align: right;
}

.lx-module-single-post-fullwidth-hero-caption-section .lx-module-single-post-fullwidth-hero-caption-photo-text {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 16px;
  line-height: 26px;
  color: #000;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.lx-module-single-post-fullwidth-hero-caption-section .lx-module-single-post-fullwidth-hero-caption-photo a {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 16px;
  line-height: 26px;
  color: #000;
  text-decoration: underline;
}

.lx-module-single-post-fullwidth-hero-caption-section .lx-module-single-post-fullwidth-hero-caption-photo strong {
  font-weight: 600;
}


/* ─── Partner Content Badge ────────────────────────────────────────────────── */

/* Hidden by default — only shown when wrapper carries the helper class */
.lx-module-single-post-fullwidth-hero-section .lx-module-single-post-fullwidth-hero-partner-content-row {
  display: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

/* Helper class on wrapper reveals the badge row (front end + editor preview) */
.lx-module-single-post-fullwidth-hero-has-partner-content .lx-module-single-post-fullwidth-hero-partner-content-row {
  display: block;
  margin-top: 12px;
}

.lx-module-single-post-fullwidth-hero-section .lx-module-single-post-fullwidth-hero-partner-content-badge {
  display: inline-block;
  padding: 3px 8px 2px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  font-family: 'Instrument Sans', sans-serif !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  letter-spacing: 1.8px !important;
  line-height: 16px !important;
  text-transform: uppercase !important;
  color: #ffffff !important;
  text-decoration: none !important;
  white-space: nowrap;
  margin: 0;
}
/* ─── Gutenberg Editor Override ────────────────────────────────────────────── */

.block-editor-block-list__layout .lx-module-single-post-fullwidth-hero-wrapper,
.editor-styles-wrapper .lx-module-single-post-fullwidth-hero-wrapper {
  overflow: hidden;
}

.block-editor-block-list__layout .lx-module-single-post-fullwidth-hero-section,
.editor-styles-wrapper .lx-module-single-post-fullwidth-hero-section {
  width: 100% !important;
  margin-left: 0 !important;
  height: 800px;
  min-height: 800px;
  overflow: hidden !important;
}

.block-editor-block-list__layout .lx-full-width-hero-image-not-available,
.editor-styles-wrapper .lx-full-width-hero-image-not-available {
  height: auto !important;
  min-height: 0 !important;
}

.block-editor-block-list__layout .lx-module-single-post-fullwidth-hero-content,
.editor-styles-wrapper .lx-module-single-post-fullwidth-hero-content {
  padding-left: 16px;
  padding-right: 16px;
}

.block-editor-block-list__layout .lx-full-width-hero-image-not-available .lx-module-single-post-fullwidth-hero-content,
.editor-styles-wrapper .lx-full-width-hero-image-not-available .lx-module-single-post-fullwidth-hero-content {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ─── No Image State ───────────────────────────────────────────────────────── */

.lx-full-width-hero-image-not-available {
  height: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

.lx-full-width-hero-image-not-available .lx-module-single-post-fullwidth-hero-overlay {
  display: none;
}

.lx-full-width-hero-image-not-available .lx-module-single-post-fullwidth-container {
  min-height: auto !important;
  padding: 48px 0 24px !important;
  border-bottom: 1px solid #f5f5f5;
}

.lx-full-width-hero-image-not-available .lx-module-single-post-fullwidth-hero-content {
  gap: 24px;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.lx-full-width-hero-image-not-available .lx-module-single-post-fullwidth-hero-heading {
  max-width: 70%;
}

.lx-full-width-hero-image-not-available .lx-module-single-post-fullwidth-hero-heading h1 {
  font-size: 64px !important;
  line-height: 74px !important;
}

.lx-full-width-hero-image-not-available .lx-module-single-post-fullwidth-hero-eyebrow a,
.lx-full-width-hero-image-not-available .lx-module-single-post-fullwidth-hero-eyebrow span,
.lx-full-width-hero-image-not-available .lx-module-single-post-fullwidth-hero-eyebrow-dot,
.lx-full-width-hero-image-not-available .lx-module-single-post-fullwidth-hero-heading h1,
.lx-full-width-hero-image-not-available .lx-module-single-post-fullwidth-hero-meta-line,
.lx-full-width-hero-image-not-available .lx-module-single-post-fullwidth-hero-meta-line .lx-meta-label,
.lx-full-width-hero-image-not-available .lx-module-single-post-fullwidth-hero-meta-line .lx-meta-link,
.lx-full-width-hero-image-not-available .lx-module-single-post-fullwidth-hero-meta-line .lx-meta-sep,
.lx-full-width-hero-image-not-available .lx-module-single-post-fullwidth-hero-meta-line .lx-meta-date,
.lx-full-width-hero-image-not-available .lx-module-single-post-fullwidth-hero-partner-content-badge {
  color: #000000 !important;
}

.lx-full-width-hero-image-not-available .lx-module-single-post-fullwidth-hero-partner-content-badge {
  border-color: rgba(0, 0, 0, 0.6) !important;
}

.lx-full-width-hero-image-not-available ~ .lx-module-single-post-fullwidth-hero-caption-section {
  display: none;
}

/* ─── Mobile ───────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .lx-module-single-post-fullwidth-hero-wrapper {
    padding-bottom: 32px;
  }

  .lx-module-single-post-fullwidth-hero-section {
    height: 600px;
  }

  .lx-module-single-post-fullwidth-hero-section .lx-module-single-post-fullwidth-container {
    min-height: 600px;
    padding: 24px 0;
  }

  .lx-module-single-post-fullwidth-hero-section .lx-module-single-post-fullwidth-hero-heading {
    max-width: 100%;
  }

  .lx-module-single-post-fullwidth-hero-section .lx-module-single-post-fullwidth-hero-heading h1 {
    font-size: 40px;
    line-height: 48px;
  }

  .lx-full-width-hero-image-not-available .lx-module-single-post-fullwidth-hero-heading {
    max-width: none;
  }

  .lx-full-width-hero-image-not-available .lx-module-single-post-fullwidth-hero-heading h1 {
    font-size: 40px !important;
    line-height: 48px !important;
  }

  .lx-full-width-hero-image-not-available .lx-module-single-post-fullwidth-container {
    padding-top: 32px !important;
  }

  .lx-module-single-post-fullwidth-hero-section .lx-module-single-post-fullwidth-hero-meta-line,
  .lx-module-single-post-fullwidth-hero-section .lx-module-single-post-fullwidth-hero-meta-line .lx-meta-label,
  .lx-module-single-post-fullwidth-hero-section .lx-module-single-post-fullwidth-hero-meta-line .lx-meta-link,
  .lx-module-single-post-fullwidth-hero-section .lx-module-single-post-fullwidth-hero-meta-line .lx-meta-sep,
  .lx-module-single-post-fullwidth-hero-section .lx-module-single-post-fullwidth-hero-meta-line .lx-meta-date {
    font-size: 16px !important;
    line-height: 26px !important;
  }

  .lx-module-single-post-fullwidth-hero-caption-section .lx-module-single-post-fullwidth-hero-caption-container {
    flex-direction: column-reverse;
    gap: 8px;
  }

  .lx-module-single-post-fullwidth-hero-caption-section .lx-module-single-post-fullwidth-hero-caption-photo {
    text-align: left;
  }

  .lx-module-single-post-fullwidth-hero-caption-section .lx-module-single-post-fullwidth-hero-caption-photo-text {
    white-space: normal;
  }
}

/* ─── Small Mobile ─────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .lx-module-single-post-fullwidth-hero-caption-section .lx-module-single-post-fullwidth-hero-caption-description {
    max-width: 100%;
    width: 100%;
  }

  .lx-module-single-post-fullwidth-hero-caption-section .lx-module-single-post-fullwidth-hero-caption-container {
    gap: 24px;
  }
}