/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* FUENTE */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

/* VARIABLES POR DEFECTO */

:root {
  --c-negro: #000;
  --c-blanco: #FFFFFF;

  --c-primario: #000;

  --c-secundario: blue;

  --c-grisclaro: #EFEFEF;
  --c-gris: #c2c2c2;

  --f-sans: 'DM Sans', sans-serif;
}

/* OUTLINE */

*:focus { outline: 0px solid orange; }

/* ESTILOS COMUNES */

body {
  font-family: var(--f-sans) !important;
  color: var(--c-negro);
  font-size:16px !important;
  line-height: 1.6875rem ;
  font-weight: 300 !important;
}

h1, h2, h3 {
  font-size: 20px !important;
  text-transform: uppercase;
  font-weight: 300 !important;
}

h1.entry-title {
  margin-bottom: 30px;
}

a {
  color: var(--c-negro) ;
  text-decoration: none;
  opacity: 1;
  transition: all 0.4s ease !important;

}

a:hover {
  opacity: 0.8;
}

.main-navigation .main-nav ul li[class*="current-menu-"] > a {
  color: var(--c-negro);
  font-weight: 300;
}

/**/

/* Para navegadores basados en WebKit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  cursor: pointer;
  width: 10px; 
}

/* Fondo de la barra de desplazamiento */
::-webkit-scrollbar-track {
  background: var(--c-gris); 
  cursor: pointer;
}

/* Color de la barra en sí */
::-webkit-scrollbar-thumb {
  background: var(--c-blanco); 
  transition: all 0.3s ease-in;
  cursor: pointer;
}

/* Cuando el usuario pasa el cursor sobre la barra */
::-webkit-scrollbar-thumb:hover {
  background: var(--c-negro); 
  transition: all 0.3s ease-in;
}

/* BLOG */

.single-post .entry-header h1 {
  text-align: center;
  padding-top: 60px;
  padding-bottom: 10px;
}

.single-post .content-area {
  p {
    text-align: center !important;
  }
}
.comments-area {
  display: none;
}

.single-post .site-content {
  padding-bottom: 150px; 
}

.wp-show-posts-columns:not(.wp-show-posts-masonry) {
  width: 100%;
  display: grid !important;
  gap: 5px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wp-show-posts-single.post {
  margin-bottom: 0;
  width: 100%;
}

.wp-show-posts-columns#wpsp-192 .wp-show-posts-inner {
  margin: 0 0 0em 0em !important;
}

.wp-show-posts-columns#wpsp-192 {
  margin-left: 0em !important;
}

.wpsp-read-more {
  display: none;
}

.wp-show-posts-entry-header {
  margin: 0 0 0.4em !important;
}

.wp-show-posts-entry-summary {
  margin-bottom: 1em !important;
}

@media (max-width: 1200px) {
  #wpsp-192.wp-show-posts-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  #wpsp-192.wp-show-posts-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  #wpsp-192.wp-show-posts-columns {
    grid-template-columns: 1fr;
  }
}

.entry-content img {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.entry-content img.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.btn-back-projects {
  display: inline-block;
  max-width: 250px;
  background-color: #E0E0E0;
  padding: 10px 20px;
  height: 40px;
  border: 0;
  margin-bottom: 0;
  text-align: center;
  transition: all 0.25s ease-in;
  text-transform: none;
  border-radius: 0;
  font-family: var(--f-sans);
  font-size: 16px;
  color: #2D2D2D;
  line-height: 1.5;
  box-shadow: none;
  cursor: pointer;
  margin-top: 20px;
  text-decoration: none;
  margin-inline: auto !important;
}

.back-projects-wrapper {
  text-align: center;
  margin-top: 40px;
}

.btn-back-projects:hover {
  background-color: #d5d5d5;
}

#carrusel-home {
  figure {
    img {
      z-index: 4;
    }

    figcaption {
      transform: translateY(-30px);
      transition: all 0.4s ease;
      z-index: 2;
      font-size: 16px;
      text-transform: uppercase;
    }

    &:hover {
      figcaption {
        transform: translateY(0);
      }
    }
  }
}

body.post-template-default .site-content{
  max-width: 90%;
  margin-inline: auto;
}

@media (max-width: 768px) {
  body.post-template-default .site-content{
    max-width: 80%;
    margin-inline: auto;
  }
}


#mobile-menu-control-wrapper {

  display: none;
}