/* 
  // Flexbox - Copernicus
*/

.flexcontainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 30px;
  margin-bottom: 30px;
}
.flexitem {
  flex-basis: 31%;
  max-width: 31%;
  margin-bottom: 3.5%;
}
@media screen and (max-width: 767px) {
  .flexitem {
    flex-basis: 48%;
    max-width: 48%;
    margin-bottom: 4%;
  }
}
.flexitem img {
  max-width: 100%;
  height: auto;
  display: block;
}
.flexitem + .flexitem {
  margin-left: 2.66%;
}

.fleximg {
  overflow: hidden;
}
a.flexfigure img {
  -webkit-filter: brightness(100%);
}
a.flexfigure:hover img {
  -webkit-filter: brightness(67%);
  -webkit-transition: all 0.75s ease;
  -moz-transition: all 0.75s ease;
  -o-transition: all 0.75s ease;
  -ms-transition: all 0.75s ease;
  transition: all 0.75s ease;
}
a.flextile img {
  -webkit-filter: brightness(100%);
}
a.flextile:hover img {
  -webkit-filter: brightness(67%);
  -webkit-transition: all 0.75s ease;
  -moz-transition: all 0.75s ease;
  -o-transition: all 0.75s ease;
  -ms-transition: all 0.75s ease;
  transition: all 0.75s ease;
}
.flextile {
  background: #fff;
  box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.15);
}
a.flextile:hover {
  box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.25);
}
.h1flex {
  margin: 0;
  padding: 10px;
  font-weight: normal;
  font-size: 1.4em;
  line-height: 1.4em;
}
.flexcontainer > a.flexitem > p.caption {
  margin-bottom: 0;
  color: #2f2f2f;
  /*  text-decoration: underline;*/
}
.flexcontainer > a:hover p.caption, .flexcontainer > a:hover {
  text-decoration: none !important;
}
.flexcontainer > a > .caption {
  -moz-user-select: all;
  -webkit-user-select: all;
  -ms-user-select: all;
  user-select: all;
}
.flexfullwidth > .flexitem {
  max-width: 100%;
  flex-basis: 100%;
  margin-bottom: 0px;
}
.flexfloat > .flexitem {
  margin-bottom: 0;
}
.flexfigure p.caption {
  margin-top: 5px;
  margin-bottom: 0;
}

.flexcontainer > a.flexitem > p.caption, .flexfigure p.caption, p.videocaption {
    margin: 0;
    color: #000;
    /* border-bottom: 1px solid var(--themehighlight); */
    padding: 20px 0;
    font-style: italic;
    font-size: 1.4rem;
}

/* CODE FOR 4 IMAGES WIDE - ADD CLASS: fourwide */
@media screen and (min-width: 1200px) {
  /*.flextile {
    background: #de4437;
  }*/
 
 /* .flexitem {
    flex-basis: 23%;
    max-width: 23%;
    margin-bottom: 0%;
  }*/
}


/* CODE FOR 3 IMAGES WIDE - ADD CLASS: threewide */
@media screen and (max-width: 1199px) {
  .flextile {
    background: #fff;
  }
  .flexitem {
    flex-basis: 31%;
    max-width: 31%;
    margin-bottom: 4%;
  }
}
/* CODE FOR 2 IMAGES WIDE - ADD CLASS: twowide 1000px*/
@media screen and (max-width: 902px) {
  .flextile {
    background: #fff;
  }
  .flexitem.twowide {
    flex-basis: 100%; /* Change to Template - Should be 48% */
    max-width: 100%; /* Change to Template - Should be 48% */
    margin-bottom: 4%;
    margin-left:0%;
  }
}
/* CODE FOR 1 IMAGES WIDE - ADD CLASS: onewide - NOTE: BROWSER WINDOW RE-SIZE DOES NOT SHOW THIS CHANGE VIEW AS MOBILE IN DEVELOPER TOOLS */
@media only screen and (max-device-width: 767px) {
  .flextile.onewide {
    background: none;
  }
  .flexitem.onewide {
    flex-basis: 100%;
    max-width: 100%;
    margin-bottom: 4%;
    margin-left: 0%;
  }
}
/* HOMEPAGE SECTIONS */
.h1_pp_flex {
  margin: 0;
  padding: 15px 15px 5px 15px;
  font-weight: normal;
  font-size: 1.4em;
  line-height: 1.4em;
  color: #263F6A;
}
.pp_flex {
  margin: 0;
  padding: 10px 15px 15px 15px;
  font-weight: normal;
  font-size: 1em;
  line-height: 1.6em;
  color: #000;
}
/*.homepage_news {
  margin: 0;
  padding-top: 25px;
}
.homepage_news > .block {
  padding: 0 10px;
  width: 50%;
}
.homepage_news h3 {
  border-top: solid 2px #006983;
  padding-top: 10px;
  margin-top: 0;
  margin-bottom: 10px;
}
.homepage_flexcontainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-bottom: 0px;
}*/
/* ============== END === FLEXBOX ================= */