/**
 * Helper function for downsize mixin.
 */
/**
 * Downsize a CSS property using the viewport to affect calc().
 *
 * @param {string} $property: The property to be affected.
 * @param {string|list} $min: The min value / values.
 * @param {string|list} $max: The max value / values.
 * @param {string} $viewport: The biggest viewport, which the property must be calculated.
 * @param {boolean} $default: True if the default property must be set, regardless of the viewport size.
 * @param {list} $static-min: A list containing the min viewport and the min value.
 */
.james-search {
  display: block;
  color: red;
}

.james-search-input {
  position: relative;
}

.james-search-box {
  display: none;
  position: fixed;
  margin-top: 1px;
  border: 1px solid #eee;
  background-color: #fff;
  z-index: 10000;
  max-width: 600px;
  max-height: 480px;
  overflow-y: auto;
}

.james-search-box.focus,
.james-search-box.active {
  display: block;
}

.james-search-box.empty {
  display: none !important;
}

.james-search-box ul,
.james-search-box ol {
  display: block;
  list-style: none;
  padding: 0;
  margin: 0;
}

* + .james-search-box ul,
* + .james-search-box ol {
  border-top: 1px solid #eee;
}

.james-search-box .thumb {
  position: relative;
  float: left;
  margin-right: 15px;
  max-width: 60px;
  max-height: 60px;
}

.james-search-box .title {
  font-size: 1.2em;
  font-weight: bold;
}

.james-search-box b {
  color: #f00;
}

.james-search-box .link {
  display: block;
  position: relative;
  padding: 10px 15px;
  color: inherit;
}

.james-search-box .link.selected {
  background-color: #eee;
}

.james-search-box .link:after {
  content: "";
  display: block;
  clear: both;
}

.james-search-autosuggest-link {
  padding: 5px 15px;
}

.james-search-category-title {
  padding: 10px 15px;
  font-size: 1.4em;
  font-weight: bold;
  color: inherit;
  display: block;
}

.james-search-category-title .total {
  display: inline-block;
  border-radius: 30px;
  background-color: #eee;
  padding: 5px 10px;
  margin-left: 10px;
  text-decoration: none;
}

* + .james-search-category-title {
  border-top: 1px solid #eee;
}

.james-search-more-link {
  display: block;
  padding: 10px 15px;
}

.james-search-form .input-group .james-search-input {
  color: #ffffff;
  border-color: #9A9A9A;
  border-radius: 56px !important;
  font-size: 1rem;
  padding: 12px 50px 12px 60px;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)), #272727;
}
.james-search-form .input-group .james-search-input::-moz-placeholder {
  color: #E7E7E7;
}
.james-search-form .input-group .james-search-input::placeholder {
  color: #E7E7E7;
}
.james-search-form .input-group .james-search-input:focus, .james-search-form .input-group .james-search-input.filled {
  border-color: #ffffff;
}
.james-search-form .input-group .james-search-input.filled + .btn-input-clear .icon {
  opacity: 1;
}
.james-search-form .input-group .btn-input-submit,
.james-search-form .input-group .btn-input-clear {
  position: absolute;
  height: 100%;
  right: 0px;
  z-index: 20;
  display: flex;
  align-items: center;
}
.james-search-form .input-group .btn-input-submit {
  right: auto;
  left: 0;
}
.james-search-form .input-group .btn-input-clear {
  right: 0;
}
.james-search-form .input-group .btn-input-clear .icon {
  background-color: #000000;
  color: #ffffff;
  border-radius: 50%;
  padding: 2px;
  opacity: 0;
}
.james-search-form .input-group .btn-input-submit .icon {
  color: #E7E7E7;
}

.james-search-box {
  --scrollbar-thumb-color: #545454;
  --scrollbar-track-color: #222;
  --scrollbar-border-radius: 6px;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb-color) var(--scrollbar-track-color);
  border: 0;
  max-height: 70vh;
  border-radius: 5px;
  box-shadow: 0 8px 10px 0 rgba(0, 0, 0, 0.1);
}
.james-search-box::-webkit-scrollbar {
  width: var(--scrollbar-border-radius);
}
.james-search-box::-webkit-scrollbar-track {
  background: var(--scrollbar-track-color);
  border-radius: var(--scrollbar-border-radius);
}
.james-search-box::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb-color);
  border-radius: var(--scrollbar-border-radius);
}
@media (min-width: 992px) {
  .james-search-box {
    margin-top: 2px;
  }
}
.james-search-box > .container {
  position: relative;
}
.james-search-box .link {
  position: relative;
  border-left: 5px solid transparent;
}
.james-search-box .link[data-group=event] {
  height: 100%;
}
.james-search-box .link:after {
  position: absolute;
  content: "";
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.8);
  z-index: -1;
  opacity: 0;
  transition: all 250ms ease-in-out;
}
.james-search-box .link:hover, .james-search-box .link.selected {
  z-index: 10;
  border-left: 5px solid #B60404;
  background: #444444;
}
.james-search-box .link:hover:after, .james-search-box .link.selected:after {
  z-index: -1;
  opacity: 0.2;
}
.james-search-box.header-suggest-box {
  background: #363636;
  transition: top 250ms ease-in-out;
  top: var(--suggest-box-top, 0) !important;
  margin-top: 0;
  width: 100%;
  border-radius: 0;
}
.james-search-box.header-suggest-box ul {
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb-color) var(--scrollbar-track-color);
}
@media (min-width: 1200px) {
  .james-search-box.header-suggest-box ul {
    max-height: 44vh;
  }
}
@media (min-width: 1025px) {
  .james-search-box.header-suggest-box ul {
    overflow-y: scroll;
  }
}
.james-search-box.header-suggest-box ul::-webkit-scrollbar {
  width: var(--scrollbar-border-radius);
}
.james-search-box.header-suggest-box ul::-webkit-scrollbar-track {
  background: var(--scrollbar-track-color);
  border-radius: var(--scrollbar-border-radius);
}
.james-search-box.header-suggest-box ul::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb-color);
  border-radius: var(--scrollbar-border-radius);
}
.james-search-box.header-suggest-box ul li {
  margin-bottom: 10px;
}
.james-search-box.header-suggest-box.focus, .james-search-box.header-suggest-box.active {
  max-width: 100vw !important;
  width: 100% !important;
  left: 0% !important;
}
.james-search-box.header-suggest-box.focus li, .james-search-box.header-suggest-box.active li {
  display: block;
}
.james-search-box.header-suggest-box .content li a {
  min-height: 84px;
}
.james-search-box.header-suggest-box .content .title {
  line-height: 1.2;
}
.james-search-box.header-suggest-box .content .text {
  font-size: 1rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.james-search-box.header-suggest-box a.link {
  padding: 10px;
}
.james-search-box.header-suggest-box ul, .james-search-box.header-suggest-box ol {
  border: none;
}
@media (min-width: 992px) {
  .james-search-box.header-suggest-box {
    border-radius: 0;
  }
}
@media (max-width: 991.98px) {
  .james-search-box {
    box-shadow: none;
  }
  .james-search-box.header-suggest-box {
    height: 100vh;
    padding-bottom: 100px;
  }
}
@media (max-width: 991.98px) and (min-height: 600px) {
  .james-search-box.header-suggest-box {
    height: calc(100vh - 225px);
  }
}
.james-search-box a {
  transition: all 250ms linear;
}
.james-search-box .james-search-category-link:hover {
  text-decoration: none;
}
.james-search-box .james-search-category-title {
  line-height: 32px;
}
.james-search-box .james-search-category-title:hover {
  opacity: 0.8;
}
.james-search-box .james-search-category-title .total {
  padding: 0;
  background: transparent;
  margin: 0;
}
.james-search-box .james-search-more-link {
  padding: 8px 20px 20px 8px;
  margin-top: 20px;
  font-size: 1rem;
}
.james-search-box .james-search-more-link:hover span {
  position: relative;
}
.james-search-box .james-search-more-link:hover span::after {
  position: absolute;
  top: 100%;
  content: "";
  display: block;
  height: 1px;
  background: #ffffff;
  width: 100%;
}
.james-search-box .event .thumb {
  max-width: 75px;
  max-height: 50px;
}
@media (min-width: 992px) {
  .james-search-box .event .thumb {
    max-width: 140px;
    max-height: 70px;
  }
}
.james-search-box .event .thumb img {
  max-width: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}
.james-search-box .event .title {
  line-height: 1.2;
  margin-left: 90px;
}
@media (min-width: 992px) {
  .james-search-box .event .title {
    margin-left: 119px;
  }
}
.james-search-box .event .text {
  font-size: 1rem;
  margin-left: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 992px) {
  .james-search-box .event .text {
    margin-left: 119px;
  }
}
@media (min-width: 992px) {
  .james-search-box .row.g-0 > * {
    height: 100%;
  }
  .james-search-box .event,
  .james-search-box .content {
    padding-bottom: 60px;
  }
  .james-search-box .event .james-search-more-link,
  .james-search-box .content .james-search-more-link {
    position: absolute;
    bottom: 0;
  }
}
.james-search-box .thumb img {
  max-width: 100%;
}
.james-search-box .james-search-result-link {
  display: flex;
  align-items: center;
}
.james-search-box .james-search-result-link:hover {
  text-decoration: none;
  opacity: 0.8;
}
.james-search-box .james-search-result-link .thumb {
  -o-object-fit: cover;
     object-fit: cover;
}
.james-search-box .james-search-result-link .title {
  color: #444444;
  font-size: 16px;
  font-weight: 500;
}

.james-search-field-wrapper {
  padding: 0 15px;
}
#header .james-search-field-wrapper {
  width: 360px;
  max-width: 100%;
}
@media (max-width: 991.98px) {
  #header .james-search-field-wrapper {
    width: 100%;
  }
}

#header .james-align {
  flex-basis: 100%;
  max-height: 0px;
  overflow: hidden;
  background: #272727;
  transition: max-height 200ms ease-out;
}
@media (min-width: 992px) {
  #header .james-align {
    flex-basis: auto;
    overflow: visible;
    background: none;
    max-height: none;
    transition: none;
  }
}
@media (min-width: 1400px) {
  #header .nav-actions {
    min-width: 400px;
    justify-content: flex-end;
  }
}
#header #james-search-header {
  height: 100%;
  transition: all 200ms ease-in-out;
}
@media (min-width: 992px) {
  #header .nav-link {
    position: relative;
    top: 0;
    opacity: 1;
    transition: all 150ms ease-in-out;
  }
}
#header .link {
  background: #F8F8F8;
}
#header .navbar-nav > .nav-item > .nav-link {
  top: 0;
  opacity: 1;
}
#header.search-open .james-align {
  max-height: 58px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1), 0px 2px 4px rgba(0, 0, 0, 0.08);
}
@media (min-width: 992px) {
  #header.search-open .james-align {
    max-height: none;
    box-shadow: none;
  }
}
#header.search-open .james-search-field-wrapper {
  visibility: visible;
  padding: 0 15px;
}
#header.search-open #james-search-header {
  margin-top: 0;
  opacity: 1;
}
#header.search-open .navbar-nav > .nav-item > .nav-link {
  top: -12px;
  opacity: 0;
}
#header.search-open .james-search-field-wrapper {
  visibility: visible;
}
#header.search-open #james-search-header {
  right: 0;
}
@media (min-width: 1200px) {
  #header.search-open #james-search-header {
    right: auto;
  }
}
@media (max-width: 991.98px) {
  #header.search-open::after {
    display: block;
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    height: 60px;
    background-color: #272727;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1), 0px 2px 4px rgba(0, 0, 0, 0.08);
  }
}
#header .james-search-field-wrapper {
  width: 400px;
  z-index: 2;
  max-width: 100vw;
}
@media (min-width: 1200px) {
  #header .james-search-field-wrapper {
    align-items: center;
    max-width: 100vw;
  }
}
#header .james-search-field-wrapper .btn-input-submit {
  color: #ffffff;
}
#header #james-search-form {
  width: 100%;
}

.james-search-box .event .link {
  line-height: 1.3;
}
.james-search-box .event .link .date {
  display: flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 700;
}
.james-search-box .event .link .date .old_date {
  color: #9A9A9A;
  text-decoration: line-through;
}
.james-search-box .event .link .date .new_date {
  color: #33AD64;
}

.body-suggest-box {
  box-shadow: 0px 28px 44px rgba(0, 0, 0, 0.25), 0px 19px 44px rgba(0, 0, 0, 0.15);
  max-height: 520px;
  margin-top: 0;
  z-index: 10;
}
@media (min-width: 992px) {
  .body-suggest-box .event .col-lg-6:nth-child(odd) {
    border-right: 1px solid #B8B8B8;
  }
}
.body-suggest-box ul,
.body-suggest-box ol {
  border-top: none;
  margin-right: calc(var(--bs-gutter-x) * -0.5);
  margin-left: calc(var(--bs-gutter-x) * -0.5);
}
.body-suggest-box ul .link,
.body-suggest-box ol .link {
  padding: 10px 10px;
}
.body-suggest-box ul.content {
  margin-bottom: 1em;
}
.body-suggest-box .module-header p.header {
  font-size: 1.5rem;
}

#james-search-events {
  box-shadow: 0px 0px 22px rgba(0, 0, 0, 0.18);
  z-index: 11;
  position: relative;
}
#james-search-events input.james-search-input {
  border-radius: 0 !important;
  background: #ffffff;
  padding: 15px 1rem;
  color: #000000;
  padding-right: 50px;
  border: 0;
  font-size: var(--body-font-size);
}
#james-search-events .btn-input-clear {
  right: 0;
}
