img {

}

.masonry {
  display: flex;
  width: 100%;
}

a {
  /* color: #333; */
}

.masonry--h {
  flex-flow: row wrap;
}

.masonry--v {
  flex-flow: column wrap;
  max-height: 1080px;
}

.masonry--h,
.masonry--v {
  /* margin-left: -8px; */ /* Adjustment for the gutter */
  counter-reset: brick;
}

figure h2 {z-index: 999;position: absolute;color: #004479;font-family: 'Lato', serif;}

._caption{min-height:350px;display:block;}

figure h2:nth-of-type(2n){font-family: 'Lato', sans-serif;font-weight:900;z-index: 999;position: absolute;color: #ffffff;margin: 0 24px;transition: transform 500ms;bottom:-350px!important;/* font-size: 25.5vw; */}



.masonry-brick {
  overflow: hidden;
  /* border-radius: 5px; */
  /* margin: 0 0 8px 8px; */  /* Some Gutter */
  background-color: #fff;
  color: #004479;
  position: relative;
}

.masonry-brick:after {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5000;
  transform: translate(-50%, -50%);
  transition: font-size .25s, opacity .25s ease-in-out;
  font-weight: 700;
  opacity:1;
  font-size: 1.25em;
  filter: brightness(80);
}

.masonry-brick:hover:after {
  font-size: 2.25em;
  opacity: 1;
}

.masonry-brick:hover h2 {
  transform:translateY(-360%);
  opacity: 0.3;
}

.masonry-brick:hover ._caption {
  transform:translateY(-48%);
  opacity: 0.3;
}

.masonry-brick--h {
  flex: auto;
  height: 336px;
  min-width: 336px;
}

@media only screen and (min-width: 1024px) {
  /* Horizontal masonry bricks on desktop-sized screen */
  .masonry-brick--h:nth-child(4n+1) {
    /* width: 30%; */
  }
  .masonry-brick--h:nth-child(4n+2) {
    width: 40%;
  }
  .masonry-brick--h:nth-child(4n+3) {
    width: 20%;
  }
  .masonry-brick--h:nth-child(4n+4) {
    width: 30%;
  }

  /* Adjusting vertical masonry height on desktop-sized screen */
  .masonry--v {
    max-height: 1600px;
  }

  /* Vertical masonry bricks on desktop-sized screen */
  .masonry-brick--v {
    width: 33.33333%;
  }
}

@media only screen and (max-width: 1023px) and (min-width: 768px) {
  /* Horizontal masonry bricks on tabled-sized screen */
  .masonry-brick--h:nth-child(4n+1) {
    width: 200px;
  }
  .masonry-brick--h:nth-child(4n+2) {
    width: 250px;
  }
  .masonry-brick--h:nth-child(4n+3) {
    width: 120px;
  }
  .masonry-brick--h:nth-child(4n+4) {
    width: 280px;
  }

  /* Adjusting vertical masonry height on tablet-sized screen */
  .masonry--v {
    max-height: 2000px;
  }

  /* Vertical masonry bricks on tablet-sized screen */
  .masonry-brick--v {
    width: 50%;
  }
}

.box-img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  position: absolute;
  bottom: 0px;
  z-index: 997;
  opacity: 1;
  transform: scale(1,1);
  transition: opacity .5s ease-out;
  -moz-transition: opacity .5s ease-out;
  -webkit-transition: opacity .5s ease-out;
  -o-transition: opacity .5s ease-out;
  transition: all 0.5s ease-in-out;
}

.masonry-brick:nth-child(2n+2){background-color:#07284e}


.box-img:hover{
  filter: brightness(30%);
opacity:1;
transform: scale(1.1,1.1);
}

h2 ._caption:hover img {

opacity:1;

}

article{  
  overflow: hidden;
  /* border-radius: 5px; */
  /* margin: 0 0 8px 8px; */  /* Some Gutter */
  background-color: #fff;
  color: #004479;
  position: relative;
  }

[class^='imghvr-'], [class*=' imghvr-'] {
    position: relative;
    display: inline-block;
    margin: 0;
    max-width: 100%;
    background-color: #000;
    color: #fff;
    overflow: hidden;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -moz-osx-font-smoothing: grayscale;
    transform: translateZ(0);
    min-height: 360px;
    height: 360px;
}

[class^='imghvr-fade'] cite {
  position:relative;
  z-index: 9999;
  /* color: #0006!important; */
  top: 300px;
  margin-left: 48px;
  transition: all 0.1s ease-in-out;
  }

[class^='imghvr-'] > img, [class*=' imghvr-'] > img {
   object-fit:cover;
   /* vertical-align: middle; */
   transform: scale(1.3,1.3);
   transition: all .35s ease;
   min-height: 360px!important;
  
}
 

[class^='imghvr-'] figcaption, [class*=' imghvr-'] figcaption {
    background-color: #fff;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
  
}

[class^='imghvr-'] h2, [class*=' imghvr-'] h2 {
  font-size:26px;
  font-weight:600;
  padding: 48px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  color: #191497;
}



[class^='imghvr-'] figcaption h1, [class^='imghvr-'] figcaption h2, [class^='imghvr-'] figcaption h3, [class^='imghvr-'] figcaption h4, [class^='imghvr-'] figcaption h5, [class^='imghvr-'] figcaption h6, [class*=' imghvr-'] figcaption h1, [class*=' imghvr-'] figcaption h2, [class*=' imghvr-'] figcaption h3, [class*=' imghvr-'] figcaption h4, [class*=' imghvr-'] figcaption h5, [class*=' imghvr-'] figcaption h6 {
    color: #191497;

}

[class^='imghvr-'] a, [class*=' imghvr-'] a {
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    color: #191497;
    display: block;
    line-height: 1.14285714em;
}

[class^='imghvr-'], [class*=' imghvr-'], [class^='imghvr-']:before,
[class^='imghvr-']:after, [class*=' imghvr-']:before, [class*=' imghvr-']:after,
[class^='imghvr-'] *, [class*=' imghvr-'] *, [class^='imghvr-'] *:before,
[class^='imghvr-'] *:after, [class*=' imghvr-'] *:before, [class*=' imghvr-'] *:after {
    box-sizing: border-box;
    transition: all 1s ease;
}

/* imghvr-fade-*
   ----------------------------- */

[class^='imghvr-fade']:hover > h2{color:#fff;}
[class^='imghvr-fade']:hover > h2 a{color:#fff;}
[class^='imghvr-fade']:hover > small{color:#fff!important;}

[class^='imghvr-fade']:hover > img{transform: scale(1.5)!important;}

[class^='imghvr-fade'] figcaption, [class*=' imghvr-fade'] figcaption {
    opacity: 1;
}

[class^='imghvr-fade']:hover > img, [class*=' imghvr-fade']:hover > img {
    opacity: 0.5;
   

   
}

[class^='imghvr-fade']:hover figcaption, [class*=' imghvr-fade']:hover figcaption {
    opacity: 0;
}
[class^='imghvr-fade']:hover figcaption > h2, [class*=' imghvr-fade']:hover figcaption > h2 {
    opacity: 1;
    color:#fff;
}

[class^='imghvr-fade']:hover > img, [class^='imghvr-fade']:hover figcaption, [class*=' imghvr-fade']:hover > img, [class*=' imghvr-fade']:hover figcaption {
    transform: translate(0, 0);
    
}

/* imghvr-fade
   ----------------------------- */
