/* =========================================================
   STAFF PAGE — PROFESSIONAL CLEAN VERSION
   File: c/p/staff.css
========================================================= */

.staffs{
  margin:32px 24px;
}

/* Staff item */
.staffs .item{
  display:block;
  position:relative;
  padding:8px 0 8px 148px;
  min-height:168px;
  height:auto;
  overflow:visible;
  cursor:pointer;
}

.staffs .item > img{
  position:absolute;
  left:0;
  top:8px;
  width:124px;
  height:146px;
  object-fit:cover;
  object-position:center 20%;
  border-radius:12px;
  border:1px solid #e6e6e6;
  box-shadow:0 6px 18px rgba(0,0,0,.08);
  background:#f3f3f3;
}

.staffs .item > b{
  display:block;
  margin:0 0 6px;
  font-size:28px;
  line-height:1.25;
  font-family:content, tahoma, sans-serif;
  font-weight:700;
  color:#18a145;
  transition:color .2s ease;
}

.staffs .item > span{
  display:block;
  margin:0 0 10px;
  font-size:14px;
  line-height:1.4;
  color:#444;
  font-weight:600;
}

.staffs .item > .info{
  color:#6f6f6f;
  font-size:14px;
  line-height:1.8;
}

.staffs .item:hover > b{
  color:#0f7f34;
}

/* Separator */
.sep{
  height:34px;
  background:url("../../p/sepbg") center center no-repeat;
  opacity:.75;
}

.sep:last-child{
  display:none;
}

/* =========================================================
   VISITING RESEARCHERS SECTION TITLE
   rel="25"
========================================================= */
.staffs .item[rel="25"]{
  position:relative;
  padding:34px 0 !important;
  min-height:0 !important;
  height:auto !important;
  text-align:center !important;
  cursor:default !important;
}

.staffs .item[rel="25"] > img,
.staffs .item[rel="25"] > span,
.staffs .item[rel="25"] > .info{
  display:none !important;
}

.staffs .item[rel="25"] > b{
  position:relative;
  z-index:2;
  display:inline-block !important;
  margin:0 !important;
  padding:9px 22px;
  background:#fff;
  border:1px solid #ececec;
  border-radius:999px;
  box-shadow:0 6px 18px rgba(0,0,0,.05);
  color:#4a4a4a !important;
  font-size:17px;
  line-height:1.2;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
}

/* Center line behind title */
.staffs .item[rel="25"]::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:50%;
  height:1px;
  background:linear-gradient(to right, transparent 0%, rgba(0,0,0,.14) 12%, rgba(0,0,0,.14) 88%, transparent 100%);
  transform:translateY(-50%);
}

/* Hide separator before and after rel=25 */
.staffs .sep:has(+ .item[rel="25"]),
.staffs .item[rel="25"] + .sep{
  display:none !important;
  height:0 !important;
  margin:0 !important;
  padding:0 !important;
  background:none !important;
}

/* =========================================================
   More viewer
========================================================= */
.more-viewer{
  position:fixed;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  background:#fff;
  width:640px;
  max-width:calc(100vw - 32px);
  height:480px;
  max-height:calc(100vh - 32px);
  z-index:99999;
  border-radius:16px;
  box-shadow:0 18px 50px rgba(0,0,0,.22);
  overflow:hidden;
}

.more-viewer.loading{
  background:url("../../g/loading") center center no-repeat #fff;
}

.more-viewer > div{
  position:relative;
  border:1px solid #e8e8e8;
  padding:18px 22px;
  height:100%;
  overflow:auto;
}

.more-viewer > div > img{
  float:left;
  width:150px;
  height:180px;
  object-fit:cover;
  object-position:center 20%;
  margin:6px 16px 10px 0;
  border:1px solid #ddd;
  border-radius:10px;
  box-shadow:0 6px 18px rgba(0,0,0,.08);
}

.more-viewer > div > h3{
  margin:0 0 8px;
  font-size:26px;
  line-height:1.2;
  font-family:content, tahoma, sans-serif;
  color:#18a145;
}

.more-viewer > div > span{
  display:block;
  margin:4px 0;
  color:#555;
}

.more-viewer > div > div.info{
  text-align:justify;
  overflow:auto;
  height:auto;
  min-height:240px;
  line-height:1.9;
  color:#777;
}

.more-viewer > div > em{
  display:block;
  cursor:pointer;
  width:40px;
  height:40px;
  right:10px;
  top:10px;
  background:url("../../p/close") center center no-repeat;
  position:absolute;
  opacity:.8;
}

.more-viewer > div > em:hover{
  opacity:1;
}

/* =========================================================
   Mobile
========================================================= */
@media (max-width: 768px){

  .cleft,
  .cright{
    float:none !important;
    width:100% !important;
  }

  .staffs{
    margin:14px !important;
  }

  .staffs .item{
    min-height:0 !important;
    padding:0 !important;
    position:relative !important;
  }

  .staffs .item > img{
    position:static !important;
    display:block !important;
    width:160px !important;
    height:190px !important;
    margin:0 auto 12px !important;
    object-fit:cover !important;
    object-position:center 20% !important;
  }

  .staffs .item > b{
    font-size:20px !important;
    line-height:1.3 !important;
    text-align:center;
    margin-bottom:6px;
  }

  .staffs .item > span{
    text-align:center;
    font-size:13px;
    margin-bottom:10px;
  }

  .staffs .item > .info{
    height:auto !important;
    max-height:none !important;
    overflow:visible !important;
    white-space:normal !important;
    font-size:14px;
    line-height:1.75;
    text-align:left;
  }

  .sep{
    height:16px !important;
    background:none !important;
  }

  .staffs .item[rel="25"]{
    padding:18px 0 !important;
  }

  .staffs .item[rel="25"] > b{
    font-size:14px !important;
    letter-spacing:.12em;
    padding:8px 16px;
  }

  .more-viewer{
    width:calc(100vw - 20px);
    height:auto;
    max-height:calc(100vh - 20px);
    border-radius:14px;
  }

  .more-viewer > div{
    padding:16px;
  }

  .more-viewer > div > img{
    float:none;
    display:block;
    width:160px;
    height:190px;
    margin:0 auto 12px;
  }

  .more-viewer > div > h3{
    font-size:22px;
    text-align:center;
  }

  .more-viewer > div > span{
    text-align:center;
  }

  .more-viewer > div > div.info{
    min-height:0;
    line-height:1.8;
  }
}