/* Styles for both basic and basic-3col content types */


/* both */

.field_banner_image img {
  margin-top: 1rem;
}

/* Regular basic page */
/* ================== */

html.node-basic_page_with_2_col_icons .field-bottom-panels {
  margin-top: 2rem;
}

html.node-basic_page_with_2_col_icons .field-bottom-panels:after {
  content: " ";
  clear: both;
  display: block;
}

html.node-basic_page_with_2_col_icons .field-bottom-panels .panel {
  font-size: 0.875rem;
  text-decoration: none;
  padding: 0 1rem 1rem 0;
  overflow: hidden;
}

/* This is awkward and buggy on touchscreens, so just avoid it */
@media (hover: hover) and (pointer: fine) {
  html.node-basic_page_with_2_col_icons .field-bottom-panels .panel:hover h3 {
    top: -100%;
  }
  html.node-basic_page_with_2_col_icons .field-bottom-panels .panel:hover .desc {
    top: 0;
  }
}

html.node-basic_page_with_2_col_icons .field-bottom-panels .panel h3 {
  margin: 0;
  color: white !important;
  position: absolute;
  overflow: hidden;
  transition: all .5s;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: end;
  font-size: 1.4rem !important;
  background-image: linear-gradient(to top, rgba(0, 0, 0, .5) 0%, transparent 100%);
}

html.node-basic_page_with_2_col_icons .field-bottom-panels .panel h3 > span {
  width: 100%;
  border-top: .2rem solid var(--yellow);
  padding: .25rem 1rem;
  background: rgba(0, 0, 0, .5);
}

html.node-basic_page_with_2_col_icons .field-bottom-panels .panel .desc {
  color: white;
  position: absolute;
  overflow: hidden;
  transition: all .5s;
  top: 100%;
  left: 0;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  font-weight: bold;
  background: rgba(0, 0, 0, .75);
}

html.node-basic_page_with_2_col_icons .field-bottom-panels .panel .section img {
  width: 100%;
  height: auto;
  display: block;
}

html.node-basic_page_with_2_col_icons .field-bottom-panels .panel .section-1 {
  width: 100%;
  float: left;
  clear: left;
  position: relative;
  overflow: hidden;
}

@media (min-width: 1200px) {
  html.node-basic_page_with_2_col_icons .field-bottom-panels .panel {
      width: 50%;
      float: left;    
  }
  html.node-basic_page_with_2_col_icons .field-bottom-panels .panel:nth-of-type(odd) {
      clear: left;
  }
}


/* Basic 3-col */
/* =========== */

html.node-basic_page_with_3_col_icons .field-bottom-panels {
  margin-top: 2rem;
}

html.node-basic_page_with_3_col_icons .field-bottom-panels:after {
  content: " ";
  clear: both;
  display: block;
}

html.node-basic_page_with_3_col_icons .field-bottom-panels .panel {
  width: 31%;
  float: left;
  padding: 0 0rem 0rem 0;
  margin-left: 3.5%;    
  font-size: 0.875rem;
  margin-bottom: 2rem;
}


html.node-basic_page_with_3_col_icons .field-bottom-panels .panel h2 {
  margin: 0 0 0.5rem 0;
  border-bottom: 0.0625rem solid var(--blue);
  padding-bottom: 0.5rem;    
  color: var(--charcoal);
  font-weight: bold;
  min-height: 4.5rem;
}

html.node-basic_page_with_3_col_icons .field-bottom-panels .panel .toggle {
  font-weight: bold;
}

html.node-basic_page_with_3_col_icons .field-bottom-panels .panel .section img {
  width: 100%;
  height: auto;
}

html.node-basic_page_with_3_col_icons .field-bottom-panels .panel .desc a.seeMore {
  color: var(--dark-blue);
  text-decoration: none;
  font-weight: bold;
}


@media (min-width: 1200px) {
  html.node-basic_page_with_3_col_icons .field-bottom-panels .panel:nth-of-type(1),
  html.node-basic_page_with_3_col_icons .field-bottom-panels .panel:nth-of-type(4),
  html.node-basic_page_with_3_col_icons .field-bottom-panels .panel:nth-of-type(7),
  html.node-basic_page_with_3_col_icons .field-bottom-panels .panel:nth-of-type(10),
  html.node-basic_page_with_3_col_icons .field-bottom-panels .panel:nth-of-type(13),
  html.node-basic_page_with_3_col_icons .field-bottom-panels .panel:nth-of-type(17) {
      clear: left;
      margin-left: 0;
  }
}


@media (min-width: 901px) and (max-width: 1199px) {

  html.node-basic_page_with_3_col_icons main:not(.has-leftSidebar):not(.has-leftSidebar) .field-bottom-panels .panel:nth-of-type(1),
  html.node-basic_page_with_3_col_icons main:not(.has-leftSidebar):not(.has-leftSidebar) .field-bottom-panels .panel:nth-of-type(4),
  html.node-basic_page_with_3_col_icons main:not(.has-leftSidebar):not(.has-leftSidebar) .field-bottom-panels .panel:nth-of-type(7),
  html.node-basic_page_with_3_col_icons main:not(.has-leftSidebar):not(.has-leftSidebar) .field-bottom-panels .panel:nth-of-type(10),
  html.node-basic_page_with_3_col_icons main:not(.has-leftSidebar):not(.has-leftSidebar) .field-bottom-panels .panel:nth-of-type(13),
  html.node-basic_page_with_3_col_icons main:not(.has-leftSidebar):not(.has-leftSidebar) .field-bottom-panels .panel:nth-of-type(17) {
      clear: left;
      margin-left: 0;
  }

  html.node-basic_page_with_3_col_icons main.has-leftSidebar .field-bottom-panels .panel,
  html.node-basic_page_with_3_col_icons main.has-rightSidebar .field-bottom-panels .panel {
      width: 48%;
      margin-left: 4%;
  }
  html.node-basic_page_with_3_col_icons main.has-leftSidebar .field-bottom-panels .panel:nth-of-type(odd),
  html.node-basic_page_with_3_col_icons main.has-rightSidebar .field-bottom-panels .panel:nth-of-type(odd) {
      clear: left;
      margin-left: 0;      
  }  

}

@media (min-width: 640px) and (max-width: 900px) {



  html.node-basic_page_with_3_col_icons .field-bottom-panels .panel {
      width: 48%;
      margin-left: 4%;
  }
  html.node-basic_page_with_3_col_icons .field-bottom-panels .panel:nth-of-type(odd) {
      clear: left;
      margin-left: 0;      
  }

}

@media (max-width: 639px) {

  html.node-basic_page_with_3_col_icons .field-bottom-panels .panel {
      width: 100%;
      margin-left: 0;
      float: none;
  }

}