/* Home page modal styling (moved from inline <style> to keep pages clean) */
/* Modal shell */
  .pp-modal{ position: fixed; inset: 0; z-index: 1055; display: none; }
  .pp-modal.is-open{ display: block; }
  .pp-modal__backdrop{ position: absolute; inset: 0; background: rgba(0,0,0,.6); }

  /* Dialog: 50% width on desktop */
  .pp-modal__dialog{
    position: relative;
    width: min(50vw, 980px);
    margin: 6vh auto 0;
    background: rgba(2,6,23,.96);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.55);
    display: flex;
    flex-direction: column;
  }

  @media (max-width: 992px){
    .pp-modal__dialog{ width: 95vw; margin-top: 5vh; }
  }

  /* Header */
  .pp-modal__header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .pp-modal__title{ font-weight: 700; color: #fff; }
  .pp-modal__close{
    appearance: none;
    border: 0;
    background: transparent;
    color: rgba(255,255,255,.85);
    font-size: 28px;
    line-height: 1;
    padding: 0 6px;
    cursor: pointer;
  }
  .pp-modal__close:hover{ color: #fff; }

  /* Body: force 16:9 */
  .pp-modal__body{
    background: #000;
    aspect-ratio: 16 / 9;
    flex: 0 0 auto;                 /* don't stretch to arbitrary height */
    max-height: calc(88vh - 58px);  /* prevents it from going off screen */
  }

  /* Video fills the 16:9 box completely */
  .pp-modal__body video{
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
    object-fit: cover;              /* FILL COMPLETELY (may crop edges) */
  }

  body.pp-modal-open{ overflow: hidden; }
