#BMDiv {
  margin: 0 auto;
  width: 100%;
  max-width: 1600px;
}

.w-bm-label {
  column-gap: 10px;
  align-items: center;
  flex-direction: row;
  display: flex;
}

.w-bm-label h4 {
  margin-bottom: 0;
  font-size: 20px;
}

.w-bm-grid-4 {
  column-gap: 75px;
  row-gap: 40px;
  grid-template-columns: repeat(3, 1fr);
  display: grid;
}

.w-bm-directors {
  margin-top: 30px;
  margin-bottom: 90px;
}

.w-bm-director {
  padding: 0 25px 25px;
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  border-bottom: 5px solid grey;
  transition: all .3s ease-out;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  display: flex;
  cursor: pointer;
}

.w-bm-director:hover {
  border-bottom: 10px solid var(--green-color);
  transition: all .3s ease-in-out;
}

.w-bm-director h5 {
  margin: 0 0 20px;
  font-size: 28px;
  font-weight: 800;
}

.w-bm-director h6 {
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.5;
}

.w-bm-director img {
  width: 100%;
  padding: 20px;
  aspect-ratio: 1/1;
  object-fit: cover;
  object-position: top;
}

.w-bm-modal-bg {
  padding: 40px;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99888888888888;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
}

.w-bm-modal-bg.active {
  display: flex;
}

.w-bm-modal-box {
  padding: 40px;
  width: 60vw;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  row-gap: 20px;
  background-color: white;
  position: relative;
  flex-direction: column;
  display: flex;
}

.w-bm-modal-director-type {
  font-size: 22px;
  font-weight: 600;
}

.w-bm-modal-top {
  justify-content: space-between;
  flex-direction: row;
  display: flex;
}

.w-bm-modal-top i {
  font-size: 28px;
  cursor: pointer;
}

.w-bm-modal-bottom {
  padding: 40px 25px;
  background-color: #e6eee9;
  overflow-y: auto;
}

.w-bm-modal-details {
  column-gap: 40px;
  grid-template-columns: 1fr 1.75fr;
  display: grid;
}

.w-bm-modal-details img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: top;
}

.w-bm-content {
  height: 420px;
  flex-direction: column;
  display: flex;
  position: relative;
  overflow-y: auto;
}

.w-bm-modal-name {
  font-size: 22px;
  font-weight: 600;
}

.w-bm-modal-pos {
  font-size: 18px;
}

.w-bm-modal-bio {
  margin: 20px 0 0;
  padding-right: 20px;
  height: auto;
  max-height: 300px;
}

/* ===== SDC 列表樣式 ===== */
.w-bm-sdc-list {
  padding: 0;
  margin: 30px 0 0;
  row-gap: 30px;
  flex-direction: column;
  display: flex;
  list-style: none;
}

.w-bm-sdc-item {
  padding-bottom: 10px;
  border-bottom: 1px solid lightgrey;
  cursor: pointer;
}

.w-bm-sdc-item.active .w-bm-sdc-name {
  font-weight: 600;
  color: var(--green-color);
}

.w-bm-sdc-item.active {
  border-bottom: 1px solid var(--green-color);
}

.w-bm-sdc-header {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.w-bm-sdc-header>div {
  row-gap: 15px;
  flex-direction: column;
  display: flex;
}

.w-bm-sdc-header img {
  width: 100%;
  max-width: 16px;
  transform: rotate(45deg);
  transition: all .3s ease-in-out;
}

.w-bm-sdc-name {
  font-weight: 500;
}

.w-bm-sdc-bio {
  margin-top: 20px;
}


@media screen and (max-width: 1400px) {
  .w-bm-modal-box {
    width: 80vw;
  }
}

@media screen and (max-width: 1199px) {
  .w-bm-modal-box {
    width: 90vw;
  }
}

@media screen and (max-width: 991px) {
  .w-bm-modal-box {
    height: 85vh;
  }

  .w-bm-modal-details {
    row-gap: 30px;
    align-items: center;
    flex-direction: column;
    display: flex;
  }

  .w-bm-modal-details img {
    max-width: 280px;
    aspect-ratio: 1/1;
    min-height: 320px;
    height: 320px;
  }

  .w-bm-content {
    height: auto;
  }

  .w-bm-modal-bio {
    margin: 10px 0 0;
    overflow: hidden;
  }
  
  .w-bm-grid-4 {
    row-gap: 30px;
    grid-template-columns: repeat(2, 1fr);
  }

  .w-bm-sdc-pos,
  .w-bm-director h6 {
    font-size: 14px;
  }

  .w-bm-label h4 {
    font-size: 18px;
  }

  .w-bm-modal-director-type {
    font-size: 18px;
  }
}

@media screen and (max-width: 640px) {
  .w-bm-grid-4 {
    row-gap: 30px;
    grid-template-columns: repeat(1, 1fr);
  }

  .w-bm-label {
    margin-bottom: 45px;
    row-gap: 10px;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .w-bm-sdc-bio {
    font-size: 16px;
  }
  
  .w-bm-modal-name {
    font-size: 18px;
  }

  .w-bm-modal-pos {
    font-size: 14px;
  }

  .w-bm-modal-box,
  .w-bm-modal-bg {
    padding: 25px;
  }

  .w-bm-modal-box {
    max-width: 95vw;
  }

  .w-bm-label h4 {
    padding-right: 60px;
  }

  .w-bm-sdc-pos {
    padding-right: 30px;
  }
}