/* -- MENU NAV -- */
header
{
	margin-top: 0;
	background-color: var(--color-2);
	box-shadow: 0px 5px 7px rgba(0,0,0,0.2);
}
header #menu-nav .logo img
{
	height: 100%;
}

 /* -- HERO SECTION -- */
section#hero
{
	width: 100%;
	background: var(--color-5);
}

#hero .container
{
	width: 100%;
	display: flex;
	flex-direction: column;
	padding: 4rem 1rem;
	padding-top: 100px;
}

#hero .info
{
	max-width: 600px;
	text-align: center;
	color: var(--color-2);
	padding-bottom: 1rem;
}

#hero .info h1
{
	font-family: font1-extrabold;
	font-size: var(--text-4);	
	padding: 1rem 0;
}

#hero .info p
{
	font-size: var(--text-7);
}

#hero .imagen
{
	width: 100%;
	padding: 1rem;
}

#hero .imagen img
{
	width: 100%;
}

#hero .autor
{
	width: 100%;
	text-align: right;
	margin-top: 1.3rem;
}
#hero .autor .line-naranja
{
	width: 70px;
	height: 4px;
	display: inline-block;
	border-radius: 100px;
	background-color: var(--color-1);
	vertical-align: middle;
}

#hero .autor .nombre
{
	font-family: font1-bold;
	font-size: var(--text-5);
	vertical-align: middle;
}

#hero .autor .cargo
{
	font-family: font1-medium;
	font-size: var(--text-8);
	letter-spacing: 3px;
	color: var(--color-1);
	display: block;
}


@media (min-width: 767px)
{
	#hero .container
	{
		flex-direction: row;
	}

	#hero .info
	{
		width: 80%;
		text-align: left;
	}

	#hero .imagen
	{
		padding-left: 2rem;
	}
}

@media (min-width: 992px)
{
	#hero .info h1
	{
		font-family: font1-bold;
		font-size: var(--text-3);
	}
}

/* -- HISTORIA O BIOGRAFIA -- */
section.historia
{
	width: 100%;
	background-color: var(--color-2);
	padding-top: 100px;
	position: relative;
	z-index: 2;
}

.historia .container
{
	width: 92%;
	background-color: var(--color-5);
	box-shadow: 0 5px 10px rgba(0,0,0,0.4);
	margin-top: -130px;
	position: relative;
	z-index: 2;
	color: var(--color-2);
}

.historia .onda1
{
	width: 100%;
	background-color: var(--color-5);
	position: absolute;
	top: 0;
}

.onda2
{
	width: 100%;
	background-color: var(--color-5);
	transform: scale(-1, -1);
	position: relative;
	z-index: 1;
}

.historia .onda1 img,
.onda2 img
{
	width: 100%;
	display: block;
	margin: -2px 0;
}

.historia h2
{
	width: 100%;
	font-family: font1-extrabold;
	font-size: var(--text-4);
	letter-spacing: 7px;
	text-align: center;
	color: var(--color-3);
	background-color: #ffffff;
	padding: 0.7rem 0;
}

.historia .parte
{
	width: 100%;
	padding: 1rem 1.3rem 0.5rem;
	display: flex;
	flex-direction: column;
}


/* -- Grid Masonry -- */
#masonry
{
	padding: 1.3rem;
}

#masonry .grid-wrapper > div 
{
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
  background-color: rgba(255,255,255,0.5);
}
#masonry .grid-wrapper > div > img 
{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}
#masonry .grid-wrapper img:hover 
{
  opacity: 0.7;
  cursor: pointer;
}

#masonry .grid-wrapper 
{
  display: grid;
  padding: 3rem 0;
  grid-gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-auto-rows: 200px;
  grid-auto-flow: dense;
}
#masonry .grid-wrapper .wide 
{
  grid-column: span 2;
}
#masonry .grid-wrapper .tall 
{
  grid-row: span 2;
}
#masonry .grid-wrapper .big 
{
  grid-column: span 2;
  grid-row: span 2;
}
#masonry .grid-wrapper .top img 
{
  object-position: top;
}
#masonry .grid-wrapper .bottom img 
{
  object-position: bottom;
}
#masonry .grid-wrapper .left img 
{
  object-position: left;
}
#masonry .grid-wrapper .right img 
{
  object-position: right;
}

/* Fullscreen img*/
#fullscreen
{
  width: 100%;
  height: 100vh;
  padding: 2rem;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0,0,0,0.9);

  visibility: hidden;
  transition: 300ms ease-in-out;
  opacity: 0;
  transform: scale(2);
  z-index: 99999;
}
#fullscreen.isOpen 
{
    visibility: visible;
    opacity: 1;
    transform: scale(1);
}

#fullscreen > div 
{
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#fullscreen button 
{
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  color: white;
  float: right;

  transition: 300ms ease-in-out;
}
  #fullscreen button:hover 
  {
    transform: scale(1.2);
    opacity: 0.7
  }

#fullscreen img 
{
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  padding: 1rem;
  object-fit: contain;
}