/*
 * 09-plugins.css
 * Third-party plugin overrides: tables, logo slider, Slick carousel,
 * ExTeam lightbox, Gravity Forms, and logo showcase.
 * -------------------------------------------------------------------
 */

/* ── Tables ── */
.wp-block-table table {
  border: 1px solid #eaeaea;
  width: 100%;
  border-collapse: initial !important;
  padding: 10px;
}

table {
  border-spacing: 1;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
  position: relative;
}

table * { position: relative; }

table td,
table th { padding-left: 8px; }

table thead tr {
  height: 60px;
  background: #36304a;
}

table tbody tr  { height: 50px; }
table tbody tr:last-child { border: 0; }
table td, table th { text-align: left; }
table td.l, table th.l { text-align: right; }
table td.c, table th.c { text-align: center; }
table td.r, table th.r { text-align: center; }

tbody tr:nth-child(even) { background-color: #f5f5f5; }

tbody tr {
  font-family: 'Arapey', serif;
  font-size: 15px;
  color: gray;
  line-height: 1.2;
  font-weight: unset;
}

/* ── Logo showcase / slider ── */
.wpls-logo-showcase {
  padding: 0 30px 20px 30px !important;
  margin: 0 !important;
  text-align: center;
  clear: both;
}

.logoslider { padding: 10px 0px 5px 0px; }

div#wpls-logo-showcase-slider-1               { height: 200px; }
div#wpls-logo-showcase-slider-1 .slick-list.draggable { height: 200px; }
div#wpls-logo-showcase-slider-1 .wpls-logo-clearfix   { clear: both; height: 200px; }

.wpls-logo-showcase .slick-dots {
  padding: 0 !important;
  margin: 0 !important;
  text-align: center;
  display: none !important;
}

div#wpls-logo-showcase-slider-1 button.slick-prev.slick-arrow { display: none !important; }
div#wpls-logo-showcase-slider-1 button.slick-next.slick-arrow { display: none !important; }

/* ── Slick carousel ── */
.slick-prev { left: 5px;  z-index: 9999999; }
.slick-next { right: 5px; z-index: 9999999; }

.slick-slide.slick-current.slick-active.slick-center {
  opacity: 1 !important;
  box-shadow: 2px 3px 3px rgba(0, 0, 0, 0.5) !important;
}

.center.slick-initialized.slick-slider h3 {
  text-align: center;
  font-size: 1em;
  margin-top: 20px;
  margin-bottom: 40px;
  font-family: 'Open Sans', sans-serif;
}

.center.slick-initialized.slick-slider a {
  text-align: center;
  font-size: 1em;
  text-decoration: none;
  margin-top: 30px;
  margin-bottom: 40px;
  font-family: 'Open Sans', sans-serif;
}

.slick-slide {
  position: relative;
  width: 300px;
  height: 600px;
  padding: 10px;
  margin: 10px 10px 10px 10px;
  background: #fff;
  opacity: 1;
}

.slick-slide-image {
  width: 100%;
  height: 300px;
  margin: 0px;
  background: #333;
}

.slick-slide-image img {
  object-fit: cover;
  min-height: 300px;
}

.slick-slide .btn1 {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -20%);
  -ms-transform: translate(-50%, -20%);
  background-color: #333;
  color: #fff;
  font-size: 18px;
  padding: 12px 14px;
  border: none;
  opacity: 0.8;
  text-decoration: none;
  z-index: 9999999 !important;
  text-align: center;
  width: 280px;
}

.slick-slide .btn1:hover { background-color: #3c3c3c; color: #fff; }

/* ── ExTeam plugin ── */
.ex-tplist h3 a,
.ex-tplist .extsc-hidden .exp-modal-info h3 a,
.extp-member-single .member-info h3,
.exteam-lb .gslide-description.description-right h3 {
  font-family: inherit !important;
  font-size: 1.8em;
  text-decoration: none;
  color: inherit;
}

.ex-tplist .tpstyle-img-10 h5,
.ex-tplist .tpstyle-img-3 h5,
.ex-tplist .tpstyle-img-2 h5 {
  color: #333 !important;
  font-size: 1.4em !important;
}

.ex-tplist p {
  font-size: inherit;
  margin: 10px 0px;
  line-height: 1.6;
  font-size: 1.2em;
  display: none;
}

.tpstyle-img-3 {
  position: relative;
  float: left;
  overflow: hidden;
  width: 100%;
  color: #333 !important;
  text-align: center;
  font-size: inherit;
  background-color: #fff !important;
  line-height: 1.5em;
}

.exteam-lb .goverlay { background: #1e1e1e; opacity: 0.9; }

.exteam-lb .gslide-description.description-right h3 {
  text-transform: none !important;
  font-size: 25px !important;
  font-weight: 400;
  line-height: 24px;
  margin: 3px 0;
  color: #333 !important;
}

.exteam-lb .gslide-description.description-right h3 a {
  text-decoration: none;
  font-size: 25px !important;
  color: #333 !important;
}

.exteam-lb .gslide-description.description-right h5 span { display: none !important; }

.exteam-lb .gslide-description.description-right h5 {
  border: 0;
  font-size: 1.2em !important;
}

.exteam-lb .gslide-description.description-right p {
  font-size: 16px !important;
  margin: 10px 0px;
  line-height: 1.5em !important;
}

.extp-pagination-parent { display: none !important; }

/* ── Gravity Forms ── */
input#gform_submit_button_1 {
  background: #415052;
  color: #fff;
  border: none;
  padding: 15px 30px;
  width: 100%;
  font-size: 1.3em;
  max-width: 300px;
}

ul#gform_fields_2::-webkit-input-placeholder { color: #fff !important; }
ul#gform_fields_2:-ms-input-placeholder      { color: #fff !important; }
ul#gform_fields_2::placeholder               { color: #fff !important; }

ul#gform_fields_2 input {
  float: left;
  width: 100%;
  background: #fafafa !important;
  border: none;
  border-bottom: 1px solid #525252;
  border-radius: 0px;
  margin-bottom: 20px !important;
  color: #fff;
}

input#gform_submit_button_2 {
  float: left;
  background: #525252 !important;
  width: 100%;
  border: none;
  color: #fff !important;
  text-align: center !important;
  font-family: 'Cinzel', serif;
  padding: 20px 0px !important;
  margin-top: -19px;
}

form#gform_2 label { display: none; }

/* ── Forms ── */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
  color: #666;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus { color: #111; }

/* ── Media ── */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley { border: none; margin-bottom: 0; margin-top: 0; padding: 0; }

embed, iframe, object { max-width: 100%; }

.custom-logo-link { display: inline-block; }

.wp-caption { margin-bottom: 1.5em; max-width: 100%; }

.wp-caption img[class*="wp-image-"] { display: block; margin-left: auto; margin-right: auto; }

.wp-caption .wp-caption-text { margin: 0.8075em 0; }

.wp-caption-text { text-align: center; }

/* ── Galleries ── */
.gallery              { margin-bottom: 1.5em; }
.gallery-item         { display: inline-block; text-align: center; vertical-align: top; width: 100%; }
.gallery-columns-2 .gallery-item { max-width: 50%; }
.gallery-columns-3 .gallery-item { max-width: 33.3333333333%; }
.gallery-columns-4 .gallery-item { max-width: 25%; }
.gallery-columns-5 .gallery-item { max-width: 20%; }
.gallery-columns-6 .gallery-item { max-width: 16.6666666667%; }
.gallery-columns-7 .gallery-item { max-width: 14.2857142857%; }
.gallery-columns-8 .gallery-item { max-width: 12.5%; }
.gallery-columns-9 .gallery-item { max-width: 11.1111111111%; }
.gallery-caption      { display: block; }

figure.wp-block-gallery.columns-1.is-cropped.hello {
  height: 100%;
  width: auto;
  display: block;
}

.wp-block-gallery:not(.components-placeholder) {
  margin: 1.5em auto;
  margin-left: 0px !important;
}

/* ── Ex-TP list ── */
.ex-tplist .ctgrid {
  margin-left: -5px;
  margin-right: -5px;
  height: 100% !important;
}

.ex-tplist > .ctgrid .item-grid {
  width: 100%;
  position: relative !important;
  top: 0px !important;
}

/* ── Accessibility ── */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

#primary[tabindex="-1"]:focus { outline: 0; }

/* ── Tablet plugin overrides ── */
@media only screen and (max-width: 992px) {
  div#wpls-logo-showcase-slider-1 { height: 150px !important; }
  div#wpls-logo-showcase-slider-1 .slick-list.draggable { height: 150px !important; }
  .wpls-logo-cnt.slick-slide  { height: 150px !important; }

  #wpls-logo-showcase-slider-1 .wpls-fix-box,
  #wpls-logo-showcase-slider-1 .wpls-fix-box img.wp-post-image { max-height: 120px !important; }

  .slick-slide .btn1 { width: 160px !important; padding: 8px 14px !important; }

  .slick-slide-image img { object-fit: cover; min-height: 150px !important; }

  .slick-slide-image {
    width: 100% !important;
    height: 150px !important;
    margin: 0px;
    background: #333;
  }

  .center.slick-initialized.slick-slider h3 {
    text-align: center;
    font-size: 1em;
    margin-top: 10px !important;
    margin-bottom: 26px !important;
    font-family: 'Open Sans', sans-serif;
  }

  .slick-slide {
    position: relative;
    width: 300px;
    height: 600px !important;
    padding: 10px;
    margin: 10px;
    background: #fff;
    opacity: 1;
  }
}

/* ── Mobile plugin overrides ── */
@media handheld, only screen and (max-width: 767px) {
  #wpls-logo-showcase-slider-1 .wpls-fix-box,
  #wpls-logo-showcase-slider-1 .wpls-fix-box img.wp-post-image { max-height: 160px !important; }

  .slick-slide .btn1 {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -62%) !important;
    -ms-transform: translate(-50%, -62%) !important;
    background-color: #333;
    color: #fff;
    font-size: 18px;
    padding: 12px 14px;
    border: none;
    opacity: 0.8;
    text-decoration: none;
    z-index: 9999999 !important;
    text-align: center;
    width: 230px !important;
  }

  .blocks-gallery-grid .blocks-gallery-image,
  .blocks-gallery-grid .blocks-gallery-item,
  .wp-block-gallery .blocks-gallery-image,
  .wp-block-gallery .blocks-gallery-item {
    margin: 0 0.5em 0.5em 0;
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    justify-content: center;
    position: relative;
    width: calc(50% - 1em);
  }

  figure.wp-block-gallery { margin: 0px !important; }

  div#sbi_images { padding: 5px 2px !important; }
}

/*
 * ── Customiser overrides ──────────────────────────────────────────────
 */

/* Logo showcase — max image height */
#wpls-logo-showcase-slider-1 .wpls-fix-box,
#wpls-logo-showcase-slider-1 .wpls-fix-box img.wp-post-image { max-height: 150px !important; }

/* Slick image carousel (wpsisac) */
.wpsisac-slick-carousal.wpsisac-image-fit .wpsisac-img-wrap {
  height: 600px;
  background: #dadada;
}

.wpsisac-slick .slick-next,
.wpsisac-slick button.slick-next:active,
.wpsisac-slick button.slick-next:focus,
.wpsisac-slick button.slick-next:hover {
  background: linear-gradient(to left, #2E3224, rgba(0, 0, 0, 0)),
    url(https://monkeywoodcontent.flywheelstaging.com/wp-content/plugins/wp-slick-slider-and-image-carousel-pro/assets/images/arrow-right.png) center center no-repeat;
  box-shadow: none;
  border: 0;
  background-position: center right 18%;
  border-radius: 0;
}

.wpsisac-slick button.slick-prev,
.wpsisac-slick button.slick-prev:active,
.wpsisac-slick button.slick-prev:focus,
.wpsisac-slick button.slick-prev:hover {
  background: linear-gradient(to right, #2E3224, rgba(0, 0, 0, 0)),
    url(https://monkeywoodcontent.flywheelstaging.com/wp-content/plugins/wp-slick-slider-and-image-carousel-pro/assets/images/arrow-left.png) no-repeat;
  box-shadow: none;
  border: 0;
  background-position: center left 18%;
  border-radius: 0;
}

.wpsisac-slick.wpsisac-arrow-design-2 .slick-arrow,
.wpsisac-slick.wpsisac-arrow-design-2 .slick-arrow:active,
.wpsisac-slick.wpsisac-arrow-design-2 .slick-arrow:focus,
.wpsisac-slick.wpsisac-arrow-design-2 .slick-arrow:hover { border-radius: 0 !important; }

.wpsisac-slick.wpsisac-arrow-design-2 .slick-arrow { border-radius: 0 !important; width: 200px !important; }

.wpsisac-slick .slick-arrow {
  width: 30px;
  height: 97%;
  position: absolute;
  z-index: 9;
  border: 0;
  padding: 0;
  margin: 0;
  border-radius: 0;
  -webkit-transition: .3s ease-in;
  transition: .3s ease-in;
  cursor: pointer;
}

.wpsisac-slick-carousal.wpsisac-prodesign-4 .slick-arrow {
  top: 50%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  border: none;
}

.wpsisac-slick-carousal-wrp { margin-bottom: -10px; width: 102%; margin-left: -1%; }

/* Slider layer font size */
rs-layer#slider-1-slide-1-layer-2 { font-size: 22px !important; }

/* GS Team plugin */
.gs-grid-style-four .single-member-div .single-member {
  background: none !important;
  padding-bottom: 30px !important;
}

.gs_team .gs_team_image__wrapper {
  position: relative;
  overflow: hidden;
}

.gs_team .gs_team_image__wrapper img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 1 !important;
  filter: grayscale(100%) !important;
  transition: filter 0.3s ease;
}

.gs_team .single-member:hover .gs_team_image__wrapper img {
  filter: grayscale(0%) !important;
}

.gs_team .gs_team_image__overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: transparent !important;
  opacity: 0;
  transition: opacity 0.25s ease;
  display: flex !important;
  align-items: center;
  justify-content: center;
  pointer-events: none !important;
}

.gs_team .gs_team_image__overlay:before { content: attr(data-name); }

.gs_team .single-member:hover .gs_team_image__overlay { opacity: 1 !important; }

/* Hide original name, keep popup working */
.gs_team .gs_member_info {
  position: absolute;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden !important;
}

span.team-hover-name { background: #fff; padding: 20px; width: 200px; text-align: center; }

.gs_team .gs_team_image__overlay:after {
  background: #fff;
  color: #000;
  padding: 12px 22px;
  border-radius: 4px;
  font-size: 18px;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  text-transform: uppercase;
}

.gs_team .gs-member-name { transform: translateY(10px); transition: all 0.25s ease; }
.gs_team .single-member:hover .gs-member-name { transform: translateY(0); }

.gs-member-name { padding: 10px; border: 0.5px solid #464d37; }

.gs-team-popup--default .gs-member-name {
  color: #857e6c;
  font-family: 'Arapey';
  text-align: center;
}

.gs_team_image__overlay { display: none; }

.gs-grid-style-four .single-member-div .gs_team_image__wrapper { border-radius: 0 !important; }

.gs_team_area.gs-grid-style-four .single-member-div {
  padding-bottom: 32px;
  padding-left: 16px !important;
  padding-right: 16px !important;
  max-width: 30%;
}

.gs-roow {
  margin-right: -15px;
  margin-left: -15px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  justify-content: center;
}

.gs-grid-style-four .single-member-div .single-member { padding-bottom: 115px; }

.gs_tm_theme_v_2 .single-member-div .single-member .gs_team_image__wrapper img {
  height: 100%;
  left: 0;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center;
  object-position: center;
  position: absolute;
  top: 0;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
  width: 100%;
}

.gs_tm_theme_v_2 .single-member-div .single-member .gs_team_image__wrapper img:hover {
  filter: grayscale(0%) !important;
}

.gs_team_area img { height: 100% !important; object-fit: cover !important; }

/* GS Team popup */
.mfp-gsteam .white-popup     { max-width: 44% !important; }
.popup-one-column img         { max-width: 100%; max-height: 400px; padding-bottom: 8px; }

.gs_team_popup_details.gs-tm-sicons.popup-one-column h2 { margin-top: 0px; }

/* YouTube / HTML5 video — hide player link */
.html5-video-player a { display: none !important; }
