.containr-bgx{
    display: flex;
    justify-content:center;
    flex-wrap: wrap;
    margin-top: 50px;
	width: 220px;
	height: 170px;

}
.img1{
    width: 330px;
	height: 170px;
    float: left;
    margin-right: 40px;
	margin-left: 40px;
    margin-bottom: 20px;
}
.contenido-card .img1{
    width: 330px;
	height: 170px;
    float: left;
    margin-right: 40px;
	margin-left: 40px;
    margin-bottom: 20px;
}
.img2{
    width: 330px;
	height: 170px;
    float: right;
    margin-right: 40px;
	margin-left: 40px;
    margin-bottom: 20px;
}
.contenido-card .img2{
    width: 330px;
	height: 170px;
    float: left;
    margin-right: 40px;
	margin-left: 40px;
    margin-bottom: 20px;
}
.esp1{
    width: 330px;
	height: 280px;
    float: right;
    margin-right: 40px;
	margin-left: 40px;
    margin-bottom: 20px;
}
.contenido-card .esp1{
     width: 330px;
	height: 280px;
    float: right;
    margin-right: 40px;
	margin-left: 40px;
    margin-bottom: 20px;
}
.img1{
		border-radius: 6px;
		overflow: hidden;
		background:#fff;
		box-shadow: 0px 1px 10px rgba(0,0,0,0.2);
		transition: all 400ms ease-out;
		cursor: default;
	}
.img1:hover{
		box-shadow: 5px 5px 20px rgba(0,0,0,0.4);
		transform: translateY(-3%);
	}
.img2{
		border-radius: 6px;
		overflow: hidden;
		background:#fff;
		box-shadow: 0px 1px 10px rgba(0,0,0,0.2);
		transition: all 400ms ease-out;
		cursor: default;
	}
.img2:hover{
		box-shadow: 5px 5px 20px rgba(0,0,0,0.4);
		transform: translateY(-3%);
	}
.esp1{
		border-radius: 6px;
		overflow: hidden;
		background:#fff;
		box-shadow: 0px 1px 10px rgba(0,0,0,0.2);
		transition: all 400ms ease-out;
		cursor: default;
	}
.esp1:hover{
		box-shadow: 5px 5px 20px rgba(0,0,0,0.4);
		transform: translateY(-3%);
	}
	.esp2{
		max-width: 100%;
		width: 80%;
		height: 29.3%;
        margin-left:10%; 
		border-radius: 6px;
		overflow: hidden;
		background:#fff;
		box-shadow: 0px 1px 10px rgba(0,0,0,0.2);
		transition: all 400ms ease-out;
		cursor: default;
	}
	.esp2:hover{
		box-shadow: 5px 5px 20px rgba(0,0,0,0.4);
		transform: translateY(-3%);
		max-width: 100%;
	}
    .esp2 img{
		width: 100%;
		height: 500px;
	}

article p{
    font-size: 18px;
    font-weight: 300;
    margin-top: 20px;
	text-align: justify;
	margin-right: 40px;
	margin-left: 40px;	
}
article h1{
    text-align: center;
} 

/*Columna de parrafo*/
.col1{
	width: 350px;
	height: 230px;
    margin-right: 40px;
	margin-left: 40px;
    margin-bottom: 20px;
}
.col1 h1{
    font-size: 18px;
	font-weight: bold;
}
.col2{
	width: 350px;
	height: 370px;
    margin-right: 40px;
	margin-left: 40px;
    margin-bottom: 20px;
}
.col2 p{
	margin-top: -0.2%;
}
.col2 h1{
    font-size: 18px;
	font-weight: bold;
}
.col3{
	width: 350px;
	height: 360px;
    margin-right: 40px;
	margin-left: 40px;
    margin-bottom: 20px;
}
.col3 p{
	margin-top: -0.2%;
}
.col3 h1{
    font-size: 18px;
	font-weight: bold;
}

/*Boton Desplegable*/
.dp {
    padding: 0;
    list-style: none;
    width: 263px;
    font-size: 10px;
    background: #c1c1c1;
    border: 1px solid rgba(0, 0, 0, 0.8);
}

.dp  li ul{
    width: 243px;
}

.dp  li a {
    display: block;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    background: #3e3f44;
    text-decoration: none;
    color: #fff;
    text-shadow: 1px 0px 1px rgba(0, 0, 0, 0.2);
    filter: dropshadow(color=#000, offx=1, offy=0);
    padding: 10px;
    padding-left: 20px;
}

.dp  li ul li a {
    font-size: 14px;
    width: 643px;
    color: #fff;
    text-shadow: 1px 0px 1px rgba(255, 255, 255, 0.5);
}

.dp li a:hover {
    background: #149c7e;
    -moz-transition: background 0.3s ease-in;
    -webkit-transition: background 0.3s ease-in;
    -o-transition: background 0.3s ease-in;
}

.dp ul {
    margin: 0;
    padding: 0;
    list-style: none;
    height: 0;
    overflow: hidden;
    transition: 0.3s;
    -moz-transition: 0.3s;
    -webkit-transition: 0.3s;
}

.dp li:hover ul {
    height: 70.9px;
    width: 260px;
    overflow-y: auto;
    overflow-x: hidden;
}

.dp ul li a {
    background: #333;
}

.dp ul li a:hover {
    background: #024d3c repeat scroll 0 0;
    color: #fff;
    -moz-transition: color 0.4s ease;
    -webkit-transition: color 0.4s ease;
    -o-transition: color 0.4s ease;
}

/*----Tabla Dinamica----*/


/*-------Galeria-------*/

/*Contenedor de categorias*/

input[type="radio"]{
    display: none;
}

.container-cat{
    width: 100%;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
}

.container-category label{
    padding: 6px 40px;
    margin: 10px;
    font-size: 20px;
    background: #e2e2e2;
    border-radius: 5px;
    cursor: pointer;
}

.container-category label:hover{
    opacity: 0.8;
}


/*Post - Publicaciones*/

.container-post{
    max-width: 1200px;
    margin: auto;
}

.posts{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;

    margin-top: 20px;
    padding: 20px;
}

.posts .post{
    background: #fff;
    box-shadow: 0 0 20px -20px black;
    border-radius: 6px;
    overflow: hidden;
    padding-bottom: 20px;
}

.post .ctn-img{
    width: 100%;
}

.post .ctn-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post h2{
    font-size: 18px;
    margin-top: 20px;
    padding: 0px 20px;
}

.post button{
    margin-top: 20px;
    margin-left: 20px;
    padding: 10px 50px;
    font-size: 16px;
    background: #46a2fd;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

.post button:hover{
    opacity: 0.9;
}


/*sistema de filtrado*/

/**************PRUEBA**********************/
/*--------CardFil*--------*/


/*Columnas parrafo*/

#main-container{
  margin: 20px auto;
  width: 100%;
  background-color: white;
  height: 100%;
  overflow: hidden ;
	border-bottom-color: black;
}
.block:nth-last-of-type(1){
	grid-area:block1; margin-top:-210px;
}
.block:nth-last-of-type(2){
	grid-area:block2;margin-top:-110px;
}
.block{
  background-color: white;
  width: 31.33%;
  height: 100%;
  float: left;
  margin: 1%;
  +box-sizing(border-box);
	border-radius: 10px;
	border-top: 4px solid #008000;
	box-shadow: 0 0 5px rgba(0,0,0,.5);
}
@media screen and (max-width:640px){
	.block{
    background-color: white;
    width: 100%;
  }
	&:first-child{ 
      width: 100%;
      background-color: red;
      clear: both;
  }
    &:last-child{
      width: 99.9%;
      background-color: white;
      clear: both;
  }
	.block:nth-last-of-type(1){
	grid-area:block1; margin-top:8px;
     }
.block:nth-last-of-type(2){
	grid-area:block2;margin-top:8px;
}
	 }
	@media screen and (max-width:320px){
    .block{
      width: 100%,
  }
 }	

	/***************************/
	/*Linea del Tiempo*/

.timeline{
	width:100%;
	background-color: white;
	color:#FFF00;
	padding:0px 50px;
	box-shadow:0px 0px 0px rgba(0,0,0,.5);
}
.timeline ul{
	list-style-type:none;
	border-left:3px solid #094a68;
	padding:0px 5px;
}
.timeline ul li{
	padding:20px 20px;
	position:relative;
	cursor:pointer;
	transition:.5s;
	border-top: 4px solid #008000;
	box-shadow: 0px 1px 10px rgba(0,0,0,0.2);
	border-radius: 6px;
}
.timeline ul li span{
	display:inline-block;
	background-color:#08521A;
	border-radius:5px;
	padding:2px 15px;
	font-size:15px;
	text-align:center;
}
.timeline h1{
	color: white;
}
.timeline ul li .content h3{
	color:#010101;
	font-size:17px;
	padding-top:5px;
}
/*.timeline ul li .content p{
	padding:5px 0px 15px 0px;
	font-size:15px;
}*/
.timeline ul li:before{
	position:absolute;
	content:'';
	width:10px;
	height:10px;
	background-color:#D0B009;
	border-radius:50%;
	left:-11px;
	top:28px;
	transition:.5s;
}
.timeline ul li:hover{
	background-color:;
}
.timeline ul li:hover:before{
	background-color:#0F0;
	box-shadow:0px 0px 10px 2px #0F0;
}
@media (max-width:300px){
	.timeline{
		width:100%;
		padding:30px 5px 40px 10px;
	}
	.timeline ul li .content h3{
		color:#34ace0;
		font-size:15px;
	}

}
/*Galeria*/
.grid-item {
  display: flex;
  align-items: center;
  justify-content: center;

  background-color: #03afff;
  border-radius: 4px;
  transition: transform 0.3s ease-in-out;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.grid-item:hover {
  filter: opacity(0.9);
  transform: scale(1.04);
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	
  grid-auto-rows: minmax(200px, auto);
  gap: 20px;
  padding: 20px;
  grid-auto-flow: dense;
	
}

@media (min-width: 600px) {
  .wide {
    grid-column: span 2;
  }

  .tall {
    grid-row: span 2;
  }
}
/*Imagen-Modal*/

/*Galeria Basico*/
.gallery-wrapper {
  padding: 0rem 0rem;
  display: grid;
  justify-content: center;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: auto;
  grid-gap: 1rem;
  grid-auto-flow: dense;
}

/* Another way to do the same without declaring in the classes - remove h-x w-x from classes */
/* .gallery-wrapper {
  padding: 2rem 10rem;
  display: grid;
  justify-content: center;
  grid-template-columns: repeat(5, 300px);
  grid-auto-rows: 200px;
  grid-gap: 1rem;
  grid-auto-flow: dense;
}
 */

.gallery-item {
  width: 100%;
  height: 100%;
  position: relative;
  filter: drop-shadow(2px 2px 3px #333);
}

.gallery-item .image {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.gallery-item .image img {
  width: 100%;
  height:10%;
  object-fit: cover;
  object-position: 50% 50%;
  cursor: pointer;
  transition: all 400ms ease-in;
  transform: scale(1);
}

.gallery-item .image img:hover {
  transform: scale(1.1);
}

.w-1{
  grid-column: span 1;
}
.w-2{
  grid-column: span 2;
}
.w-3{
  grid-column: span 3;
}
.w-4{
  grid-column: span 4;
}
.w-5{
  grid-column: span 5;
}

.h-1{
  grid-row: span 1;
}
.h-2{
  grid-row: span 2;
}
.h-3{
  grid-row: span 3;
}
.h-4{
  grid-row: span 4;
}
.h-5{
  grid-row: span 5;
}

/* ***** LIGHTBOX EFFECT ***** */

#lightbox {
  position: fixed;
  z-index: 1000;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, .92);
  display: none;
}

#lightbox.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

#lightbox img {
  max-width: 90%;
  max-height: 80%;
  padding: 4px;
  /* border-radius: 1%; */
  /* background-color: white; */
  border: 0.2px solid silver;
}

/* Generic Styles */
:root {
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

@media only screen and (max-width: 800px) {
  .gallery-wrapper {
    grid-template-columns: repeat(2, 2fr);
    grid-template-rows: 1fr;
    grid-gap: 2;
    grid-auto-flow: dense;
	  background-color: 
		  aqua;
  }  
.gallery-container:nth-child(3n+2) {
    grid-column: 1 / span 2;
    grid-row-end: span 2;
  }
  
 .gallery-container:nth-child(4n+3) {
    grid-column: 2 / span 1;
    grid-row-end: span 2;
  }


/*  reseting the css for the class within the divs to show a different way to achieve grid control using the nth childs*/
  .w-1,
  .w-2,
  .w-3,
  .w-4,
  .w-5 {
  grid-column: span 1;
}

.h-1,
.h-2,
.h-3,
.h-4,
.h-5 {
  grid-row: span 1;
}
  
}

@media only screen and (max-width: 400px) {
/* An example to use combined with flex but could also be grids with different repetition of columns  */
  .gallery-wrapper {
    display: flex;
    flex-direction: column;
    flex: wrap;
    gap: 2.5rem;
    margin: 5rem;
	   width: 100%;
  height: 100%;
  }  
	
}

/**/
.containerg {
  padding: 1rem; }
  .containerg .img-grid {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    grid-gap: 1rem; }
   .containerg .img-grid  .img-box {
      width: 100%;
     	   height: 100%;
      border-radius: 0.5rem;
      border: 0.1rem solid teal;
      box-sizing: border-box;
      overflow: hidden; }
       .containerg .img-grid  .img-box  .img-timg {
        width: 100%;
        height: calc(100% + 1rem);
        object-fit: cover;
        &:hover {
          cursor: pointer;
        }
      }
  .modal {
    display: none;
    position: fixed;
    z-index: 5;
    top: 0;
    left: 0;
    padding-top: 3rem;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.9); }
    .close, .previous, .next {
      position: absolute;
      color: gray;
      opacity: 0.7;
      user-select: none;
      &:hover {
        cursor: pointer;
        opacity: 1;
        transition: 200ms ease-in;
      }
    }
    .close {
      font-size: 3rem;
      font-weight: bold;
      top: 1rem;
      left: 2rem;
    }
    .previous {
      font-size: 4rem;
      top: 37%;
      left: 2rem;
    }
    .next {
      font-size: 4rem;
      top: 37%;
      right: 2rem;
    }
    .modal-content {
      margin: auto;
      display: block;
      width: auto;
      height: 80%;
      border: 0.1rem solid teal;
      border-radius: 0.5rem;
    }
    .caption {
      font-family: Helvetica, Arial, sans-serif;
      font-size: 1rem;
      font-style: italic;
      text-align: center;
      color: gray;
      margin-top: 1rem;
    }
 


@media (max-width: 1100px) {
   
   
   .containerg  .modal  .previous .next {
        display: none;
      }
    }


@media (max-width: 1024px) {
  .containerg {
    padding: 0;}
     
    .modal  .modal-content {
        width: 96%;
        height: auto;
        margin-top: 2rem;
      }
    }
/*Portafolio de Imagenes*/

.wrapper{
  margin: 50px auto;
  max-width: 1400px;
}
.wrapper nav{
  display: flex;
  justify-content: center;
}
.wrapper .items{
  display: flex;
  max-width: 1120px;
  width: 100%;
  justify-content: space-between;
  text-align: center;
}
.items span{
  padding: 7px 25px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  color: black;
  border-radius: 5px;
  border: 2px solid #0B5345 ;
  transition: all 0.3s ease;
}
.items span.active,
.items span:hover{
  color: #fff;
  background: #F1C40F;
}

.gallery{
  display: flex;
  flex-wrap: wrap;
  margin-top: 30px;
}
.gallery .image{
  width: calc(100% / 5);
  padding: 7px;
}
.gallery .image span{
  display: flex;
  width: 100%;
  overflow: hidden;
}
.gallery .image img{
  width: 100%;
  vertical-align: middle;
  transition: all 0.3s ease;
	height: 300px;
	object-fit: cover;
}
.gallery .image:hover img{
  transform: scale(1.1);
}
.gallery .image.hide{
  display: none;
}
.gallery .image.show{
  animation: animate 0.4s ease;
}
@keyframes animate {
  0%{
    transform: scale(0.5);
  }
  100%{
    transform: scale(1);
  }
}
/*principal*/
.preview-box{
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: #fff;
  max-width: 700px;
  width: 100%;
	height: 95%;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  border-radius: 3px;
  padding: 0 5px 5px 5px;
  box-shadow: 0px 0px 15px rgba(0,0,0,0.2);
}
.preview-box.show{
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
  transition: all 0.3s ease;
}
.preview-box .details{
  padding: 13px 15px 13px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.details .title{
  display: flex;
  font-size: 18px;
  font-weight: 400;
}
.details .title p{
  font-weight: 500;
  margin-left: 5px;
}
.details .icon{
  color: #007bff;
  font-style: 22px;
  cursor: pointer;
}
.preview-box .image-box{
  width: 100%;
	height: 90%; /*import*/
  display: flex;
}
.image-box img{
  width: 100%;
  border-radius: 0 0 3px 3px;
}
.shadow{
  position: fixed;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  z-index: 2;
  display: none;
  background: rgba(0,0,0,0.4);
}
.shadow.show{
  display: block;
}

@media (max-width: 1000px) {
  .gallery .image{
    width: calc(100% / 3);
  }
}
@media (max-width: 800px) {
  .gallery .image{
    width: calc(100% / 2);
  }
}
@media (max-width: 700px) {
  .wrapper nav .items{
    max-width: 600px;
  }
  nav .items span{
    padding: 7px 15px;
  }
}
@media (max-width: 600px) {
  .wrapper{
    margin: 30px auto;
  }
  .wrapper nav .items{
    flex-wrap: wrap;
    justify-content: center;
  }
  nav .items span{
    margin: 5px;
  }
  .gallery .image{
    width: 100%;
  }
}

/*Columna Temporal*/
.cln {
        column-count:2;
	    column-gap: 3em;
	    column-rule: 1px solid #bbb;
         column-width: 140px;
     }
.lgs img{
	height: 120px;
	width: 150px;
	position: center;
	margin-top: 50px;;
}