:root {
  --r200-white: rgb(255,255,255);
  --r200-dark: rgb(2,10,10);
  --r200-dark-tint: rgba(2,10,10, 0.6);
  --r200-light: rgb(125,125,125); 
  --r200-light-tint: rgba(125,125,125,0.2);
  --r200-primary: rgb(227,06,19); 
  --r200-primary-tint: rgba(227,06,19,0.2); 
  --highlight-yellow: rgb(255,203,71); /* match Sunglow secondary colour */
  --r200-secondary-vividskyblue: rgb(83,216,251);
  --r200-secondary-sunglow: rgb(255,203,71);
  --r200-secondary-emerald: rgb(0,204,119);
  --r200-neon: rgb(207,255,6);
  --r200-departures: rgb(247,242,40);
  --inspiration-past: rgb(245,208,219);
  --inspiration-present: rgb(205,227,203);
  --inspiration-future: rgb(0,173,217); 
  --inspiration-together: rgb(228,227,220);
} 

/* Type */

@font-face {
  font-family:'Rail Alphabet 2 TEXT';
  src:	url('fonts/RailAlphabet2TEXT-RegularWEB.woff')format('woff'),
      url('fonts/RailAlphabet2TEXT-RegularWEB.woff2')format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family:'Rail Alphabet 2 TEXT';
  src:	url('fonts/RailAlphabet2TEXT-ItalicWEB.woff')format('woff'),
      url('fonts/RailAlphabet2TEXT-ItalicWEB.woff2')format('woff2');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family:'Rail Alphabet 2 TEXT';
  src:	url('fonts/RailAlphabet2TEXT-MediumWEB.woff')format('woff'),
      url('fonts/RailAlphabet2TEXT-MediumWEB.woff2')format('woff2');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family:'Rail Alphabet 2 TEXT';
  src:	url('fonts/RailAlphabet2TEXT-MediumItalicWEB.woff')format('woff'),
      url('fonts/RailAlphabet2TEXT-MediumItalicWEB.woff2')format('woff2');
  font-weight: 500;
  font-style: italic;
}

@font-face {
  font-family:'Rail Alphabet 2 TEXT';
  src:	url('fonts/RailAlphabet2TEXT-BoldWEB.woff')format('woff'),
      url('fonts/RailAlphabet2TEXT-BoldWEB.woff2')format('woff2');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family:'Rail Alphabet 2 TEXT';
  src:	url('fonts/RailAlphabet2TEXT-BoldItalicWEB.woff')format('woff'),
      url('fonts/RailAlphabet2TEXT-BoldItalicWEB.woff2')format('woff2');
  font-weight: 500;
  font-style: italic;
}

@font-face {
  font-family:'Dot Matrix';
  src:	url('fonts/DOTMATRI.woff2')format('woff2');
  font-weight: 400;
  font-style: normal;
}

body {
  font-family: "Rail Alphabet 2 TEXT", arial, sans-serif;  
}

h1, h2, .h1, .h2, h2.entry-title {
  font-family: "Rail Alphabet 2 TEXT", arial, sans-serif;  
  font-weight: 700;
  color: var(--r200-dark);
}

h3, h4, .h3, .h4 {
  font-family: "Rail Alphabet 2 TEXT", arial, sans-serif;  
  font-weight: 500;
  color: var(--r200-dark);
}

.entry-content li {
  margin-bottom: 0.5rem;
}

.entry-content a:link, .entry-content a:visited, 
.entry-code a:link, .entry-code a:visited {
  border-bottom: 1px solid var(--r200-dark-tint);
}

.wp-caption .wp-caption-text {
  text-align: left;
  background: var(--r200-light-tint);
  margin: 0;
  padding: 0.5rem;
}

.block-meta {
  color: var(--r200-dark-tint);
}

.block-meta span.dashicons {
  margin-top: 4px;
}

.inline-meta {
  color: var(--r200-dark-tint);
  font-size: 80%;
}

/* Layout & nav overrides */

body:not(.slug-timeline) #route-background {
  display: none;
}

#redline {
  position: fixed;
  width: 50px;
  top: 50px;
  left: 0;
  overflow:hidden;  
  z-index: 1;
  max-width: 50px;
  max-height: 90vh;
}

.redline {
  fill:transparent;
  stroke:#e30613;
  stroke-miterlimit: 10;
  stroke-width: 10px;
  stroke-dashoffset: 1000;
  stroke-dasharray: 1000;
}

.redline-circle {
  fill:#e30613;
  opacity: 0;
}

@media (max-width: 992px) {

  #route-background {
    display: none;
  }
    
}

.site-branding {
  display: inline-block;
}

.site-title, .site-description {
  left: -9999px;  
}

#masthead #logo {
  max-width: 200px;
  max-height: 200px;
  background: white; 
  border: 2px solid transparent !important;
}

#masthead a#logo:focus, #masthead a#logo:active {
  background: white !important; /* avoid SVG display issues */
  border: 2px solid var(--highlight-yellow) !important;
}

#r200-animated-logo {
  width: 200px;
  height: 100px; 
}

#r200-animated-logo .logo-numbers, #r200-animated-logo .logo-tm {
  fill: var(--r200-primary);
}

#r200-animated-logo .logo-circles {
  fill: white;
}

#r200-animated-logo .logo-dynamic  {
  fill: var(--r200-primary);
  animation: 2.5s cubic-bezier(.25, 1, .30, 1) wipe-in-right both;
  animation-delay: 2s;
}

@keyframes wipe-in-right {
  from {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
  }
  to {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

nav {
  font-size: 1.1rem;
}

.main-navigation ul.navbar-nav li {
  font-weight: 700;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

ul.navbar-nav {
  align-items: center;
}

@media (min-width: 992px) {
  .navbar-expand-lg .navbar-nav .nav-link {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

ul.navbar-nav li.current-menu-item,
ul.navbar-nav li.current_page_ancestor {
    color: var(--r200-primary) !important;  
}

ul.navbar-nav li.current_page_item > a,
ul.navbar-nav li.current_page_ancestor > a {
  color: var(--r200-primary) !important;
  border-color: var(--r200-primary) !important;  
}

ul.navbar-nav .dropdown-menu li.current_page_item > a {
  border-color: var(--r200-white) !important;
}

.main-navigation ul.navbar-nav li.current_page_item a {
  color: var(--r200-dark);
  border-color: var(--r200-white);  
}

.nav-utility li.menu-item {
  padding: 0.5rem;  
}

.main-navigation ul ul { /* dropdown */
  border: 0;
  box-shadow: none;
}

.main-navigation ul.navbar-nav li {
  text-align: left;
  padding: 0;  
}

.main-navigation ul ul li a {
  text-align: left !important;
  padding: 0.5rem 1rem;
}

.footer-social {
  line-height: 24px;
}

.footer-social a {
  color: var(--r200-white);
  position: relative;
  top: -2px;
}

@media (max-width: 992px) {
  #masthead {
    display: block;
  }
  
  #masthead .logo {
    display: block;
    width: 100%;
  }
  
  .main-navigation {
    display: block;
    width: 100%;
    padding-right: 0;
  }
  
  ul.navbar-nav li.current-menu-item {
      color: var(--r200-white);  
  }
  
  ul.navbar-nav li.current_page_item a {
      border-color: var(--r200-white); 
  }
  
  ul.navbar-nav li.current_page_item > a, 
  ul.navbar-nav li.current_page_ancestor > a {
     border-color: var(--r200-white) !important;
  }
  
  ul.navbar-nav ul.dropdown-menu li.current_page_item a {
    background: var(--r200-white);
  }
  
  .footer-social {
    padding: 0 1rem;
  }
  
  .main-navigation .offcanvas-logo {
    max-width: 30%;
  }
  
  .main-navigation .offcanvas h3 a {
    padding-left: 0 !important;
  }
  
  .main-navigation ul {
    padding-right: 0 !important;
  }
  
  .main-navigation ul.navbar-nav > li {
    padding: 0;
    border-left: 5px solid var(--r200-primary);
    margin-bottom: 0.75rem;
    background: var(--r200-white);
  }
  
  .offcanvas-body {
    background: var(--r200-light-tint);
  }
  
  .navbar-toggler {
    border: 2px solid var(--r200-primary);
    background: var(--r200-white);
    color: var(--r200-primary);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    padding-right: 1.25rem;
    font-size: 1.4rem;
  }
  .navbar-toggler-icon {
    padding-top: 0.1rem;
    width: 2rem;
    height: 2rem;
  }
}

/* sticky top nav */

.fixed-top {
  top: 0px;
  transition: opacity 1s;
  background-color: white;
  opacity: 0.95;
  box-shadow: 0px 6px 25px -16px rgb(0 0 0 / 75%);
}

body.admin-bar .fixed-top {
  top: 30px;
}

/* component overrides */

.block-promo img:hover, .listing-image img:hover {
  transform: none;
}

.block-promo img, .listing-image img:hover {
  transition: none;
} 

.block-toolkit img:hover {
  transform: none;
} 

.block-toolkit img {
  transition: none;
} 

/* image comparisons */

.caption_blocks div:last-child {
  text-align: right;
}

.promo_title, .promo_teaser, .block-subtitle, .subtitle, .button-cta, .btn {
  text-align: left;
}

.btn-primary, .btn-cta, .btn-group .btn.active {
  background-color: var(--r200-primary);
}

.btn-secondary {
  background-color: var(--r200-light);
  color: var(--r200-white) !important;
  font-weight: bold;
}

.btn-group {
  margin: 1rem 1rem 1rem 0;
}

.btn-group .btn.active {
  font-weight: bold;
  color: var(--r200-white);
}

.btn:link, .btn:visited {
  border: none !important;
  border-radius: 0;
}

.btn-primary:hover, .btn-primary:focus, input.button-cta:hover, input.button-cta:focus, .pseudo-btn-cta span, input.button-cta {
  background: var(--r200-primary);
}

.theme-dark {
  background: var(--r200-dark);
}

.theme-bold {
  background: var(--r200-primary);
}

.theme-bold .block-banner-image .teaser {
  background: var(--r200-primary);
}

.theme-dark .block-banner-image .teaser {
  background: var(--r200-dark);
}

.theme-light .block-banner-image .teaser {
  background: var(--r200-white);
}

.no-banner-image .block-banner-image.overlay h1.block-subtitle,
.no-banner-image .block-banner-image.overlay h2.block-subtitle {
  text-shadow: none !important;
}

.theme-dark .promo_title, 
.theme-dark .panel_title, 
.theme-dark .block-subtitle, 
.theme-dark p,
.theme-bold .promo_title, 
.theme-bold .panel_title, 
.theme-bold .block-subtitle, 
.theme-bold p,
.theme-light .block-banner-image .block-subtitle,
.theme-dark .block-listing a,
.theme-dark .block-listing .entry-title a,
.theme-dark .block-listing .entry-content,
.theme-dark .block-listing .offsite-listing-link,
.theme-dark .listing-description p,
.theme-bold .block-listing .entry-title a,
.theme-bold .block-listing .entry-content,
.theme-bold .block-listing .offsite-listing-link,
.theme-bold .listing-description p {
  color: var(--r200-white);
}

.theme-bold .panel_content a:link,
.theme-dark .panel_content a:link {
  color: var(--r200-white);
  border-bottom-color: var(--r200-white);
}


.theme-dark a:active .promo_title,
.theme-dark a:focus .promo_title,
.theme-bold a:active .promo_title,
.theme-bold a:focus .promo_title {
  color: var(--r200-dark);
}

.theme-dark .btn-primary,
.theme-bold .btn-primary {
  background-color: var(--r200-white);
  color: var(--r200-dark) !important;
}

.theme-light .block-promo .promo_url {
  background: var(--r200-light-tint);
  margin: 1rem;
}

.theme-bold .block-promo .promo_url {
  background: var(--r200-white);
  margin: 1rem;
}

.theme-bold .block-promo .promo_url,
.theme-bold .block-promo .promo_url .promo_title, 
.theme-bold .block-promo .promo_url .block-subtitle, 
.theme-bold .block-promo .promo_url p,
.theme-bold .block-promo .promo-teaser,
.theme-dark .block-promo .promo_url,
.theme-dark .block-promo .promo_url .promo_title, 
.theme-dark .block-promo .promo_url .block-subtitle, 
.theme-dark .block-promo .promo_url p,
.theme-dark .block-promo .promo-teaser {
  color: var(--r200-dark);
}

.theme-bold .block-promo .promo_url,
.theme-dark .block-promo .promo_url {
  background: var(--r200-white);
}



/* Forms */

.gform_wrapper.gravity-theme .gfield {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.gform_wrapper.gravity-theme .gf_progressbar_percentage.percentbar_blue {
  background-color: var(--r200-primary) !important;
}

.gform_page_fields td font {
  font-size: 1rem !important;
}

.gform-theme-button.button, input[type=submit].gform_button {
  border-radius: 0 !important;
}

.gform_next_button.button, input[type=submit].gform_button {
  background: var(--r200-dark) !important;
  color: var(--r200-white) !important;
}

.gform-theme-button.button:focus, .gform-theme-button.button:active,
input[type=submit].gform_button:focus, input[type=submit].gform_button:active {
  background: var(--highlight-yellow) !important;
  color: var(--r200-dark) !important;
}

.gfield_consent_label {
  font-weight: normal;
}

.gform_wrapper.gravity-theme .gfield_consent_description {
  border: 0 !important;
  padding: 0 0 1rem 0 !important;
}

.gform_wrapper.gravity-theme .gfield_consent_description a:link, 
.gform_wrapper.gravity-theme .gfield_consent_description a:visited,
.gform_wrapper.gravity-theme .gfield--type-html a:link,
.gform_wrapper.gravity-theme .gfield--type-html a:visited {
  border-bottom: 1px solid var(--r200-dark-tint);
}

.gform_wrapper.gravity-theme .field_description_below .gfield_consent_description, 
.gform_wrapper.gravity-theme .gfield_consent_description {
  max-height: 100% !important;
  overflow-y: visible !important;
}

.gfield_consent_label {
  font-weight: bold;
}

.gfield_fileupload_filename {
  display: inline-block;
  width: 40%;
  overflow-x: hidden;
}

.gfield_fileupload_filesize {
  display: inline-block;
  width: 20%;
  overflow-x: hidden;
}

.gfield_fileupload_progress {
  display: inline-block;
  width: 30%;
  overflow-x: hidden;
}

.gfield_fileupload_cancel, .gform_delete_file {
  display: inline-block;
  width: 10%;
  overflow-x: hidden;
}

.gfield_fileupload_progressbar_progress {
  background: var(--r200-primary);
}

/* NewZapp signup form */

.ushallnotpass {
  opacity:0;position:absolute;top:0;left:0;height:0;width:0;z-index:-1
}
#newzapp_form_subscribe label {
  display: inline-block;
min-width: 200px;
}
#newzapp_form_subscribe input[type="text"] {
  width: 100%;
}
#newzapp_form_subscribe a {
  color: var(--r200-white);
}
#newzapp_form_subscribe fieldset {
  width: 50%;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--r200-primary);
  color: var(--r200-white) !important;
}

/* custom overrides */

body.slug-timeline .block-image img {
  aspect-ratio: auto;
}

body:not(.slug-timeline) .block-image-text {
  align-items: flex-start;
}

body.slug-timeline .block-image-text {
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* other form styles */

.r200-form input[type="text"] {
  width: 100%;
  margin: 0;
}

.r200-form label {
  padding: 1rem 0 0.5rem 0;
}

.r200-form input[type="submit"] {
  background: var(--r200-dark);
  color: var(--r200-white);
  cursor: pointer;
  border-radius: 0;
  margin-top: 2rem;
  border: 0;
  line-height: 1;
  padding: 0.5em 1em 0.5em;
}

.r200-form .required {
    color: var(--r200-primary);
    display: inline-block;
    font-size: 13px;
    padding-left: 0.125em;
    font-weight: 400;
}

/* Storymap enhanced timeline overlay */

#storymap {
  position: fixed;
  top: 9vh;
  left: 0;
  height: 91vh;
  width: 100vw;
  visibility: hidden;
  z-index: -1;
  background: var(--r200-dark);
}

#storymap-bar {
  position: fixed;
  background: var(--r200-white);
  height: 9vh;
  width: 100%;
  visibility: hidden; /* initially hidden */
  top: 0;
  left: 0;
  z-index: 10000;
  min-height: 65px;
}

#storymap-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

a.storymap-button:link, a.storymap-button:visited {
  color: white;
  background: var(--r200-primary);
  display: inline-block;
  padding: 0.5rem 1rem;
  z-index: 10000;
  font-weight: bold;
}

#storymap-close {
  margin-right: 2rem;
}

#storymap-r200-logo {
  margin-left: 2rem;
  max-width: 100px;
}

/* Hero banner */

.band-hero-banner {
  padding: 0;
}

.block-hero-banner {
  aspect-ratio: 2000/700;
}

.block-hero-banner .hero-line {
  width: 100%;
  height: auto;
  aspect-ratio: 2000/700;
  position: absolute;
}

.block-hero-banner .hero-line-clipped .hero-line {
  z-index: 100;
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}

.block-hero-banner div.hero-background {
   overflow: hidden;
   aspect-ratio: 2000/700;
   position: absolute; 
   right: 0;
   min-height: 35vw; /* to give absolute child space to appear */
   padding-top: 8vw;
}

.block-hero-banner div.hero-background .hero-background-image-slide {
   width: 75vw; /* 75% but then we chop the right side, leaving about 65% visible */
   position: absolute; 
   right: -5vw;
   display: flex;
}

.block-hero-banner .hero-background img {
  border-radius: 2vw;
  aspect-ratio: 510/400;
}

.block-hero-banner div.hero-background .hero-background-image-slide figure {
  width: 32%;
  margin: 0 1vw 0 0;
  overflow: hidden;
}

.block-hero-banner .hero-background .carriage-overlay::before {
  content: '';
  border-radius: 2vw;
  z-index: 10;
  width: 32%;
  height: 100%;
  position: absolute;
  top: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 50%);
}

.block-hero-banner .hero-background .carriage-overlay-credit {
  position: absolute;
  bottom: 0.5vw;
  font-size: 1vw;
  color: var(--r200-white);
  z-index: 1000;
  margin-left: 1vw;
  text-shadow: 0px 0px 2px #000000;
}

.block-hero-banner .teaser {
  background: none;
  font-size: 1.3vw;
  line-height: 1.3;
  width: 27vw;
  padding-top: 8vw;
  padding-left: 7vw;
}

.block-hero-banner .block-subtitle {
  font-size: 2.4vw;
  padding-top: 0;
}

.block-hero-banner p.button-cta {
  z-index: 1000;
  position: relative;
  font-size: 1.4vw !important;
}

@media (max-width: 992px) {
  .block-hero-banner div.hero-background .hero-background-image-slide {
    width: 90vw;
    right: -5vw;
  }
  .block-hero-banner .hero-line {
    width: 110vw;
    margin-left: -10vw;
    margin-right: -10vw;
  }
  .block-hero-banner .teaser {
    font-size: inherit;
    width: 100vw;
    padding: 40vw 3vw 3vw 3vw !important;
  }
  .block-hero-banner .block-subtitle {
    font-size: 2.4rem;
  }
  .block-hero-banner .hero-background .carriage-overlay-credit {
    font-size: 1.8vw;
  }
}

/* Activity map search */

#map {
  width: 100%;
  min-height: 768px;
}

@media (max-width: 992px) {
  #map {
    min-height: 450px;
  }
}

.map-disclaimer {
  font-style: italic;
}

.leaflet-popup-content-wrapper {
  border-radius: 0 !important;
  border-top: 5px solid var(--r200-primary);
  font-family: "Rail Alphabet 2 TEXT", arial, sans-serif;  
}

.leaflet-popup-content img {
  max-width: 100px;
  max-height: 100px;
  margin: 0.5rem 0;  
}

.popupbtn {
  color: white !important;
  background: var(--r200-primary);
  padding: 0.25rem 0.5rem;
  border-radius: 0 !important;
  position: relative;
}

a.leaflet-popup-close-button {
  margin-right: 0.5rem;
  margin-top: 0.75rem;
  font-size: 20px;  
}

#activity-search-container {
  background: var(--r200-light-tint);
  padding: 1rem 2rem 2rem 2rem;
}

#activity-search p {
  margin: 1rem 0 0 0;
}

#activity-search label {
 display: inline;
}

#activity-search input[type=checkbox] {
  transform:scale(1.5,1.5);
  margin-right: 0.5rem;
  margin-left: 0.25rem;
}

p#activity-date-filter, p#activity-origin-filter, p#activity-theme-filter {
  margin-top: 0.25rem;
}

#activity-origin-filter input {
  width: 90%;
}

#activity-date-filter select {
  width: 90%;
}

#activity-theme-filter label {
  font-weight: normal;
  padding: 0.25rem 0 0.25rem 0.25rem;
  display: inline;
}

input#find_activity_submit {
  border-radius: 0 !important;
 background: var(--r200-dark) !important;
  color: var(--r200-white) !important;
}

input#find_activity_submit:focus, input#find_activity_submit:active {
  background: var(--highlight-yellow) !important;
  color: var(--r200-dark) !important;
}

input#find_activity_reset, input#find_activity_submit {
  padding-bottom: 0.6rem;
}

/* dynamic pagination on activity search */

#result-pages {
  padding-bottom: 2rem;
  padding-top: 2rem;
  text-align: center;
}

.result-page {
  display: none;
  height: 0;
  padding-top: 6rem;
}

.result-page-visible {
  display: block;  
  height: auto;
}

.result-page-link {
  background: var(--r200-light-tint);
  min-width: 2rem;
  min-height: 2rem;
  padding: 0.25rem 0;
  margin-bottom: 0.5rem;
  display: inline-block;
  text-align: center;
}

.result-page-link.current-result {
  background: var(--r200-primary);
  color: white;
}

/* Activity post singles */

.activity-thumbnail img {
  margin: 2rem 0;
  max-width: 300px;
  height: auto;
}

.activity-metadata {
  background: var(--r200-light-tint);
  padding: 2rem;
  margin-bottom: 2rem;
}

.activity-theme-pills span {
  background: var(--r200-secondary-emerald);
  padding: 0.25rem 0.5rem;
  color: var(--r200-dark);
  margin-right: 1rem;
  text-transform: uppercase;
  display: inline-block;
  font-size: 80%;
}

/* countdown timer */

#countdown-wrapper {
  background: var(--r200-light-tint);
  padding: 3rem 0;
/*   background: linear-gradient(180deg, var(--r200-secondary-vividskyblue) -50%, rgb(255, 255, 255) 100%); */
}

#countdown-label {
  display: block;
  padding-top: 1.5rem;
  font-size: 1.2rem;
}

#countdown-clock {
  width: 70%;
  position: relative;
  display: inline-block;
  border-radius: 10px;
  border: 5px solid var(--r200-light);
  background: var(--r200-dark);
}

#countdown > div {
  display: inline-block;
  width: 25%;
  text-align: center;
  padding: 0.75rem 0 1rem 0;
  font-size: 1.8rem;
  font-family: 'Dot Matrix', arial, helvetica, sans-serif;
  height: auto;
}

#countdown div span {
  display: inline-block;
  width: 100%;
  text-align: center;
  color: var(--r200-neon);
}

#countdown-clock-close {
  display: inline-block;
  font-size: 1rem;
  position: absolute;
  right: 40px;
}

#countdown-clock-close span {
  display: inline-block;
  font-weight: bold;
  width: 2rem;
  height: 2rem;
  background: var(--r200-dark);
  color: var(--r200-white);
  border-radius: 50%;
  text-align: center;
  padding-top: 0.25rem;
}

@keyframes fadeInOut {
  0% {
    opacity: 0.5;
  }
  25% {
    opacity: 0.9;
  }
  50% {
    opacity: 1;
  }
  75% {
    opacity: 0.9;
  }
  100% {
    opacity: 0.5;
  }
}

#countdown div:last-child span:not(.countdown-label) {
  animation: fadeInOut 1s ease-in-out;	
}

#countdown div span.countdown-label {
  display: block;
  font-size: 0.9rem !important;
  font-weight: normal;
  line-height: 1 !important;
}

@media (max-width: 776px) {
 #countdown-wrapper {
   padding: 1rem 0.5rem 2rem 0;
   text-align: center;
 }
 #countdown > div {
    font-size: 1.4rem;
 }
 #countdown-label {
   padding-top: 0.5rem;
 }
 #countdown-clock-close {
   right: 20px;
   width: 50px;
 }
}

/* Reduced motion accessibility. Elements here are disabled for users with this preference in their browser */

@media (prefers-reduced-motion) {
   #countdown-wrapper {
     display: none;
   }
}

/* Video embed (local) tweaks */

div:has(video) {
  width: 100%;
}

div.wp-video br {
  display: none;
}

.entry-content video {
  width: 100%;
  height: auto;
}

/* Toolkit item tags, Dec 2024 */

.generic-pills span {
  background: var(--r200-secondary-emerald);
  padding: 0.25rem 0.5rem;
  color: var(--r200-dark);
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  display: inline-block;
  font-size: 80%;
}

p.alert a:link, p.alert a:visited {
  border-bottom: 1px solid var(--r200-dark-tint);
}

/* accordions */

.block-accordion .accordion-header:hover {
  cursor: pointer;
}

.accordion-button {
  padding: 1rem 1rem;
  font-size: 1.4rem;
}

.accordion-item:last-of-type .accordion-button.collapsed {
  border-radius: 0;  
}

.accordion-button:not(.collapsed) {
  background: var(--r200-dark);
  color: var(--r200-white);
}

.accordion-button.collapsed {
  background: var(--r200-primary);
  color: var(--r200-white);
}

.accordion-button:after {
  filter: invert(100%) saturate(0) contrast(200%);
}

.accordion-button:focus {
  background: var(--highlight-yellow);
  color: var(--r200-dark);
}

.accordion-button:focus::after {
  filter: invert(0%) saturate(0) contrast(200%);  
}

/* Podcasts */

.block-podcast-listing a {
  display: block;  
  background: var(--r200-light-tint);
  margin-bottom: 0.25rem;
  padding: 0.75rem 1rem;
}

.block-podcast-listing h3 {
  margin: 0;
}

.block-podcast-listing .podcast-teaser {
  margin: 0.5rem 0 0 0;
}

.block-podcast-listing span.dashicons-controls-play {
  position: relative;
  top: 5px;
  color: white;
  background: var(--r200-primary);
  border-radius: 50%;
  padding: 0 0.1rem;
  margin-right: 0.5rem;
}

/* article.podcast iframe {
  width: 100%; 
  height: auto;
  aspect-ratio:1.78/1
} */

.podcast-navigation a {
  background: var(--r200-primary);
  color: white;
  padding: 2rem;
  display: block;
  min-height: 100%;
}

/* Inspiration departures and singles */

.location-metadata {
  background: var(--inspiration-present);
  padding: 2rem;
  margin-bottom: 2rem;
}  

.location-metadata p.location-meta {
  font-size: 80%;
  margin-top: -0.5em;
}

.location-thumbnail img {
  margin:  0;
  max-width: 300px;
  height: auto;
}

.locations-listing {
  background: var(--r200-dark);
}

.block-locations-listing {
  font-family: 'Dot Matrix', arial, helvetica, sans-serif;
  color: var(--r200-departures);
  margin-top: 2rem;
}
 
table.block-locations-listing {
   border: 5px solid var(--r200-light);
   border-spacing: 0;
   border-collapse: separate;
   border-radius: 10px;
}

.block-locations-listing th {
  font-weight: bold;
  text-transform: uppercase;
}

table.block-locations-listing>thead>tr:not(:last-child)>th,
table.block-locations-listing>thead>tr:not(:last-child)>td,
table.block-locations-listing>tbody>tr:not(:last-child)>th,
table.block-locations-listing>tbody>tr:not(:last-child)>td,
table.block-locations-listing>tfoot>tr:not(:last-child)>th,
table.block-locations-listing>tfoot>tr:not(:last-child)>td,
table.block-locations-listing>tr:not(:last-child)>td,
table.block-locations-listing>tr:not(:last-child)>th,
table.block-locations-listing>thead:not(:last-child),
table.block-locations-listing>tbody:not(:last-child),
table.block-locations-listing>tfoot:not(:last-child) {
   border-bottom: 2px dotted var(--r200-light);
}

.block-locations-listing td, .block-locations-listing th {
  padding: 0.25rem 1rem;
}

.block-locations-listing span.location-booking {
  background: var(--r200-secondary-emerald);
  color: var(--r200-dark);
  display: inline-block;
  padding: 0.25rem 0.75rem;
  text-transform: uppercase;
}

.block-locations-listing span.location-interest {
  background: var(--r200-secondary-vividskyblue);
  color: var(--r200-dark);
  display: inline-block;
  padding: 0.25rem 0.75rem;
  text-transform: uppercase;
}

.block-locations-listing span.location-lastfew {
  background: var(--r200-secondary-sunglow);
  color: var(--r200-dark);
  display: inline-block;
  padding: 0.25rem 0.75rem;
  text-transform: uppercase;
}

.block-locations-listing span.location-soldout, .block-locations-listing span.location-full, .block-locations-listing span.location-checklater {
  background: var( --r200-primary);
  color: var(--r200-dark);
  display: inline-block;
  padding: 0.25rem 0.75rem;
  text-transform: uppercase;
}

.block-locations-listing span.location-cancelled {
  background: var(--r200-primary);
  color: var(--r200-white);
  display: inline-block;
  padding: 0.25rem 0.75rem;
  text-transform: uppercase;
}

.block-locations-listing span.location-past {
  background: var(--r200-dark);
  color: var(--r200-white);
  display: inline-block;
  padding: 0.25rem 0;
  text-transform: uppercase;
}

.block-locations-listing a:focus, .block-locations-listing a:hover {
  background: var(--highlight-yellow) !important;
  color: var(--r200-dark) !important;
}

.block-locations-listing a:focus span, .block-locations-listing a:hover span {
  background: inherit;
  color: inherit;
}

@media (max-width: 776px) {
  .block-locations-listing td:nth-child(1), .block-locations-listing th:nth-child(1) {
    width: 40vw;
    font-size: 90%;
  }
  .block-locations-listing td:nth-child(2), .block-locations-listing th:nth-child(2) {
    width: 30vw;
    font-size: 90%;
  }
  .block-locations-listing td:nth-child(3), .block-locations-listing th:nth-child(3) {
    width: 20vw;
    font-size: 90%;
  }
}

/* Grid-style listings */

.flex-grid .promo-teaser {
  display: none;
}

.flex-grid .promo_image {
  max-height: 312px;
  overflow: hidden;  
}

.theme-light .flex-grid {
  padding-bottom: 2rem;
}

.theme-light .flex-grid .promo_url {
  margin: 1rem 0;
}


.flex-grid .promo_image img {
  clip-path: rect(0 600px 312px 0);
}

@media (max-width: 1400px) {
  .flex-grid .promo_image {
    max-height: 221px;
    overflow: hidden;  
  }
  .flex-grid .promo_image img {
    clip-path: rect(0 600px 221px 0);
  }
}

@media (max-width: 992px) {
  .flex-grid .promo_image {
    max-height: 162px;
    overflow: hidden;  
  }
  .flex-grid .promo_image img {
    clip-path: rect(0 600px 162px 0);
  }
}

@media (max-width: 768px) {
  .flex-grid .promo_image {
    max-height: 100%;  
  }
  .flex-grid .promo_image img {
    clip-path: none;
  }
}

/* Blog single metadata */

.blog-meta-avatar {
  width: 70px;
  height: 70px;
  margin-right: 1rem;
}

/* Future of Rail card filter */

.block-promo {
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 1;
}

.block-promo.hide {
  opacity: 0.4;
  filter: grayscale(100%);
  pointer-events: none; /* Optional: make them non-clickable */
  transition: all 0.3s ease;
}

/* .card-listing .block-promo p.promo_teaser {
  display: none;
} */

#card_filter {
  padding: 0.5rem 1rem;
  border-radius: 1.5rem;
  border-width: 1px;
  font-size: 1.2rem;
}

ul#card_suggestions {
  margin: 0;
  padding: 0;
}

#card-filter-container-row {
  position: relative;  
}

.autocomplete-suggestions {
  position: absolute;
  top: 3rem;
  left: 1.25rem;
  background: white;
  max-height: 200px;
  overflow-y: auto;
  width: auto;
  z-index: 1000;
  list-style: none;
  padding: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.autocomplete-suggestions li {
  margin: 0 !important;
  cursor: pointer;
}

.autocomplete-suggestions li a {
  padding: 0.5rem;  
  display: block;
}

.autocomplete-suggestions li:hover,
.autocomplete-suggestions li:focus {
  background-color: var(--highlight-yellow);
}

.autocomplete-suggestions a.active {
  background-color: var(--highlight-yellow);
  color: #333;
}

/* 27 Sep page */

.slug-27-september .promo_title {
  font-size: 1.4rem;
  line-height: 1.3;
}