/* Shared project presentation for the WordPress editor and existing BeBuilder projects. */
.dvw-project-view #Subheader { display: none; }
.dvw-project-view #Header { min-height: 0; }
#Content.dvw-project { padding: 0; background: #fff; color: #292d30; }
.dvw-project-shell { box-sizing: border-box; width: min(1440px, calc(100% - 64px)); margin-inline: auto; }
.dvw-project-header { padding-block: 30px 60px; }
.dvw-project-breadcrumbs { margin-bottom: 38px; font-size: 14px; line-height: 1.6; }
.dvw-project-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 0; padding: 0; list-style: none; }
.dvw-project-breadcrumbs li { margin: 0; color: #71777b; }
.dvw-project-breadcrumbs li + li::before { content: "/"; margin-right: 12px; color: #b1aaa2; }
.dvw-project-breadcrumbs a { color: #555c61; }
.dvw-project-breadcrumbs a:hover { color: #ae271b; }
.dvw-project-hero { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.dvw-project-hero.is-without-photo { grid-template-columns: minmax(0, 1fr); }
.dvw-project-hero.is-without-photo .dvw-project-intro { max-width: 900px; }
.dvw-project-intro { padding-block: 20px; }
#Content .dvw-project-kicker { margin: 0 0 15px; color: #ae271b; font-size: 12px; font-weight: 700; line-height: 1.6; letter-spacing: .1em; text-transform: uppercase; }
#Content .dvw-project-intro h1 { margin: 0 0 22px; font-size: clamp(36px, 3.5vw, 54px); font-weight: 500; line-height: 1.22; letter-spacing: -.025em; overflow-wrap: break-word; }
.dvw-project-lead { max-width: 540px; color: #555c61; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.7; }
#Content .dvw-project-lead p { margin: 0; }
#Content .dvw-project-category { display: inline-flex; margin: 25px 0 0; padding: 7px 12px; border: 1px solid #e5ded7; border-radius: 4px; color: #626361; background: #faf8f5; font-size: 13px; line-height: 1.5; }
.dvw-project-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px 26px; margin-top: 32px; }
.dvw-project-button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; box-sizing: border-box; min-height: 54px; padding: 16px 23px; border-radius: 4px; background: #ae271b; color: #fff; font-size: 16px; font-weight: 600; line-height: 1.5; text-decoration: none; transition: background .18s ease; }
.dvw-project-button:hover { background: #8f2017; color: #fff; text-decoration: none; }
.dvw-project-text-link { display: inline-flex; align-items: center; gap: 14px; color: #ae271b; font-size: 16px; font-weight: 600; line-height: 1.5; text-decoration: none; }
.dvw-project-text-link:hover { color: #8f2017; text-decoration: underline; text-underline-offset: 4px; }
.dvw-project a:focus-visible { outline: 3px solid #ae271b; outline-offset: 5px; }
.dvw-project-hero-photo, .dvw-project-detail-photo { min-width: 0; margin: 0; }
.dvw-project-photo-link { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 8px; background: #f0ede9; }
.dvw-project-photo-link img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.dvw-project-photo-link.is-portrait img { object-fit: contain; }
.dvw-project-photo-link:hover img { transform: scale(1.025); }
.dvw-project-photo-label { position: absolute; right: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 10px; padding: 11px 15px; border-radius: 4px; background: #fff; color: #292d30; box-shadow: 0 2px 12px #00000014; font-size: 14px; font-weight: 600; line-height: 1.5; }
.dvw-project-photo-label svg { flex-shrink: 0; }
.dvw-project-overview { scroll-margin-top: 110px; }
.dvw-project-features { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; gap: clamp(36px, 5vw, 80px); padding: 36px 40px; border: 1px solid #e9e3dc; border-radius: 8px; background: #f8f6f3; }
#Content .dvw-project-features .dvw-project-kicker { margin-bottom: 10px; }
#Content .dvw-project-features h2 { max-width: 380px; margin: 0; font-size: 26px; line-height: 1.4; font-weight: 500; }
.dvw-project-feature-list ul { display: grid; gap: 15px; margin: 0; padding: 0; list-style: none; }
.dvw-project-feature-list li { position: relative; margin: 0; padding-left: 30px; color: #454b4f; font-size: 17px; line-height: 1.6; }
.dvw-project-feature-list li::before { position: absolute; top: 8px; left: 2px; width: 12px; height: 6px; border-left: 2px solid #ae271b; border-bottom: 2px solid #ae271b; content: ""; transform: rotate(-45deg); }
.dvw-project-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; padding-block: clamp(64px, 6vw, 96px); }
#Content .dvw-project-story h2 { margin: 0 0 24px; font-size: clamp(28px, 2.6vw, 38px); font-weight: 500; line-height: 1.35; }
.dvw-project-prose { max-width: 650px; color: #555c61; font-size: 18px; line-height: 1.8; }
#Content .dvw-project-prose p { margin-bottom: 20px; }
.dvw-project-story .dvw-project-text-link { margin-top: 10px; }
.dvw-project-detail-photo .dvw-project-photo-link { aspect-ratio: 4 / 3; }
.dvw-project-detail-photo figcaption { margin-top: 14px; color: #71777b; font-size: 14px; line-height: 1.65; }
.dvw-project-contact { display: flex; justify-content: space-between; align-items: center; gap: 48px; padding: 40px; border-left: 4px solid #ae271b; border-radius: 0 8px 8px 0; background: #f8f6f3; }
.dvw-project-contact > div { max-width: 820px; }
#Content .dvw-project-contact h2 { margin: 0 0 15px; font-size: clamp(26px, 2.5vw, 34px); font-weight: 500; line-height: 1.4; }
#Content .dvw-project-contact p:last-child { margin: 0; color: #555c61; font-size: 17px; line-height: 1.7; }
.dvw-project-contact .dvw-project-button { flex-shrink: 0; }
.dvw-project-faq { padding-block: 80px; }
.dvw-project-faq .dvw-faq-block { max-width: 1000px; margin-inline: auto; }
#Content .dvw-project-faq .dvw-faq-title { font-size: 34px; font-weight: 500; }
#Content .dvw-project-faq .dvw-faq-question { font-size: 20px; }
.dvw-project-related { padding-block: 64px 72px; background: #f8f6f3; border-top: 1px solid #e9e3dc; }
.dvw-project-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 32px; }
#Content .dvw-project-section-heading h2 { margin: 0; font-size: clamp(28px, 2.7vw, 38px); font-weight: 500; }
.dvw-project-section-heading .dvw-project-text-link { margin-bottom: 8px; flex-shrink: 0; }
.dvw-project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.dvw-project-card { overflow: hidden; border: 1px solid #e5ded7; border-radius: 8px; background: #fff; }
.dvw-project-card > a { display: flex; flex-direction: column; height: 100%; color: #292d30; text-decoration: none; }
.dvw-project-card > a:hover { color: #292d30; text-decoration: none; }
.dvw-project-card > a:focus-visible { outline-offset: -3px; }
.dvw-project-card-image { aspect-ratio: 4 / 3; overflow: hidden; background: #ede9e5; }
.dvw-project-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.dvw-project-card a:hover img { transform: scale(1.03); }
.dvw-project-card-body { display: flex; flex-direction: column; flex: 1; padding: 26px; }
#Content .dvw-project-card-body .dvw-project-kicker { margin-bottom: 10px; font-size: 11px; }
#Content .dvw-project-card h3 { margin: 0 0 24px; font-size: 23px; font-weight: 500; line-height: 1.4; }
.dvw-project-card-read { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; color: #ae271b; font-size: 15px; font-weight: 600; }
.dvw-project-card a:hover .dvw-project-card-read { text-decoration: underline; text-underline-offset: 4px; }

/* Keep prose readable while letting editor galleries, images and columns use the full shell. */
.dvw-project-content { padding-block: 12px 64px; scroll-margin-top: 110px; }
.dvw-project-editor-content { color: #555c61; font-size: 18px; line-height: 1.8; overflow-wrap: break-word; }
.dvw-project-editor-content > :is(p, h2, h3, h4, h5, h6, ul, ol, blockquote) { box-sizing: border-box; max-width: 760px; margin-inline: auto; }
#Content .dvw-project-editor-content > p { margin-bottom: 22px; }
#Content .dvw-project-editor-content h2 { margin-block: 44px 24px; color: #292d30; font-size: clamp(28px, 2.6vw, 38px); font-weight: 500; line-height: 1.35; }
#Content .dvw-project-editor-content h3 { margin-block: 34px 20px; color: #292d30; font-size: 27px; font-weight: 500; line-height: 1.4; }
#Content .dvw-project-editor-content > :first-child { margin-top: 0; }
#Content .dvw-project-editor-content > :last-child { margin-bottom: 0; }
.dvw-project-editor-content > :is(.alignwide, .alignfull) { width: 100%; max-width: none; margin-inline: 0; }
.dvw-project-content-pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 36px; font-size: 16px; }
.dvw-project-content-pages .post-page-numbers { min-width: 36px; padding: 5px 9px; border: 1px solid #e5ded7; border-radius: 4px; text-align: center; }
.dvw-project-content-pages .post-page-numbers.current { border-color: #ae271b; color: #ae271b; }

/* Native dialog, with the original photo link as the no-script fallback. */
.dvw-project-lightbox { box-sizing: border-box; width: min(1120px, calc(100% - 48px)); max-width: none; max-height: calc(100dvh - 48px); margin: auto; padding: 28px; border: 0; border-radius: 8px; color: #fff; background: #202527; box-shadow: 0 20px 80px #00000040; }
.dvw-project-lightbox::backdrop { background: #121619df; }
.dvw-project-lightbox figure { margin: 0; }
.dvw-project-lightbox-image { display: block; width: 100%; height: min(66dvh, 780px); object-fit: contain; }
.dvw-project-lightbox-caption { min-height: 1.6em; max-width: 850px; margin: 16px auto 0; color: #e1e4e5; font-size: 15px; line-height: 1.6; text-align: center; }
.dvw-project-lightbox-close, .dvw-project-lightbox-prev, .dvw-project-lightbox-next { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 46px; height: 46px; margin: 0; padding: 0; border: 1px solid #ffffff40; border-radius: 4px; background: #202527; color: #fff; font-size: 25px; line-height: 1; cursor: pointer; }
.dvw-project-lightbox-close { display: flex; margin: 0 0 14px auto; }
.dvw-project-lightbox button:hover { background: #3b4245; color: #fff; }
.dvw-project-lightbox button:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.dvw-project-lightbox-bar { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 18px; }
.dvw-project-lightbox-count { min-width: 60px; color: #e1e4e5; font-size: 14px; text-align: center; }
.dvw-project-lightbox [hidden] { display: none; }

@media (max-width: 1099px) {
  .dvw-project-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  #Content .dvw-project-intro h1 { font-size: 38px; }
  .dvw-project-actions { align-items: start; flex-direction: column; gap: 20px; }
  .dvw-project-features { gap: 32px; padding: 30px; }
  .dvw-project-contact { gap: 30px; padding: 32px; }
  .dvw-project-contact .dvw-project-button { gap: 14px; }
}

@media (max-width: 767px) {
  .dvw-project-shell { width: calc(100% - 40px); }
  .dvw-project-header { padding-block: 23px 32px; }
  .dvw-project-breadcrumbs { margin-bottom: 30px; font-size: 12px; }
  .dvw-project-breadcrumbs ol { gap: 4px 8px; }
  .dvw-project-breadcrumbs li + li::before { margin-right: 8px; }
  .dvw-project-hero { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .dvw-project-intro { padding: 0; }
  #Content .dvw-project-intro h1 { font-size: clamp(30px, 8.3vw, 38px); margin-bottom: 18px; }
  .dvw-project-lead { font-size: 18px; }
  #Content .dvw-project-category { margin-top: 20px; }
  .dvw-project-actions { flex-direction: row; align-items: center; gap: 18px 24px; margin-top: 25px; }
  .dvw-project-button, .dvw-project-text-link { font-size: 15px; }
  .dvw-project-photo-label { right: 12px; bottom: 12px; padding: 9px 12px; font-size: 12px; }
  .dvw-project-features { grid-template-columns: minmax(0, 1fr); gap: 23px; padding: 25px; }
  #Content .dvw-project-features h2 { font-size: 23px; }
  .dvw-project-feature-list li { font-size: 16px; }
  .dvw-project-story { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-block: 48px; }
  #Content .dvw-project-story h2 { font-size: 28px; margin-bottom: 20px; }
  .dvw-project-prose { font-size: 17px; }
  .dvw-project-contact { align-items: start; flex-direction: column; gap: 24px; padding: 28px 24px; }
  #Content .dvw-project-contact h2 { font-size: 26px; }
  .dvw-project-contact .dvw-project-button { width: 100%; }
  .dvw-project-faq { padding-block: 48px; }
  #Content .dvw-project-faq .dvw-faq-title { font-size: 28px; }
  #Content .dvw-project-faq .dvw-faq-question { font-size: 18px; }
  .dvw-project-related { padding-block: 48px; }
  .dvw-project-section-heading { align-items: start; flex-direction: column; gap: 18px; }
  .dvw-project-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .dvw-project-card-body { padding: 24px; }
  .dvw-project-content { padding-block: 12px 48px; }
  .dvw-project-editor-content { font-size: 17px; }
  #Content .dvw-project-editor-content h2 { margin-block: 32px 20px; font-size: 28px; }
  #Content .dvw-project-editor-content h3 { margin-block: 28px 18px; font-size: 24px; }
  .dvw-project-lightbox { width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 16px; }
  .dvw-project-lightbox-image { height: 56dvh; }
  .dvw-project-lightbox-caption { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .dvw-project-photo-link img, .dvw-project-card-image img, .dvw-project-button { transition: none; }
  .dvw-project-photo-link:hover img, .dvw-project-card a:hover img { transform: none; }
}
