/*
Theme Name: Cepams
Theme URI: https://cepamsweb.com/
Description: Hijo de Hamilton
Author: Mikel R. Nieto
Template: hamilton
Version: 1.0.0
Text Domain: cepams
*/

/*
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&family=Fira+Sans+Condensed:ital,wght@0,300;0,400;1,300;1,400&display=swap');

/* GENERAL */

body {
	font-family: 'Bricolage Grotesque';
}

body.custom-background {
		background-color: white;
}

hr {
    width: 100%;
    padding: 1rem;
    margin: 0;
		border-top: 1px solid blue;
}

/* TEXT */

a {
  text-decoration: none;
	color: blue;
}

a:hover {
  text-decoration: none;
	color: red;
}

a[target="_blank"]:hover::after {
  content: " ↗";
}

a[target="blank"]:hover::after {
  content: " ↗";
}

blockquote {
    margin: 0;
    padding: 0;
	padding-bottom: 2rem;
	 text-transform: none;
	border-top: 1px solid blue;
	padding-top: 1rem;
}

blockquote p {
	color: grey;
	font-weight: 200;
	font-size: 1rem;
}



.site-header {
    margin: 0;
    max-width: 100vw;
    padding: 1rem;
    position: fixed;
		top: 0;
    width: 100vw;
		color: black;
		text-transform: uppercase;
}

.title {
	font-size: 1.2rem;
	color: blue;
	text-transform: uppercase;
}
	
.site-header .site-title {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
	z-index: 100;
}

.site-header .site-title a:hover {
color: white;
}

.page-header {
	top: 0; 
	z-index: 101;
	margin: 0;
	padding: 0;
	width: 100vw;
	max-width: 100%;
  min-height: 4rem;
  text-align: center;
	transform: none;
	background: white;
	border-bottom: 1px solid black;
	margin: 0;
	padding: 0;
	position: sticky;
}

.page-header h1 {
	font-size: 1rem;
	margin: 0;
	padding: 0;
	padding-left: 10%;
}

.page-header > div {
	display: inline-flex;
  justify-content: center;
	position: relative;
}

.section-inner {
    max-width: 100vw;
    width: 100%;
}

.section-inner.thin p {
	 max-width: 100%;
}

.section-inner.thin {
	  height: auto;
    max-width: none;
		margin: 0;
		padding: 1rem;
	  top: 0;
		left: 0;
}

.section-inner.thin img {
	position: sticky;
  top: 10vh;
}

.section-inner.thin {
	background-color: white;
}

.section-inner.thin p {
	color: initial;
}

@media (max-width: 768px) {

.section-inner.thin {
	 position: relative;
}
	
.page-header h1 {
	font-size: 1rem;
	padding-left: 28%;
}
	
}

.entry-title {
text-align: left;
	padding-left: 40%;
	z-index: 200;
	position: relative;
}

.site-name {
	position: relative;
	z-index: 100;
}

.featured-image {
    margin-bottom: 0px;
		border-bottom: 1px solid black;
}

.site-nav {
    margin: 0;
		padding-top: 4rem;
    position: fixed;
    bottom: 0;
		top: 0; 
    z-index: 400;
}

.site-nav.active {
	padding: 1rem;
	padding-top: 20vh;
  background: white;
}

.site-nav footer {
  padding: 0;
	margin; 0;
	margin-top: 10vh;
}

.nav-toggle {
	 margin-right: 1rem;
}

.post-preview {
padding: 0px;
}

.container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}

.column {
  flex: 1 1 24%;
}

.column h1 {
	font-size: 2rem;
	font-weight: 400;
	margin: 0;
	padding: 0;
	border-bottom: 1px solid black;
}

.column h2 {
	padding: 0;
	margin: 0;
	font-size: 1.4rem;
	font-weight: 300;
	color: grey;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column; 
    }
    .column {
        flex: 1 100%;
    }
}

@media (max-width: 620px) {
    .site-footer {
        padding: 0;
				 margin: 0;
    }
}

.site-footer a:hover {
	color: white;
	text-decoration: none;
}

 .site-footer {
   padding: 0;
	 margin: 0;
	z-index: 200;
 }

.theme-by {
	font-size: 1rem;
	display: block;
	position: fixed;
	bottom: 1rem;
	left: 1rem;
	margin: 0;
	z-index: 100;
}

.alignnone {
    max-width: 100%;
}

.featured-image img {
    width: 100%;
    height: 100vh;
    max-width: none;
    object-fit: cover;
}

.full-screen-image {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    margin: 0;
}

.full-screen-image img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
	position: fixed;
}

.preview-image img {
		max-height: 100vh;
}

iframe {
	        max-width: -webkit-fill-available;	
}

/* RELATED POSTS */

.tags, .post-date {
	margin: 0;
	padding: 1rem;
	color: black;
}

.posts {
	margin: 0;
}

.post-date {
	display: none;
}

.related-posts {
	margin: 0;
	margin-bottom: 0.7rem;
	border-bottom: 1px black solid;
}

.related-posts-wrapper {
	margin: 0;
	padding: 0; 
	border-top: 1px black solid;
	padding-bottom: 3rem;
	display: none;
}

.related-posts .post-preview .preview-image {
	height: 100vh;
	max-height: 100vh;
}

/* META */

.meta {
	padding-bottom: 4rem;
	margin-left: -0.7em;
	color: transparent;
	margin-top: 0;
}

.meta a {
	color: grey;
}

.meta a:hover {
	color: red;
}

.meta.bottom p.tags {
	padding: 0;
	margin: 0;
	color: transparent;
	margin-left: -1.8rem;
}

.meta.bottom p.tags a {
	color: grey;
	text-transform: none;
}

.meta.bottom p.tags a:hover {
	color: red;
}

.tags {
	padding: 0;	
	margin: 0;
}

 /* MENU BURGER */

.fade-block {
	display: none;
}


:root .nav-toggle {
    height: 2rem;
	  z-index: 400;
}

.site-nav.active {
    left: 0;
    right: 0;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

 /* MENU BURGER - SOCIAL */

@media (max-width: 620px) {
    .site-nav ul + ul li {
        font-size: 1rem;
        font-weight: 400;
    }
}

    .site-nav ul + ul li {
     font-size: 1.8rem;
     font-weight: 400;
 }

 /* SELECTION */

  ::-moz-selection { 
	color: white;
	background: blue;
  }
  
  ::selection {
	color: white;
	background: blue;
  }

/* SCROLL */

*::-webkit-scrollbar {
	display: none;
}

*::-webkit-scrollbar-track {
	display: none;
}

*::-webkit-scrollbar-thumb {
	display: none;
}

/* LOADING */

body {
	-webkit-animation: fadein 2s;
	   -moz-animation: fadein 2s;
		-ms-animation: fadein 2s;
	 -o-animation: fadein 2s;
	animation: fadein 2s;
	
	background-color: white;
	
  }
  
  @keyframes fadein {
	from { opacity: 0; }
	to   { opacity: 1; }
  }
  
  @-moz-keyframes fadein {
	from { opacity: 0; }
	to   { opacity: 1; }
  }
  
  @-webkit-keyframes fadein {
	from { opacity: 0; }
	to   { opacity: 1; }
  }
  
  @-ms-keyframes fadein {
	from { opacity: 0; }
	to   { opacity: 1; }
  }
  
  @-o-keyframes fadein {
	from { opacity: 0; }
	to   { opacity: 1; }
  }




.alt-nav ul {
    background: transparent;
    border-radius: 0px;
    font-size: 1rem;
}

.alt-nav ul a {
	color: blue;
}

.alt-nav ul a:hover {
	color: red;
}

a {
    transition: all 0s ease-in-out;
}


.site-header {
	text-transform: none;
}

.alt-nav > li.menu-item-has-children:after {
	display: none;
}

.alt-nav > li.menu-item-has-children:hover {
	text-decoration: none;
}

.alt-nav ul {
	background: transparent;
	border-radius: 0px;
	opacity: 0;
	margin: 0;
	padding: 0;
	padding-top: 1rem;
	position: absolute;
		left: -9999px;
		top: calc( 100% + 15px );
	transform: translateY( 100px );
	transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out, left 0s .5s, top 0s .5s;
	width: 100%;
	z-index: 1;
}

.alt-nav ul:after {
	display: none;
}

.alt-nav ul a {
    display: block;
    padding: 10px 0;
}

.alt-nav ul a {
    padding: 10px 0;
}

.alt-nav ul li:hover { background: transparent;
}


/* CEPAMS: columnas creadas por H1 y H2 */
.entry-content.section-inner.thin > .container {
	display: flex;
	flex-flow: row wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 30px;
	width: 100%;
}

.entry-content.section-inner.thin > .container > .column {
	display: block;
	flex: 1 1 24%;
	min-width: 0;
	width: auto;
}

@media (max-width: 768px) {
	.entry-content.section-inner.thin > .container {
		flex-direction: column;
	}

	.entry-content.section-inner.thin > .container > .column {
		flex: 1 1 100%;
		width: 100%;
	}
}
