/* ============================================================
   WPYog Team — Frontend Styles  v1.0.14
   WPYog Team Plugin Styles
   ============================================================ */

/* ---- Reset ---- */
.pt-team-wrap,
.pt-team-wrap *,
.pt-team-wrap *::before,
.pt-team-wrap *::after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.pt-error {
  color: #cc0000;
  font-style: italic;
  padding: 8px 0;
}

/* ============================================================
   Grid
   ============================================================ */
.pt-grid {
  list-style: none;
  padding: 30px 0;
  margin: 0 -15px;
  display: block;
}
.pt-grid::after {
  content: "";
  clear: both;
  display: block;
}

/* Card grid */
.pt-card {
  float: left;
  width: 33.333%;
  padding: 0 15px;
  margin: 0 0 30px;
  cursor: pointer;
}

.pt-cols-2 .pt-card { width: 50%; }
.pt-cols-3 .pt-card { width: 33.333%; }
.pt-cols-4 .pt-card { width: 25%; }
.pt-cols-5 .pt-card { width: 20%; }

@media (max-width: 1024px) {
  .pt-cols-4 .pt-card,
  .pt-cols-5 .pt-card { width: 33.333%; }
}
@media (max-width: 992px) {
  .pt-card { width: 50%; }
  .pt-cols-2 .pt-card { width: 50%; }
}
@media (max-width: 678px) {
  .pt-card,
  .pt-cols-2 .pt-card,
  .pt-cols-3 .pt-card,
  .pt-cols-4 .pt-card,
  .pt-cols-5 .pt-card { width: 100%!important; }
}

/* Card inner */
.pt-card-inner {
  background: #fff;
  overflow: hidden;
  position: relative;
}

/* Photo */
.pt-card-photo {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f0f0f0;
}

.pt-card-photo img {
  width: 100%;
  display: block;
  position: relative;
  margin: 0;
  border: none;
  -webkit-transition: -webkit-transform 0.5s;
  transition: transform 0.5s;
}

.pt-card:hover .pt-card-photo img {
  -webkit-transform: scale(1.05);
  transform: scale(1.05);
}

/* Card caption */
.pt-card-info {
  padding: 14px 0 4px;
}

.pt-card-info .pt-member-name {
  margin: 0 0 3px;
  padding: 0;
  font-size: 1.17em;
  line-height: 1.4;
  color: #1f1f1f;
  font-weight: 800;
}

.pt-card-info .pt-member-designation {
  font-size: 0.815em;
  line-height: 1.4;
  color: #555;
  margin: 0 0 2px;
  text-transform: uppercase;
  display: block;
}

.pt-card-info .pt-member-subtitle {
  font-size: 0.8em;
  color: #999;
  margin: 0 0 2px;
  font-style: italic;
}

.pt-card-info .pt-member-short-desc {
    font-size: 0.9em;
    color: #464646;
    margin: 4px 0 0;
    line-height: 1.5;
}

/* ============================================================
   Modal Overlay
   ============================================================ */

body.pt-modal-open {
  overflow: hidden;
}

.pt-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 99999;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-animation: ptFadeIn 0.2s ease;
          animation: ptFadeIn 0.2s ease;
  overflow: hidden;
}

@-webkit-keyframes ptFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes ptFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---- White modal box ---- */
.pt-modal {
  background: #fff;
  max-width: 880px;
  width: calc(100% - 140px);
  position: relative;
  padding: 40px;
  -webkit-box-shadow: 0 10px 40px rgba(0,0,0,0.35);
          box-shadow: 0 10px 40px rgba(0,0,0,0.35);
  -webkit-animation: ptSlideUp 0.22s ease;
          animation: ptSlideUp 0.22s ease;
  max-height: 90vh;
  overflow: hidden;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

@-webkit-keyframes ptSlideUp {
  from { -webkit-transform: translateY(20px); transform: translateY(20px); opacity: 0; }
  to   { -webkit-transform: translateY(0);    transform: translateY(0);    opacity: 1; }
}
@keyframes ptSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ---- Mobile nav bar (hidden on desktop) ---- */
.pt-modal-nav-bar {
  display: none;
}

/* ---- Close button ---- */
/* Overlay-level close: top-right of the dark backdrop */
.pt-close-overlay {
  position: absolute;
  top: 20px;
  right: 24px;
  background: transparent;
  border: none;
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  z-index: 100001;
  padding: 4px 8px;
  opacity: 0.75;
  -webkit-transition: opacity 0.15s;
          transition: opacity 0.15s;
}
.pt-close-overlay:hover {
  opacity: 1;
}

/* Mobile close: hidden on desktop, shown inside nav bar */
.pt-close-mobile {
  display: none;
}


/* ---- Desktop side arrows (pt-nav-side) ---- */
.pt-nav-side {
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #fff;
  font-size: 3rem;
  font-weight: 300;
  line-height: 1;
  width: 60px;
  height: 100px;
  cursor: pointer;
  z-index: 100000;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-transition: opacity 0.15s;
          transition: opacity 0.15s;
  opacity: 0.7;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  padding: 0;
}
.pt-modal-prev.pt-nav-side { left: 0; }
.pt-modal-next.pt-nav-side { right: 0; }
.pt-nav-side:hover {
  opacity: 1;
}

/* ---- Modal inner: photo + content ---- */
.pt-modal-inner {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  overflow: visible;
}

/* Photo column */
.pt-modal-photo {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 260px;
          flex: 0 0 260px;
  width: 260px;
  overflow: hidden;
  position: relative;
}

.pt-modal-photo img {
  width: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

/* ============================================================
   Content column + Sleek scrollbar
   ============================================================ */

.pt-modal-content {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  padding: 0 30px 30px 36px;
  max-height: calc(90vh - 80px); /* 80px = 2 × 40px modal padding */
  overflow-y: auto;
  overflow-x: hidden;
  min-width: 0;
}

/*
 * Sleek hover-reveal scrollbar.
 *
 * JS adds/removes .pt-scrollbar-visible on .pt-modal on mouseenter/mouseleave.
 * That class drives BOTH the WebKit pseudo-element and the Firefox scrollbar-color,
 * avoiding the Chrome 121+ conflict where scrollbar-width suppresses ::-webkit-scrollbar.
 *
 * WebKit (Chrome, Safari, Edge)
 */
.pt-modal-content::-webkit-scrollbar {
  width: 4px;
}
.pt-modal-content::-webkit-scrollbar-track {
  background: transparent;
}
.pt-modal-content::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 10px;
}
/* Reveal when JS adds pt-scrollbar-visible class */
.pt-modal.pt-scrollbar-visible .pt-modal-content::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.22);
}
/* Darker while the cursor is directly over the thumb */
.pt-modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.4) !important;
}

/*
 * Firefox — use @supports to gate scrollbar-color so it doesn't bleed into
 * Chrome 121+ which now also supports scrollbar-width and would suppress
 * the ::-webkit-scrollbar rules above.
 */
@supports (-moz-appearance: none) {
  .pt-modal-content {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
  }
  .pt-modal.pt-scrollbar-visible .pt-modal-content {
    scrollbar-color: rgba(0, 0, 0, 0.22) transparent;
  }
}

/* ---- Modal text ---- */

.pt-modal-designation {
  font-size: 0.815em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #101010;
  margin: 0 0 8px;
  line-height: 1.4;
}

.pt-modal-name {
  font-size: 2.2rem;
  font-weight: 800;
  color: #1f1f1f;
  margin: 0 0 22px;
  line-height: 1.2;
  padding: 0;
}

.pt-modal-subtitle {
  font-size: 1em;
  color: #747474;
  margin: 0 0 20px;
  font-style: italic;
  line-height: 1.4;
}

.pt-modal-bio {
  font-size: 1.2rem;
  color: #070707;
  line-height: 1.6;
  margin-bottom: 20px;
}

.pt-modal-bio p {
  margin: 0 0 18px;
  line-height: 1.4;
}
.pt-modal-bio p:last-child { margin-bottom: 0; }

/* ---- Contacts ---- */
.pt-modal-contacts {
  margin-bottom: 20px;
}

.pt-contact-item {
  padding: 6px 0;
  margin: 0 !important;
  border-bottom: 1px dotted rgba(35, 35, 35, 0.2);
  font-size: 1.2rem;
  color: #1f1f1f;
  display: block;
}

.pt-contact-label {
  min-width: 90px;
  margin-right: 6px;
  display: inline-block;
  color: #999;
  font-size: 0.85em;
}

.pt-contact-item a {
  color: #1f1f1f;
  text-decoration: none;
  -webkit-box-shadow: none;
          box-shadow: none;
  border-bottom: none;
}

.pt-contact-item a:hover {
  color: #333;
}

/* ---- Social icons ---- */
.pt-modal-social {
  margin-top: 4px;
}

.pt-social-icons {
  padding: 0;
  margin: 0 -5px;
  list-style: none;
  display: block;
}

.pt-social-icons span,
.pt-modal-social span {
  display: inline-block;
  padding: 0 5px;
  margin-bottom: 2px;
}

.pt-social-icons a,
.pt-modal-social a {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #ddd;
  color: #555;
  font-size: 0.9rem;
  text-decoration: none;
  -webkit-box-shadow: none;
          box-shadow: none;
  border-bottom: 1px solid #ddd;
  -webkit-transition: -webkit-transform 0.3s;
          transition: transform 0.3s;
  margin: 0 4px 4px 0;
}

.pt-social-icons a:hover,
.pt-modal-social a:hover {
  -webkit-transform: translateY(-3px);
          transform: translateY(-3px);
  color: #333;
  border-color: #bbb;
}

/* ============================================================
   Responsive
   ============================================================ */

/* Tablet */
@media (max-width: 860px) {
  .pt-modal {
    width: calc(100% - 100px);
    max-height: 92vh;
  }
  .pt-modal-photo {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 210px;
            flex: 0 0 210px;
    width: 210px;
  }
  .pt-modal-content {
    padding: 0 20px 24px 24px;
    max-height: calc(92vh - 80px);
  }
  .pt-modal-name {
    font-size: 1.65rem;
  }
}

/* Mobile: bottom-sheet — dark nav bar on top, photo full-width, content scrolls */
@media (max-width: 600px) {
  .pt-modal-overlay {
    -webkit-box-align: end;
        -ms-flex-align: end;
            align-items: flex-end;
    padding: 0;
  }

  .pt-nav-side {
    display: none !important;
  }

  .pt-modal {
    width: 100%;
    height: 90vh;
    max-height: 90vh;
    border-radius: 14px 14px 0 0;
    padding: 0;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }

  .pt-close-overlay {
    display: none;
  }

  .pt-close-mobile {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1;
    width: 44px;
    height: 44px;
    cursor: pointer;
    opacity: 0.85;
    -webkit-transition: opacity 0.15s;
            transition: opacity 0.15s;
  }
  .pt-close-mobile:hover { opacity: 1; }

  .pt-nav-arrows {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }

  .pt-modal-nav-bar {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    background: rgba(0, 0, 0, 0.82);
    padding: 0 4px;
    -webkit-box-flex: 0;
        -ms-flex: 0 0 44px;
            flex: 0 0 44px;
    border-radius: 14px 14px 0 0;
  }

  .pt-modal-nav-bar .pt-modal-prev,
  .pt-modal-nav-bar .pt-modal-next {
    position: static;
    -webkit-transform: none;
            transform: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 3rem;
    font-weight: 300;
    line-height: 1;
    width: 48px;
    height: 44px;
    cursor: pointer;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    opacity: 0.85;
    padding: 0;
    z-index: auto;
    text-shadow: none;
    -webkit-transition: opacity 0.15s;
            transition: opacity 0.15s;
  }
  .pt-modal-nav-bar .pt-modal-prev:hover,
  .pt-modal-nav-bar .pt-modal-next:hover {
    opacity: 1;
  }

  .pt-modal-inner {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    overflow-y: scroll;
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    min-height: 0;
  }

  .pt-modal-photo {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 400px;
            flex: 0 0 400px;
    width: 100%;
    height: 400px;
  }
  .pt-modal-photo img {
    height: 100%;
  }

  .pt-modal-content {
    padding: 22px 20px 28px;
    overflow: visible;
  }

  .pt-modal-bio {
    font-size: 1.4rem;
  }

  .pt-modal-name {
    font-size: 1.8rem;
  }
}
