.directory_banner {
  padding: 50px 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.directory_banner__inner {
  color: #fff;
}
.directory_banner__inner h1 {
  text-transform: uppercase;
  font-size: 56px;
  line-height: normal;
  letter-spacing: 0.06em;
}
@media screen and (max-width: 639px) {
  .directory_banner__inner h1 {
    font-size: 48px;
  }
}
@media screen and (max-width: 479px) {
  .directory_banner__inner h1 {
    font-size: 36px;
  }
}
.directory_banner__inner h1 span {
  display: block;
}

.directory_filter {
  max-width: 100%;
  width: 480px;
  color: #000;
}
@media screen and (max-width: 1023px) {
  .directory_filter {
    width: 420px;
  }
}
.directory_filter__select, .directory_filter__search {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  background: #fff;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-bottom: 10px;
  padding: 0 10px;
}
.directory_filter__select:last-child, .directory_filter__search:last-child {
  margin-bottom: 0;
}
.directory_filter__select label, .directory_filter__search label {
  font-size: 20px;
}
@media screen and (max-width: 1023px) {
  .directory_filter__select label, .directory_filter__search label {
    font-size: 18px;
  }
}
@media screen and (max-width: 479px) {
  .directory_filter__select label, .directory_filter__search label {
    font-size: 16px;
  }
}
.directory_filter__select select, .directory_filter__select input[type=text], .directory_filter__search select, .directory_filter__search input[type=text] {
  width: 100%;
  height: 48px;
  border: 0;
  outline: none;
  font-size: 20px;
  padding: 0 10px;
}
@media screen and (max-width: 1023px) {
  .directory_filter__select select, .directory_filter__select input[type=text], .directory_filter__search select, .directory_filter__search input[type=text] {
    font-size: 18px;
  }
}
@media screen and (max-width: 479px) {
  .directory_filter__select select, .directory_filter__select input[type=text], .directory_filter__search select, .directory_filter__search input[type=text] {
    font-size: 16px;
    height: 40px;
  }
}
.directory_filter__select select, .directory_filter__search select {
  background: url(../images/select-arrow.svg) no-repeat right center !important;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-size: 20px !important;
}
@media screen and (max-width: 1023px) {
  .directory_filter__select select, .directory_filter__search select {
    font-size: 18px;
  }
}
@media screen and (max-width: 479px) {
  .directory_filter__select select, .directory_filter__search select {
    font-size: 16px;
    background-size: 15px;
  }
}
.directory_filter__select input[type=text], .directory_filter__search input[type=text] {
  background: url(../images/search.svg) no-repeat right center;
}
.directory_filter .clear-filter-btn button {
  border: 0;
  background: transparent;
  padding: 0 25px 0 0;
  color: #fff;
  position: relative;
  cursor: pointer;
}
.directory_filter .clear-filter-btn button::before, .directory_filter .clear-filter-btn button::after {
  content: "";
  width: 18px;
  height: 2px;
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  background: #fff;
}
.directory_filter .clear-filter-btn button::before {
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
}
.directory_filter .clear-filter-btn button::after {
  -webkit-transform: rotate(-45deg);
          transform: rotate(-45deg);
}

.directory_content {
  padding: 80px 0;
}
@media screen and (max-width: 479px) {
  .directory_content {
    padding: 60px 0;
  }
}
.directory_content__inner {
  min-height: 500px;
}
.directory_content__inner table {
  width: 100%;
  border: 0;
  font-size: inherit;
  margin: 0;
}
@media screen and (max-width: 1023px) {
  .directory_content__inner table thead {
    display: none;
  }
}
.directory_content__inner table th {
  background: #4c4c4c;
  color: #fff;
  border-color: #fff;
  border-width: 2px;
  text-align: left;
  font-size: 20px;
  padding: 0.5em 1em;
}
.directory_content__inner table th:first-child {
  background: #e50e2e;
  border-left: 0;
}
.directory_content__inner table tbody tr td {
  border: 0;
  padding: 0.5em 1em;
}
@media screen and (max-width: 1023px) {
  .directory_content__inner table tbody tr td {
    display: block;
    padding: 5px 16px;
  }
}
@media screen and (max-width: 1023px) {
  .directory_content__inner table tbody tr td:first-child {
    padding-top: 20px;
  }
}
@media screen and (max-width: 1023px) {
  .directory_content__inner table tbody tr td:last-child {
    padding-bottom: 20px;
  }
}
@media screen and (max-width: 1023px) {
  .directory_content__inner table tbody tr td::before {
    content: attr(data-label);
    display: block;
    width: 100%;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    font-size: 15px;
  }
}
.directory_content__inner table tbody tr td .js-open-popup {
  text-decoration: none;
  color: #000;
  font-weight: 700;
}
.directory_content__inner table tbody tr td .js-open-popup:hover {
  color: #E50E2E;
}
@media screen and (max-width: 1023px) {
  .directory_content__inner table tbody tr td .js-open-popup {
    color: #E50E2E;
  }
}
.directory_content__inner table tbody tr:nth-child(odd) td {
  background: #ebebeb;
}

.custom-popup {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  opacity: 0;
  pointer-events: none;
  -webkit-transition: opacity 110.145ms 0ms;
  transition: opacity 110.145ms 0ms;
}
.custom-popup__holder {
  max-width: 1200px;
  width: 90%;
  max-height: 80vh;
  background: #fff;
  padding: 40px;
  position: relative;
  opacity: 0;
  -webkit-transform: translateY(-100px);
          transform: translateY(-100px);
  -webkit-transition: opacity 400ms, -webkit-transform 400ms;
  transition: opacity 400ms, -webkit-transform 400ms;
  transition: opacity 400ms, transform 400ms;
  transition: opacity 400ms, transform 400ms, -webkit-transform 400ms;
  -webkit-transition-delay: 300ms;
          transition-delay: 300ms;
  overflow: auto;
  /* Track */
  /* Handle */
}
.custom-popup__holder::-webkit-scrollbar {
  width: 7px;
}
.custom-popup__holder::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.custom-popup__holder::-webkit-scrollbar-thumb {
  background: #888;
}
.custom-popup__title {
  font-size: 34px;
  line-height: 1.2em;
  font-weight: 700;
}
.custom-popup__inner {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  padding-bottom: 25px;
}
.custom-popup__left {
  width: calc(100% - 214px);
  padding: 0 35px 0 0;
}
@media screen and (max-width: 639px) {
  .custom-popup__left {
    width: 100%;
    -webkit-box-ordinal-group: 3;
        -ms-flex-order: 2;
            order: 2;
    padding: 30px 0 0 0;
  }
}
.custom-popup__left .member_info {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.custom-popup__left .member_info__left {
  width: 40%;
  padding-right: 30px;
}
@media screen and (max-width: 1023px) {
  .custom-popup__left .member_info__left {
    width: 100%;
    padding-right: 0;
  }
}
.custom-popup__left .member_info__right {
  width: 60%;
  border-left: 1px solid;
  padding-left: 50px;
}
@media screen and (max-width: 1023px) {
  .custom-popup__left .member_info__right {
    width: 100%;
    border-top: 1px solid;
    border-left: 0;
    padding: 20px 0 0 0;
  }
}
.custom-popup__right {
  width: 214px;
}
@media screen and (max-width: 639px) {
  .custom-popup__right {
    width: 100%;
  }
}
.custom-popup__right .member_thumb img {
  width: 100%;
}
.custom-popup__close {
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  cursor: pointer;
  -webkit-transition: 0.3s -webkit-transform;
  transition: 0.3s -webkit-transform;
  transition: 0.3s transform;
  transition: 0.3s transform, 0.3s -webkit-transform;
  background: #E50E2E;
}
.custom-popup__close:before, .custom-popup__close:after {
  content: "";
  position: absolute;
  left: 15px;
  top: 4px;
  display: block;
  width: 2px;
  height: 20px;
  background: #fff;
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
}
.custom-popup__close:after {
  left: 15px;
  top: 4px;
  -webkit-transform: rotate(-45deg);
          transform: rotate(-45deg);
}
.custom-popup.is-active {
  opacity: 1;
  pointer-events: auto;
}
.custom-popup.is-active .custom-popup__holder {
  opacity: 1;
  -webkit-transform: translateY(0);
          transform: translateY(0);
}

.directory__inner {
  position: relative;
}
.directory__inner .text-center, .directory__inner .not-found {
  position: absolute;
  width: 36%;
  margin: 0 auto;
  right: 0;
  left: 0;
  padding: 25px;
  text-align: center;
}

.pagination-wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin: 50px 0 0px 0;
}

.wp-pagenavi {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 8px;
}

.wp-pagenavi .page-numbers {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: #333;
  text-decoration: none;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.wp-pagenavi .page-numbers:hover {
  background-color: #C90C28;
  color: #fff;
  border-color: #C90C28;
}

.wp-pagenavi .current {
  background-color: #C90C28;
  color: #fff;
  border-color: #C90C28;
  font-weight: bold;
}

.wp-pagenavi .next {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: #C90C28;
}

.wp-pagenavi .next:hover {
  background-color: #C90C28;
  color: #fff;
}

.loading-buffering-img {
  text-align: center;
  padding: 15px 0;
}