/* Modal Query Styles */

.modal-query-content {
    display: none;
}

.modal-query {
    position: fixed;
    top: 1rem;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

.modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}


.modal-container {
    position: relative;
    width: 90%;
    max-width: 880px;
    margin: 50px auto;
    background-color: #fff;
    padding: 30px 45px;
    border-radius: 20px;
    max-height: 420px;
    height: 100%;
    overflow-y: auto;
}

.modal-title {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.modal-content-wrapper {
    display: flex;
    gap: 5px;
    padding-top: 1rem;
}

.modal-left-column {
    flex: 0 0 33.333333%;
    max-width: 33.333%;
    width: 100%;
}

.modal-left-column .modal-post-title {
    margin: 0;
    padding: 0 0 .35rem 0;
}

.modal-left-column .modal-category > a {
    pointer-events: none;
    text-decoration: none;
    color: inherit;
    cursor: default;
}

.modal-left-column .wp-block-post-featured-image {
    margin: 0 0 1.5rem 0;
}

.modal-left-column figure {
    display: block;
    height: 280px;
    margin-right: 4rem;
    margin-bottom: 1rem;
    max-width: 240px;
    overflow: hidden;
    width: 100%;
}

.modal-left-column img {
    display: block;
    max-height: 280px;
    max-width: 100%;
    margin-bottom: 1rem;
    border-radius: 0!important;
}

.modal-right-column {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    width: 100%;

}

.modal-right-column .modal-content-inner {
    padding-right: 3rem;
}

.modal-right-column .modal-content-inner p {
    margin-top: 0;
    font-size: .95rem;
}

.modal-post-title {
    margin-top: 10px;
    font-size: 1.5rem;
}


.modal-query-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-weight: 300;
    height: 2rem;
    line-height: 0;
    padding: 5px;
    background: none;
    border: none;
    cursor: pointer;
    background-color: #999;
    border-radius: 50%;
    border: 0;
    color: var(--color-basic-black);
    font-size: 27px;
    text-align: center;
    width: 2rem;
}

@media (max-width: 768px) {
    .modal-content-wrapper {
        flex-direction: column;
    }

    .modal-left-column,
    .modal-right-column {
        max-width: 100%;
    }
}

/* General Modal */
.fade {
  opacity: 0;
  transition: opacity 0.15s linear;
}

.fade.show {
  opacity: 1;
}

.modal-backdrop.show {
  opacity: .5;
}

.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1050;
  display: none;
  overflow: hidden;
  outline: 0;
  width: 100%;
}

.modal-open .modal {
  overflow-x: hidden;
  overflow-y: auto;
}

  .modal-dialog {
    position: relative;
    width: auto;
    max-width: 936px;
    margin: 15px auto;
    pointer-events: none;
  }

  .modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
  }

  .modal.show .modal-dialog {
    transform: none;
  }

  .modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.3rem;
    outline: 0;
  }

  .modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 0;
    border-bottom: none;
    border-top-left-radius: 0.3rem;
    border-top-right-radius: 0.3rem;
  }

  .modal-header button {
    font-weight: 300;
    height: 2rem;
    line-height: 0;
    padding: 5px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    border: 0;
    color: #999;
    font-size: 27px;
    text-align: center;
    width: 2rem;
    margin: 1rem 1rem 0 0;
  }

  .modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1rem 4.5rem 4.5rem;

  }
  
@media (max-width: 820px) {
    .modal-body {
      padding: 1rem 2rem;
    }
}

  .modal-body h2 {
    margin: 0;
    padding-bottom: 1rem;
  }

  .modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem;
    border-top: 1px solid #e9ecef;
  }

  .modal-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    background-color: var(--color-basic-black);
  }

  .modal-backdrop.fade {
    opacity: 0;
  }

  .modal-backdrop.show {
    opacity: 0.5;
  }

  @media (min-width: 576px) {
    .modal-dialog {
      max-width: 100%;
      margin: 1.75rem auto;
    }
  }

  .modal-cta {
    font-weight: 600;
    font-size: 18px;
    color: var(--color-basic-black);
    display: inline-flex;
    text-decoration: none;
  }

  .modal-cta:after {
    content: "";
    background: url('../assets/images/arrow-right.svg') no-repeat 100% 50%;
    width: 20px;
    display: inline-block;
  }
