.card-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.parent-guide__card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: solid 2px var(--accent-2);
  text-align: center;
  margin-top: 5px;
}

h2.parent-guide__title  {
  font-size: 32px;
  margin-bottom: 10px;
  padding: 20px 20px 0 20px;
  line-height: 40px;
}

.guides-button{
  top: 425px;
  align-items: center;
  justify-content: center;
}
.parent-guide__summary {
  font-size: 16px;
  margin: auto;
  padding: 20px 40px 10px 32px;
}

.parent-guide__summary p {
  font-style: normal;
  font-weight: 200;
  font-size: 16px;
  line-height: 150%;
  color: var(--grey-accent-1);
}

.parent-guide__link {
  margin-top: 20px;
  margin-bottom: 30px;
  font-weight: 800;
  font-size: 32px;
  line-height: 110%;
  display: flex;
  align-items: center;
  text-align: center;
  flex-direction: column;
}

.parent-guide__link > a {
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  color: var(--core-color);
  border: solid 2px var(--core-color);
  border-radius: 30px;
  padding: 10px 20px 10px 20px;
}


.parent-guide__promo-image img {
  width: 120% !important;
  object-fit: cover;
  align-content: flex-end;
  max-height: 250px;
}


#search-bar{
  float: none;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.library-layout {
  position: relative;
  top: 130px;
  margin-bottom: 100px;
}

.guides-header {
  margin-bottom: 10%;
}

.library-searchbar #search-bar {
  float: none;
  position: relative;
  display: flex;
  justify-content: center;
  top: -345px;
  z-index: 1;
}

#edit-submit-searchlibrary {
  background-color: var(--core-color);
  position: relative;
  left: 10px;
  border-radius: 0px;
  border-color: var(--core-color);
  width: 100%;
}

#edit-search-api-fulltext {
  border-radius: 0px;
}

.library-header {
  margin-bottom: 10%;
  position: relative;
  top: -600px;
}

.library-heroimage {
  position: relative;
  display: inline-block;
  width: 93%;
  height: 436px;
  left: 45px;
  top: 390px;
  background: url(../../images/Library_PLACEHOLDER_image.png);
  background-size: cover;
  background-position: center;
}

.guides-title {
  float: none;
  position: relative;
  display: flex;
  justify-content: center;
  z-index: 1;
  top: 400px;
}

.guides-title h2 {
  font-style: normal;
  font-weight: 800;
  font-size: 48px;
  line-height: 110%;
  color: var(--accent-1);
}

.guides-summary {
  float: none;
  position: relative;
  display: flex;
  justify-content: center;
  z-index: 1;
  top: 410px;
}

.guides-summary p{
  font-style: normal;
  font-weight: 200;
  font-size: 21px;
  line-height: 150%;
  color: var(--grey-accent-1);
}

.btn-center{
  justify-content: center;
}


.guides-sectioner {
  position: relative;
  width: 100%;
  height: 0px;
  border: 1px solid var(--accent-2);
  transform: rotate(0deg);
  float: none;
  display: flex;
  justify-content: center;
  z-index: 1;
  top: 460px;
}

.question-container {
  float: none;
  position: relative;
  display: inline-flex;
  justify-content: center;
  z-index: 1;
  top: -37px;
  border: solid 1px #f8f8f8;
  padding: 30px;
  width: 100%;
  background-color: #f8f8f8;
  margin-top: 30px;
}

.question-container p {
  font-style: normal;
  font-weight: 200;
  font-size: 21px;
  line-height: 150%;
  color: var(--grey-accent-1);
}

#library-mainguides {
  position: relative;
  grid-template-columns: repeat(2, 1fr);
  width: 100%;
  top: -95px;
}

#library-mainguides .parent-guide__promo-image img {
  max-height: 500px;
}

#library-mainguides .parent-guide__card-content {
  border: none;
  text-align: left;
}

#library-mainguides .parent-guide__summary {
  font-size: 16px;
  margin: 0;
  padding: 20px 40px 10px 22px;
}

#library-mainguides h2.parent-guide__title {
  color: var(--core-color);
}

#library-mainguides .parent-guide__link {
  position: relative;
  left: 20px;
  align-items: baseline;
}

.library-search-results #search-bar {
  float: none;
  position: relative;
  display: flex;
  justify-content: center;
  top: 65px;
  z-index: 1;
}

.library-search-results #edit-submit-searchlibrary--2 {
  background-color: var(--core-color);
  position: relative;
  left: 10px;
  border-radius: 0px;
  border-color: var(--core-color);
  width: 100%;
}

.library-search-results #edit-search-api-fulltext--2 {
  border-radius: 0px;
}

@media (max-width: 374px) {
  .library-search-results #search-bar {
    top: 190px !important;
  }
}

@media (max-width: 480px) {
  .card-grid {
    grid-template-columns: repeat(1, 1fr); }
}

@media (max-width: 760px) {
  .question-container {
    top: -3px;
  }

  #library-mainguides {
    grid-template-columns: repeat(1, 1fr);
  }

  .library-header {
    top: -480px;
  }
  .library-searchbar #search-bar {
    top: -240px;
  }
  .guides-sectioner {
    margin-bottom: 20%;
    display: inline-block;
  }
  .guides-summary{
    left: 15px;
    width: 95%;
    }
  .library-heroimage {
    height: 200px;
    margin-left: -7.5%;
  }

  #edit-search-api-fulltext {
    border-radius: 0px;
    position: relative;
    left: 18%;
  }
  #edit-submit-searchlibrary {
    background-color: var(--core-color);
    position: relative;
    top: 100%;
    left: -126%;
    border-radius: 0px;
    border-color: var(--core-color);
    width: 100%;
    float: none;
    display: flex;
    justify-content: center;
  }

}

@media (max-width: 767px) {
  .guides-header {
    margin-bottom: 35%;
  }
  .question-container {
    top: 18px;
  }
  .library-heroimage {
    margin-left: -28px;
  }
  .guides-sectioner {
    margin-bottom: 15%;
  }
  .library-search-results #search-bar {
    float: none;
    position: relative;
    display: flex;
    justify-content: center;
    top: 143px;
    z-index: 1;
  }
  .library-search-results header {
    position: relative;
    margin-bottom: 80px;
  }
}

@media (min-width: 768px) {
  .guides-header {
    margin-bottom: 15%;
  }
  .question-container {
    top: 18px;
  }
  .library-heroimage {
    margin-left: -15px;
  }
  .guides-sectioner {
    margin-bottom: 15%;
  }
  .library-search-results #search-bar {
    float: none;
    position: relative;
    display: flex;
    justify-content: center;
    top: 120px;
    z-index: 1;
  }
}

@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr); }

  #search-bar {
    float: none;
  }
  .library-header {
    top: -440px;
  }
  .library-searchbar #search-bar {
    top: -200px;
  }
  #edit-search-api-fulltext {
    left: 0;
  }
  #edit-submit-searchlibrary {
    top: 0;
    left: 10px;
  }
}

@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr); }

  #search-bar {
    float: none;
  }
  .library-header {
    top: -670px;
  }
  .library-searchbar #search-bar {
    top: -440px;
  }
  #edit-search-api-fulltext {
    left: 0;
  }
  #edit-submit-searchlibrary {
    top: 0;
    left: 10px;
  }
}

@media (min-width: 1024px) {
  .guides-header {
    margin-bottom: 15%;
  }
  .question-container {
    top: 40px;
  }
  .library-heroimage {
    margin-left: -10px;
  }
  .guides-sectioner {
    margin-bottom: 15%;
  }
}

@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }

  .library-heroimage {
    width: 93%;
    height: 436px;
  }
}

@media (max-width: 1200px) {
  .library-search-results header {
    position: relative;
    margin-bottom: 70px;
  }
}

@media (min-width: 1200px) {
  .card-grid {
    grid-template-columns: repeat(4, 1fr); }
  .guides-header {
    margin-bottom: 11%;
  }
  .question-container {
    top: 40px;
  }
  .library-heroimage {
    margin-left: 5px;
  }
  .guides-sectioner {
    margin-bottom: 3%;
  }
  .library-search-results #search-bar {
    float: none;
    position: relative;
    display: flex;
    justify-content: center;
    top: 65px;
    z-index: 1;
  }
}

