@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700&display=swap');
*{
  margin: 0;
  padding: 0;
  outline: none;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;  
}

body {
  background: #f8f7f7;
}

.titulo {
  margin-top: 40px;
  background: #f8f7f7;
  padding: 10px calc((100% - 1400px) / 2);
  display: flex;
  flex-wrap: wrap; 
  flex-direction: column;
  /* border-bottom: 1px solid green; */ 
  justify-content: center;
}

/* titulo */

.titulo h2 {
  font-size: 30px;
  color: #353434;
  text-align: center; 
  margin-top: 20px;
}

.titulo p {
  font-size: 16px;
  color: #6b6b6b;
  text-align: center;  
  margin-bottom: 20px;
}

.titulo-fotos {
  margin-bottom: 30px;
  background: #f8f7f7;
  padding: 10px calc((100% - 1400px) / 2);
  display: flex;
  flex-wrap: wrap; 
  flex-direction: column;
  /* border-bottom: 1px solid green; */ 
  justify-content: center;
}

.titulo-fotos h2 {
  font-size: 30px;
  color: #353434;
  text-align: center; 
  margin-top: 20px;
}

.materia {
  
  width: 70%;
  margin: auto;
  list-style: none;
  padding: 50px;
  padding-bottom: 100px;
  box-sizing: border-box;
    /* display: flex;
    flex-wrap: wrap;
    justify-content: space-around; */



  /* padding: 50px 150px 50px 150px; */
}

.materia img {
  padding-right: 40px;
  width: 400px; 
  height: 250px;
  float:left; 
  object-fit: cover;
  padding-bottom: 10px;
}

.materia p {
  text-align: justify;
  word-wrap: break-word; 
}
 
figure {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  vertical-align: baseline;
  background: transparent;
}

.galeria {
 width: 90%;
 margin: auto;
 list-style: none;
 padding: 20px;
 box-sizing: border-box;
 display: flex;
 flex-wrap: wrap;
 justify-content: space-around;
}

.galeria li {
 margin: 5px 5px 2em 5px;
 background: #fff;
}

.galeria img {
 position: relative;
 width: 350px;
 height: 220px;
 border: solid 7px #fff;
 object-fit: cover;
 transition: all .2s ease-in-out;
 -webkit-box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);
box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);
  -moz-box-sizing: border-box;
 box-sizing: border-box;
}
.galeria img:hover {
  transform: scale(1.03);
	opacity: 1;
	-webkit-animation: flash 1.5s;
	animation: flash 1.5s;
}
@-webkit-keyframes flash {
	0% {
		opacity: .4;
	}
	100% {
		opacity: 1;
	}
}
@keyframes flash {
	0% {
		opacity: .4;
	}
	100% {
		opacity: 1;
	}
}

.box {
    position: fixed;
    display: block;
    overflow: hidden;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    -webkit-font-smoothing: antialiased;
    visibility: hidden;
}

.box.fade:target > img {
    -webkit-transition: opacity 1s;
       -moz-transition: opacity 1s;
         -o-transition: opacity 1s;
            transition: opacity 1s;
}


.box, .box > img, .box > div {top: 0;left: 0;right: 0;bottom: 0;}


.box {top: -100%;}
.box:target {top: 0;visibility: visible;}


.box > a {
  margin-top: 10px; 
  margin-right: 15px;
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    color: #fff;
 font-size: 30px;
 text-decoration: none;
  overflow: visible;
  cursor: pointer;
  background: transparent;
  border: 0;
  -webkit-appearance: none;
  display: block;
  outline: none;
  padding: 0;
  z-index: 1046;
  -webkit-box-shadow: none;
  box-shadow: none;
   opacity: 0.65;
  filter: alpha(opacity=65);
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
.box > a:hover {
  opacity: 1
}


.box > img, .box > div {
    position: absolute;
    margin: auto;
    box-shadow: 0 3px 3px -1px rgba(0, 0, 0, 0.3), 0 1px 0px 0px rgba(0, 0, 0, 0.05);
}

.box > img {
  max-width: 80%;
  max-height: 80%;
  display: block;
  line-height: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.box > .vid iframe, .box > .vid object, .box > .vid embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.box > .vid {
    max-width: 800px;
    height: 450px;
    width:100%;
}

.box > .text::before {
  content: "";
  background-image: #ffffff;
  background-repeat: repeat;
  background-size: 45%;
  background-position: 50% 50%;
}
.box > .text {
   position: relative;
    max-width: 60%;
    max-height: 50%;
    top: 20%;
    bottom: auto;
    padding: 2em;
    background: #eee;
    color: #757575;
    width:100%;
    overflow-y: scroll;
    display: block;
    font-family: 'Raleway', sans-serif;
    line-height: 20pt;
    text-align: left;
    font-weight: 400;
}
.box > .text > img {
 width: 100%;
 height: auto;
}


.box.fade > img, .box.fade > div {
    opacity: 0;
}
.box.fade:target > img, .box.fade:target > div {
    opacity: 1;
}

@-webkit-keyframes bounce {
    0% {-webkit-transform: scale(0)}
    50% {-webkit-transform: scale(1.1)}
    100% {-webkit-transform: scale(1)}
}
@-moz-keyframes bounce {
    0% {-moz-transform: scale(0)}
    50% {-moz-transform: scale(1.1)}
    100% {-moz-transform: scale(1)}
}
@keyframes bounce { 
    0% {transform: scale(0)}
    50% {transform: scale(1.1)}
    100% {transform: scale(1)}
}

.box.bounce:target > img, .box.bounce:target > div {
    -webkit-animation: bounce 1s none;
       -moz-animation: bounce 1s none;
         -o-animation: bounce 1s none;
            animation: bounce 1s none;
}

.box:target > img, .box:target > div {
    border: 12px solid white;
}

.box > span a {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none; 
}
.box > span a {
 color: #fff;
 font-size: 50px;
 text-decoration: none;
  overflow: visible;
  cursor: pointer;
  background: transparent;
  border: 0;
  -webkit-appearance: none;
  display: block;
  outline: none;
  padding: 0;
  z-index: 1046;
  -webkit-box-shadow: none;
  box-shadow: none; 
  position: absolute;
  opacity: 0.65;
  filter: alpha(opacity=65);
  margin-left: 10px;
  top: 55%;
  margin-top: -55px;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.box > span a:hover, .box > span a:focus {
    opacity: 1;
    filter: alpha(opacity=100); 
}
.box > span a:active {
    margin-top: -54px; 
}
.box > #right a {
  right: 0; 
  margin-right: 10px; 
}
.box > h2 {
  opacity: 0.65;
  font-weight: 400;
  letter-spacing: 2px;
  font-size: 18px;
  color: #fff;
  text-align: center;
  font-family: 'Raleway', sans-serif;
  height: 100%;
}
.box:target {
	outline: none;
	display: block;
}

#flex-container {
  margin-top: 55px;
  background-color: #fff;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  background-image: url(#);
}

@media (max-width: 700px) {

  .galeria {
    width: 100%;
    padding: 10px;
   }

   .titulo {
    margin-top: 20px;
   }

   .titulo h2 {
     font-size: 1.3em;
     padding: 10px;
   }

   .materia {
    width: 100%;
    margin: auto;
    list-style: none;
    padding: 10px;
    padding-bottom: 50px;
    box-sizing: border-box;
  }

  .materia img {
    width: 400px; 
    height: 250px;
    padding-right: 0px;
    float:left; 
    object-fit: cover;
    padding-bottom: 20px;
  }
  
  .materia p {
    font-size: .9em;
    text-align: justify;
    word-wrap: break-word; 
  }
}