/**
Theme Name: FRW Child Theme
Author: Free Range Web
Author URI: https://www.freerangeweb.co.uk
Description: Child theme for custom code.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: frw-child-theme
Template: astra
*/

/* Adjustment for targetted #heading-links */
.ast-container *:target {
  scroll-margin-top: 80px;
}
#primary p a {
  text-decoration: underline;
}

/***** Helper Classes *****/
.ips_hidden {
  display: none;
}
.skip-link.screen-reader-text {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/***** Header *****/
.ast-logo-title-inline .ast-site-identity {
  padding: 0;
  margin: 5px 0 -5px;
}
#ast-mobile-header .ast-header-search {
  background-color: var(--ast-global-color-5);
}
#ast-mobile-header .widget_block {
  padding: 0 20px 15px;
  background-color: var(--ast-global-color-5);
}
#ast-mobile-header .widget_block p {
  display: none;
}

/* GTranslate */
li.menu-item-gtranslate .gt_switcher .gt_option {
  position: absolute;
}
#ast-hf-menu-2 li.menu-item-gtranslate {
  border: none;
  grid-area: trans;
  padding: 1px 0 0 20px;
  min-width: 114px;
}
#ast-hf-menu-2 li.menu-item-gtranslate > div {
  position: relative !important;
}
#ast-hf-menu-2 li.menu-item-gtranslate .gt_switcher {
  margin: 0 auto;
}
li.menu-item-gtranslate select.gt_selector {
  border: 1px solid var(--ast-search-border-color);
  border-radius: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  font-family: "Rubik", sans-serif;
  font-size: 13px;
  background: url(data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0Ljk1IDEwIj48ZGVmcz48c3R5bGU+LmNscy0ye2ZpbGw6IzQ0NDt9PC9zdHlsZT48L2RlZnM+PHRpdGxlPmFycm93czwvdGl0bGU+PHBvbHlnb24gY2xhc3M9ImNscy0yIiBwb2ludHM9IjEuNDEgNC42NyAyLjQ4IDMuMTggMy41NCA0LjY3IDEuNDEgNC42NyIvPjxwb2x5Z29uIGNsYXNzPSJjbHMtMiIgcG9pbnRzPSIzLjU0IDUuMzMgMi40OCA2LjgyIDEuNDEgNS4zMyAzLjU0IDUuMzMiLz48L3N2Zz4=)
    no-repeat 95% 50%;
  background-color: #fff;
}
header .search-form .screen-reader-text {
  display: none;
}
header .search-form input.search-field {
  font-family: "Rubik", sans-serif;
}
/* End GTranslate */

.ast-builder-menu-1 .menu-item.current-page-ancestor > .menu-link {
  color: var(--ast-global-color-1);
}
#primary-site-navigation-desktop .main-navigation > ul::before {
  content: "Use IPS for...";
  line-height: 40px;
  font-size: 14px;
}

#ast-desktop-header .main-header-menu li.menu-item {
  text-align: center;
}

@media (max-width: 921px) {
  #ast-hf-menu-1 {
    display: block;
  }
  #ast-hf-menu-1 .menu-item-type-post_type {
    display: none;
  }
}

/*** Mobile Nav ***/
li#menu-item-2464,
li#menu-item-2465,
li#menu-item-2466 {
  border-left: 4px solid var(--ast-global-color-8);
}

#ast-hf-mobile-menu .sub-menu {
  display: block !important;
}
#ast-hf-mobile-menu .ast-menu-toggle {
  display: none;
}

/*** Displaying the submenus ***/
#ast-mobile-header {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--ast-global-color-6);
}

#secondary .widget_nav_menu {
  background: var(--ast-global-color-4);
}
#secondary .widget_nav_menu li {
  padding: 0.3em 0.5em;
  margin: 0;
}
#secondary .widget_nav_menu li.current-menu-item {
  background: var(--ast-global-color-6);
}
#secondary .widget_nav_menu li a {
  display: block;
}

.ast-below-header-bar {
  border-bottom: 0;
}
.ast-below-header-bar .site-below-header-wrap {
  min-height: 0;
}
#secondary_menu-site-navigation-desktop {
  line-height: 0;
}
.ast-below-header-wrap nav.site-navigation ul.sub-menu {
  position: static;
  visibility: visible;
  display: none;
  width: auto;
}
.ast-below-header-wrap nav.site-navigation .main-header-menu .menu-item {
  flex-direction: row;
  line-height: 40px;
}
.ast-below-header-wrap span.dropdown-menu-toggle.ast-header-navigation-arrow {
  display: none;
}
.ast-below-header-wrap .main-header-menu > li.current-menu-item > ul.sub-menu,
.ast-below-header-wrap
  .main-header-menu
  li.current_page_ancestor
  li.current_page_item {
  border-top: 0;
}
.ast-below-header-wrap
  nav.site-navigation
  .main-header-menu
  .current-page-ancestor
  > a.menu-link {
  background-color: transparent;
}
#ast-desktop-header .main-header-menu li.current-menu-item,
body.single-video .ast-below-header-wrap li.menu-item-object-video {
  border-top: 2px solid var(--ast-global-color-0);
}
.ast-below-header-wrap .main-header-menu > li.menu-item > a {
  text-wrap: nowrap;
}
.ast-below-header-wrap .main-header-menu .current-page-ancestor > a.menu-link,
.ast-below-header-wrap .main-header-menu .current-menu-item > a.menu-link,
body.single-video .ast-below-header-wrap li.menu-item-object-video a.menu-link {
  background-color: var(--ast-global-color-6);
}
@media (max-width: 921px) {
  .ast-left-sidebar #content > .ast-container {
    flex-direction: column;
  }
}
/*** End of submenus ***/
/***** End of header *****/

/***** Page Elements *****/
.hero-block {
  min-height: 250px;
}
@media (min-height: 1200px) {
  .hero-block {
    min-height: 420px !important;
  }
}
.hero-block h1 {
  /* font-family: "Crimson Text", serif; */
  font-style: italic;
}
/*** Collapsible Accordian Details ***/
details {
  border: 1px solid var(--ast-global-color-8);
  border-bottom: 1px solid var(--ast-global-color-3);
  border-radius: 10px;
  padding: 1em;
}
details summary::marker {
  content: none;
}
details summary::before {
  content: "Click to expand";
  display: inline-block;
  font-style: italic;
  font-size: 0.5em;
  line-height: 1.1em;
  width: 45px;
  padding: 5px 0;
  border-radius: 10px;
  text-align: center;
  margin-right: 1em;
  border: 1px solid var(--ast-global-color-0);
  color: var(--ast-global-color-0);
}
details[open] summary::before {
  content: "Content expanded";
}
details summary strong {
  font-weight: normal !important;
}

/*** Expand all ***/
.ips-expand-all {
  color: var(--ast-global-color-0);
  font-size: 0.7em;
  font-weight: 400;
  font-family: "Crimson Text", serif;
  border: 1px solid var(--ast-global-color-0);
  display: inline-block;
  padding: 5px 0;
  border-radius: 10px;
  line-height: 1.1;
  width: 80px;
  text-align: center;
  font-style: italic;
  float: right;
  cursor: pointer;
}

/*** Clickable blocks ***/
a.link-anithing {
  display: block;
  height: 100%;
}
a.link-anithing h2 {
  color: var(--ast-global-color-0);
}
a.link-anithing:hover h2 {
  color: var(--ast-global-color-1);
}
a.link-anithing .wp-block-cover .wp-block-cover__background.has-background-dim {
  transition: opacity 0.3s;
}
a.link-anithing:hover
  .wp-block-cover
  .wp-block-cover__background.has-background-dim {
  opacity: 0.7;
}
/***** END of Page Elements *****/

/***** Wayfinding Pages *****/
#index-guidebooks ul {
  padding-left: 0;
}
#index-guidebooks li {
  margin-top: 8.5px;
}
#index-guidebooks h4 {
  font-size: inherit;
  font-weight: inherit;
  font-family: inherit;
}

/* Country selector (hidden radio inputs) */
#ips_country_radio_filter {
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
  padding: 0;
  border: none;
}
#ips_country_radio_filter label {
  flex-grow: 1;
  font-size: 16px;
}
#ips_country_radio_filter input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
#ips_country_radio_filter label {
  display: block;
  padding: 10px 20px 10px 30px;
  background-image: url(https://client-view.co.uk/leedsdev/wp-content/uploads/2025/03/checkbox.png);
  background-position: 5px center;
  background-repeat: no-repeat;
  background-size: 20px;
  cursor: pointer;
}
#ips_country_radio_filter label:has(input[type="radio"]:checked) {
  background-color: var(--ast-global-color-4);
  background-image: url(https://client-view.co.uk/leedsdev/wp-content/uploads/2025/03/checkbox-ticked.png);
}
/* End of Country Selector */
/***** End of Wayfinding *****/

/*** Contact Page ***/
.gform-theme--foundation .gfield input.large,
.gform-theme--foundation .gfield textarea {
  font-size: 20px;
}

/***** Legal Reports *****/
.ast-page-builder-template .site-content > .ast-container {
  max-width: 1240px;
}
.astra-advanced-hook-39 {
  position: relative;
}
#legal-toc {
  position: sticky;
  top: 0;
  left: 0;
  padding-top: 40px;
  width: 300px;
  float: left;
  z-index: 200;
}
#legal-toc nav {
  max-height: calc(100vh - 230px);
  overflow: scroll;
}
#legal-toc nav ul {
  background: rgba(0, 0, 0, 0.03);
  border-left: 1px solid rgba(0, 0, 0, 0.05);
  padding-left: 2px;
}
#legal-toc nav ul ul {
  margin-left: 1.2em;
}
#legal-toc nav li a {
  display: block;
  text-indent: -1.5em;
  padding-left: 1.5em;
  color: #333;
}
#legal-toc nav li a:visited {
  color: #555;
}
#legal-report-content {
  margin-left: 300px;
  padding: 40px;
}
.footnote-item:target {
  background: #eee;
}
sup.fn a:target {
  color: #f00;
}
#legal-toc #ez-toc-container .ez-toc-cssicon-toggle-label,
#ez-toc-container > input {
  display: none;
}

/*** Legal Reports Tablet and Mobile ***/
@media (max-width: 921px) {
  #legal-toc {
    float: none;
    width: 100%;
    margin-top: -25px;
    padding: 65px 20px 0;
  }
  #legal-toc #ez-toc-container {
    width: 100%;
  }
  #legal-toc #ez-toc-container .ez-toc-cssicon-toggle-label,
  #legal-toc #ez-toc-container > input {
    display: initial;
  }
  #legal-toc #ez-toc-container input[type="checkbox"] + nav {
    opacity: 0;
    max-height: 0;
    border: none;
    display: none;
  }
  #legal-toc #ez-toc-container input[type="checkbox"]:checked + nav {
    opacity: 1;
    max-height: 75vh;
    display: block;
  }
  #legal-report-content {
    margin-left: 0;
  }
}
/***** End Legal Reports *****/

/***** Single Video Pages *****/
.ips-video-historyless {
  font-style: italic;
}

/***** Video Filtering *****/
.ips-video-page-container {
  margin-top: 60px;
  margin-bottom: 60px;
}
#ips-video-filter-status {
  position: fixed;
  left: 50%;
  top: 50%;
  background: var(--ast-global-color-4);
  padding: 50px 80px;
  border-radius: 20px;
  border: 5px solid var(--ast-global-color-8);
  transform: translate(-50%, -50%);
}
#ips-video-filter-status.dormant {
  display: none;
}
@media (max-width: 480px) {
	#ips-video-filter-status {
		padding: 20px 30px;
	}
}
/*** Video Results ***/
.video-taxonomy {
  line-height: 2;
}
.ips-video-active-filters {
  margin: 1em 0;
  padding: 5px 10px;
  font-style: italic;
  font-size: 0.8em;
  background: var(--ast-global-color-5);
}
.video-archive-grid {
  margin: 0;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.video-archive-grid .post-item {
  overflow: hidden;
  border: 10px solid var(--ast-global-color-4);
  border-radius: 1em;
  padding: 5px 10px;
}
.video-archive-grid .video-taxonomy label,
.video-archive-grid .video-taxonomy span,
.ips-video-playlist .video-taxonomy span,
.ips-video-tags span.ips-video-tag {
  padding: 3px 6px;
  border-radius: 1em;
  font-family: "Rubik", sans-serif;
  font-size: 0.8em;
  white-space: nowrap;
  background-color: var(--ast-global-color-4);
}
.video-tag::before,
.ips-video-tag::before {
  content: "#" / "";
}
.video-archive-grid .video-taxonomy .video-tag {
  cursor: pointer;
}
.ips-video-tags span.ips-video-tag {
  line-height: 2em;
}
.video-archive-grid .video-taxonomy .video-tags,
.ips-video-playlist .video-taxonomy .video-tags {
  margin-bottom: 0.5em;
  font-size: 0.8em;
}
.video-archive-grid .post-item .video-thumb {
  display: block;
  margin: -5px -10px 10px;
}
.video-archive-grid .post-item .video-thumb img {
  width: 100%;
  height: auto;
}

/***** Search Results *****/
span.excerpt_part {
  display: block;
  margin-bottom: 10px;
}



/* vimeo-embed.css */
.ips-vimeo-embed {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}
.ips-vimeo-embed .video-poster-image {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  z-index: 10;
  width: 100%;
  background-size: cover;
}
.ips-vimeo-embed .video-btn-group {
  z-index: 15;
  grid-row: 1 / -1;
  grid-column: 1 / -1;
  gap: 2em;
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  align-items: center;
}
.ips-vimeo-embed .video-btn-group button {
  border: 0;
  padding: 0;
  width: 80px;
  background: none;
}
@media (max-width: 920px) {
  .ips-vimeo-embed .video-btn-group button {
    width: 60px;
  }
}
@media (max-width: 768px) {
  .ips-vimeo-embed .video-btn-group button {
    width: 40px;
  }
}

.ips-vimeo-embed .embed-responsive {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  z-index: 5;
}
.ips-vimeo-embed .video-btn-group button svg {
  width: 100%;
  height: 100%;
  opacity: 0.8;
}
.ips-vimeo-embed .video-btn-group button:hover svg {
  opacity: 1;
}
.ips-vimeo-embed .video-btn-group button svg circle {
  fill: var(--ast-global-color-0);
  stroke: white;
  stroke-width: 2;
}
.ips-vimeo-embed .video-btn-group button:hover svg circle {
  stroke-width: 5;
}
.ips-vimeo-embed .video-btn-group .btn-hero-video-close svg path {
  fill: var(--ast-global-color-1);
}

/* When video is open and playing */
.ips-vimeo-embed.open .video-poster-image {
  display: none;
}
.ips-vimeo-embed.open .video-btn-group {
  display: inline-flex;
  justify-self: left;
  align-self: center;
  flex-direction: column;
  padding: 1em;
  gap: 1em;
}

.ips-vimeo-embed .embed-responsive iframe {
  display: block;
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  border: none;
}
.ips-video-page-container .ips-video-tags {
  margin: 20px 0;
}
.ips-video-tags button {
  margin-right: 1em;
  padding: 5px 10px;
  border: 1px solid var(--ast-global-color-4);
  border-radius: 1em;
  font-size: 1.5em;
  color: var(--ast-global-color-0);
  background-color: var(--ast-global-color-4);
}
.ips-video-tags button:hover {
  border-color: var(--ast-global-color-1);
  background-color: var(--ast-global-color-5);
}
.ips-video-tags button span {
  margin: 0 0.5em;
  padding: 2px 4px;
  border-radius: 1em;
  font-size: 0.5em;
  background-color: var(--ast-global-color-5);
}

.ips-video-page-container .language-tag, .ips-video-page-container .country-tag {
  display: inline-block;
  width: fit-content;
  margin-right: 1em;
  padding: 5px 15px;
  border-radius: 1em;
  background: var(--ast-global-color-4);
}


.ips-video-playlist .ips-video-languages {
  font-size: 0.8em;
}
.ips-video-versions a {
  display: block;
}
.ips-video-languages a {
  display: block;
}
.ips-video-languages a img {
  vertical-align: sub;
  height: auto;
  width: 1.2em;
  box-shadow: none;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
}
.ips-video-languages a i {
  font-size: 0.6em;
}

.ips-360 {
	width: 50px;
	height: auto;
}


/* video-playlist.css */
.ips-video-playlist {
  margin: 40px 0;
}
.ips-video-playlist .ips-video-list-item {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: center;
  column-gap: 20px;
  padding: 20px;
  background-color: var(--ast-global-color-5);
}
.ips-video-playlist .ips-video-list-item .ips-video-list-item-info {
}
.ips-video-playlist .ips-video-list-item .ips-vimeo-embed {
}
.ips-playlist-video-position-left
  .ips-video-list-item
  .ips-video-list-item-info {
  order: 2;
}

.ips-playlist-ratio-3-to-1 .ips-video-list-item {
  grid-template-columns: 3fr 1fr;
}
.ips-playlist-ratio-2-to-1 .ips-video-list-item {
  grid-template-columns: 2fr 1fr;
}
.ips-playlist-ratio-3-to-2 .ips-video-list-item {
  grid-template-columns: 3fr 2fr;
}
.ips-playlist-ratio-1-to-1 .ips-video-list-item {
  grid-template-columns: 1fr 1fr;
}
.ips-playlist-ratio-2-to-3 .ips-video-list-item {
  grid-template-columns: 2fr 3fr;
}
.ips-playlist-ratio-1-to-2 .ips-video-list-item {
  grid-template-columns: 1fr 2fr;
}
.ips-playlist-ratio-1-to-3 .ips-video-list-item {
  grid-template-columns: 1fr 3fr;
}

@media (max-width: 768px) {
	.ips-video-playlist .ips-video-list-item {
  		grid-template-columns: 1fr;
        border-left: 5px solid var(--ast-global-color-4);
        padding-left: 15px;
	}
	.ips-video-playlist .ips-video-list-item .ips-video-list-item-info {
  		order: 2;
		margin-top: 0.5em;
	}
}


/* videos-by-country.css */
.ips-video-list {
}
.ips-video-list ul {
  padding: 0;
}



/* video-filter.css */
#ips-taxonomy-filter-form .ips-tax-filter {
  margin-bottom: 40px;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  column-gap: 10px;
}
#ips-taxonomy-filter-form .ips-tax-filter h4 {
  flex-basis: 100%;
  margin: 0;
}
#ips-taxonomy-filter-form .ips-tax-filter-checkbox {
  display: flex;
  flex-wrap: wrap;
}
#ips-taxonomy-filter-form .ips-tax-filter-checkbox label {
  display: block;
  padding: 10px 10px 10px 30px;
  background-image: url(https://client-view.co.uk/leedsdev/wp-content/uploads/2025/03/checkbox.png);
  background-position: 5px center;
  background-repeat: no-repeat;
  background-size: 20px;
  cursor: pointer;
}
#ips-taxonomy-filter-form
  .ips-tax-filter-checkbox
  label:has(input[type="checkbox"]:checked) {
  background-color: var(--ast-global-color-4);
  background-image: url(https://client-view.co.uk/leedsdev/wp-content/uploads/2025/03/checkbox-ticked.png);
}
#ips-taxonomy-filter-form .ips-tax-filter-checkbox input {
  margin-right: 3px;
  vertical-align: middle;
}
#ips-taxonomy-filter-form .ips-tax-filter-checkbox input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
#ips-taxonomy-filter-form li {
  margin-bottom: 0;
}
#ips-taxonomy-filter-form li button {
  line-height: 24px;
}
