.resource-wrapper {
  /* display: grid;
  grid-template-columns: 30ch 1fr; */
  max-width: var(--wp--style--global--wide-size) !important;
  width: 100%;
  margin: 0 auto;
}
.resource-filters {
  display: flex;
  /* flex-direction: column; */
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--wp--preset--font-family--poppins);
  /* background-color: rgba(0, 0, 0, 0.08); */
  margin-bottom: 3rem;
  justify-content: center;
}
.resource-filters .filter-group h5 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.resource-filters .filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.resource-filters .filter-group label {
  color: var(--wp--preset--color--gray-400);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(0.25em + 2px) calc(1.333em + 2px);
}
.resource-filters .filter-group label input {
  visibility: hidden;
  margin: 0;
}
/* checkbox style */
/* .resource-filters .filter-group label input,
.resource-filters .filter-group label::after {
  border: 1px solid var(--wp--preset--color--base);
  border-radius: 4px;
  content: "";
  width: 15px;
  height: 15px;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
} */
/*  button style */
.resource-filters .filter-group label input,
.resource-filters .filter-group label::after {
  border: 1px solid var(--wp--preset--color--base);
  border-style: solid;
  border-radius: 4px;
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  cursor: pointer;
  /* left: 0;
  top: 50%;
  transform: translateY(-50%); */
}
.resource-filters .filter-group label.checked {
  background-color: var(--wp--preset--color--base);
  border-radius: 4px;
  color: #fff;
}
/* .resource-filters .filter-group label.checked::after {
  background-image: url("data:image/svg+xml,%3Csvg stroke='%234B1645' fill='%234B1645' stroke-width='0' version='1.2' baseProfile='tiny' viewBox='0 0 24 24' height='1em' width='1em' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.972 6.251c-.967-.538-2.185-.188-2.72.777l-3.713 6.682-2.125-2.125c-.781-.781-2.047-.781-2.828 0-.781.781-.781 2.047 0 2.828l4 4c.378.379.888.587 1.414.587l.277-.02c.621-.087 1.166-.46 1.471-1.009l5-9c.537-.966.189-2.183-.776-2.72z'%3E%3C/path%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
} */
.member-resources {
  display: grid;
  gap: 2rem;
  padding: 1.5rem;
  /* background-color: #fff; */
}
.member-resources .resource-featured {
  order: -999;
}
@media screen and (min-width: 767px) {
  .member-resources {
    /* grid-template-columns: repeat(2, 1fr); */
    grid-template-columns: repeat(auto-fit, minmax(23rem, 1fr));
    column-gap: 2rem;
  }
}
.resource-card *:not(.resource-card .wp-block-button) {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.resource-card {
  padding: 15px;
  display: grid;
  gap: 1rem;
  position: relative;
  background-color: #fff;
  border-radius: 0.25rem;
  grid-template-columns: 8rem 1fr;
}
.resource-card .wp-element-button::before,
a.pdf-file::before,
button.video-embed::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
  z-index: 10;
}
.resource-card .thumbnail {
  overflow: hidden;
  position: relative;
}
.resource-card .thumbnail .play-icon {
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  background-color: #fff;
  border-radius: 50%;
  height: 2rem;
  width: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.resource-card .thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.resource-card .thumbnail.has-video img {
  width: auto;
  height: 100%;
  /* aspect-ratio: 3 / 4; */
  object-fit: cover;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.resource-card .resource-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}
.resource-card .resource-info .resource-category,
.resource-card .resource-info .resource-type {
  color: var(--wp--preset--color--gray-300);
}
.resource-card .wp-block-button {
  margin-top: auto;
}
.resource-wrapper .wp-element-button {
  border: 2px solid var(--wp--preset--color--base);
  max-width: max-content;
  padding: calc(0.25em + 2px) calc(1.333em + 2px);
}
/* .resource-card iframe {} */
.resource-card:hover {
  background-color: #fff;
  box-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.25);
  transition: all 0.2s;
}
.resource-card .media-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}
.resource-card .media-modal-content {
  background: #fff;
  padding: 1em;
  max-width: 80vh;
  max-height: 80vh;
  position: relative;
  width: 100%;
}
.resource-card .media-modal .close-modal {
  position: absolute;
  top: -24px;
  right: -16px;
  font-size: 30px;
  cursor: pointer;
  color: #fff;
}
.embed-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
}
.embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
a.pdf-file,
button.video-embed {
  position: relative;
  display: flex;
  gap: 0.25rem;
  background-color: transparent;
  border: none;
  color: var(--wp--preset--color--base);
  font-weight: 600;
  align-items: center;
  text-decoration: none;
  margin-top: auto !important;
  cursor: pointer;
  padding: 0;
}
a.pdf-file:after,
button.video-embed:after {
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg stroke='%234B1645' fill='%234B1645' stroke-width='0' viewBox='0 0 24 24' height='1em' width='1em' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' d='M0 0h24v24H0V0z'%3E%3C/path%3E%3Cpath d='M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z'%3E%3C/path%3E%3C/svg%3E");
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center center;
  height: 1rem;
  width: 1rem;
  min-width: 1rem;
  background-size: contain;
  transform: translateX(0);
  transition: all 300ms;
}
a.pdf-file:hover::after,
button.video-embed:hover::after {
  transform: translateX(0.25rem);
  transition: all 300ms;
}
.mobile-toggle-filters,
.mobile-close-filters,
.mobile-show-results {
  display: none;
}
.mobile-toggle-filters button {
  background-color: transparent;
  display: flex;
  align-items: center;
  padding: 0.25rem 1rem;
  cursor: pointer;
  border: none;
}

.mobile-close-filters button,
.filter-actions button {
  background-color: transparent;
  border: 2px solid;
  display: flex;
  align-items: center;
  padding: calc(0.25em + 2px) calc(1.333em + 2px);
  cursor: pointer;
  border-radius: 0.25rem;
  border: 2px solid var(--wp--preset--color--base);
  color: var(--wp--preset--color--base);
  font-weight: 500;
  font-size: 14px;
}
.mobile-close-filters button {
  padding: calc(0.25em + 2px);
  border-radius: 50px;
}
.coordinator-intro {
  padding: 1.5rem;
  border-radius: 0.25rem;
  height: fit-content;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  max-width: max-content;
  text-align: center;
  margin-top: -6rem;
  position: relative;
}

.coordinator-intro .group-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: center;
}
.coordinator-intro .group-name {
  margin: 0 !important;
}
.resource-intro {
  background-color: #ececec;
  padding: var(--wp--preset--spacing--40);
}
.resource-intro * {
  margin: 0 !important;
}
.resource-intro * + * {
  margin-top: 0.5rem !important;
}
.group-thumb {
  border-radius: 50%;
  width: 10rem;
  height: 10rem;
  overflow: hidden;
  border: 5px solid #fff;
}
.group-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media screen and (max-width: 767px) {
  /*.mobile-toggle-filters {
    display: flex;
    justify-content: center;
    border-bottom: 2px solid var(--wp--preset--color--gray-300);
    padding-bottom: var(--wp--preset--spacing--20);
    margin-bottom: var(--wp--preset--spacing--30);
  }
  .resource-wrapper {
    grid-template-columns: unset;
  }
 .resource-filters {
    position: fixed;
    overflow: auto;
    padding: 6rem 2rem;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 999;
    transition: left 0.3s ease-in-out;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  } 
  .mobile-close-filters,
  .mobile-show-results {
    display: flex !important;
    justify-content: end;
  }
  .resource-filters.toggle-display {
    left: 0;
  }*/
}
#magic-login-shortcode .message {
  border: none !important;
}

.portal-login-registration {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(26rem, 1fr));
  gap: 2rem;
}
@media screen and (max-width: 767px) {
  .portal-login-registration {
    grid-template-columns: 1fr;
  }
}
.portal-login-registration .login-form {
  height: 100%;
  padding: 4rem 0;
  border-radius: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  border: 1px solid rgba(223, 223, 223, 0.28);
}
.portal-login-registration .registration-form {
  background: rgba(223, 223, 223, 0.28);
  border-radius: 25px;
  padding: 0.5rem 1.5rem;
}
.portal-login-registration .login-form #user_login {
  border-radius: 10px;
  background-color: transparent;
  border: 2px solid var(--wp--preset--color--base);
}

.portal-login-registration .nf-form-cont {
  border: none;
  padding: 0;
}

.magic-login-submit {
  background-color: var(--wp--preset--color--base);
  border: none;
  color: #fff;
  padding: calc(0.25em + 2px) calc(1.333em + 2px);
  border-radius: 0.5rem;
  font-weight: 600;
}
