/************************************************************
                    BOARD OF DIRECTORS
*************************************************************/

.board-of-directors {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
}

.directors {
  position: relative;
  z-index: 1;
}

.directors img {
  max-width: 100%;
}

.directors.teaser {
  width: 23%;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  align-items: flex-start;
  border: 2px solid #e4e4e4;
  margin-bottom: 2%;
  cursor: pointer;
  align-self: stretch;
  margin-left: 1%; /* For older browsers */
  margin-left: calc(1% - 1px); /* Looks like Safari is adding border width, offset this */
  margin-right: 1%; /* For older browsers */
  margin-right: calc(1% - 1px); /* Looks like Safari is adding border width, offset this */
}

/* Safari override due to box model */

.directors.teaser>div {
  width: 100%;
}

.directors.teaser .portrait {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fffefd;
  border-top: 1px solid #f2f1f0;
  padding: 1rem;
}

.directors.teaser .portrait .clip {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
}

.directors.teaser .portrait img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -45%);
}

.directors .info {
  background: #f9f9f9;
  padding: 1.188rem 0.688rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.directors .info .region-contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.directors.teaser .info .name {
  text-align: center;
  flex-grow: 1;
  margin-bottom: .5rem;
}

.directors.teaser .info .position {
  text-align: center;
  flex-grow: 1;
  margin-bottom: .5rem;
  margin-top: 20px;
  width:100%;
}


.directors.teaser .info .elected {
  text-align: center;
  flex-grow: 1;
  margin: 0;
}

.directors .position {
  display: block;
  text-align: left;
  margin: 1rem 0 0.5rem 0;
  line-height: 1.5;
  padding: 0 0.5rem;
}

.directors .info .name {
  width: 100%;
}

.directors.bio {
  width: 100%;
  height: 24rem;
  display: none;
  margin-left: 1%;
  margin-right: 1%;
  margin-top: 2%;
  margin-bottom: 4%;
  border: 1px solid #e4e4e4;
}

.directors.teaser.active+.directors.bio {
  display: flex;
}

.directors.bio .portrait {
  width: 14rem;
  flex-shrink: 0;
  overflow: hidden;
}

.directors.bio .portrait img {
  max-width: 100%;
  width: 100%;
}

.directors.bio .info {
  width: 30%;
  min-width: 16.875rem;
  flex-shrink: 0;
  padding: 1.81rem 1.31rem 1rem 1.31rem;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.directors.bio .name {
  text-align: left;
  padding: 0 .5rem;
  margin: 1rem 0 .5rem 0;
}

.directors.bio .elected {

  padding: 0 .5rem;
  margin: 0;
}

.directors.bio .full-bio {
  padding: 3rem 1.5rem 1rem 1.5rem;
  position: relative;
}

.directors.bio .full-bio article {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding-right: 1.5rem;
}

.directors.bio .full-bio article::-webkit-scrollbar-thumb {
  background: blue;
  color: blue;
}

.directors.bio .full-bio p {
  line-height: 1.75;
  word-break: break-word;
}

.directors.bio .full-bio .close {
  position: absolute;
  right: 1.5rem;
  top: .75rem;
  font-size: 1.750rem;
  font-weight: 800;
  margin: 0;
  line-height: 1;
  cursor: pointer;
  transition: opacity .35s ease-in-out;
  opacity: 1;
}

.directors.bio .full-bio .close:hover {
  opacity: .75;
}

@media only screen and (max-width: 1000px) {
  .directors.teaser {
    width: 30%;
    margin-bottom: 4.5%;
  }
}

@media only screen and (max-width: 900px) {
  .directors.bio {
    flex-wrap: wrap;
    justify-content: space-between;
    height: unset;
    margin-top: 0;
  }

  .directors.bio .portrait {
    width: 30%;
    border-bottom: 1px solid #e4e4e4;
  }

  .directors.bio .portrait .position {
    margin-bottom: 1rem;
  }

  .directors.bio .info {
    width: 70%;
    flex-grow: 1;
    height: unset;
  }

  .directors.bio .full-bio {
    width: 100%;
    height: 14rem;
    position: static;
    padding: 1rem 1.5rem 1rem 1.5rem;
  }

  .directors.bio .full-bio article {
    padding-right: 0;
  }

  .directors.bio .full-bio article>* {
    padding-right: 1rem;
  }

}

@media only screen and (max-width: 800px) {

  .directors.teaser {
    width: 47.5%;
    margin-bottom: 2.5%;
    margin-left: 1.25%;
    margin-right: 1.25%;
  }
}


@media only screen and (max-width: 600px) {
  .directors.teaser {
    width: 100%;
    margin-bottom: 4.5%;
    flex-direction: row;
  }

  .directors.teaser.active {
    margin-bottom: 0;
  }

  .directors.teaser .portrait {
    height: 100%;
    width: 18rem;
  }

  .directors.teaser .portrait .clip {
    width: 120px;
    height: 120px;
  }

  .directors.bio {
    margin-bottom: 5%;
  }

  .directors.bio .portrait,
  .directors.bio .info {
    display: none;
  }

  .directors.bio .full-bio {
      height: 22rem;
  }

  .directors.bio .full-bio article {
      margin-top: 3rem;
      height: 80%;
  }

}

@media only screen and (max-width: 480px) {
  .directors.teaser {
    flex-direction: column;
  }

  .directors.teaser .portrait {
    height: 100%;
    width: 100%;
  }

  .directors.bio .portrait,
  .directors.bio .quote {
    width: 100%;
  }

  .directors.bio .portrait img {
    max-width: 14rem;
    margin: 2rem auto 0 auto;
    display: block;
  }


}

/************************************************************
                    Leadership Team
*************************************************************/

.directors .info .region-contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.directors.bio .quote {
  height: 100%;
  background: #008653;
  padding: 1.9rem;
  width: 18.75rem;
  flex-shrink: 0;
}

.directors.bio .quote blockquote {
  color: white;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5;
  font-style: normal;
  height: 100%;
  overflow-y: auto;
  margin-bottom: 0;
  padding-right: .5rem;
}

@media only screen and (max-width: 900px) {
  .directors.bio .portrait .position {
    margin-bottom: 1rem;
  }

  .directors.bio .quote {
    width: 70%;
    height: auto;
    padding-top: 3.25rem;
    padding-right: 1.25rem;
  }
}


@media only screen and (max-width: 600px) {
  .directors.bio .quote {
    width: 100%;
    padding: 1.5rem 3.75rem 1.5rem 1.5rem !important;
  }

}

@media only screen and (max-width: 480px) {
  .directors.bio .quote {
    width: 100%;
  }
  
}

@media screen and (min-width: 901px) and (max-width: 991px) {
  .directors.bio .quote {
        width: 15rem;
  }
}

/************************************************************
                    DELEGATES
*************************************************************/

.delegates-container {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* Filter Styling */

#views-exposed-form-delegates-block-1 {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 3rem;
}

#views-exposed-form-delegates-block-1>div {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0 .5rem !important;
}

#views-exposed-form-delegates-block-1>div>div {
  width: 12rem;
  position: relative;
}

#views-exposed-form-delegates-block-1>div>div select {
  width: 100%;
  min-width: unset;
}

#views-exposed-form-delegates-block-1 label {
  margin: 0 1rem;
}

.delegate {
  position: relative;
  z-index: 1;
}

.delegate img {
  max-width: 100%;
}

.delegate.teaser {
  width: 32%;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  align-items: flex-start;
  border: 2px solid #e4e4e4;
  margin-bottom: 1.333%;
  cursor: pointer;
  align-self: stretch;
  margin-left: 0.665%;
    margin-right: 0.665%;
}

@media only screen and (min-width: 900px) {

}

.delegate.teaser.active {}

.delegate.teaser>div {
  width: 100%;
}

.delegate.teaser .portrait {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 9rem;
  background: #fffefd;
  border-top: 1px solid #f2f1f0;
  padding: 1rem;
}

.delegate.teaser .portrait .clip {
  width: 105px;
  height: 105px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
}

.delegate.teaser .portrait img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -45%);
}

.delegate .info {
  background: #f9f9f9;
  padding: 1.188rem 0.688rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.delegate .info .region-contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.delegate.teaser .info .name {
  text-align: center;
  flex-grow: 1;
}

.delegate .info .name,
.delegate .info .district {
  width: 100%;
}

.delegate.teaser .info .from {
  display: none;
}

.delegate .info .district,
.delegate .info .region {
  color: #f27f29;
  text-transform: uppercase;
  padding: 0.688rem .5rem;
  margin: 0;
}

.delegate .info .region {
  line-height: 1;
}

.delegate .info .region,
.delegate .info a.email {
  background: #f8ece2;
}

.delegate .info a.email {
  border-radius: 100%;
  padding: 1rem;
}

.delegate.bio {
  width: 100%;
  height: 18rem;
  display: none;
  margin-top: 1.5%;
  margin-bottom: 3.5%;
    margin-left: 0.665%;
    margin-right: 0.665%;
  border: 1px solid #e4e4e4;
}

.delegate.teaser.active+.delegate.bio {
  display: flex;
}

.delegate.bio .portrait {
  width: 14rem;
  flex-shrink: 0;
  overflow: hidden;
}

.delegate.bio .portrait img {
  max-width: 100%;
  width: 100%;
}

.delegate.bio .info {
  width: 30%;
  min-width: 16.875rem;
  flex-shrink: 0;
  padding: 1.81rem 1.31rem 1rem 1.31rem;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}

.delegate.bio .name,
.delegate .from,
.delegate.bio .district {
  padding: 0 .5rem;
}

.delegate.bio .name,
.delegate .from,
.delegate.bio .district,
.delegate.bio .region {
  margin: 0 0 0.25rem 0;
}

.delegate.bio .district {
  margin-top: 1rem;
}

.delegate.bio .full-bio {
  padding: 3rem 1.5rem 1rem 1.5rem;
  position: relative;
}

.delegate.bio .full-bio article {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding-right: 1.5rem;
}

.delegate.bio .full-bio article::-webkit-scrollbar-thumb {
  background: blue;
  color: blue;
}

.delegate.bio .full-bio p {
  line-height: 1.75;
}

.delegate.bio .full-bio .close {
  position: absolute;
  right: 1.5rem;
  top: .75rem;
  font-size: 1.750rem;
  font-weight: 800;
  margin: 0;
  line-height: 1;
  cursor: pointer;
  transition: opacity .35s ease-in-out;
  opacity: 1;
}

.delegate.bio .full-bio .close:hover {
  opacity: .75;
}

@media only screen and (max-width: 900px) {
  .delegate.bio {
    flex-wrap: wrap;
    justify-content: space-between;
    height: unset;
  }

  .delegate.bio .portrait {
    width: 30%;
  }

  .delegate.bio .info {
    width: 70%;
    flex-grow: 1;
    align-self: stretch;
    height: unset;
  }

  .delegate.bio .full-bio {
    width: 100%;
    height: 14rem;
    position: static;
    padding: 1rem 1.5rem 1rem 1.5rem;
  }

  .delegate.bio .full-bio article {
    padding-right: 0;
  }

  .delegate.bio .full-bio article>* {
    padding-right: 1rem;
  }

  .delegate.teaser {
    width: 48%;
    margin-bottom: 2%;
    margin-left: 1%;
    margin-right: 1%;
  }

  .delegates-container {
    justify-content: space-between;
  }

  #views-exposed-form-delegates-block-1 {
    flex-direction: column;
    align-items: flex-end;
  }

  #views-exposed-form-delegates-block-1>div {
    margin-bottom: 1rem !important;
  }

  #views-exposed-form-delegates-block-1>div:last-of-type {
    margin-bottom: 0rem !important;
  }
}

@media only screen and (max-width: 600px) {

  .delegate.teaser {
    width: 100%;
    margin-bottom: 4.5%;
    flex-direction: row;
  }

  .delegate.teaser.active {
    margin-bottom: 0;
  }

  .delegate.teaser .portrait {
    height: 100%;
    width: 18rem;
  }

  .delegate.teaser .portrait .clip {
    width: 120px;
    height: 120px;
  }

  .delegate.teaser .info .from {
    display: block;
    margin: 0;
  }

  .delegate.bio .portrait,
  .delegate.bio .info {
    display: none;
  }

  .delegate.bio .full-bio {
    height: 22rem;
    padding: 1rem;
  }

  .delegate.bio .full-bio article {
    margin-top: 2rem;
    height: 90%;
  }

  .delegate.bio .full-bio .close {
    right: 1rem;
  }

}

@media only screen and (max-width: 480px) {
  .delegate.teaser {
    flex-direction: column;
  }

  .delegate.teaser .portrait {
    height: 100%;
    width: 100%;
  }
}