/* Navigation and project filters */
.allheader .homepagemenu > .active > a {
  text-decoration: underline !important;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px !important;
}
.project-index-bar {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 24px 0 18px;
}
.project-index-bar h1 {
  margin: 0;
  padding-right: 28px;
  border-right: 1px solid #c9c9c6;
  color: #171717;
  font: 600 34px/1.15 "Source Sans Pro", sans-serif;
}
.project-filters ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.project-filters a, .dicontacttwo li > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 7px 11px;
  font: 400 15px/1.25 "Source Sans Pro", sans-serif;
  color: #303030;
}
.project-filters a:hover, .project-filters a:focus-visible {
  color: #151515;
  background: #eeeeeb;
}
.project-filters a[aria-current="page"] {
  color: #fff;
  background: #292929;
}
.allheader a:focus-visible, .allheader button:focus-visible,
.project-filters a:focus-visible, .contact-directory a:focus-visible,
.dicontacttwo a:focus-visible, .contactForm button:focus-visible {
  outline: 2px solid #343434 !important;
  outline-offset: 2px !important;
}

/* Project cards and credits */
.homepagegrid li a h4, .projectgrid li a h4 {
  margin: 10px 0 5px;
  font-size: 18px;
  line-height: 1.25;
}
.homepagegrid li a span, .homepagegrid li a label,
.projectgrid li a span, .projectgrid li a label {
  font-size: 14px;
  line-height: 1.4;
}
.homepagegrid li a label, .projectgrid li a label,
.diblogcontent h5, .psarea p, .diblogp p {
  color: #595959 !important;
}
.diblogcontent a h6, .homediblog a h6 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 44px;
  padding: 8px 16px;
  color: #494949 !important;
}
.projectsingletitle h4 {
  margin: 14px 0 18px;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.15;
}
.pscontentdiv .project-credits {
  display: grid;
  grid-template-columns: fit-content(38%) minmax(0, 1fr);
  align-items: baseline;
  gap: 8px 14px;
  margin: 0;
}
.project-credits dt, .project-credits dd {
  margin: 0;
  padding: 0;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.45;
}
.project-credits dt { color: #535353 !important; }
.project-credits dd { margin-left: 0 !important; }
.project-credits dd::before, .project-credits dd::after { content: none; }
.location-map > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Office contact information and forms */
.contact-directory .contact3 h4 { color: #555 !important; }
.contact-directory a { color: #212121; text-decoration: underline; text-underline-offset: 3px; }
.contactuscontent .contactForm textarea { text-align: left !important; }
.contactForm .form-control:focus {
  border-color: #333 !important;
  outline: 2px solid #555;
  outline-offset: 1px;
  box-shadow: none;
}
.dicontacttwo ul li a h4 { color: #535353 !important; }
.dicontacttwo ul li a.active h4 { color: #161616 !important; text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 991px) {
  .contact-intro.diblogp { display: block; }
  .contact-intro .diblogtitle { float: none; width: auto; max-width: none; border: 0; }
  .contact-directory {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
    gap: 8px 24px;
    margin-top: 10px;
  }
  .contact-directory.dicontact .contact3 {
    float: none;
    width: auto;
    text-align: left !important;
  }
  .contact-directory h4, .contact-directory h5 { margin: 0; line-height: 1.4; }
  .contact-directory h5 { padding-top: 2px; }
}

@media (max-width: 767px) {
  .allheader .allheadbutton { position: relative; float: none; }
  .allheader .headerimg {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 16px;
    width: auto;
    height: 64px;
    padding: 0 !important;
  }
  .allheader .headerimg img { display: block; width: auto; height: 44px; }
  .allheader .headermenu { width: 100%; margin: 0 !important; padding-top: 0; }
  .allheader .navbar { min-height: 64px !important; border: 0; }
  .allheader .navbar-header { min-height: 64px; margin: 0; }
  .allheader .navbar-default .navbar-toggle {
    width: 44px;
    height: 44px;
    margin: 10px 16px 10px 0 !important;
    padding: 9px;
    border-color: #aaa !important;
  }
  .allheader .navbar-toggle .icon-bar { margin-right: auto; margin-left: auto; background: #222; }
  .allheader .navbar-collapse { margin: 0; border: 0; box-shadow: none; }
  .allheader .homepagemenu { float: none !important; margin: 0; padding: 0 16px 12px !important; }
  .allheader .homepagemenu li > a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 6px;
    border-top: 1px solid #e7e7e4;
  }
  .project-index-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin: 0;
    padding: 22px 16px 16px;
  }
  .project-index-bar h1 { padding: 0; border: 0; font-size: 28px; }
  .project-filters a { padding: 7px 10px; }
  .project-filters a:not([aria-current="page"]) { background: #f2f2f0; }
  .tiles-wrap.homepagegrid, .tiles-wrap.projectgrid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
    gap: 24px 16px;
    height: auto !important;
    margin: 0;
    padding: 16px;
    list-style: none;
  }
  .homegridwidthleft .tiles-wrap.homepagegrid { padding-inline: 11px; }
  .tiles-wrap.homepagegrid > li, .tiles-wrap.projectgrid > li {
    position: static !important;
    float: none;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0;
    border: 0 !important;
    opacity: 1;
    transform: none !important;
    transition: none !important;
  }
  .tiles-wrap.homepagegrid img, .tiles-wrap.projectgrid img { display: block; height: auto; }
  .diblogp .diblogtitle { min-width: 0; max-width: none; margin: 0; }
  .diblogp p, .psarea p, .diofficeekip p {
    font-size: 16px;
    line-height: 1.55;
    text-align: left;
  }
  .psleft { padding: 0 16px !important; }
  .psleft .projectsingletitle h4 { margin: 20px 0 16px !important; padding: 0 !important; }
  .pscontentdiv .project-credits { padding: 0 0 16px !important; border-bottom-color: #d2d2cf !important; }
  .pscontentdiv .project-credits dt, .pscontentdiv .project-credits dd { font-size: 15px !important; }
  .psiframe iframe { height: 232px; }
  .psleft .psarea { padding: 8px 0 20px !important; }
  .contact-intro.diblogp { margin: 0; padding: 20px 16px; }
  .contact-intro.diblogp .diblogtitle { padding: 0 !important; }
  .contact-directory { grid-template-columns: 1fr; gap: 0; }
  .contact-directory .contact3 { padding: 8px 0 0 !important; }
  .contact-directory .contact3 + .contact3 { margin-top: 6px; border-top: 1px solid #dfdfdc; }
  .contact-directory .contact3 a { display: inline-flex; align-items: center; min-height: 44px; }
  .bannerbgcontact { padding: 20px 16px; }
  .contactuscontent .contactForm .form-control { min-height: 44px; font-size: 16px; }
  .contactForm .footerformbtn { margin-top: 14px; }
  .contactForm .footerformbtn button { min-height: 44px; min-width: 115px; }
  .dicontacttwo ul.list-inline { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0 10px !important; }
  .dicontacttwo ul.list-inline > li { border: 0 !important; padding: 0; }
  .dicontacttwo a h4 { margin: 0; }
  .contactiframe.location-map { padding: 0 16px !important; }
}

@media (max-width: 599px) {
  .officelefttwo > .diofficeekip { width: 100%; padding: 12px 16px !important; }
}

/* Management sign-in */
.panel-signin .panel-logo {
  display: block;
  width: min(190px, 70%);
  height: auto;
  margin: 16px 0 24px;
}
.panel-signin #adminLoginForm .form-control,
.panel-signin #adminLoginForm .checkbox-inline,
.panel-signin #adminLoginForm button[type="submit"] { min-height: 44px; }
.panel-signin #adminLoginForm button[type="submit"] {
  min-width: 104px;
  background: #08746e;
  border-color: #08746e;
}
@media (max-width: 767px) {
  .panel-signin.section-account .spacer, .panel-signin.section-account .img-backdrop {
    height: clamp(92px, 20vh, 160px);
  }
  .panel-signin .panel-logo { width: 150px; margin: 12px 0 20px; }
}

/* Show the first slide and project cards as soon as their images arrive. */
.allpagepad .home-slider:not(.owl-loaded) { display: block; }
.home-slider:not(.owl-loaded) > .item:not(:first-child) { display: none; }
.home-slider .item { position: relative; }
.home-slider picture, .home-slider img { display: block; width: 100%; height: auto; }
.tiles-wrap.homepagegrid > li { opacity: 1; }
@media (min-width: 768px) {
  .tiles-wrap.homepagegrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 340px));
    justify-content: center;
    align-items: start;
    gap: 16px;
    height: auto;
    margin: 0;
    padding: 10px;
    list-style: none;
  }
  .tiles-wrap.homepagegrid > li {
    position: static;
    float: none;
    width: 100% !important;
    max-width: 340px;
    min-width: 0;
    margin: 0;
    padding: 0;
  }
  .tiles-wrap.homepagegrid img { display: block; width: 100%; height: auto; }
}
