@import 'init';

.section-header {
  text-align:center;
}
.link-wrapper, .grapevine-wrapper {
  .image {
      img {
        height:100%;
        width:100%;
        object-fit:cover;
        object-position:top;
      }
  }
}
#links {
  .title {
    position:relative;
    margin-bottom:28px;
    &::after {
      position:absolute;
      content:'';
      bottom:-10px;
      left:50%;
      transform:translateX(-50%);
      width:136px;
      height:5px;
      background-color:@yellow;
      border-radius:15px;
    }
  }
  .section-header {
    .content {
      margin-bottom:46px;
    }
  }
}
.link-wrapper {
  border: 3px solid @yellow;
  border-radius: 15px;
  overflow: hidden;
  .image {
    height:360px;
  }
  .description {
    padding:30px;
  }
  .desc-title {
    font-weight:700;
    font-size:1.8em;
    text-transform:uppercase;
    position:relative;
    margin-bottom:24px;
    &::after {
      content:'';
      position:absolute;
      bottom:0;
      left:0;
      width:100%;
      height:2px;
      background-color:black;
    }
  }
}
#grapevine {
  .section-header {
    position:relative;
    margin-bottom:3rem;
    img {
      position:absolute;
      left:50%;
      transform:translateX(-50%);
      top:-34px;
      width:60px;
    }
    .btn-wrapper {
      position:absolute;
      top:0;
      right:0;
    }
  }
}
.grapevine-wrapper {
  position:relative;
  padding-bottom:2.4rem;
  .image {
    height: 300px;
    border:3px solid @yellow;
    border-radius:15px;
    overflow:hidden;
    img {
      border-radius:11px;
    }
  }
  .content_wrapper {
    padding-top:26px;
    padding-bottom:26px;
  }
  .btn {
    position:absolute;
    bottom:0;
  }
}
.grapevine_title {
  font-size:1.3em;
  font-weight:700;
}
.grapevine_date {
  font-size:0.9em;
  margin-bottom:1rem;
}
.grapevine_content.mobile {
  display:none;
}
@media only screen and (max-width:1199px) {
  .link-wrapper {
    .image {
      height: 250px;
    }
    .desc-title {
      margin-bottom:1rem;
    }
  }
}
@media only screen and (max-width:991px) and (min-width:578px) {
  #links .col-12 {
    margin-bottom:15px;
  }
  .link-wrapper {
    display:flex;
    .image {
      width:50%;
      height:300px;
    }
    .description, .content_wrapper {
      width:50%;
      padding:15px;
    }
  }
  .grapevine-wrapper {
    display:flex;
    .image {
      width:40%;
      height:280px;
    }
    .description, .content_wrapper {
      width:60%;
      padding:15px;
    }
  }
  #grapevine .section-header img {
    top:-18px;
    width:40px;
  }
  .grapevine-wrapper .btn {
    bottom:30px;
    right:30px;
  }
}
@media only screen and (max-width:991px) {
  #links .col-12, .grapevine-wrapper {
    padding-bottom:15px;
  }
  .grapevine_content {
    &.desktop {
      display:none;
    }
    &.mobile {
      display:block;
    }
  }
}
@media only screen and (max-width:575px) {
  .banner {
    height: 300px;
  }
  #links {
    .title {
      margin-bottom:20px;
    }
    .section-header .content {
      margin-bottom:20px;
    }
  }
  .link-wrapper {
    .desc-title {
      font-size:1.6em;
    }
    .image {
      height:200px;
    }
    .description {
      padding:15px;
    }
  }
  #grapevine .section-header {
    img {
      top:-15px;
      width:28px;
    }
    .btn-wrapper {
      top:unset;
    }
  }
  .grapevine_title {
    font-size:1em;
  }
  .grapevine-wrapper {
    .image {
      height:180px;
    }
    .content_wrapper {
      padding-top:15px;
      padding-bottom:15px;
    }
    .btn {
      position:relative;
    }
  }
}