/* Burke Video Manager — About page video sections.
 * Based on the existing Burke design; no imported markup or copy is changed.
 * About's #early-years and hero have their own approved style sheets.
 */

/* WRITER + PURPOSE: photograph | story | video, all in the SAME section. */
@media (min-width: 1025px) {
  #burke-2026-page[data-bh-page="about"] #writer.story-row,
  #burke-2026-page[data-bh-page="about"] #second-chance.story-row {
    display: grid;
    grid-template-columns: minmax(0, 35%) minmax(0, 65%);
    height: min(790px, calc(100svh - 90px));
    min-height: 490px;
    overflow: hidden;
    background: #fbf6ec;
  }
  #burke-2026-page[data-bh-page="about"] #writer .story-media,
  #burke-2026-page[data-bh-page="about"] #second-chance .story-media {
    order: 0;
    grid-column: 1;
    grid-row: 1;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background: #10263b;
  }
  #burke-2026-page[data-bh-page="about"] #writer .story-copy,
  #burke-2026-page[data-bh-page="about"] #second-chance .story-copy {
    --bvm-side-video: clamp(188px, 14.2vw, 260px);
    --bvm-side-gutter: clamp(24px, 2.5vw, 44px);
    --bvm-side-gap: clamp(22px, 2.5vw, 42px);
    order: 0;
    grid-column: 2;
    grid-row: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-width: 0;
    min-height: 0;
    width: 100%;
    padding: 24px calc(var(--bvm-side-gutter) + var(--bvm-side-video) + var(--bvm-side-gap)) 24px clamp(35px, 4vw, 78px);
    background: linear-gradient(90deg, #fcf8f0, #f8f0e3);
    text-align: left;
  }
  #burke-2026-page[data-bh-page="about"] #writer .story-copy::after,
  #burke-2026-page[data-bh-page="about"] #second-chance .story-copy::after { display:none; }
  #burke-2026-page[data-bh-page="about"] #writer .story-copy > .eyebrow,
  #burke-2026-page[data-bh-page="about"] #second-chance .story-copy > .eyebrow {
    margin: 0 0 clamp(12px,1.7vh,17px);
    font-size: clamp(11px,.84vw,14px);
    line-height: 1.4;
  }
  #burke-2026-page[data-bh-page="about"] #writer .story-copy > h2,
  #burke-2026-page[data-bh-page="about"] #second-chance .story-copy > h2 {
    margin: 0 0 clamp(14px,2vh,22px);
    font-size: clamp(37px, 3vw, 58px);
    line-height: 1.02;
    letter-spacing: -.035em;
    text-wrap: balance;
  }
  #burke-2026-page[data-bh-page="about"] #writer .story-copy > p,
  #burke-2026-page[data-bh-page="about"] #second-chance .story-copy > p {
    margin: 0;
    max-width: 600px;
    font-size: clamp(14px, 1.06vw, 18px);
    line-height: 1.58;
  }
  #burke-2026-page[data-bh-page="about"] #writer .story-copy > p + p,
  #burke-2026-page[data-bh-page="about"] #second-chance .story-copy > p + p {
    margin-top: clamp(15px,2vh,22px);
  }
  #burke-2026-page[data-bh-page="about"] #writer .bhvp-inline,
  #burke-2026-page[data-bh-page="about"] #second-chance .bhvp-inline {
    position: absolute;
    z-index: 3;
    right: var(--bvm-side-gutter);
    top: 50%;
    left: auto;
    bottom: auto;
    transform: translateY(-50%);
    width: var(--bvm-side-video);
    max-width: var(--bvm-side-video);
    margin: 0;
  }
  #burke-2026-page[data-bh-page="about"] #writer .story-media > img.media-main,
  #burke-2026-page[data-bh-page="about"] #second-chance .story-media > img.media-main {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    padding: 0;
    object-fit: cover;
    object-position: 49% center;
    opacity: 1;
    transform: none !important;
    transition: none;
  }
  #burke-2026-page[data-bh-page="about"] #writer .story-media > img.media-ambient,
  #burke-2026-page[data-bh-page="about"] #second-chance .story-media > img.media-ambient { opacity: 0; }
}

/* Shared video finish: same gold style as earlier About videos. */
#burke-2026-page[data-bh-page="about"] #writer .bhvp,
#burke-2026-page[data-bh-page="about"] #second-chance .bhvp { width:100%;max-width:100%;margin:0; }
#burke-2026-page[data-bh-page="about"] #writer .bhvp__frame,
#burke-2026-page[data-bh-page="about"] #second-chance .bhvp__frame,
#burke-2026-page[data-bh-page="about"] .about-return .bhvp__frame,
#burke-2026-page[data-bh-page="about"] .speaking .bhvp__frame {
  width:100%;height:auto;max-height:none;
  aspect-ratio:9/16;
  border:2px solid #e7b448;
  border-radius:16px;
  box-sizing:border-box;
  overflow:hidden;
  box-shadow:0 12px 30px rgba(8,25,44,.21), 0 0 16px rgba(231,180,72,.25);
}
#burke-2026-page[data-bh-page="about"] #writer .bhvp__poster,
#burke-2026-page[data-bh-page="about"] #writer .bhvp__poster img,
#burke-2026-page[data-bh-page="about"] #second-chance .bhvp__poster,
#burke-2026-page[data-bh-page="about"] #second-chance .bhvp__poster img,
#burke-2026-page[data-bh-page="about"] .about-return .bhvp__poster,
#burke-2026-page[data-bh-page="about"] .about-return .bhvp__poster img,
#burke-2026-page[data-bh-page="about"] .speaking .bhvp__poster,
#burke-2026-page[data-bh-page="about"] .speaking .bhvp__poster img {
  width:100%;height:100%;max-height:none;object-fit:cover;padding:0;
}
#burke-2026-page[data-bh-page="about"] #writer .bhvp__tx,
#burke-2026-page[data-bh-page="about"] #second-chance .bhvp__tx,
#burke-2026-page[data-bh-page="about"] .about-return .bhvp__tx,
#burke-2026-page[data-bh-page="about"] .speaking .bhvp__tx {
  margin-top:10px;text-align:center;
}

/* Narrower desktop: do not squeeze the story into a tiny sliver. */
@media (min-width: 1025px) and (max-width: 1320px) {
  #burke-2026-page[data-bh-page="about"] #writer.story-row,
  #burke-2026-page[data-bh-page="about"] #second-chance.story-row { grid-template-columns:minmax(0,32%) minmax(0,68%); }
  #burke-2026-page[data-bh-page="about"] #writer .story-copy,
  #burke-2026-page[data-bh-page="about"] #second-chance .story-copy {
    --bvm-side-video:clamp(166px,15vw,206px);
    --bvm-side-gap:clamp(15px,1.5vw,25px);
    --bvm-side-gutter:clamp(20px,2vw,28px);
    padding-left:clamp(25px,3vw,40px);
  }
  #burke-2026-page[data-bh-page="about"] #writer .story-copy > h2,
  #burke-2026-page[data-bh-page="about"] #second-chance .story-copy > h2 {font-size:clamp(34px,3.1vw,44px);}
  #burke-2026-page[data-bh-page="about"] #writer .story-copy > p,
  #burke-2026-page[data-bh-page="about"] #second-chance .story-copy > p {font-size:clamp(13.5px,1.15vw,16px);}
}

/* Small laptop + tablets: keep a readable 3-column arrangement while possible. */
@media (min-width:761px) and (max-width:1024px) {
  #burke-2026-page[data-bh-page="about"] #writer.story-row,
  #burke-2026-page[data-bh-page="about"] #second-chance.story-row {
    display:grid;grid-template-columns:minmax(0,30%) minmax(0,70%);
    min-height:360px;height:auto;overflow:hidden;
  }
  #burke-2026-page[data-bh-page="about"] #writer .story-media,
  #burke-2026-page[data-bh-page="about"] #second-chance .story-media {
    grid-column:1;grid-row:1;order:0;height:100%;min-height:0;
  }
  #burke-2026-page[data-bh-page="about"] #writer .story-copy,
  #burke-2026-page[data-bh-page="about"] #second-chance .story-copy {
    display:flex;grid-column:2;grid-row:1;order:0;
    position:relative;justify-content:center;align-items:flex-start;
    --bvm-side-video:clamp(125px,15vw,155px);
    padding:24px calc(var(--bvm-side-video) + 30px) 24px 24px;
    min-width:0;min-height:0;background:#fbf6ec;text-align:left;
  }
  #burke-2026-page[data-bh-page="about"] #writer .story-copy::after,
  #burke-2026-page[data-bh-page="about"] #second-chance .story-copy::after {display:none;}
  #burke-2026-page[data-bh-page="about"] #writer .story-copy > h2,
  #burke-2026-page[data-bh-page="about"] #second-chance .story-copy > h2 {font-size:clamp(30px,3.8vw,39px);margin-bottom:11px;}
  #burke-2026-page[data-bh-page="about"] #writer .story-copy > p,
  #burke-2026-page[data-bh-page="about"] #second-chance .story-copy > p {font-size:clamp(13px,1.5vw,15px);line-height:1.52;}
  #burke-2026-page[data-bh-page="about"] #writer .bhvp-inline,
  #burke-2026-page[data-bh-page="about"] #second-chance .bhvp-inline {
    position:absolute;right:15px;left:auto;top:50%;bottom:auto;
    transform:translateY(-50%);width:var(--bvm-side-video);max-width:var(--bvm-side-video);margin:0;
  }
  #burke-2026-page[data-bh-page="about"] #writer .story-media > img.media-main,
  #burke-2026-page[data-bh-page="about"] #second-chance .story-media > img.media-main {width:100%;height:100%;object-fit:cover;padding:0;opacity:1;transform:none!important;}
  #burke-2026-page[data-bh-page="about"] #writer .story-media > img.media-ambient,
  #burke-2026-page[data-bh-page="about"] #second-chance .story-media > img.media-ambient {opacity:0;}
}

/* Smaller phones: text first, video second and picture last; never clip text. */
@media (max-width:760px) {
  #burke-2026-page[data-bh-page="about"] #writer.story-row,
  #burke-2026-page[data-bh-page="about"] #second-chance.story-row {
    display:flex;flex-direction:column;height:auto;min-height:0;overflow:visible;
  }
  #burke-2026-page[data-bh-page="about"] #writer .story-copy,
  #burke-2026-page[data-bh-page="about"] #second-chance .story-copy {
    order:0;position:relative;padding:34px 22px 28px;background:#fbf6ec;
    display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;
    min-height:0;
  }
  #burke-2026-page[data-bh-page="about"] #writer .story-copy::after,
  #burke-2026-page[data-bh-page="about"] #second-chance .story-copy::after {display:none;}
  #burke-2026-page[data-bh-page="about"] #writer .story-copy > h2,
  #burke-2026-page[data-bh-page="about"] #second-chance .story-copy > h2 {font-size:clamp(34px,8vw,45px);margin:0 0 18px;}
  #burke-2026-page[data-bh-page="about"] #writer .story-copy > p,
  #burke-2026-page[data-bh-page="about"] #second-chance .story-copy > p {margin:0;font-size:15px;line-height:1.6;}
  #burke-2026-page[data-bh-page="about"] #writer .story-copy > p + p,
  #burke-2026-page[data-bh-page="about"] #second-chance .story-copy > p + p {margin-top:15px;}
  #burke-2026-page[data-bh-page="about"] #writer .bhvp-inline,
  #burke-2026-page[data-bh-page="about"] #second-chance .bhvp-inline {
    position:static;transform:none;width:min(265px,67vw);max-width:min(265px,67vw);margin:25px auto 0;
  }
  #burke-2026-page[data-bh-page="about"] #writer .story-media,
  #burke-2026-page[data-bh-page="about"] #second-chance .story-media {
    order:1;width:100%;height:clamp(250px,72vw,400px);min-height:0;overflow:hidden;
  }
  #burke-2026-page[data-bh-page="about"] #writer .story-media > img.media-main,
  #burke-2026-page[data-bh-page="about"] #second-chance .story-media > img.media-main {
    width:100%;height:100%;object-fit:cover;object-position:center;padding:0;opacity:1;transform:none!important;
  }
  #burke-2026-page[data-bh-page="about"] #writer .story-media > img.media-ambient,
  #burke-2026-page[data-bh-page="about"] #second-chance .story-media > img.media-ambient {opacity:0;}
}

/* Other About sections with a player beneath the content: keep the player beside it on desktop. */
@media (min-width: 821px) {
  #burke-2026-page[data-bh-page="about"] .about-return {padding:42px 0 46px;}
  #burke-2026-page[data-bh-page="about"] .about-return .about-return-inner {
    display:grid;grid-template-columns:minmax(0,1fr) 225px;gap:8px 45px;
    max-width:1050px;align-items:center;text-align:left;
  }
  #burke-2026-page[data-bh-page="about"] .about-return-inner > .eyebrow,
  #burke-2026-page[data-bh-page="about"] .about-return-inner > h2,
  #burke-2026-page[data-bh-page="about"] .about-return-inner > p,
  #burke-2026-page[data-bh-page="about"] .about-return-inner > .text-link {grid-column:1;margin-left:0;margin-right:0;}
  #burke-2026-page[data-bh-page="about"] .about-return .about-return-inner > .bhvp-inline {
    grid-column:2;grid-row:1 / span 4;justify-self:center;
    width:225px;max-width:225px;margin:0;
  }
  #burke-2026-page[data-bh-page="about"] .about-return .bhvp {max-width:100%;width:100%;margin:0;}
  #burke-2026-page[data-bh-page="about"] .speaking .speaking-grid {
    grid-template-columns:minmax(0,1.45fr) minmax(0,.55fr);
    gap:32px;padding-block:42px;
  }
  #burke-2026-page[data-bh-page="about"] .speaking .speaking-grid > .reveal:first-child {
    position:relative;min-width:0;
    padding-right:clamp(180px,14.5vw,240px);
  }
  #burke-2026-page[data-bh-page="about"] .speaking .bhvp-inline {
    position:absolute;right:0;top:50%;transform:translateY(-50%);
    width:clamp(170px,12vw,215px);max-width:215px;margin:0;
  }
  #burke-2026-page[data-bh-page="about"] .speaking .bhvp {width:100%;max-width:100%;margin:0;}
}
@media (min-width: 821px) and (max-width: 1180px) {
  #burke-2026-page[data-bh-page="about"] .speaking .speaking-grid {grid-template-columns:minmax(0,1fr) 190px;gap:20px;}
  #burke-2026-page[data-bh-page="about"] .speaking .speaking-grid > .reveal:first-child {padding-right:190px;}
  #burke-2026-page[data-bh-page="about"] .speaking .bhvp-inline {width:165px;}
}
