/* 
 * Always set the map height explicitly to define the size of the div element
 * that contains the map. 
 */
.layout-content.page-main,
#map {
  height: 90vh;
}

.call-to-action,
.hero-image__wrapper {
  display: none !important;
}

#main-content {
  height: 80vh;
}

:root {
  --pink: #ce3890;
  --orange: #e67509;
  --purple: #662d91;
  --green: #008943;
  --green-mid: #007236;
  --green-high: #005f27;
  --card-full-height: 27vh;
  --card-photo-width: calc((var(--card-full-height)/3) * 2);
  --card-width: var(--card-full-height);
}

.card a,
.card a:visited {
  text-decoration: none;
  color: #ffffff;
}

.card a:hover {
  color: #f6871f;
}

.card .full a {
  font-weight: bold;
  pointer-events: all;
}

.gm-style-iw-d,
.gm-style-iw-c {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  pointer-events: none;
  width: var(--card-width);
  max-height: var(--card-full-height);
  height: auto;
  box-sizing: initial !important;
}

.gm-style ::-webkit-scrollbar,
.gm-style .gm-style-iw-d::-webkit-scrollbar,
.gm-style-iw::-webkit-scrollbar {
  display: none;
}

.gm-style-iw-chr {
  height: 1em;
  pointer-events: all;
  width: var(--card-width);
  z-index: 99;
}

.card {
  display: flex;
  flex-direction: column;
  z-index: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  height: var(--card-full-height);
}

.card .photo {
  /* border: 2px #ff0 solid; */
  pointer-events: all;
  background-color: var(--green-high);
  position: absolute;
  display: block;
  z-index: 10;
  width: var(--card-photo-width);
  height: var(--card-full-height);
  object-fit: cover;
  object-position: center center;
  border-radius: 0 1em 0 1em;
  padding: 0;
  margin: 0;
  color: #ffffff;

  &.lc {
    position: inline;
    display: block;
    border-radius: 0 1em 1em 0;
    bottom: 0;
    right: 0;
  	z-index: -5;
    width: calc(var(--card-photo-width) / 2);
    height: calc(var(--card-full-height) * 0.6);
    object-fit: cover;
    object-position: center center;
    padding: 0;
    margin: 0;
    color: #ffffff;
  }
}

.card .header {
  /* border: 2px #f00 solid; */
  pointer-events: all;
  position: relative;
  display: block;
  margin: calc(var(--card-full-height) * 0.1) 0
    calc(var(--card-full-height) * 0.1) calc(var(--card-photo-width) * 0.7);
  width: fit-content;
  height: calc(var(--card-full-height) * 0.2);
  z-index: 99;
  display: flex;
  flex-direction: column;
  text-align: left;
  font-size: 1.7em;
}

.card .content {
  /* border: 2px #0f0 solid; */
  position: relative;
  display: block;
  z-index: 50;
  margin: 0 0 0 var(--card-photo-width);
  padding: 0 0 0 0;
  color: #fff;
  height: calc(var(--card-full-height) * 0.1);
  border-radius: 0 1em 0 0;
  background-color: var(--green-mid);

  &.brief {
    overflow: hidden !important;
  }
  &.full {
    height: var(--card-full-height);
  }
}

.card .statement {
  /* border: 2px var(--orange) solid; */
  display: inline-block;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 1.4em !important;
  line-height: 140%;
  text-align: center;
  margin: 1em 0.25em !important;
}

.card .footer {
  /* border: 2px #00f solid; */
  position: relative;
  display: flex;
  flex-direction: column;
  z-index: 80;
  margin: 0 0 0 var(--card-photo-width);
  padding: 0;
  color: #ffffff;
  font-size: 1em;
  background-color: var(--green-mid);
  background-image: linear-gradient(
    11deg,
    var(--purple),
    var(--green-mid) calc(var(--card-full-height) / 3)
  );
  border-radius: 0 0 1em 0;
  height: calc(var(--card-full-height) * 0.5);
}

.card .parallelogram {
  /* clip-path: polygon(0 14%, 100% 0, 100% 86%, 0% 100%); */
  white-space: nowrap;
  overflow: visible;
  transform: skewX(-4deg) rotate(-4deg);
  text-align: left;
  text-transform: uppercase;
  font-family: 'Anton', sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;

  &.name {
    background: var(--green);
    color: #fff;
    padding: 0.2em;
    margin: 0 auto;
    line-height: 120%;
    font-family: 'Anton', sans-serif;
    width: auto;

    &.lc {
      margin: auto auto 0 0;
      background: var(--purple);
      line-height: 110%;
    }

    &.lc:before {
      font-size: smaller;
      content: '& ';
    }
  }

  &.electorate {
    background: #fff;
    color: var(--green);
    padding: 0.1em;
    margin: 0 auto;
    line-height: 120%;
    font-family: 'Anton', sans-serif;
    width: auto;

    &:before {
      font-size: smaller;
      content: 'for ';
    }

    &.lc {
      margin: 0 auto 0 0;
      color: var(--purple);
      line-height: 100%;
    }
  }

  &.votefor {
    background: var(--orange);
    color: #ffffff;
    line-height: 80%;
    padding: 0.2em;
    margin: 0.2em auto 0 auto;
    font-size: smaller;

    &:visited {
      color: #ffffff;
      background: var(--orange);
      text-decoration: none;
    }

    &:hover {
      color: #ffffff;
      background-color: #662d91;
    }
  }
}

.controlUI {
  display: flex;
  flex-direction: row;
}

@media only screen and (max-width: 600px) {
  :root {
    --card-full-height: 75vw;
  }
}
