.tbl-header, th {
    font-weight: 900;
    text-transform: uppercase;
    border-bottom: 2px solid var(--primary-gold);
}

.department-name h2{
    text-align:center;
}
.department-name{
    padding:1.5em;
}

ul.navbar-nav li.nav-item:nth-child(even){
    order:-1;
}
ul.navbar-nav li.nav-item:nth-child(odd){
    order:1;
}
.logo-department {
    background-image: url(/Portals/fireems/fire-logo-black.png);
    width:200px;
    height:125px!important;
}

.slider-container .slider .slide.slide1 {
                background: url(/Portals/fireems/images/GSAR.jpg?ver=YYwHMxsY9GphNBFEkkCG3Q%3d%3d);
                background-size: cover;
                background-position: center;
            }
            .slider-container .slider .slide.slide2 {
                background: url(/Portals/FireEMS/Images/Both%20Trucks%20no%20Blur.png?ver=YeBU6vDVMnOgq72gNzPnIQ%3d%3d);
                background-size: cover;
                background-position: center;
            }

            .slider-container .slider .slide.slide3 {
                background: url(/Portals/fireems/images/S-6%20Side.png?ver=jhLa1NGq7VLYzLHDc3_KoQ%3d%3d);
                background-size: cover;
                background-position: center;
            }

            .slider-container .slider .slide.slide4 {
                background: url(/Portals/FireEMS/Images/Fire%20Truck%203.png?ver=xfsLV8LJgRC1-bNgD0HAQw%3d%3d);
                background-size: cover;
                background-position: center;
            }
            .slider-container .slider .slide.slide5 {
                background: url(/Portals/fireems/images/GSAR.jpg?ver=YYwHMxsY9GphNBFEkkCG3Q%3d%3d);
                background-size: cover;
                background-position: center;
            }

li.nav-item{
    flex:1 1 0;
}


/*CSS for Gallery */
.gallery-wrapper{
  position: relative;
  width:100%;
  height: 0;

}
.gallery-hello {
    opacity: 1 !important;
  }
  .gallery-full {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 6;
  }
  .gallery-full .gallery-content {
    background-color: rgba(0,0,0,0.75) !important;
    height: 100%;
    width: 100%;
    display: grid;
  }
  .gallery-full .gallery-content img {
    left: 50%;
    transform: translate3d(0, 0, 0);
    animation: zoomin 1s ease;
    max-width: 75%;
    max-height: 75%;
    margin: auto;
  }
  .gallery-byebye {
    opacity: 0;
  }
  .gallery-byebye:hover {
    transform: scale(0.2) !important;
  }
  .gallery {
    display: grid;
    grid-column-gap: 8px;
    grid-row-gap: 8px;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: 8px;
  }
  .gallery img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 0 16px #333;
    transition: all 1.5s ease;
  }
  .gallery img:hover {
    box-shadow: 0 0 32px #333;
  }
  .gallery .content {
    padding: 4px;
  }
  .gallery .gallery-item {
    transition: grid-row-start 300ms linear;
    transition: transform 300ms ease;
    transition: all 0.5s ease;
    cursor: pointer;
  }
  .gallery .gallery-item:hover {
    transform: scale(1.025);
  }
  @media (max-width: 600px) {
    .gallery {
      grid-template-columns: repeat(auto-fill, minmax(30%, 1fr));
    }
  }
  @media (max-width: 400px) {
    .gallery {
      grid-template-columns: repeat(auto-fill, minmax(50%, 1fr));
    }
  }
  @-moz-keyframes zoomin {
    0% {
      max-width: 50%;
      transform: rotate(-30deg);
      filter: blur(4px);
    }
    30% {
      filter: blur(4px);
      transform: rotate(-80deg);
    }
    70% {
      max-width: 50%;
      transform: rotate(45deg);
    }
    100% {
      max-width: 100%;
      transform: rotate(0deg);
    }
  }
  @-webkit-keyframes zoomin {
    0% {
      max-width: 50%;
      transform: rotate(-30deg);
      filter: blur(4px);
    }
    30% {
      filter: blur(4px);
      transform: rotate(-80deg);
    }
    70% {
      max-width: 50%;
      transform: rotate(45deg);
    }
    100% {
      max-width: 100%;
      transform: rotate(0deg);
    }
  }
  @-o-keyframes zoomin {
    0% {
      max-width: 50%;
      transform: rotate(-30deg);
      filter: blur(4px);
    }
    30% {
      filter: blur(4px);
      transform: rotate(-80deg);
    }
    70% {
      max-width: 50%;
      transform: rotate(45deg);
    }
    100% {
      max-width: 100%;
      transform: rotate(0deg);
    }
  }
  @keyframes zoomin {
    0% {
      max-width: 50%;
      transform: rotate(-30deg);
      filter: blur(4px);
    }
    30% {
      filter: blur(4px);
      transform: rotate(-80deg);
    }
    70% {
      max-width: 50%;
      transform: rotate(45deg);
    }
    100% {
      max-width: 100%;
      transform: rotate(0deg);
    }
  }
  .navbar-brand.logo {
    background-image:url(/Portals/fireems/fire-logo-black.png)!important;
    background-size: contain;
    background-repeat: no-repeat;
}


@media screen and (max-width:768px){
    .container.header-container{
        padding-left:0!important;
        padding-right:0!important;
    }
}
li.nav-item:not(ul.dropdown-menu li.nav-item){
    text-align:center;
}
/* Sponsor Carousel */
      .sponsor-wrapper {
        position: relative;
      }
      .sponsors-carousel {
        position: relative;
        overflow: hidden;
        width: calc(100% - 70px);
        margin: 0 auto;
      }
      .sponsors-carousel ul {
        width: 10000em;
        position: relative;
        list-style: none;
        margin: 0;
        padding: 0;
      }
      .sponsors-carousel li {
        float: left;
        height: 111px;
        line-height: 111px;
        width: 260px;
        position: relative;
      }
      .sponsors-carousel img {
        opacity: 0.3; 
        filter: grayscale(100%); 
        display: block; 
        max-width: 100%; 
        max-height: 100%; 
        position: absolute; 
        top: 50%; 
        left: 50%; 
        transform: translate(-50%,-50%);
      }
      .sponsors-carousel img:hover, .sponsors-carousel img:focus {
        filter: unset;
        opacity: 1;
      }
      .sponsors-carousel-controls {
        position: static;
      }
      .sponsors-carousel-controls > button {
        border: none;
        background-color: transparent;
        color: #aaa;
        font-size: 3rem;
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
      }
      .sponsors-carousel-controls > button:focus {
        outline: none;
      }
      .sponsors-carousel-controls > button:hover {
        color: var(--primary-red);
      }
      .sponsors-carousel-controls > button.control-next {
        left: auto;
        right: 0px;
      }
@media only screen and (min-width:889px){
    .logo-department{
        height:125px!important;
        right:30px!important;
    }
    .quick-link-item{
        flex:0 1;
    }
}
.quick-link-item{
        margin-bottom: 1.875rem;
}

/* PRIMARY ACTION STYLING */
.dnnPrimaryAction, .dnnFormItem input[type="submit"]{
    
    background: #BB130C!important;
    background: -moz-linear-gradient(top, #BB130C 0%, #BB130C 100%);
    /* background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#358eea), color-stop(100%,#2170cd)); */
    /* background: -webkit-linear-gradient(top, #358eea 0%,#2170cd 100%); */
    background: linear-gradient(top, #BB130C 0%,#BB130C 100%);
    /* -webkit-box-shadow: 0px 1px 0px 0px rgb(0 0 0 / 60%), inset 0px 1px 0px 0px rgb(255 255 255 / 40%); */
    /* box-shadow: 0px 1px 0px 0px rgb(0 0 0 / 60%), inset 0px 1px 0px 0px rgb(255 255 255 / 40%); */
    border-radius: 10px!important;
    color: #ffffff!important;
    text-align: center;
    font-size: 1.618rem;
    padding: 1.25rem;
    text-decoration: none;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
    cursor: pointer;
}
.dnnPrimaryAction, .dnnFormItem input[type="submit"]:hover{
        background-color: #edcd1f;
    color: #000;
}

.knox-text{
    max-width:65%;
}
@media screen and (max-width:767px){
    .knox-text{
        max-width:98%;
    }
    
}

/* GOOGLE TRANSLATE STYLING */
.fixed-con {
    z-index: 9724790009779558!important;
    background-color: #AB997F;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
  }
  .VIpgJd-ZVi9od-aZ2wEe-wOHMyf{
   z-index: 9724790009779!important;
   top:0;
   left:unset;
   right:-5px;
   display:none!important;
   border-radius:50%;
   border:2px solid #AB997F;
  }
  .VIpgJd-ZVi9od-aZ2wEe-OiiCO{
    width:80px;
    height:80px;
  }
  /*hide google translate link | logo | banner-frame */
  .goog-logo-link,.gskiptranslate,.goog-te-gadget span,.goog-te-banner-frame,#goog-gt-tt, .goog-te-balloon-frame,div#goog-gt-{
    display: none!important;
  }
  .goog-te-gadget {
    color: transparent!important;
    font-size:0px;
  }
 
  .goog-text-highlight {
    background: none !important;
    box-shadow: none !important;
  }
  
 /*google translate Dropdown */
 #google_translate_element select{
background:#AB997F;
color:#fff;
border: none;
border-radius:3px;
padding:6px 8px
}




.cfems-directory-header {   
    min-height:300px;
    min-width:300px;
    max-width: 100%;
}


.error-message, .submit-message {
    color: red;
    font-weight: bolder;
}

.error-message::before {
    content: '\00BB ';
}

.home-link {
    background: url(/Portals/fireems/fire-logo-black.png) center center no-repeat !important;
    margin: auto;
    background-size: 100% auto !important;
        width: 125px;
    height: 150px;
    top: -60px;
    position: absolute;
    left: 0;
    right: 0;
}
.nav-item.home-item:hover{
    border-top:none;
}
.video-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
}

/* Then style the iframe to fit in the container div with full height and width */
.responsive-iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
}




























