/*
  Glider component: Used on landing pages to display cards of information
*/
.glider {
  padding-top: 1.6875rem;
  padding-bottom: 1.6875rem;
  overflow: hidden;

  header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 2.8rem;

    @media screen and (min-width: 30rem) {
      justify-content: left;
      margin-bottom: 0;
    }

    :is(h2, h3, h4, h5, h6) {
      margin-bottom: 0;
    }

    .text-align-center {
      margin: 0 auto;
    }
  }
}

.glider.bg-white {
  background-color: #fff;
}

.glider.bg-blue {
  background-color: #003256;
  color: #fff;
}

.glider-title {
  margin-bottom: 1.6875rem;
  font-family: "Merriweather Web", Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
}

.glider.bg-white .glider-title { color: #003256; }
.glider.bg-blue .glider-title { color: #fff; }
.glider-track {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
}

a.glider-card,
.glider-card {
  display: block;
  flex: 0 0 25%;
  border: 1px solid #e7e8e7;
  max-width: 279px;
  min-width: 279px;
  margin: 1em;
  box-sizing: border-box;
}

a.glider-card {
  text-decoration: none;
  color: unset;
}
a.glider-card:hover {
  text-decoration: none;
  color: unset;
  cursor: pointer;
}

.glider-card.divider {
  margin: 0;
  padding: 1em;
  border: none;
  max-width: 331px;
  min-width: 331px;
}

.bg-meet-our-team.glider {
  header {
    padding: 1rem;

    @media screen and (min-width: 30rem) {
      padding: 1rem 8rem;
    }
  }

  /* Glider needs to keep arrow nav on mobile */
  /* Dot nav does not swap with 1 slide */
  .views-view-navigation {
    display: flex;
    justify-content: center;
    padding: 0;

    /* Tablet/Desktop */
    @media screen and (min-width: 30rem) {
      justify-content: flex-end;
    }
  }

  .glider-pagination__previous-page,
  .glider-pagination__next-page {
    display: block;
  }
}

.glider-card.full-width {
  display: flex;
  flex-direction: column;
  flex: 0 0 80%;
  margin: 0;
  border: none;
  max-width: 80%;
  min-width: 80%;

  @media screen and (min-width: 30rem) {
    flex-direction: row;
  }

  .views-field {
    flex: 1;
  }

  .views-field.views-field-field-glider-card-thumbnail img {
    display: block;
    max-height: 336px;
    width: 100%;
    max-width: 480px;

    object-fit: cover;

    @media screen and (min-width: 30rem) {
      margin-right: 6rem;
    }
  }
}

.glider-track .glider-card.divider:not(:first-child):not(.active) {
  -webkit-box-shadow: -1px 0 0 rgba(255, 255, 255, 0.5);
  box-shadow: -1px 0 0 rgba(255, 255, 255, 0.5);
}

.glider-track.three-cards-auto-scale .glider-card {
  flex: 0 0 33%;
  max-width: calc(33% - 2em);
}

.glider-card.hidden {
  display: none;
}

.glider-card-thumbnail {
  max-width: 277px;
  max-height: 141px;
  background-color: rgb(4,82,137);
  overflow: hidden;
  width: 100%;
  aspect-ratio: 277 / 141;
  height: auto;
}

.glider-card-thumbnail img {
  opacity: 1;
  transform: scale(1);
  transition: 0.5s ease;
  width: 100%;
  aspect-ratio: 277 / 141;
  height: auto;
  max-width: 277px;
  max-height: 141px;
}

.glider-card:hover .glider-card-thumbnail img,
.glider-card-thumbnail a:focus img,
.glider-card-thumbnail a:hover img {
  opacity: 0.25;
  transform: scale(1.05);
  transition: 0.5s ease;
}

.highlighted-item-subtitle,
.glider-card-subtitle {
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  padding: 1em 1em 0 1em;
}

.glider.bg-white .highlighted-item-subtitle,
.glider.bg-white .glider-card-subtitle {
  color: #736539;
}

.glider.bg-blue .highlighted-item-subtitle,
.glider.bg-blue .glider-card-subtitle {
  color: #b7ac83;
}

.highlighted-item-subtitle .separator::after,
.glider-card-subtitle .separator::after {
  content: "/";
}

.highlighted-item-title,
.glider-card-title {
  font-family: "Merriweather Web", Georgia, Cambria, "Times New Roman", Times;
  font-size: 1rem;
  font-weight: normal;
  line-height: 1.5;
  letter-spacing: 0.36px;
  display: block;
  padding: 1em;
}

/* Global Divergent */
.highlighted-item-title a,
.highlighted-item-title a:visited,
.glider-card-title a,
.glider-card-title a:visited {
  color: var(--fdic-dark-blue);
  text-decoration: none;

  &:hover {
    color: var(--fdic-med-blue);
    text-decoration: underline;
  }
}

.glider.bg-white .highlighted-item-title,
.glider.bg-white .glider-card-title {
  color :#013256;
}

.glider.bg-blue .highlighted-item-title,
.glider.bg-blue .glider-card-title {
  color: #fff;
}

.glider.bg-blue .highlighted-item-title a:hover {
  color: #b7ac83;
}

.highlighted-item {
  display: flex;
  justify-content: center;
  margin: 0 6rem 1.6875rem 6rem;
}

.highlighted-item-left {
  flex: 1;
  margin-right: 2.5rem;
}

.highlighted-item-right {
  flex: 1;
}

.highlighted-item-thumbnail img {
  width: 100%;
  height: auto !important;
}

.glider .views-view-navigation {
  /* display: none; */
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;

  /* Tablet/Desktop */
  @media screen and (min-width: 30rem) {
    justify-content: flex-end;
    padding-right: 2rem;
    margin-bottom: 1.6875rem;
  }

  nav {
    display: none;

    /* Tablet/Desktop */
    @media screen and (min-width: 30rem) {
      display: inline-block;
    }
  }
}

.glider .views-view-navigation:empty {
  display: none;
}

.glider .more-link a {
  font-family: "Open Sans", "Source Sans Pro Web", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: 600;
  line-height: normal;
  letter-spacing: 1.71px;
  text-decoration: none;
  /* margin-right: 2rem; */

  /* Tablet/Desktop */
  @media screen and (min-width: 30rem) {
    margin-right: 2rem;
  }
}

.glider .more-link a:hover {
  text-decoration: underline;
}

.glider.bg-white .more-link a { color: #003256; }
.glider.bg-blue .more-link a { color: #fff; }
.glider.bg-blue .more-link a:hover { color: #b7ac83; }
.glider .more-link,
.glider .glider-pagination,
.glider .glider-pagination__list {
  display: inline-block;
  min-height: 60px;
  max-height: 60px;
  display: flex;
  align-items: center;
}

.glider-pagination__list {
  margin: 0;
  padding: 0;
}

.glider-pagination__list .glider-pagination__item {
  margin-bottom: 0;
}

.glider-pagination__item {
  list-style: none;
  display: inline-block;
  margin-inline: 0 1em;
}

.glider-pagination__link-text {
  font-size: 50px;
  font-weight: 100;
  font-style: normal;
  position: relative;
  top: -2px;
}

.glider-pagination__previous-page {
  display: block;
  width: 55px;
  height: 55px;
  background-image: url("../images/gold-button-arrow-left.svg");
}

a.glider-pagination__previous-page:hover {
  background-image: url("../images/gold-button-arrow-left-hover.svg");
}

.glider-pagination__next-page {
  display: block;
  width: 55px;
  height: 55px;
  background-image: url("../images/gold-button-arrow-right.svg");
}

a.glider-pagination__next-page:hover {
  background-image: url("../images/gold-button-arrow-right-hover.svg");
}
/* .glider-pagination__previous-page,
.glider-pagination__next-page {
    border-radius: 100%;
    border: 2px solid var(--fdic-gold);
    width: 55px;
    height: 55px;
    color: var(--fdic-gold);
    font-family: monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    text-decoration: none;
}
.glider-pagination__previous-page:hover,
.glider-pagination__next-page:hover {
    color: var(--fdic-tan);
    background-color: var(--fdic-gold);
    text-decoration: none;
} */
.glider-dots {
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: center;
}

.glider-dot {
  height: 1.8125rem;
  width: 1.8125rem;
  border-radius: 100%;
  padding: 0;
  outline: 0;
  border: 1px solid;
  margin: 1.5rem 0.15625rem;
  cursor: pointer;
  background: none;
}
.glider.bg-white .glider-dot { border-color: #003256; }
.glider.bg-white .glider-dot.active,
.glider.bg-white .glider-dot:hover { background: #003256; }
.glider.bg-blue .glider-dot { border-color: #fff; }
.glider.bg-blue .glider-dot.active,
.glider.bg-blue .glider-dot:hover { background: #fff; }

@media all and (max-width: 64rem) {
  .highlighted-item {
    margin: 0 1rem 1.6875rem 1rem;
    flex-flow: column;
  }
  .highlighted-item-left {
    margin-right: 0;
  }
  .highlighted-item-thumbnail {
    margin-bottom: 1.6875rem;
  }
  .glider-pagination__previous-page,
  .glider-pagination__next-page {
    display: none;
  }
}
/* end glider */
.sr-only {
  border: 0;
  clip: rect(0,0,0,0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}
