/* HJJ v7.2.5: consistent team profile modal dimensions for EN and JP. */
@media (min-width: 801px) {
  .hjj708-dialog,
  .hjj-profile-panel {
    box-sizing: border-box !important;
    width: min(900px, calc(100vw - 48px)) !important;
    height: min(544px, calc(100dvh - 48px)) !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 48px) !important;
    display: grid !important;
    grid-template-columns: 35% minmax(0, 65%) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    overflow: hidden !important;
    align-items: stretch !important;
  }
  .hjj708-dialog > img,
  .hjj-profile-photo-box {
    box-sizing: border-box !important;
    display: block !important;
    min-height: 0 !important;
    height: 100% !important;
    width: 100% !important;
    max-height: none !important;
    align-self: stretch !important;
    overflow: hidden !important;
  }
  .hjj708-dialog > img,
  .hjj-profile-photo-box > img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    object-fit: cover !important;
    object-position: center 40% !important;
  }
  .hjj708-details,
  .hjj-profile-content {
    box-sizing: border-box !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    padding: 40px 42px 36px !important;
    scrollbar-gutter: stable;
  }
  .hjj708-details h2,
  #hjj-profile-title {
    font-size: 30px !important;
    line-height: 1.25 !important;
    overflow-wrap: anywhere;
  }
  .hjj708-details #hjj708-bio,
  .hjj-profile-biography {
    font-size: 14px !important;
    line-height: 1.85 !important;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 800px) {
  .hjj708-dialog,
  .hjj-profile-panel {
    width: min(100%, 540px) !important;
    height: auto !important;
    max-height: calc(100dvh - 28px) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }
  .hjj708-dialog > img,
  .hjj-profile-photo-box {
    height: 210px !important;
    min-height: 0 !important;
    flex: 0 0 210px !important;
  }
  .hjj-profile-photo-box > img {height:100% !important;width:100% !important;object-fit:cover !important;}
  .hjj708-details,
  .hjj-profile-content {
    min-height: 0 !important;
    overflow-y: auto !important;
    padding: 24px !important;
  }
}
