/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */
.modal {
  z-index: 2100;
}

.profile-cards {
  list-style: none;
  margin: 0 0 15px;
  padding: 0;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: row;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

.profile-cards li {
  position: relative;
  margin-bottom: 30px;
  width: 100%;
  margin: 1%;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.profile-card-list {
  list-style: none;
  margin: 0 0 15px;
  padding: 0;
}

.profile-card-list li {
  position: relative;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  width: 100%;
  border-bottom: 1px solid #f2f2f2;
}

.profile-card-list li .profile-container {
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-align-content: flex-start;
  -ms-flex-line-pack: start;
  align-content: flex-start;
}

.profile-card-list li img.profile-image-list {
  max-width: 200px;
  width: 100%;
  height: 100%;
  margin: 0 2rem 1rem 0;
  border: 2px solid #606060;
}

.profile-card-list li::after {
  clear: both;
  margin: 0;
  content: " ";
}

.profile-card-list li:last-child {
  border-bottom: none;
}

.profile-card-list li h3 {
  margin-top: 0;
}

.profile-card-list li p:last-of-type {
  margin-bottom: 0;
}
.profile-card-list-title {
  font-size: 1.2rem;
  margin-left: 0.75rem;
  font-weight: 200;
}

.profile-card-list .bcgov-edit-link {
  top: -24px;
  left: inherit;
  right: 0px;
  font-size: 0.9rem;
}

#profile-modal.modal3 button.close {
  top: 15px;
  right: 15px;
  position: absolute;
}

.background-image {
  background-position: center;
  background-attachment: scroll;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 125px;
}

/*** Profile Modal **/
.profile-modal-image {
  width: 100px;
  margin-right: 15px;
  margin-bottom: 15px;
}

.profile-container .profile-image {
  background-position: center;
  background-attachment: scroll;
  background-repeat: no-repeat;
  background-size: cover;
  height: 280px;
}

.profile-container .profile-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  color: #fff;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=00)";
  filter: alpha(opacity=00);
  -moz-opacity: 0;
  -khtml-opacity: 0;
  opacity: 0;
  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
  -ms-transition: all 0.5s ease;
  -o-transition: all 0.5s ease;
  transition: all 0.5s ease;
  border: 1px solid #eee;
}

.profile-container .profile-overlay h3 {
  color: #fff;
}

.profile-container .profile-overlay .profile-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  font-weight: 200;
  font-size: 0.8em;
}

.profile-container .profile-gradient {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

.profile-container a:hover .profile-overlay,
.touchevents .profile-overlay {
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  filter: alpha(opacity=100);
  -moz-opacity: 1;
  -khtml-opacity: 1;
  opacity: 1;
  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
  -ms-transition: all 0.5s ease;
  -o-transition: all 0.5s ease;
  transition: all 0.5s ease;
  background-color: rgba(0, 45, 114, 0.4);
}

.profile-container a:hover .profile-gradient {
  background: linear-gradient(
    to top,
    rgba(0, 45, 114, 1) 2%,
    rgba(0, 45, 114, 0)
  );
}

#profile-modal {
  margin-top: 30px;
}

#profile-modal .modal-title {
  margin-top: 0;
}

#profile-modal .modal-title div {
  font-style: italic;
  font-size: 0.7em;
}

#profile-modal .modal-body {
  padding: 1.2rem;
}

.bcgov-edit-link {
  position: absolute;
  margin-right: 12px;
  background-color: #ddd;
  padding: 2px 8px 0px;
  border-radius: 10px;
  font-size: 12px;
  left: -10px;
  top: -1px;
  color: #666 !important;
  -webkit-box-shadow: 2px 3px 17px 1px rgba(0, 0, 0, 0.24);
  -moz-box-shadow: 2px 3px 17px 1px rgba(0, 0, 0, 0.24);
  box-shadow: 2px 3px 17px 1px rgba(0, 0, 0, 0.24);
}
@media (min-width: 480px) {
  .profile-cards li {
    width: 48%;
  }
}
@media (min-width: 767px) {
  .profile-cards li {
    width: 28%;
  }
  .profile-card-list li .profile-container {
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
  }
}

@media (min-width: 992px) {
}

@media (min-width: 1200px) {
}
