/* ************************************************************** */
/*                                                                */
/*                 This file should not be changed.               */
/*        If changes are required - override in styles.css        */
/*                                                                */
/* ************************************************************** */

/* MOBILE SMALL - Non-Retina - (0-321px) */
button,
.modal-header {
  --bg-color: var(--d-button-bg);
  --bor-color: var(--d-button-border);
  --txt-color: var(--d-button-color);
}
/* --------------- Modals --------------- */
button.modal-button,
button.modal-close,
a.modal-button, /* for Views created modals */
a.modal-close {
  display: none !important; /* Hide the modal button if there is no javascript */
}
.js button.modal-button,
.js button.modal-close,
.js a.modal-button, /* for Views created modals */
.js a.modal-close {
  display: inline-block !important; /* Show the modal button if there is javascript */
}
.js body.modal-is-open {
  overflow: hidden;
}
.js .modal {
  display: none;
}
.js .modal.is-open {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 998;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.js .modal.is-open .modal-mask,
.modal.modal-is-open { /* background overlay when modal is open */
  background-color: rgba(0,0,0,0.65);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
.modal-container { /* space above and below modal window */
  border: 0.1rem solid var(--color-mid-grey);
  box-shadow: 0px 3px 9px 0px rgba(0,0,0,0.5);
  border-radius: var(--d-button-border-radius);
  overflow: hidden;
}
.js .modal.is-open .modal-container { /* space above and below modal window */
  margin-top: var(--page-margin);
  margin-bottom: var(--page-margin);
  margin-left: auto;
  margin-right: auto;
  max-width: 80%;
  position: relative;
  z-index: 999;
}
.modal .modal-header {
  background-color:var(--bg-color); 
  border-color:var(--bor-color); /* always have a border - if you don't want a visual border, make this the same colour as the background colour above */
  padding-left: var(--d-margin-bottom);
  padding-right: var(--d-margin-bottom);
}
.js .modal.is-open .modal-header {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-content: stretch;
  align-items: center;
}
.modal .modal-header h2 {
  color:var(--txt-color);
  margin: 0;
  padding-top: 1rem;
  padding-bottom: 1rem;
  font-size: var(--d-font-size);
}
.js .modal.is-open button.modal-close,
.js .modal.is-open a.modal-close { /* For Views created modals */
  background-color: var(--color-white) !important;
  border-color: var(--color-white) !important;
  color: var(--d-color) !important;
  font-size: var(--d-font-size);
  padding: 0 1.35rem !important;
}
.js .modal.is-open button.modal-close:hover,
.js .modal.is-open a.modal-close:hover { /* For Views created modals */
  background-color: var(--color-white-hover) !important;
  border-color: var(--color-white-hover) !important;
}
.modal .modal-content {
  background-color: var(--d-page-content-bg);
}
.js .modal.is-open,
.modal.modal-is-open {
  overflow-y: auto !important;
}

/* ------------------------------------- RESPONSIVE ADJUSTMENTS ------------------------------------- */
@media print {
  /* Printed Documents */
  
  button.modal-button,
  .js button.modal-button,
  button.modal-close,
  .js button.modal-close,
  a.modal-button, /* for Views created modals */
  .js a.modal-button,
  a.modal-close,
  .js a.modal-close {
    display: none !important; /* Hide the modal button when printing */
  }
 .modal,
  .js .modal {
    display: block !important; /* Show the modal contents when printing */
  }
}

@media all and (min-width: 768px) {
  /* TABLET - Non-Retina - (768px–1024px) */
  
}
@media all and (min-width: 1281px) {
  /* DESKTOP - Non-Retina - (1281px–1920px) */
  
  /* --------------- Modals ---------------- */
  .js .modal.is-open .modal-container {
    max-width: 1024px;
  }
  
}
@media all and (min-width: 1921px) {
  /* DESKTOP LARGE - Non-Retina - (1921px and larger) */
  
  /* --------------- Modals ---------------- */
  .js .modal.is-open .modal-container {
    max-width: 1280px;
  }
  
}
