/**
 * @file
 * front.css
 * 
 * Styling for the Front Page
 * 
 * -------------------------------------------------
 * Attached thru `.theme`
 *
 ============================================================================ */

/*=======================================
   Global
=========================================*/
.layout-container,
#page .wp-block-group__inner-container,
#page .wp-block-cover__inner-container {
  max-width: 98rem;
  width: 100%;
  margin: 0 auto;
  padding: 0 2em;
}

#page .wp-block-group__inner-container,
#page .wp-block-cover__inner-container {
  padding-top: 4em;
  padding-bottom: 3em;
}

#page .fp-section--commerce-circle .wp-block-cover__inner-container {
  padding: 6rem 2.5rem 4rem;
}

@media (min-width: 700px) {
  #page .fp-section--get-involved .wp-block-group__inner-container {
    padding-left: 7rem;
    padding-right: 7rem;
  }

  #page .fp-section--commerce-circle .wp-block-cover__inner-container {
    padding: 7rem 5.5rem 5rem;
  }
}

@media (min-width: 1200px) {
  #page .wp-block-group__inner-container,
  #page .wp-block-cover__inner-container {
    padding-top: 5em;
    padding-bottom: 4em;
  }

  #page .fp-section--get-involved .wp-block-group__inner-container {
    padding-left: 9rem;
    padding-right: 9rem;
  }

  #page .fp-section--commerce-circle .wp-block-cover__inner-container {
    padding: 7rem 8rem 6rem;
  }
}

#page .main,
.wp-block-cover, .wp-block-cover-image {
  padding: 0;
}

/*----------------------------
    Elements
  ----------------------------*/

/* Pargraphs */
.wp-block-drupal-section p {
  color: #666;
  font-size: 1.3rem;
}

/*----------------------------
    Page Title
  ----------------------------*/
#block-letsgo-page-title {
  font-size: 0;
  visibility: 0;
  height: 0;
}

/*----------------------------
   Hero Text
  ----------------------------*/
#page .fp-section--hero-text .wp-block-cover__inner-container {
  padding-bottom: 1em;
}

.has-black-background-color {
  background: #000;
}

.fp-section--hero-text {
  justify-content: left;
  background-color: #333;
}

div .fp-section--hero-text .prefix-text--green {
  font-size: 1.4em;
}

.hero-column--big-text {
  min-width: 30rem;
  padding-right: 2rem;
}

div .fp-hero-text {
  font-size: 4.5em;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
  letter-spacing: 4px;
  margin: 0 0 2rem;
}

.fp-section--hero-text .wp-block-column:last-child p {
  max-width: 25rem;
  font-size: 1.4em;
  line-height: 2;
  letter-spacing: 1px;
}

/*----------------------------
    Better Buy
  ----------------------------*/
.fp-section--get-involved .wp-block-column:first-child {
  margin-right: 3em;
}

.fp-section--get-involved p {
  font-size: 1.1em;
  line-height: 1.75;
}

/*----------------------------
    Commerce Circle
  ----------------------------*/
.wp-block-drupal-section {
  overflow: hidden;
}

.fp-section--commerce-circle {
  border-top-left-radius: 400% 50%;
  border-top-right-radius: 400% 50%;
  overflow: hidden;
  margin: 0 -2em;
  padding: 0 2em;
  box-sizing: content-box;
}

.fp-section--commerce-circle .is-style-outline .wp-block-button__link {
  color: #fff;
  border-color: #fff;
  padding: 0.3em 1.7em;
  background: none;
}

#page .commerce-circle {
  white-space: nowrap;
  overflow-x: hidden;
  text-align: center;
  background: #fff;
  padding: 2em 0;
  border-radius: 0.6em;
  margin: 3em 0 0;
}

#page .commerce-circle .slide {
  display: inline-block;
  line-height: 225px;
  margin: 0 10px;
}

#page .commerce-circle .slide a {
  line-height: 0;
  vertical-align: middle;
  background-color: #eee;
}

/*----------------------------
    News
  ----------------------------*/
@media (min-width: 55.125em) {
  .fp-news__columns>div:first-child {
    max-width: 41em;
    margin-right: 4em;
  }

  .fp-news__columns>div:last-child {
    max-width: 34em;
  }
}

@media (max-width: 55em) {
  .fp-news__columns>div {
    min-width: 100%;
  }
}

/* Featured */
.news--fp-featured {
  margin: 2rem 0 0;
}

.news-featured {
  border-radius: 1.5em 1.5em 0 1.5em;
}

.news-featured__content {
  position: static;
  background: #00BCD4;
  padding: 2em 2em 3em;
  color: #fff;
}

@media (min-width: 650px) {
  .news-featured__content {
    position: absolute;
    top: auto;
    left: auto;
    bottom: 0;
    right: 0;
    width: 25em;
    min-height: 12em;
  }
}

.news-featured__title {
  color: inherit;
  margin: 0 0 1rem;
  font-weight: 700;
}

/* Listings */
p.fp-news__description {
  /* Description */
  color: #888;
  font-size: 1.8em;
  margin: 0 0 4rem;
}

.news-listing {
  justify-content: center;
  text-align: center;
  padding: 2em 0;
  border-bottom: 1px solid #ccc;
}

.views-row:last-child .news-listing {
  border: none;
}

.news-listing__img {
  line-height: 0;
  min-width: 140px;
  margin: 0 0 0.7em;
}

.news-listing__img img {
  -ms-flex-negative: 0;
  border-radius: 0.5rem;
}

.news-listing__title {
  font-size: 1.3em;
  margin: 0.2rem 0;
}

.news-listing__category {
  text-transform: uppercase;
  letter-spacing: 1px;
}

.fp-news__buttons--mobile {
  display: none;
  text-align: center;
}

@media (min-width: 450px) {
  .news-listing {
    flex-wrap: nowrap;
    text-align: left;
    justify-content: left;
  }

  .news-listing__img {
    margin: 0 2em 0 0;
  }

  .fp-news__buttons--mobile {
    text-align: right;
  }
}


/*----------------------------
    Events
  ----------------------------*/
.fp-section__events {
  background: #fafafa;
}

.events--fp {
  margin-top: 2em;
}

/* Override the custom.css */
@media (min-width: 80em) {
  .view--grid-3 .views-row {
    max-width: calc(33.33% - 1.6em);
  }
}

/*==============================================================
    Responsive
================================================================*/

/*----------------------------
    Large Screens
  ----------------------------*/
@media screen and (min-width: 95em) {

  html,
  body {
    font-size: 18px;
  }

  /* Hero Text */
  .fp-section--hero-text {
    font-size: 1.1em;
    /*height: 43vw;*/
  }

  #page .fp-section--hero-text .wp-block-cover__inner-container {
    padding-bottom: 3.5em;
  }

  /* Event Title */
  .event-listing__title {
    font-size: 1.7em;
  }
}


/*----------------------------
    Small Screens
  ----------------------------*/

@media (max-width: 900px) {
  #page .wp-block-columns {
    flex-wrap: wrap;
  }

  #page .wp-block-column {
    min-width: 100%;
    margin: 0 0 1em;
  }

  .wp-block-column .wp-block-button.align-right { /* Buttons in columns */
    float: none;
    margin: 1em 0 0;
  }
  
  /* Hero Text */
  div .fp-hero-text {
    font-size: calc(10vw + 0.3em);
  }

  /* News & Advocacy */
  .news-featured {
    border-radius: 1.5em;
    margin: 0 0 1em;
  }

  .fp-news__description,
  .fp-news__buttons {
    display: none;
  }

  .fp-news__buttons--mobile {  display: block;  }
}

/*----------------------------
   FP Popup
  ----------------------------*/
.js #colorbox .fp-tisement--content img {
  max-height: 95vh;
  -o-object-fit: contain;
     object-fit: contain;
  -o-object-position: right;
     object-position: right;
  /* width: auto; /* jQuery not able to detect width for some reason (until later loaded) */
}

#cboxClose.cbox-close-plain {  opacity: 1 !important;  } /* Always show the close button */

