.logo {
  margin-top: 30px;
}
header #branding .logo a {
    background-size: 100%;
    width: 80%;
    height: 90px;
    margin-top: 40px;
    margin-left: 20px;
}
header #branding .logo {
  text-indent: -999em;
}
nav {
  line-height: 1.75em;
  font-size: 16px;

  grid-area: navigation;
  display: grid;
  grid-template-rows: 1fr 1fr 1fr;
  grid-template-columns: auto;
  grid-template-areas: "spacer top bottom";

  /* @media screen and (max-width: 1089px){
      display: none !important;

  } */

  .spacer {
      grid-area: spacer;
      height: 2vh;
  }

  .top-nav {
      grid-area: top;
      display: block;
      text-align: right;
      padding-bottom: 2vh;
  }

  .bottom-nav {
      grid-area: bottom;
      display: grid;
      justify-self: end;
      justify-content: end;
      justify-items: end;
      padding-top: 1vh;
      
  }
}
.top-nav {
  grid-area: top;
  display: block;
  text-align: right;
  padding-bottom: 2vh;
}
header {
  margin: 0 auto;
  width: 80%;
  display: grid !important;
  //min-height: 100%;
  grid-template-columns: 3fr 5fr ;
  grid-template-rows: auto;
  grid-template-areas: "branding navigation";

  @media screen and (max-width: 425px){
      width: 100%;
      grid-template-columns: auto;
      grid-template-areas: 'navigation' 'branding';
  }

  @media screen and (min-width: 426px) and (max-width: 768px){
      width: 100%;
      grid-template-columns: 4fr 2fr;
     grid-template-areas: "branding navigation";
     grid-template-rows: auto;    
  }

  @media screen and (max-width: 1089px) and (min-width: 769px){
      width: 80%;
      margin: 0 auto;
      grid-template-columns: 4fr 2fr;
      grid-template-areas: "branding navigation";
      grid-template-rows: auto;    
  }
  
  @media screen and (max-width: 1660px) and (min-width: 1090px){
      width: 80%;
      margin: 0 auto;
      grid-template-columns: 3fr 6fr;
      grid-template-areas: "branding navigation";
      grid-template-rows: auto;
  }
  
  #branding {
    grid-area: branding;
    display: grid;

  
    .logo {
      text-indent: -999em;
      
      @media screen and (max-width: 425px){
          margin: 0.5em 0 0 0;
      }
  
      a {
          background: url('/inc/img/COURT-WORDMARK.svg');
          width: 440px;
          height: 80px;
          display: block;
          background-repeat: no-repeat;

          @media screen and (max-width: 1024px) {
              width: 90%;
              margin: 0 auto;
              background-size: 100%;
              }
              
          @media screen and (max-width: 1660px) and (min-width: 1024px){
              background-size: 100%;
              width: 90%;
              height: 80px;
              margin-top: 20px;
              margin-left: 20px;
          }
  
          }
      }
  }
}

.main-navigation {
	display: block;
	width: 100%;
}

.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.main-navigation ul ul {
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
	float: left;
	position: absolute;
	top: 100%;
	left: -999em;
	z-index: 99999;
}

.main-navigation ul ul ul {
	left: -999em;
	top: 0;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
	display: block;
	left: auto;
}

.main-navigation ul ul a {
	width: 200px;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
	left: auto;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;
	text-decoration: none;
}

/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
	display: block;
}

@media screen and (min-width: 37.5em) {

	.menu-toggle {
		display: none;
	}

	.main-navigation ul {
		display: flex;
	}
}

.bottom-nav ul {
  list-style-type: none;
  
  li {
      display: inline-block;
      margin: 0px 10px;

      a {
          padding: 5px 0px 20px 0px;
      }

  &:last-child {
      margin: 0px 0px 0px 10px;
  }

  &:hover{

      ul {
          display: block;
          position: absolute;
          z-index: 999;
          //width: auto;
          width: 240px;
          height: auto;
          padding: 0px;
          background-color: white;
          left: -150px;
          

          li {
              display: block;
              width: 100%;
              margin: 0;

              &:last-child {
                  margin: 0px;
              }

                  a {
                      padding: 5px 20px;
                      width: 100%;

                      &:hover {
                          background-color: $courtblue;
                          color: $courtlightgray;
                      }
                  }
              }
          }
      }
  }
}
header #branding {
  grid-area: branding;
  display: grid;
}
header #branding .logo {
  text-indent: -999em;
}
@media screen and (max-width: 425px) {
  header #branding .logo {
      margin: 0.5em 0 0 0;
  }
}
header #branding .logo a {
  background: url("/inc/img/COURT-WORDMARK.svg");
  width: 440px;
  height: 80px;
  display: block;
  background-repeat: no-repeat;
}
@media screen and (max-width: 1024px) {
  header #branding .logo a {
      width: 90%;
      margin: 0 auto;
      background-size: 100%;
  }
}
header #branding .logo a {
    background-size: 100%;
    width: 70%;
    height: 90px;
    margin-top: 20px;
    margin-left: 20px;
}
/*   */
nav {
  grid-area: navigation;
  display: grid;
  grid-template-rows: 1fr 1fr 1fr;
  grid-template-columns: auto;
  grid-template-areas: "spacer top bottom";
}
/* @media screen and (max-width: 1089px) {
  nav {
      display: none !important;
  }
} */
nav .spacer {
  grid-area: spacer;
  height: 2vh;
}
nav .top-nav {
  grid-area: top;
  display: block;
  text-align: right;
  padding-bottom: 2vh;
}
nav .bottom-nav {
  grid-area: bottom;
  display: grid;
  justify-self: end;
  justify-content: end;
  justify-items: end;
  padding-top: 1vh;
}
.post-navigation div {
  display: flex;
  font-family: "Roboto Medium", sans-serif;
}
.top-nav > * {
  display: inline-block !important;
  position: relative;
}
.top-nav ul {
  list-style-type: none;
}
.top-nav ul li {
  display: inline-block;
  vertical-align: middle;
}
.top-nav ul li.smallerfont {
  text-indent: -999em;
}
.top-nav ul li.smallerfont a {
  background: url("/inc/img/SMALLESTICON.svg");
  display: block;
  width: 28px;
  height: 26px;
  position: relative;
}
.top-nav ul li.normalfont {
  text-indent: -999em;
}
.top-nav ul li.normalfont a {
  background: url("/inc/img/MEDIUMICON.svg");
  display: block;
  width: 29px;
  height: 29px;
  position: relative;
}
.top-nav ul li.largerfont {
  text-indent: -999em;
  margin-right: 20px;
}
.top-nav ul li.largerfont a {
  background: url("/inc/img/LARGESTICON.svg");
  display: block;
  height: 31px;
  width: 31px;
  position: relative;
}
.top-nav ul li.sitesearch {
  text-indent: -999em;
}
.top-nav ul li.sitesearch a {
  background: url("/inc/img/MAGNIFIYINGGLASS.svg");
  display: block;
  height: 24px;
  width: 19px;
  position: relative;
}
.top-nav ul li.forenglish {
  display: none;
}
.top-nav ul li.forenglish a {
  padding: 5px 10px 5px 20px;
}
.top-nav ul li.forspanish {
  display: none;
}
.top-nav ul li.forspanish a {
  padding: 5px 20px 5px 10px;
}
.bottom-nav ul {
  list-style-type: none;
}
.bottom-nav ul li {
  display: inline-block;
  margin: 0px 10px;
}
/* .bottom-nav ul li a {
  padding: 5px 0px 20px 0px;
} */
.bottom-nav ul li:last-child {
  margin: 0px 0px 0px 10px;
}
.bottom-nav ul li:hover ul {
  display: block;
  position: absolute;
  z-index: 999;
  width: 240px;
  height: auto;
  padding: 0px;
  background-color: #fff;
  left: -150px;
}
.bottom-nav ul li:hover ul li {
  display: block;
  width: 100%;
  margin: 0;
}
.bottom-nav ul li:hover ul li:last-child {
  margin: 0px;
}
.bottom-nav ul li:hover ul li a {
  padding: 5px 20px;
  width: 100%;
}
.bottom-nav ul li:hover ul li a:hover {
  background-color: #33669a;
  color: #e3e5e8;
}