/* Dialog Polyfill 
--------------------------------------*/
dialog { display:block; position:fixed; top:50%; -webkit-transform:translate(0, -50%); transform:translate(0, -50%); left:0; right:0; width:-webkit-fit-content; width:-moz-fit-content; width:fit-content; height:-webkit-fit-content; height:-moz-fit-content; height:fit-content; margin:auto; padding:0; border:none; box-shadow:0 0 7px rgba(0,0,0,0.7); background:var(--sky-blue); max-width:90vw; max-height:90vh; }
  dialog[open] { -webkit-animation:dialogShow .25s ease-out; animation:dialogShow .25s ease-out;}
  dialog:not([open]) { display:none; }
  dialog.fixed { position:fixed; top:50%; -webkit-transform:translate(0, -50%); transform:translate(0, -50%); }
dialog + .backdrop { position:fixed; top:0; right:0; bottom:0; left:0; }
dialog + .backdrop,
dialog::-webkit-backdrop { background: rgba(8, 22, 41, 0.8); }
._dialog_overlay { position:fixed; top:0; right:0; bottom:0; left:0; }
.has-open-dialog .page-main { z-index:unset; }
.has-open-dialog .page-main::before { z-index:0; }

.dialog-close {position:absolute; top:0; right:1rem;}
  .dialog-close button {color: var(--brand-blue); padding:0; margin:0; border:0; background:none; -webkit-animation: dialogEnter 0.3s; animation: dialogEnter 0.3s; line-height:1.25; position:absolute; right:-0.16em; top:1rem; text-align:center; border-radius:100%; }
  .dialog-close.offset {top:-1.6rem; right:-0.7rem;}
    .dialog-close.offset button {width:1em; height:1em; line-height:1em; }
    
.dialog-frame { overflow-y:auto; height:auto; max-height:90vh;}
.dialog-body { padding:1rem; }
.dialog-image img { width:100%; }

@-webkit-keyframes dialogEnter { 
  from {  opacity:0; -webkit-transform:translate3d(0, -1em, 0); transform:translate3d(0, -1em, 0); } 
  to { opacity:1; -webkit-transform:translate3d(0, 0, 0); transform:translate3d(0, 0, 0); } 
}

@keyframes dialogEnter { 
  from {  opacity:0; -webkit-transform:translate3d(0, -1em, 0); transform:translate3d(0, -1em, 0); } 
  to { opacity:1; -webkit-transform:translate3d(0, 0, 0); transform:translate3d(0, 0, 0); } 
}

@-webkit-keyframes dialogShow { 
  from {opacity:0;} 
  to {opacity:1;} 
}

@keyframes dialogShow { 
  from {opacity:0;} 
  to {opacity:1;} 
}

/* Custom 
--------------------------------------*/
@media screen  { 
  .dialog-pager { padding:1rem; width:100%; }
  .btn-pager { display:block; width:100%; }
  .btn-pager:hover { background:#fff; }  
}

@media screen and (min-width:40rem) { 
  /* Units Modal */
  .dialog-unit {overflow:visible; max-width:80vw; display:-webkit-box; display:flex; -webkit-box-orient:horizontal; -webkit-box-direction:normal; flex-flow:row; }
  .dialog-unit ul { list-style:outside;}
    .dialog-unit .dialog-image {margin:-1rem 1rem 0 -1rem; width:40%; }
    .dialog-unit .dialog-body { padding:2rem 2rem 2rem 1rem; width:60%; overflow-y:auto; }
  .dialog-unit .dialog-frame { display:-webkit-box; display:flex; -webkit-box-orient:horizontal; -webkit-box-direction:normal; flex-flow:row wrap; overflow:visible; height:auto; padding:0; }
  .dialog-unit .dialog-name { font-weight:400; font-family:var(--font-heading-article); }

  .dialog-pager { display:-webkit-box; display:flex; -webkit-box-pack:justify; justify-content:space-between; }
  .btn-pager { width:auto; }
}

@media screen and (min-width:48rem) { 
  .dialog-unit .dialog-image { width:33%; }
  .dialog-unit .dialog-body { width:67%; }
}  
@media screen and (min-width:120rem) { 
 .dialog-unit {max-width:108rem; }
}