/*
Theme Name: Astra Child
Template: astra
Version: 1.0.0
*/

@import url("https://laruedasuelta.com/wp-content/themes/astra/style.css");

/* body {border: 4px solid darkcyan;} */

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  //
}

.ast-site-title-wrap {
	display: none;
}

#ast-desktop-header {
  /* border: 5px solid cyan; */

  @media (max-width: 1150px) {
    display: none;
    /* outline: 1px solid gold; */
  }
}

#ast-mobile-header {
  /* border: 1px solid tomato; */

  @media (min-width: 1149px) {
    display: none;
  }

  @media (max-width: 1150px) {
    display: block ;
  }
}

.site-branding {
  /* border: 1px solid purple; */
  max-width: 200px;
  padding: 0 !important;

    @media (min-width: 1150px) {
      padding: 0 !important;
		  /* border: 1px solid lime; */
  }
}

.ast-mobile-header-logo {
  max-width: clamp(100px, 20vw, 100%) !important;
}

.custom-logo {
  margin-top: 16px;
  margin-bottom: 16px;
}

.ast-page-builder-template.single-post .site-content > .ast-container,
.ast-page-builder-template .site-content > .ast-container {
  max-width: 1364px;
}

header.entry-header:not(.related-entry-header) .entry-title {
  font-size: 40px;
  font-weight: 700;
}

.single-layout-1 {
  max-width: 768px;
  margin-left: auto;
  margin-right: auto;
}

img.size-full {
  width: 100%;
  display: block;
}

p + h6 {
  margin-top: -1em;
}

:where(body.single-post.category-entrevistas .entry-content) blockquote h4,
:where(body.single-post .entry-content blockquote.wp-embedded-content) h4,
:where(.lrs-interview-wrapper,.lrs-interview,.lrs-entrevista-intro,.lrs-vanhalen,.lrs-article-wrapper) blockquote h4 {
    font-weight: 100;
    line-height: 1.4;
    margin-bottom: 0;
    font-size: 20px !important;
    opacity: 0.8;
    margin-bottom: 0;
  }

.wp-block-image img {
  max-width: 100% !important;
}

.category .ast-article-post {
  /* border: 3px solid tomato; */
  .post-thumb-img-content {
    /* border: 3px solid lime; */
    
    a {
      display: block;

      img {
        display: block;
        aspect-ratio: 3/2;
        object-fit: cover;
      }
    }
  }
  
  h2 {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 0;
  }
}

.swiper {
  width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  margin-left: -50vw !important;
  max-width: 100vw !important;
  margin-bottom: 64px;
  margin-top: 0;
  background-color: transparent;
  padding: 0 !important;

  .swiper-wrapper {
    margin: 0 !important;
  }

  .swiper-slide {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    aspect-ratio: auto;
    height: 78vh;
    min-height: 460px;
    max-height: 720px;
    position: relative;
    overflow: hidden;
    background: #111;

    &::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.55) 32%, rgba(0,0,0,0) 62%);
      pointer-events: none;
      z-index: 1;
    }
  }

  .wp-block-latest-posts__featured-image {
    position: absolute;
    inset: 0;
    margin: 0 !important;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
  }

  .wp-block-latest-posts__post-date {
    display: block;
    position: absolute;
    left: 5%;
    right: 5%;
    bottom: 22px;
    z-index: 2;
    margin: 0 !important;
    padding: 0;
    background: transparent;
    color: rgba(255,255,255,.75);
    font-size: 12px;
    letter-spacing: .05em;
    text-transform: uppercase;
  }

  .wp-block-latest-posts__post-title {
    margin: 0 !important;
    position: absolute;
    bottom: 58px;
    left: 5%;
    right: 5%;
    top: auto;
    padding: 0;
    background-color: transparent;
    color: white;
    font-family: 'Bitter', serif;
    font-weight: 700;
    font-size: clamp(28px, 4vw, 52px);
    line-height: 1.15;
    max-width: 900px;
    z-index: 2;
    text-shadow: 0 2px 18px rgba(0,0,0,.4);
  }

  .wp-block-latest-posts__post-excerpt {
    display: none;
  }

  .swiper-button-next,
  .swiper-button-prev {
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;

    &::after {
      font-size: 18px;
      font-weight: 900;
    }
  }

  .swiper-pagination {
    z-index: 3;
    bottom: 22px !important;
    right: 5%;
    left: auto;
    width: auto;
    text-align: right;
  }

  .swiper-pagination-bullet {
    background: #fff;
    opacity: .5;
  }

  .swiper-pagination-bullet-active {
    opacity: 1;
    background: #D19604;
  }

}

.home-last-entry {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
  
  @media (max-width: 980px) {
    grid-template-columns: 1fr;
  }

  li {
    margin: 0;
    padding: 0;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1)  ;
    display: grid;
    grid-template-rows: min-content min-content;
    margin-top: 0  !important;
    margin-bottom: 0  !important;

    .wp-block-latest-posts__featured-image {
      width: 100%;
      height: 100%;
      position: relative;
      aspect-ratio: 3/2;
      overflow: hidden;

      a {
        display: block;
        width: 100%;
        height: 100%;  
      }
  
      img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
      }
    }
  
    .wp-block-latest-posts__post-title {
      margin: 0 !important;
      padding-left: 1rem;
      padding-right: 1rem;
      padding-top: 0.5rem;
      color: black;
      font-weight: 900;
      font-size: clamp(1.2rem, 4vw, 1.5rem);
      line-height: 1.2;
    }

    .wp-block-latest-posts__post-excerpt {
      padding-left: 1rem;
      padding-right: 1rem;
      padding-bottom: 0;
      font-size: 18px;
      line-height: 1.5;
    }

    .wp-block-latest-posts__post-date {
      padding-left: 1rem;
      padding-right: 1rem;
      padding-bottom: 0;
      display: flex;
      justify-content: flex-end;
      flex-direction: column;
      font-size: 0.9rem;
      order: 1;
    }
  }
}

.home .site-content {
  background-color: #f5f5f5;

  .ast-article-single {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

.ast-footer-copyright {
  margin-top: 1.5rem;
}

.main-navigation {
  .menu-link {
    font-weight: 900;
    color: black;
    position: relative;
    text-transform: uppercase;

    &:hover {

      &::after {
        display: block;
      }
    }

    &::before {
      display: none;
    }

    &::after {
      content: '';
      display: none;
      position: absolute;
      bottom: 40px;
      width: calc(100% - 2rem);
      height: 4px;
      background-color: #ffce4a;
    }
  }
}

.ast-above-header-wrap {
  .ast-grid-section-center {
    justify-content: flex-end;
    padding-right: 1rem;
  }
}

.wp-element-caption strong{
  font-weight: 300;
  font-size: 0.85em;
  font-style: italic;
}

.ast-related-posts-wrapper {
  grid-column-gap: 35px;
  grid-row-gap: 35px;
  margin-bottom: 2rem;
}

.ast-related-post-content {
  margin: 0;
  padding: 0;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1)  ;
  display: grid;
  grid-template-rows: min-content min-content;
  height: 100%;

  .entry-header {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

.ast-header-social-1-wrap .ast-builder-social-element svg {
  width: 22px;
  height: 22px;

  &:hover {
    fill: #d19604;
  }
}

.author {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e4e4e4;
}

.banner-basic {
  margin-bottom: 3rem !important;
  background-color: white;
  box-shadow: 0px 2px 7px #00000021;

  & .banner-basic__title {
    font-weight: 900;
    font-size: clamp(2rem, 6vw, 3rem) !important;
    line-height: 1.1;
    color: black;
  }
  
  & .banner-basic__leyend {
    font-size: 1.2rem;
    color: #565656;
  }
}

.ast-single-related-posts-container {
  padding-left: 1rem;
  padding-right: 1rem;
}


.site .site-content #primary .ast-article-single  {
  padding-top: clamp(1.2rem, 4vw, 3em) !important;
  padding-bottom: clamp(1.2rem, 4vw, 3em) !important;
  padding-left: clamp(1.2rem, 4vw, 3em) !important;
  padding-right: clamp(1.2rem, 4vw, 3em) !important;
  
}

.p-0 {
  padding: 0 !important;
}
