/*
Theme Name: Salient Child Theme
Description: This is a custom child theme for Salient
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: ThemeNectar
Author URI:  https://themeforest.net/user/themenectar
Template: salient
Version: 1.0
*/

/* Parent's nectar_essential_js (themes/salient/nectar/helpers/header.php:805)
   writes style="--scroll-bar-w: Npx" inline on <body> from innerWidth-clientWidth-4.
   On browsers where 100vw already excludes the scrollbar gutter, the subtraction
   is applied twice and .wpb_row.full-width-content under-fills the viewport.
   !important is required to beat the inline body style. */
body { --scroll-bar-w: 0px !important; }


/* Salient clips these labels to 1px; retain that behavior and name contrast. */
body .screen-reader-text,
body .nectar-skip-to-content:not(:focus) {
  color: #111111 !important;
  background-color: #ffffff !important;
}

/* Keep the existing hero fallback colour on the ancestor of its text.
   The theme's image, video and overlay layers remain above this background. */
body.page-id-337 .main-content > .row > .wpb_row:first-child,
body.page-id-464 .main-content > .row > .wpb_row:first-child {
  background-color: #2b323a;
}
body.single-portfolio #portfolio-extra > .wpb_row:first-child {
  background-color: #566678;
}

/* Match the hidden state to the theme's existing reveal and cursor states. */
body.page-id-6 .nectar-fancy-ul[data-animation="true"]:not(.animated-in) li {
  visibility: hidden;
}
body .nectar-view-indicator {
  visibility: hidden;
  transition: visibility 0s linear 0.3s;
}
body .nectar-view-indicator.visible {
  visibility: visible;
  transition-delay: 0s;
}

/* Keep transparent archive button text hidden, without hiding the link hit area.
   Delay hiding until the existing 0.2s fade finishes. Mobile already hides it. */
body.tax-project-type .portfolio-items[data-ps="1"] .work-info .vert-center a.default-link .olympic-hover-label {
  opacity: 1;
  visibility: hidden;
  transition: visibility 0s linear 0.2s;
}
@media only screen and (min-width: 1000px) {
  body.tax-project-type .portfolio-items[data-ps="1"] .work-item:hover .work-info .vert-center a.default-link .olympic-hover-label,
  body.tax-project-type .portfolio-items[data-ps="1"] .work-info .vert-center a.default-link:focus .olympic-hover-label {
    visibility: visible;
    transition-delay: 0s;
  }
}

/* Approved category date and count contrast, preserving title/icon colours. */
body.tax-project-type .portfolio-items .work-meta,
body.tax-project-type .portfolio-items .nectar-love .nectar-love-count {
  color: #707070;
}

/* Approved fallback behind the lower homepage video, including its full width.
   The existing video and overlay layers paint above this background. */
body.page-id-337 .main-content > .row > .wpb_row:last-child,
body.page-id-337 .main-content > .row > .wpb_row:last-child > .row-bg-wrap {
  background-color: #2b323a;
}
