:root {
  --ltlo-white: rgb(255,255,255);
  --ltlo-black: rgb(14,13,19);
  --ltlo-dark: rgb(81,81,81);
  --ltlo-dark-tint: rgb(115,115,115);
  --ltlo-light: rgb(230,231,230); 
  --ltlo-light-tint: rgba(230,231,230,0.2);
  --ltlo-primary: rgb(209,21,60); 
  --ltlo-primary-tint: rgba(209,21,60,0.5); 
  --highlight-yellow: rgb(230,231,230);
} 

/* Type */

body {
  font-family: "Public Sans", arial, sans-serif;  
  background: var(--ltlo-light-tint);
}

h1, h2, .h1, .h2, h2.entry-title, #site-navigation {
  font-family: "Public Sans", arial, sans-serif;  
  font-weight: 700;
  color: var(--ltlo-dark);
}

h1, .h1 {
  font-size: 2.6rem;
}

h3, h4, .h3, .h4 {
  font-family: "Public Sans", arial, sans-serif;  
  font-weight: 700;
  color: var(--ltlo-dark);
}

h1.entry-title {
  text-align: center;
}

h2, .h2 {
  font-size: 2.2rem;
}

h3, .h3 {
  font-size: 1.8rem;
}

.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: 3px solid var(--ltlo-primary-tint);
}

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

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

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

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

/* Layout & nav overrides */

#site-branding {
  display: inline-block;
  margin: 0.5rem 0 !important;
}

#masthead {
  background: var(--ltlo-dark);
  color: white;
}

.main-navigation ul.navbar-nav a:link, .main-navigation ul.navbar-nav a:visited {
  color: var(--ltlo-white);
}
.main-navigation ul.navbar-nav li.current-menu-item {
  color: var(--ltlo-white);
}
.main-navigation ul.navbar-nav li.current_page_item a {
  border-bottom-color: var(--ltlo-white);
}

#site-title h1, #site-title h2 {
  color: var(--ltlo-white);
  margin: 1rem 3rem;
  font-size: 1.8rem;
}

#masthead #logo {
  border: 2px solid transparent !important;
}

@media (min-width: 992px) {
  #masthead #logo {
    position: relative;
    z-index: 10000;
  }
  #masthead #logo img {
    height: 150px;
    width: 150px;  
    max-width: inherit;
  }
}

#masthead a#logo:focus, #masthead a#logo:active {
  background: var(--ltlo-primary) !important;
  border: 2px solid var(--highlight-yellow) !important;
}

nav {
  font-size: 1.5rem;
  z-index: 1000;
}

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

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

ul.navbar-nav li.current-menu-item {
  color: var(--ltlo-primary);  
}

ul.navbar-nav li.current_page_item a {
  border-color: var(--ltlo-primary);  
}

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

footer {
  background: var(--ltlo-dark);
}

#footer-copyright * {
  color: var(--ltlo-white);
}

@media (max-width: 992px) {
  #masthead {
    display: block;
  }
  
  #masthead .logo {
    display: block;
    width: 100%;
  }
 
  #masthead #logo img {
    max-height: 100px;
    max-width: 100px;  
  }
  .main-navigation {
    display: block;
    width: 100%;
    padding-right: 0;
  }
  
  .main-navigation ul.navbar-nav a:link, .main-navigation ul.navbar-nav a:visited {
      color: var(--ltlo-dark); 
   }
  
  .main-navigation ul.navbar-nav li.current-menu-item {
      color: var(--ltlo-white);
      background: var(--ltlo-dark);  
  }
  
  .main-navigation ul.navbar-nav li.current_page_item a {
      color: var(--ltlo-white); 
      border-color: var(--ltlo-dark);
      background: var(--ltlo-dark); 
  }
  
  .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(--ltlo-primary);
    margin-bottom: 0.75rem;
    background: var(--ltlo-white);
  }
  
  .offcanvas-body {
    background: var(--ltlo-light-tint);
  }
  
  .navbar-toggler {
    border: 2px solid var(--ltlo-primary);
    background: var(--ltlo-white);
    color: var(--ltlo-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;
  }
  .block-banner-image {
    height: 60vw !important;
  }
}

/* sticky top nav */

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

.fixed-top #logo img {
  height: 75px !important;
  width: 75px !important;
  transition: all .5s linear;
}

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(--ltlo-primary);
  color: white !important;
}

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

.btn-group .btn.active {
  font-weight: bold;
  color: var(--ltlo-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(--ltlo-primary);
}

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

.theme-bold {
  background: var(--ltlo-primary);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;
}

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

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

.theme-light .block-banner-image .teaser {
  background: var(--ltlo-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-dark li,
.theme-dark a,
.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-bold .block-listing .entry-title a,
.theme-bold .block-listing .entry-content,
.theme-bold .block-listing .offsite-listing-link {
  color: var(--ltlo-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(--ltlo-dark);
}

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

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

.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 {
  color: var(--ltlo-dark);
}

.block-image-text {
  align-items: start;
}

.block-image {
/*   padding-top: 1rem; */
}

h2.block-subtitle {
  padding-top: 0;
}

/* Forms */

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

.gform_wrapper.gravity-theme .gf_progressbar_percentage.percentbar_blue {
  background-color: var(--ltlo-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(--ltlo-dark) !important;
  color: var(--ltlo-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(--ltlo-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(--ltlo-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 a:link, .gfield a:visited {
  border-bottom: 3px solid var(--ltlo-primary-tint) !important;
}

/* other form styles */

.gform-theme--framework .ltlo-form input[type="text"] {
  width: 100%;
  margin: 0;
}

.gform-theme--framework .ltlo-form label {
  padding: 0.5rem 0 0.5rem 0;
}

.gform-theme--framework .ltlo-form .gfield-choice-input,
.gform-theme--framework .ltlo-form .ginput_container_consent input {
  margin-top: 0.75rem;
}

.gform-theme--framework .ltlo-form .gfield_label,
.gform-theme--framework .ltlo-form .gform-field-label--type-inline {
  font-size: 1.4rem;
}

.gform-theme--framework .ltlo-form .gfield_description {
  font-size: 1.1rem;
}

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

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

.gform-theme--framework .ltlo-form .gf_progressbar .percentbar_blue {
    background-color: var(--ltlo-primary); 
}

.gform_confirmation_message {
  color: white !important;
  margin-left: -2rem;
}

/* 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(--ltlo-primary);
}

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

.popupbtn {
  color: white !important;
  background: var(--ltlo-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(--ltlo-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(--ltlo-dark) !important;
  color: var(--ltlo-white) !important;
}

input#find_activity_submit:focus, input#find_activity_submit:active {
  background: var(--highlight-yellow) !important;
  color: var(--ltlo-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: flex;  
  display: none;
  height: 0;
}

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

.result-page-link {
  background: var(--ltlo-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(--ltlo-primary);
  color: white;
}

#live-search-container {
  margin: 0;
  padding: 1rem;
  background: var(--ltlo-light-tint);
}

#live-search-container input {
  margin: 1rem 0;
}

#live-search-results ul {
  margin: 0;
  padding: 0;  
}

#live-search-results li {
 list-style: none;
}

#live-search-results li a {
  display: block !important;
}

#live-search-results .promo_image {
  display: none;
}

/* Activity post singles */

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

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

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


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

@media (prefers-reduced-motion) {
}

/* Video embed (local) tweaks */

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

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

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


/* VE Day overrides */

.block-banner-image.overlay h1.block-subtitle, .band:not(.has-teaser) .block-banner-image.overlay h2.block-subtitle {
  text-shadow: none;
  color: var(--ltlo-white);
  padding: 0.5rem 1rem;
  border: 4px solid var(--ltlo-white);
}

.theme-dark .promo_url:hover *, .theme-dark .promo_url:focus * {
     color: var(--ltlo-dark);
}

.gform-theme--foundation .gform_footer {
  display: block !important;
}

.gform_wrapper {
  --gf-font-size-secondary: 18px !important;
  --gf-font-size-tertiary: 16px !important;
}

.theme-bold .gfield_label, .theme-bold label, .theme-bold .gfield_required_text, .theme-bold .gfield_description,
.theme-dark .gfield_label, .theme-dark label, .theme-dark .gfield_required_text, .theme-dark .gfield_description {
  --gf-local-color: var(--ltlo-white) !important;
  --gf-ctrl-label-color-req: var(--ltlo-white) !important;
}

.theme-bold .gform_button,
.theme-dark .gform_button {
  --gf-local-border-color: var(--ltlo-white) !important;
}

.letter-listing .promo_text, .letter-listing .promo_teaser, article.letter .promo_text, article.letter .promo_teaser {
  margin: 1rem 0;
  padding: 0;
}

p.alert {
  margin-bottom: 0;
}

p.alert a {
  border-bottom: 3px solid var(--ltlo-primary-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(--ltlo-dark);
  color: var(--ltlo-white);
}

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

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

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

.theme-bold .accordion-body p, .theme-dark .accordion-body p {
  color: var(--ltlo-primary);
}

.theme-bold .accordion-header {
  background: var(--ltlo-white);
  color: var(--ltlo-primary);
}

.block-promo {
  margin: 0.75rem 0;
}

.theme-dark .block-promo a {
  background: var(--ltlo-white);
  color: var(--ltlo-primary);
}

.theme-dark .promo_title, .theme-dark p {
  color: var(--ltlo-primary);
}

.theme-dark .panel_wrapper {
  background: var(--ltlo-white);
}

.theme-dark .panel_title {
  color: var(--ltlo-primary);
  padding: 0.5rem 1.5rem;
}

.theme-dark .panel_content_wrapper {
  padding: 0.5rem 1.5rem 1.5rem 1.5rem;
}

/* LTLO */

.flex-grid .promo_image {
  max-height: 312px;
  overflow: hidden;  
}
.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;
  }
}

.letter-quote blockquote {
  border-left: none;
  font-size: 1.6rem;
  font-style: italic;
  text-align: center;
}

.block-promo span.offsite-listing-link {
  display: inline-block;
  margin: 0.5rem 0.5rem 0 0.5rem;
}

.block-promo span.offsite-listing-link+h3.promo_title {
  padding-top: 0 !important;
}

a.yt-watch-link {
  border-bottom: none !important;
}

.letter-excerpt { /* quote from letter */
}

.letter-transcript { 
  background: var(--ltlo-light-tint);
  padding: 2rem;
}

.letter-transcript span {
  color: var(--ltlo-dark-tint);
  font-size: 80%;
  display: block;
  margin-bottom: 1rem;
}

.letter-listing-location, .letter-listing-date, .letter-listing-sender, .letter-listing-recipient {
  font-size: 80%;
  margin: 0.5rem 0; 
}

.letter-location, .letter-date, .letter-sender, .letter-recipient, .letter-tags, .letter-contributor {
  font-size: 80%;
  padding: 1rem;
}

.letter-location span,
.letter-date span,
.letter-sender span,
.letter-recipient span,
.letter-listing-location span, 
.letter-listing-date span, 
.letter-listing-sender span, 
.letter-listing-recipient span,
.letter-tags span,
.letter-contributor span {
  color: var(--ltlo-primary);
}

.letter-metadata {
  margin: 1rem 0;
}

.letter-pages {
  display: inline-block;
  padding: 2rem 0;
}

.letter-page {
  border: 1px solid var(--ltlo-dark-tint);
  padding: 0.5rem;
  background: var(--ltlo-white);
  display: inline-block;
  margin: 0 1rem 1rem 0;
}

span.letter-page-enlarge {
  display: block;
  padding: 0.5rem 0;
  font-size: 80%;
}

.filter-panel h3, .filter-panel a, .filter-panel p {
  color: var(--ltlo-white);
}

.filter-panel a {
  border-bottom: 3px solid var(--ltlo-white);
}

.sender-thumbnail img {
  max-height: 70vh;
}

.letter-page img {
  max-width: 25vw;  
}

.image-sender {
  position: absolute;
  top: 10px;      /* distance from top of main image */
  left: 10px;     /* distance from left of main image */
  width: 80px;    /* control size of overlay here */
  border: 3px solid #fff;    /* white border */
  box-shadow: 0 0 6px rgba(0,0,0,0.2); /* optional subtle shadow */
  transform: rotate(-3deg);  /* slight rotation; adjust as needed */
  transform-origin: center;  /* rotate around center */
  width: 100px;
  height: auto;
}

.image-letter {
  display: block;
  max-width: 100%;
  height: auto;
}

.block-listing .listing_url:hover .image-sender {
  left: calc(10px + 1rem);
}

span.transcriptionflag {
  color: var(--ltlo-primary);
  font-size: 1.8rem;
  margin-right: 1rem;
  margin-top: 2px;
}

#queue-stats {
  text-align: center;
  font-size: 1.8rem;
  color: var(--ltlo-white);
  background: var(--ltlo-primary);
  padding: 0.5rem 1rem;
}

#queue-stats a {
  color: var(--ltlo-white) !important;
  text-decoration: underline;  
}

.transcriber {
  font-size: 80%;
}

.ltlo-logos {
  max-width: 700px;
  height: auto;
  margin-bottom: 50px;
}

@media (max-width: 996px) {
  .block-banner-image.overlay h1.block-subtitle, .band:not(.has-teaser) .block-banner-image.overlay h2.block-subtitle, .pseudo-block-subtitle, h2.block-subtitle {
      font-size: 2rem;
  }
}

/* override for YT embeds in image+text components */
.block-image-text .entry-content {
    width: 100%;
}

/* switcher */

@media (min-width: 992px) {
  .alert-banner p {
    display: inline-block;
  }
  .trp-shortcode-switcher__wrapper {
    display: inline-block;
    margin-left: 2rem;
  }
  .trp-shortcode-switcher {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .alert-banner .col-12 {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 991px) {
  .alert-banner p  {
    text-align: left;
    margin-bottom: 1rem;
  }
  
  .trp-shortcode-switcher__wrapper {
    display: inline-block;
    margin-top: 1rem;
    text-align: left;
  }
}


