/* Dialog Polyfill 
--------------------------------------*/
.dialog-item { position:relative; }
dialog { display:block; position:fixed; top:10vh; left:0; right:0; width:-moz-fit-content; width:fit-content; height:-moz-fit-content; height:fit-content; max-width:90vw; max-height:90vh; overflow:visible; margin:auto; padding:0; border:none; box-shadow:0 0 7px rgba(0,0,0,0.7); background:var(--sky-blue); }
dialog[open] { animation:dialogShow .25s ease-out;}
dialog:not([open]) { display:none; }
dialog.fixed { position:fixed; top:50%; transform:translate(0, -50%); }
dialog + .backdrop { position:fixed; top:0; right:0; bottom:0; left:0;  }
dialog + .backdrop,
  dialog::backdrop { background:rgba(8,22,41,0.7); }
._dialog_overlay { position:fixed; top:0; right:0; bottom:0; left:0; }
.has-open-dialog .page-main { z-index:auto; z-index:initial; }
.dialog-close { position:absolute; top:-1rem; right:-1rem; margin:0;
  button { width:3rem; height:3rem; padding:0; color:#fff; font-size:2.25rem; line-height:1em; border-radius:50%; background:var(--brand-blue); border:2px solid white; animation:dialogEnter 0.3s; }
  &.offset { top:-1.6rem; right:-0.7rem; }
  &.offset button { width:1em; height:1em; line-height:1em; }
}
.dialog-content { overflow-y:auto; height:auto; max-height:90vh;}
.dialog-body { padding:1rem; }
.dialog-image img { width:100%; }
@keyframes dialogEnter { 
  from { opacity:0; transform:translate3d(0, -1em, 0); }
  to { opacity:1; transform:translate3d(0, 0, 0); }
}
@keyframes dialogShow { 
  from {opacity:0;} 
  to {opacity:1;} 
}
/* Default Style 
--------------------------------------*/
.dialog-heading { margin:0.25rem 0 1.5rem; padding:0; }
.dialog-title { font-weight:bold; }
/* Video Modal */
.dialog-video { width:800px; max-width:80vw; background:transparent; }
/* Alternate Style 1
--------------------------------------*/
/* People Modal */
.style1 { background:transparent; box-shadow:none;
  .dialog-heading { color:white; }
  .dialog-team { color:var(--gray-light); }
  .dialog-title { color:white; }
  .dialog-image.image-circle img { border-radius:50%; overflow:hidden; }
  .dialog-bio,
  & .dialog-body,
  & .dialog-desc { color:white; }
  .dialog-bio a,
  .dialog-body a,
  .dialog-desc a { color:var(--sky-blue-light); }
  + .backdrop { background:rgba(8,22,41,0.98); }
  &::backdrop { background:rgba(8,22,41,0.98); }
   h2, h3, h4, h5, h6 { color:white; }

  .dialog-content .btn { color:var(--brand-blue); }

  .dialog-pager .btn { color:white; }
  .dialog-pager .btn:hover { background:var(--brand-blue-light); }
}
/* 480px
----------------------------------------------------*/
@media only screen and (min-width:30em) {
  .dialog { display:flex; flex-flow:row; overflow:visible; max-width:80vw;
    .dialog-content { display:flex; flex-flow:row; overflow:visible; height:auto; padding:0; }
    .dialog-image { width:40%; }
    .dialog-body { width:60%; overflow-y:auto; padding:2rem 2rem 2rem 1rem; }
  }
}
/* 700px
----------------------------------------------------*/
@media only screen and (min-width:40em) {
  .dialog-content { overflow:visible; display:flex; flex-flow:row; height:auto; padding:0; align-items:flex-start; max-width:90vw;
    .dialog-image { width:50%; }
    .dialog-body { padding:2rem 2rem 2rem 1rem; width:50%; overflow-y:auto; max-height:85vh; }
  }
}
/* 768px
----------------------------------------------------*/
@media only screen and (min-width:48em) {
  .dialog-content .dialog-image { width:40%; padding:2rem 0 2rem 2rem; }
  .dialog-content .dialog-body { width:60%; order:2; }
}
/* 1600px
----------------------------------------------------*/
@media only screen and (min-width:100em) {
  .dialog-content {max-width:108rem; }
}
