body.unscrollable {
  height: 100vh;
  overflow: hidden;
}

.main-container {
  position: relative;
}

.site-main {
  padding: 20px 50px;
  display: flex;
  justify-content: center;
}

@media screen and (max-width: 767px) {
  .site-main {
    padding: 20px 20px;
  }
}

.content-area {
  width: min(100%, calc(90vw - 0px * 2));
  .doctors-team {
    color: #000;

    .doctors-team-inner {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 4em;
    }
  }
}

@media screen and (max-width: 1024px) {
  .content-area {
    .doctors-team {
      .doctors-team-inner {
        grid-template-columns: 1fr 1fr;
        gap: 1em;
      }
    }
  }
}

@media screen and (max-width: 767px) {
  .content-area {
    .doctors-team {
      .doctors-team-inner {
        grid-template-columns: 1fr;
      }
    }
  }
}

.doctor-panel {
  position: relative;
  background-color: #fff;
  height: auto;
  padding: 1.5em;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Add this line to hide overflowing content */
  cursor: pointer;

  border-radius: 2em;

  .photo-container {
    position: relative;
    border-radius: 1.25em;
    overflow: hidden;
    height: 450px;
    width: 100%;

    .doctor-photo {
      object-fit: cover;
      object-position: center;
      height: 100%;
      width: 100%;
    }

    .bio {
      height: auto;
      padding: 1em;
      position: absolute;
      background-color: rgba(0, 0, 0, 0.5);
      color: #fff;
      bottom: -30%;
      left: 0;
      width: 100%;
      transition: bottom 0.5s ease-in-out;

      p {
        margin-bottom: 5px;
      }
    }
    @media screen and (max-width: 1024px) {
      .bio {
        bottom: 0;
        transition: none;
      }
    }
  }

  .photo-container:hover {
    .bio {
      bottom: 0;
    }
  }
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  width: 100%;
  min-height: 100vh;
  background: rgba(0, 0, 0, 0.5);

  justify-content: center;
  align-items: center;

  z-index: 1000;

  .overlay-container {
    --overlay-container-padding: 200px;
    width: 60%;
    height: calc(100vh - var(--overlay-container-padding));
    background-color: #fff;

    display: flex;
    flex-direction: column;

    padding: 20px;

    .overlay-header {
      width: 100%;
      display: flex;
      justify-content: end;
      padding-bottom: 5px;
      margin-bottom: 20px;
      border-bottom: 1px solid #888;

      .btn-close {
        height: 30px;
        width: 30px;

        background-color: rgba(0, 0, 0, 0);

        padding: 5px;

        display: flex;
        justify-content: center;
        align-items: center;

        .icon-cross {
          height: 100%;
          display: inline-flex;
          align-items: center;
          font-size: 20px;
        }
      }
    }

    .overlay-main {
      width: 100%;
      display: flex;
      flex-direction: column;
      flex: 1;
      gap: 20px;

      .general-info {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 5fr;
        grid-gap: 20px;

        .doctor-photo-container {
          height: 250px;
          width: 100%;

          .doctor-photo {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
          }
        }

        .bio {
          width: 100%;
          display: flex;
          flex-direction: column;
          justify-content: end;

          .full-name {
            margin-bottom: 9px;
          }

          p {
            margin-top: 10px;
            margin-bottom: 0px;
          }
        }
      }

      .additional-info {
        min-height: calc(100vh - 200px - 40px - 56px - 250px - 20px);
        overflow: scroll;
        flex: 1 0 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        padding: 20px;
        /*
                background-color: #f3f3f3;
                -webkit-box-shadow: inset 0px 0px 20px -7px rgba(0,0,0,0.75);
                -moz-box-shadow: inset 0px 0px 20px -7px rgba(0,0,0,0.75);
                box-shadow: inset 0px 0px 20px -7px rgba(0,0,0,0.75);
                */

        .info-column {
          width: 100%;
          display: flex;
          flex-direction: column;
          gap: 20px;

          .tab.hidden {
            display: none;
          }
        }
      }

      .additional-info.hidden {
        display: none;
      }
    }
  }

  @media screen and (max-width: 1024px) {
    .overlay-container {
      width: 80%;

      .overlay-main {
        .general-info {
          grid-template-columns: 4fr 5fr;
        }

        .additional-info {
          grid-template-columns: 1fr;
          gap: 20px;
        }
      }
    }
  }

  @media screen and (max-width: 500px) {
    .overlay-container .overlay-main .general-info {
      grid-template-columns: 1fr;
    }
  }

  @media screen and (max-width: 767px) {
    .overlay-container {
      width: 100%;
      height: 100vh;

      .overlay-main {
        .additional-info {
          padding: 0;
          padding-right: 20px;
        }
      }
    }
  }

  @media screen and (min-height: 1000px) {
    .overlay-container {
      height: unset;
    }
  }

  @media screen and (max-height: 750px) and (min-width: 767px) {
    .overlay-container {
      width: 100%;
      height: 100vh;

      .overlay-main {
        width: 100%;
        flex-direction: row;
        height: 100%;

        .general-info {
          flex: 1;
          grid-template-columns: 1fr;

          .bio {
            justify-content: start;
          }
        }

        .additional-info {
          flex: 2 0 0;
          padding: 0;
        }
      }
    }
  }
}



.overlay.active {
  display: flex;
}
