
/************************************************************************************************************************************//*
 * Front page "In Focus" block
***************************************************************************************************************************************/

.landing-page .in-focus {
  overflow: hidden;
  position: relative;
}
.landing-page .in-focus-title {
  font-size: 1.1rem;
  line-height: 120%;
  font-weight: 600;
  margin: 0 0 1.25rem 0;
}
.landing-page .in-focus-title::before {
  display: none;
}
.landing-page .in-focus h3 {
  font-size: 1.8rem;
  line-height: 120%;
}
.landing-page .in-focus h3 a {
  color: white !important;
}
.landing-page .in-focus .avaåtar {
  margin: 0;
  padding-top: 3rem;
}
.landing-page .in-focus .views-field.views-field-title,
.landing-page .in-focus .views-field-field-article-teaser {
  max-width: 750px;
}
.landing-page .in-focus .in-focus-image img {
  position: absolute;
  object-fit: cover;
  z-index: 0;
  padding-bottom: 3rem;
  height: fit-content;
}
.landing-page .in-focus .views-field-field-byline a,
.landing-page .in-focus .byline a {
  color: white;
  font-weight: 600;
}
.landing-page .in-focus .attachment {
  position: relative;
  padding: 2rem 5%;
  z-index: 1;
  background: radial-gradient(circle 40rem at 78%, transparent -13%, transparent 9%, black 55%);
}
.landing-page .in-focus .attachment .views-element-container {
  margin-left: auto;
  margin-right: auto;
}
.landing-page .in-focus .attachment .views-element-container .view {
  overflow: visible;
}
.landing-page .in-focus .attachment .in-focus .view-header h3 {
  margin-bottom: 1rem;
}

/* This styles & suppresses the teaser on smaller screens (it appears on larger screens) */
.landing-page .in-focus .views-field-field-article-teaser {
  font-size: 1.1rem !important;
  line-height: 1.5rem !important;
  font-weight: 100;
  color: white;
  display: none;
}

/* With house ad */
.landing-page .in-focus.with-house-ad .house-ad {
  padding: 1.5rem 5%;
  border-top: 10px solid #fff;
  color: #fff;
}
.landing-page .in-focus.with-house-ad .cta-link {
  display: inline-block;
  padding: 0 0 0.333rem;
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  color: #fff;
  border-bottom: 1px dotted #eee;
}
.landing-page .in-focus.with-house-ad .cta-link:hover {
  color: #eee;
  border-bottom: 1px dotted #ddd;
}

@media screen and (min-width: 480px) {
  .landing-page .in-focus.with-house-ad .house-ad {
    font-size: 1.2rem;
  }
}

@media screen and (min-width: 800px) {
  .landing-page .in-focus.with-house-ad {
    display: grid;
    grid-template-columns: 70% 30%;
  }
  .landing-page .in-focus.with-house-ad .house-ad {
    border-top: none;
    border-left: 10px solid #fff;
    padding: 1.5rem 7%;
    font-size: 1.25rem;
  }

  /* Reappear items hidden in mobile */
  .landing-page .in-focus .byline-wrapper img,
  .landing-page .in-focus .views-field-field-article-teaser,
  .landing-page .in-focus .more-link {
    display: block;
  }
  .landing-page .in-focus .attachment {
    background: radial-gradient(circle 51rem at 59%, transparent 2%, transparent 9%, black 55%);
    padding: 2rem 5% 9rem;
  }
  .landing-page .in-focus .in-focus-image img {
    position: absolute;
    object-fit: cover;
    width: 140%;
    z-index: 0;
    object-position: 0;
    padding-bottom: 0;
    max-width: 90% !important;
  }
}

@media screen and (min-width: 900px) {
  .landing-page .in-focus .views-field-field-article-teaser {
    display: block;
    font-size: 1.2rem !important;
    line-height: 1.6rem !important;
    font-weight: 100;
    margin: 1rem 0 1.5rem 0;
  }
  .landing-page .in-focus-title::before {
    display: inline-block;
    margin-left: -4rem;
    border-top: 1px solid #fff;
  }
  .landing-page .in-focus .views-field-field-article-teaser,
  .landing-page .in-focus .byline-wrapper {
    margin: 1rem 0 1.5rem 0;
  }
  .landing-page .in-focus h3 {
    padding-bottom: 0;
    margin: 0 0 1.25rem 0;
    font-size: 2.3rem;
    font-weight: 800;
  }
  .landing-page .in-focus .byline,
  .landing-page .in-focus .views-field-field-byline {
    padding-bottom: 0;
    display: block;
  }
  .landing-page .in-focus .avatar {
    line-height: 1rem;
    margin-left: 2rem;
  }
  .landing-page .in-focus .avatar img {
    margin: 0;
    padding-top: 0;
    padding-bottom: 1rem;
  }
  .landing-page .in-focus .more-link a {
    font-weight: 200;
    border-bottom: 1px solid white;
    color: white;
  }
}

@media screen and (min-width: 1100px) {
  .landing-page .in-focus.with-house-ad {
    grid-template-columns: 75% 25%;
  }
  .landing-page .in-focus .in-focus-image img {
    width: 110%;
  }
}

@media screen and (min-width: 1200px) {
  .landing-page .in-focus .in-focus-image img {
    width: 100%;
  }
}

/************************************************************************************************************************************//*
 * General section page styling
***************************************************************************************************************************************/

.front h2::before,
.page-classroom-topics .block > h2::before,
.page-community-news .block > h2::before,
.page-how-use-gsr-classroom .main h2::before,
.section-earthbeat .main h2::before,
.earthbeat-landingpage .main h2::before,
.page-taxonomy-term .main h2::before,
.page-node-type-author .main h2::before {
  display: inline-block;
  content: "";
  border-top: 1px solid;
  width: 3rem;
  margin-right: 1rem;
  transform: translateY(-0.5rem);
}
h2.no-line::before {
  display: none !important;
}
.landing-page h2.with-margin,
.landing-page h3.with-margin,
.landing-page .views-field-title.with-margin {
  margin-top: 1rem !important;
  margin-bottom: 1rem !important;
}
.landing-page h2.with-margin-bottom,
.landing-page h3.with-margin-bottom,
.landing-page .views-field-title.with-margin-bottom {
  margin-bottom: 1rem !important;
}
.landing-page h2.with-margin-top,
.landing-page h3.with-margin-top,
.landing-page .views-field-title.with-margin-top {
  margin-top: 1rem !important;
}
.wide.landing-page .main h3 a,
.page-taxonomy-term .main h3 a,
.page-node-type-author .main h3 a {
  text-decoration: none;
  color: black;
}
.earthbeat-landingpage .main h4,
.page-taxonomy-term .main h4 {
  font-size: .9rem;
  margin: 1rem;
  letter-spacing: .1rem;
  font-weight: 300;
}
.wide.landing-page .views-field-field-article-teaser p,
.earthbeat-landingpage .views-field-field-article-teaser .main p,
.page-taxonomy-term .views-field-field-article-teaser .main p {
  font-size: .9rem;
  line-height: 150%;
}
.wide.landing-page .views-field-field-article-teaser,
.earthbeat-landingpage .views-field-field-article-teaser .main,
.page-taxonomy-term .views-field-field-article-teaser .main {
  margin: 1rem 0;
}
.page-node-type-author .view-footer a,
.earthbeat-landingpage .view-footer a,
.earthbeat-landingpage .submit-link,
.page-taxonomy-term .view-footer a,
.page-taxonomy-term .submit-link {
  font-family: Roboto, sans-serif;
  font-size: .75rem;
  line-height: 1rem;
  text-transform: uppercase;
  text-align: left;
  letter-spacing: .03rem;
  text-decoration: underline;
}
.landing-page-width .layout.gray,
.page-taxonomy-term .layout.gray {
  background: #F2F2F2;
}

/************************************************************************************************************************************//*
 * Author pages
***************************************************************************************************************************************/

.page-node-type-author .pager__items {
  font-family: "Roboto", Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  font-size: .9rem;
}
.page-node-type-author .pager__items a {
  text-decoration: none;
  font-size: .9rem;
}
.page-node-type-author h3 {
  margin: .5rem 0;
}
.page-node-type-author .latest-news-date {
  margin: .5rem 0;
}
.page-node-type-author .block-field-blocknodeauthorbody p {
  margin-left: 1rem !important;
}

@media screen and (min-width: 640px) {
  .view-author-bio .views-row {
    display: grid;
    grid-template-columns: 25% 72%;
    grid-column-gap: 3%;
  }
  .view-author-bio .author-name {
    margin: 0 0 0.75rem;
  }
}

@media screen and (min-width: 800px) {
  .view-author-bio .views-row {
    display: grid;
    grid-template-columns: 22% 75%;
    grid-column-gap: 3%;
  }
}

@media all and (min-width: 900px) {
  .page-node-type-author .block-views-blockarticles-by-author-block-2 {
    margin-top: 4rem;
  }
}

@media screen and (min-width: 1000px) {
  .view-author-bio .views-row {
    display: grid;
    grid-template-columns: 200px auto;
    grid-column-gap: 2%;
  }
  .view-author-bio .views-field-title {
    padding-top: 1.5rem;
  }
  .page-node-type-author a {
    text-decoration: none;
  }
  .view-author-bio .author-name {
    font-size: 2rem;
    font-weight: 300;
  }
  .view-author-bio img {
    border-radius: 50%;
  }
}

/************************************************************************************************************************************//*
 * Landing page sections: 3-up + in-case-you-missed-it
***************************************************************************************************************************************/

.page-sections-more .page-title-wrapper h1,
.page-taxonomy-term .page-title-wrapper h1 {
  text-indent: 0;
  margin-left: 0;
  font-size: 1.8rem;
  font-weight: 200;
  text-align: center;
  margin-bottom: 0;
}
.page-sections-more .page-title-wrapper,
.page-taxonomy-term .page-title-wrapper {
  margin-bottom: 2rem;
}
.page-sections-more .page-title-wrapper h1::before,
.page-sections-more .page-title-wrapper h1::after,
.page-taxonomy-term .page-title-wrapper h1::before,
.page-taxonomy-term .page-title-wrapper h1::after {
  content: " / " ;   /* Slash as divider for menu items */
  padding-right: 2rem;
  color: black;
  font-weight: 200;
  font-size: 2.2rem;
  border-top: 0;
  width: 0;
  transform: none;
}
.page-sections-more .page-title-wrapper h1::after,
.page-taxonomy-term .page-title-wrapper h1::after {
  padding-left: 1.5rem;
  padding-right: 0;
}

/************************************************************************************************************************************//*
 * Headlines
***************************************************************************************************************************************/

.page-node-type-author .timeline-headlines .views-field-title {
  margin: 1rem 0;
  padding: 0;
  font-size: 1.3rem;
  line-height: 120%;
  font-weight: 400;
}
.feature-series-list h3 {
  font-weight: 800;
  margin: 1rem 0;
}
.feature-series-list .teaser {
  margin: 1rem 0;
}

/* Author bios */
.view-author-bio .author-name {
  font-weight: 500;
  font-size: 1.6rem;
  font-family: "Roboto", Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  margin: 0.75rem 0;
}
.view-author-bio img {
  border-radius: 0.75rem;
  padding: 3px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}
.page-node-type-author .block-views-blockarticles-by-author-block-2 {
  margin-top: 2rem;
}

@media all and (min-width: 900px) {
  .front .block > h2 {
    margin-left: -4.3rem;
  }
  .front .block > h2.no-line {
    margin-left: 0;
  }
  .page-sections-more .page-title-wrapper,
  .page-taxonomy-term .page-title-wrapper {
    margin-bottom: 3rem;
  }
  .page-sections-more .page-title-wrapper h1::before,
  .page-sections-more .page-title-wrapper h1::after,
  .page-taxonomy-term .page-title-wrapper h1::before,
  .page-taxonomy-term .page-title-wrapper h1::after {
    padding-right: 2.5rem;
  }
  .page-sections-more .page-title-wrapper h1::after,
  .page-taxonomy-term .page-title-wrapper h1::after {
    padding-left: 2rem;
    padding-right: 0;
  }
}
