/**
 * EY8MM site template.
 *
 * Reproduces the look of the YOOtheme "Aurora" design (Warp 7 / UIkit 2) that the
 * Joomla 3 site used, on top of Bootstrap 5 as shipped with Joomla 6.
 * Values were measured on the old site; keep them in sync with the variables below.
 */

:root {
  --tm-font: "Roboto", Helvetica, Arial, sans-serif;
  --tm-text: #666;
  --tm-heading: #333;
  --tm-link: #668cc6;
  --tm-link-hover: #546b8e;
  --tm-primary: #546b8e;
  --tm-muted-bg: #fafafa;
  --tm-line: rgba(0, 0, 0, 0.05);
  --tm-sidebar-bg: #3d3e50;
  --tm-gutter: 40px;
  --tm-space: 60px;

  --bs-body-font-family: var(--tm-font);
  --bs-body-font-size: 15px;
  --bs-body-font-weight: 300;
  --bs-body-line-height: 22px;
  --bs-body-color: var(--tm-text);
  --bs-body-bg: #f9f9f7;
  --bs-link-color: var(--tm-link);
  --bs-link-color-rgb: 102, 140, 198;
  --bs-link-hover-color: var(--tm-link-hover);
  --bs-link-hover-color-rgb: 84, 107, 142;
  --bs-heading-color: var(--tm-heading);
  --bs-border-color: var(--tm-line);
}

/* ---------------------------------------------------------------- base */

html {
  background: #fff;
}

body {
  font-weight: 300;
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  margin: 0 0 25px;
  font-family: var(--tm-font);
  font-weight: 300;
  color: var(--tm-heading);
  text-transform: none;
}

h1, .h1 { font-size: 34px; line-height: 44px; }
h2, .h2 { font-size: 24px; line-height: 28px; }
h3, .h3 { font-size: 18px; line-height: 24px; }
h4, .h4 { font-size: 18px; line-height: 22px; }
h5, .h5 { font-size: 16px; line-height: 23px; }
h6, .h6 { font-size: 15px; line-height: 22px; }

* + h1, * + h2, * + h3, * + h4, * + h5, * + h6 {
  margin-top: 10px;
}

p, ul, ol, dl, blockquote, pre, address, fieldset, figure {
  margin: 0 0 25px;
}

* + p, * + ul, * + ol, * + dl, * + blockquote, * + pre, * + address, * + fieldset, * + figure {
  margin-top: 25px;
}

ul ul, ol ol, ul ol, ol ul {
  margin: 0;
}

b, strong {
  font-weight: bolder;
}

hr {
  margin: 25px 0;
  border: 0;
  border-top: 1px solid var(--tm-line);
  opacity: 1;
}

img {
  max-width: 100%;
  height: auto;
}

blockquote {
  padding-left: 15px;
  border-left: 5px solid var(--tm-line);
  font-family: Georgia, Times, serif;
  font-size: 16px;
  line-height: 22px;
  font-style: italic;
}

blockquote span.open {
  display: inline-block;
  padding: 0 0 0 20px;
  background: url("../images/so-q.gif") no-repeat left top;
}

blockquote span.close {
  display: inline-block;
  padding: 0 20px 0 0;
  background: url("../images/sc-q.gif") no-repeat bottom right;
}

/* Legacy typography plugin (JA Typo) also styled these globally */
sub, sup {
  color: #c00;
  font-size: 11px;
  font-weight: bold;
}

pre, code {
  padding: 40px 90px;
  border: none;
  background: transparent;
  font: 300 12px/1.4 "Courier New", monospace;
  tab-size: 8;
}

table {
  width: 100%;
  margin-bottom: 20px;
  font-size: 18px;
  border: 1px solid #e5e5e5;
}

th {
  padding: 10px 20px;
  color: #111;
  font-weight: bold;
  text-align: left;
}

tbody tr td {
  padding: 5px 20px;
  color: #4c4c4c;
  font-size: smaller;
}

tbody tr:nth-child(even) td {
  background: #f5f5f5;
}

tbody tr td p {
  margin: 0.5em 0;
}

/* Bootstrap 2 helper classes used throughout the old content */
.pull-right {
  float: right;
  padding-left: 10px;
}

.pull-left {
  float: left;
  padding-right: 10px;
}

.pull-center {
  text-align: center;
}

.clear {
  clear: both;
}

/* UIkit list helpers used in old content */
.uk-list {
  padding: 0;
  list-style: none;
}

.uk-list-line > li:nth-child(n+2) {
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px solid var(--tm-line);
}

/* JA Typo tags */
span.ja-typo-tag {
  display: inline-block;
  margin: 0 2px;
  padding: 3px 12px;
  background: #666;
  color: #fff;
  line-height: normal;
  white-space: nowrap;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5);
}

span.tag-blue { background: #08c; }
span.tag-green { background: #690; }
span.tag-orange { background: #e58c00; }
span.tag-red { background: #c00; }
span.tag-grey { background: #ccc; color: #333; text-shadow: 0 -1px 0 rgba(255, 255, 255, 0.8); }
span.tag-rounded { border-radius: 12px; }

/* ---------------------------------------------------------------- layout */

.tm-wrapper {
  display: flex;
  max-width: 1450px;
  min-height: 100vh;
}

.tm-sidebar-wrapper {
  position: relative;
  flex: 0 0 20%;
  width: 20%;
  background: var(--tm-sidebar-bg) url("../images/sidebar-bg.jpg") no-repeat fixed;
  text-align: center;
}

.tm-sidebar-width-15 .tm-sidebar-wrapper { flex-basis: 15%; width: 15%; }
.tm-sidebar-width-25 .tm-sidebar-wrapper { flex-basis: 25%; width: 25%; }

.tm-sidebar-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1px;
  background: var(--tm-line);
}

.tm-sidebar-menu-container {
  position: sticky;
  top: 0;
  z-index: 1002;
  padding: 40px 0;
}

.tm-sidebar-widget-container {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
}

.tm-sidebar-social {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: content-box;
  height: 26px;
  padding: 20px;
  overflow: hidden;
  border-top: 1px solid rgba(42, 52, 68, 0.8);
  background: rgba(42, 52, 68, 0.8);
}

.tm-content-wrapper {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  border-right: 1px solid var(--tm-line);
  background: #fff;
}

.tm-footer-true {
  padding-bottom: 66px;
}

.tm-block-content-top,
.tm-block-content-bottom {
  padding: var(--tm-space);
  background: var(--tm-muted-bg);
}

.tm-block-content-top {
  border-bottom: 1px solid var(--tm-line);
}

.tm-block-content-bottom {
  border-top: 1px solid var(--tm-line);
}

.tm-content-container {
  padding: var(--tm-space);
}

.tm-middle {
  --bs-gutter-x: var(--tm-gutter);
  --bs-gutter-y: 0;
}

@media (min-width: 768px) {
  .tm-col-3-5 { flex: 0 0 auto; width: 60%; }
  .tm-col-2-5 { flex: 0 0 auto; width: 40%; }
}

.tm-content > :last-child {
  margin-bottom: 0;
}

.tm-main > :nth-child(n+2) {
  margin-top: 25px;
}

/* ---------------------------------------------------------------- sidebar menu */

.tm-sidebar-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tm-sidebar-nav > ul,
.tm-sidebar-nav > .mod-menu,
.tm-sidebar-nav .mod-menu {
  display: block;
  max-width: 240px;
  margin: 0 auto;
}

.tm-sidebar-nav li {
  position: relative;
}

.tm-sidebar-nav .mod-menu > li > a,
.tm-sidebar-nav .mod-menu > li > span {
  position: relative;
  display: block;
  height: 50px;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.65);
  font-size: 15px;
  font-weight: 400;
  line-height: 50px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.1s linear;
}

.tm-sidebar-nav .mod-menu > li > a::before,
.tm-sidebar-nav .mod-menu > li > span::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 15px;
  height: 1px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.4);
  transition: all 0.1s linear;
}

.tm-sidebar-nav .mod-menu > li.active > a,
.tm-sidebar-nav .mod-menu > li > a:hover,
.tm-sidebar-nav .mod-menu > li:hover > a {
  color: #fff;
}

.tm-sidebar-nav .mod-menu > li.active > a::before,
.tm-sidebar-nav .mod-menu > li > a:hover::before,
.tm-sidebar-nav .mod-menu > li:hover > a::before {
  width: 30px;
  height: 2px;
  background: #fff;
}

/* Fly-out sub menu (UIkit dropdown in the old design) */
.tm-sidebar-nav .mod-menu__sub {
  position: absolute;
  top: 0;
  left: 100%;
  z-index: 1003;
  display: none;
  width: 200px;
  padding: 15px 0;
  background: var(--tm-muted-bg);
  box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
  text-align: left;
  animation: tm-slide-right 0.2s ease-in-out;
}

.tm-sidebar-nav li:hover > .mod-menu__sub,
.tm-sidebar-nav li:focus-within > .mod-menu__sub {
  display: block;
}

.tm-sidebar-nav .mod-menu__sub a {
  display: block;
  padding: 5px 15px;
  color: var(--tm-text);
  text-decoration: none;
}

.tm-sidebar-nav .mod-menu__sub a:hover,
.tm-sidebar-nav .mod-menu__sub a:focus,
.tm-sidebar-nav .mod-menu__sub .active > a {
  background: var(--tm-primary);
  color: #fff;
}

@keyframes tm-slide-right {
  from { opacity: 0; transform: translateX(-10%); }
  to { opacity: 1; transform: translateX(0); }
}

/* ---------------------------------------------------------------- search (sidebar bottom) */

.tm-sidebar-social form {
  position: relative;
  margin: 0;
}

.tm-sidebar-social label,
.tm-offcanvas label.finder {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.tm-sidebar-social .mod-finder__search,
.tm-sidebar-social .input-group {
  display: block;
}

.tm-sidebar-social input[type="text"],
.tm-sidebar-social input[type="search"] {
  box-sizing: border-box;
  width: 160px;
  height: 40px;
  padding: 0 0 0 40px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16'%3E%3Cpath fill='%23ffffff' d='M11.7 10.3a6.5 6.5 0 1 0-1.4 1.4l3.6 3.6 1.4-1.4-3.6-3.6zM6.5 11a4.5 4.5 0 1 1 0-9 4.5 4.5 0 0 1 0 9z'/%3E%3C/svg%3E") no-repeat 15px 50%;
  color: #fff;
  font: 300 15px var(--tm-font);
  box-shadow: none;
  outline: none;
}

.tm-sidebar-social input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.tm-sidebar-social input:focus {
  border-color: rgba(255, 255, 255, 0.2);
}

.tm-sidebar-social .awesomplete > ul {
  bottom: 100%;
  top: auto;
  text-align: left;
}

/* ---------------------------------------------------------------- mobile navbar / offcanvas */

.tm-navbar {
  display: flex;
  align-items: center;
  padding: 20px 30px;
  border-bottom: 1px solid var(--tm-line);
  background: var(--tm-sidebar-bg) url("../images/sidebar-bg.jpg") no-repeat 50% 40%;
  background-size: cover;
}

.tm-navbar-toggle {
  width: 40px;
  height: 40px;
  margin-right: 15px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  color: #fff;
}

.tm-navbar-toggle-icon,
.tm-navbar-toggle-icon::before,
.tm-navbar-toggle-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: #fff;
}

.tm-navbar-toggle-icon {
  position: relative;
}

.tm-navbar-toggle-icon::before,
.tm-navbar-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.tm-navbar-toggle-icon::before { top: -6px; }
.tm-navbar-toggle-icon::after { top: 6px; }

.tm-navbar-brand {
  color: #fff;
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
}

.tm-navbar-brand:hover {
  color: #fff;
}

.tm-offcanvas {
  --bs-offcanvas-width: 280px;
  background: var(--tm-sidebar-bg) url("../images/sidebar-bg.jpg") no-repeat;
  background-size: cover;
  text-align: center;
}

.tm-offcanvas .mod-menu__sub {
  position: static;
  display: block;
  width: auto;
  padding: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
  animation: none;
}

.tm-offcanvas .mod-menu__sub a {
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  font-size: 13px;
}

.tm-offcanvas .mod-finder {
  margin-top: 30px;
}

.tm-offcanvas input[type="text"] {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(42, 52, 68, 0.6);
  color: #fff;
}

/* ---------------------------------------------------------------- footer */

.tm-footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: content-box;
  height: 26px;
  padding: 20px;
  overflow: hidden;
  border-top: 1px solid var(--tm-line);
  text-align: center;
}

.tm-footer .mod-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tm-footer .mod-menu > li > a {
  color: var(--tm-text);
  font-size: 12.9px;
  text-transform: uppercase;
}

.tm-footer .mod-menu > li > a:hover {
  color: var(--tm-link-hover);
  text-decoration: none;
}

.tm-footer .mod-menu > li + li::before {
  content: "";
  display: inline-block;
  height: 10px;
  margin: 0 10px;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  vertical-align: middle;
}

.tm-totop-scroller {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 1000;
  display: block;
  width: 20px;
  height: 20px;
  color: var(--tm-text);
  text-decoration: none;
  transition: all linear 0.05s;
}

.tm-totop-scroller::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 6px;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg);
}

.tm-totop-scroller:hover,
.tm-totop-scroller:focus {
  color: #999;
  text-decoration: none;
}

/* ---------------------------------------------------------------- module panels */

.tm-panel {
  position: relative;
}

.tm-panel + .tm-panel {
  margin-top: 40px;
}

.tm-panel-box {
  padding: 25px;
  border-radius: 1px;
  background: var(--tm-muted-bg);
  color: var(--tm-text);
}

.tm-panel-title {
  margin: 0 0 25px;
  color: var(--tm-text);
  font-size: 18px;
  font-weight: 300;
  line-height: 24px;
}

/* Recent articles (sidebar) */
.tm-moduleitems {
  margin: 0 -20px 0 0;
  padding: 0 0 0 30px;
  list-style: none;
}

.tm-moduleitems > li {
  margin: 0 0 12px;
  padding: 12px 20px 12px 0;
}

.tm-moduleitems .tm-moduleitem-title {
  display: block;
  color: #2f3336;
  font-size: 18px;
  font-weight: 400;
  line-height: 22px;
}

.tm-moduleitems .tm-moduleitem-image {
  display: block;
  margin: 16px 0 4px;
}

.tm-moduleitems .tm-moduleitem-image img {
  display: block;
  width: 100%;
}

/* ---------------------------------------------------------------- breadcrumbs */

.mod-breadcrumbs__wrapper {
  margin: 0 0 25px;
}

.mod-breadcrumbs.breadcrumb {
  margin: 0;
  padding: 0 !important;
  background: none;
  font-size: 13px;
  line-height: 22px;
  text-transform: uppercase;
  --bs-breadcrumb-divider: "/";
  --bs-breadcrumb-item-padding-x: 12px;
  --bs-breadcrumb-divider-color: rgba(153, 153, 153, 0.3);
  --bs-breadcrumb-item-active-color: var(--tm-text);
}

.mod-breadcrumbs .mod-breadcrumbs__divider,
.mod-breadcrumbs .mod-breadcrumbs__here {
  display: none;
}

.mod-breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
  padding-right: 12px;
}

/* ---------------------------------------------------------------- articles */

.page-header h1,
.page-header h2,
.com-content-article .page-header h1,
.com-content-article .page-header h2 {
  margin: 0 0 25px;
  color: var(--tm-heading);
  font-size: 24px;
  line-height: 28px;
}

.page-header h2 a,
.page-header h1 a {
  color: var(--tm-link);
}

.com-content-article,
.blog-item {
  margin-bottom: 0;
}

.blog-item + .blog-item,
.blog-items .blog-item + .blog-item {
  margin-top: 0;
}

.blog-items {
  display: block !important;
}

.com-content-category-blog .blog-item {
  margin-bottom: 0;
}

.blog-item .item-content > :last-child {
  margin-bottom: 25px;
}

.item-image {
  float: none !important;
  margin: 0 0 25px;
}

.item-image img {
  display: block;
  width: 100%;
}

.item-image figcaption,
.tm-image-caption {
  margin-top: 6px;
  color: #666;
  font-size: x-small;
  text-align: center;
}

.com-content-article__body::after,
.item-content::after {
  content: "";
  display: table;
  clear: both;
}

.tm-category-title {
  margin: 0 0 25px;
  font-size: 24px;
  line-height: 28px;
}

.tm-itemlist-title {
  margin: 0 0 25px;
  font-size: 18px;
  line-height: 24px;
}

.tm-itemlist-title + .tm-itemlist-title {
  margin-top: 0;
}

/* Article index generated by the core page break plugin */
.article-index {
  float: right;
  width: 27.5%;
  min-width: 200px;
  margin: 0 0 25px 25px;
  padding: 15px 10px 10px;
  border: 1px solid var(--tm-line);
  background: var(--tm-muted-bg);
}

.article-index h3 {
  margin: 0 0 20px;
  color: var(--tm-heading);
  font-size: 18px;
}

.article-index ul {
  display: block !important;
  margin: 0;
  padding-left: 25px;
  list-style: disc;
}

.article-index .nav-link,
.article-index a {
  display: inline;
  padding: 0;
  color: var(--tm-link);
}

.article-index a.active {
  color: var(--tm-link-hover);
}

.pagenavcounter {
  display: none;
}

.pagination,
.com-content-article .pagination {
  --bs-pagination-color: var(--tm-link);
  --bs-pagination-border-color: var(--tm-line);
}

/* Category pages: plain text links "Start Prev 1 2 … Next End", counter underneath (old K2 look) */
.com-content-category-blog__navigation {
  display: flex;
  flex-direction: column-reverse;
  margin-top: 20px;
}

.com-content-category-blog__counter {
  float: none !important;
  margin: 0;
  padding: 0 !important;
}

.com-content-category-blog__pagination .pagination {
  display: block;
  margin: 0 0 10px !important;
  padding: 0;
}

.com-content-category-blog__pagination .page-item {
  display: inline;
  padding-right: 20px;
}

.com-content-category-blog__pagination .page-link {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--tm-link);
  font-size: inherit;
}

.com-content-category-blog__pagination .page-link:hover {
  color: var(--tm-link-hover);
  text-decoration: underline;
}

.com-content-category-blog__pagination .active .page-link,
.com-content-category-blog__pagination .disabled .page-link {
  color: var(--tm-text);
  text-decoration: none;
}

/* ---------------------------------------------------------------- buttons */

.tm-button,
.readmore .btn {
  display: inline-block;
  box-sizing: border-box;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid #333;
  border-radius: 1px;
  background: transparent;
  color: var(--tm-text);
  font: 300 13px/30px var(--tm-font);
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.1s ease-in-out;
}

.tm-button:hover,
.tm-button:focus,
.readmore .btn:hover {
  background: #333;
  color: #fff;
  text-decoration: none;
}

/* ---------------------------------------------------------------- converted Widgetkit widgets */

/* slideshow / slideset: Bootstrap carousel with dot navigation below */
.ey-slideshow {
  margin: 0 0 25px;
}

.ey-slideshow .carousel-item img {
  display: block;
  width: 100%;
  height: auto;
}

.ey-slideshow .ey-slide-content {
  margin: 25px 0;
}

.ey-slideshow .carousel-indicators {
  position: static;
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 25px 0 0;
  padding: 0;
}

.ey-slideshow .carousel-indicators [data-bs-target] {
  box-sizing: content-box;
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(51, 51, 51, 0.4);
  border-radius: 50%;
  background: transparent;
  opacity: 1;
  text-indent: -999px;
  transition: all 0.1s ease-in-out;
}

.ey-slideshow .carousel-indicators [data-bs-target]:hover {
  border-color: rgba(51, 51, 51, 0.7);
}

.ey-slideshow .carousel-indicators .active {
  border-color: #333;
  background: #333;
  transform: scale(1.1);
}

/* gallery: thumbnail grid with lightbox */
.ey-wk-gallery {
  display: grid;
  grid-template-columns: repeat(var(--ey-cols, 5), minmax(0, 1fr));
  gap: var(--ey-gap, 10px);
  margin: 0 0 25px;
  padding: 0;
  list-style: none;
}

.ey-wk-gallery > li {
  margin: 0;
}

.ey-wk-gallery a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 5px;
}

.ey-wk-gallery img {
  display: block;
  width: 100%;
  height: auto;
}

.ey-wk-gallery a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 16 16'%3E%3Cpath fill='%23ffffff' d='M11.7 10.3a6.5 6.5 0 1 0-1.4 1.4l3.6 3.6 1.4-1.4-3.6-3.6zM6.5 11a4.5 4.5 0 1 1 0-9 4.5 4.5 0 0 1 0 9z'/%3E%3C/svg%3E") no-repeat 50% 50%;
  opacity: 0;
  transition: opacity 0.15s linear;
}

.ey-wk-gallery a:hover::after,
.ey-wk-gallery a:focus::after {
  opacity: 1;
}

@media (max-width: 767px) {
  .ey-wk-gallery { --ey-cols: 2 !important; }
}

/* switcher: tabs on the left, panel on the right */
.ey-switcher {
  display: flex;
  gap: 35px;
  margin: 0 0 25px;
}

.ey-switcher .nav {
  flex: 0 0 25%;
  flex-direction: column;
  margin: 0;
  padding: 0;
  border-right: 1px solid var(--tm-line);
}

.ey-switcher .nav-link {
  display: block;
  margin: 0 -1px 5px 0;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-right-width: 0;
  border-radius: 1px 0 0 1px;
  background: none;
  color: var(--tm-heading);
  font-weight: 300;
  text-align: left;
}

.ey-switcher .nav-link:hover {
  border-color: var(--tm-line);
  text-decoration: none;
}

.ey-switcher .nav-link.active {
  border-color: var(--tm-line);
  background: #fff;
  color: var(--tm-link);
}

.ey-switcher .tab-content {
  flex: 1 1 auto;
  min-width: 0;
}

.ey-switcher .tab-pane img {
  display: block;
  margin: 0 auto 25px;
}

@media (max-width: 767px) {
  .ey-switcher { flex-direction: column; }
  .ey-switcher .nav { flex-direction: row !important; flex-wrap: wrap; border: 0; }
  .ey-switcher .nav-link { border-right-width: 1px; }
}

/* grid-stack: alternating image / text rows */
.ey-gridstack {
  margin: 0 0 25px;
}

.ey-gridstack-item {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.ey-gridstack-item + .ey-gridstack-item {
  margin-top: 40px;
}

.ey-gridstack-item.ey-flip {
  flex-direction: row-reverse;
}

.ey-gridstack-media,
.ey-gridstack-content {
  flex: 0 0 calc(50% - 20px);
  min-width: 0;
}

.ey-gridstack-media img {
  display: block;
  width: 100%;
  border-radius: 5px;
}

.ey-gridstack-content {
  padding: 25px;
}

.ey-gridstack-content h3 {
  margin-top: 0;
}

@media (max-width: 767px) {
  .ey-gridstack-item,
  .ey-gridstack-item.ey-flip { flex-direction: column; }
}

/* grid: logo panels */
.ey-grid {
  display: grid;
  grid-template-columns: repeat(var(--ey-cols, 4), minmax(0, 1fr));
  gap: 20px;
  margin: 0 0 25px;
}

.ey-grid-item {
  position: relative;
  padding: 25px;
  border: 1px solid var(--tm-line);
  text-align: center;
}

.ey-grid-item img {
  height: 124px;
  width: auto;
  object-fit: contain;
}

.ey-grid-item a.ey-grid-link {
  position: absolute;
  inset: 0;
}

@media (max-width: 767px) {
  .ey-grid { --ey-cols: 2 !important; }
}

/* ---------------------------------------------------------------- image gallery plugin ({gallery}) */

ul.ey-gallery {
  overflow: hidden;
  clear: both;
  margin: 8px auto;
  padding: 8px 0;
  list-style: none;
}

ul.ey-gallery > li {
  float: left;
  margin: 5px;
  padding: 0;
  background: #fff;
}

ul.ey-gallery .ey-gallery-outer {
  display: block;
  float: left;
  padding: 0 5px 5px 0;
}

ul.ey-gallery .ey-gallery-wrap {
  display: block;
  float: left;
  margin: -5px 0 0 -5px;
  padding: 4px;
  border: 1px solid #ccc;
  background: #fff;
  box-shadow: 3px 3px 5px #888;
}

ul.ey-gallery a {
  position: relative;
  display: block;
  float: left;
  color: #eee;
}

ul.ey-gallery a:hover {
  color: #222;
  text-decoration: none;
}

ul.ey-gallery img {
  display: block;
  object-fit: cover;
}

ul.ey-gallery .ey-gallery-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 2px 4px;
  background: rgba(0, 0, 0, 0.7);
  font: bold 11px/22px Arial, Helvetica, sans-serif;
  text-align: center;
}

ul.ey-gallery a:hover .ey-gallery-caption {
  background: rgba(255, 255, 255, 0.7);
}

/* ---------------------------------------------------------------- video embeds (former AllVideos) */

.ey-video {
  max-width: 800px;
  margin: 0 0 25px;
}

.ey-video video {
  display: block;
  width: 100%;
  height: auto;
  background: #010101;
}

/* ---------------------------------------------------------------- lightbox */

.ey-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
}

.ey-lightbox[hidden] {
  display: none;
}

.ey-lightbox-figure {
  max-width: 92vw;
  margin: 0;
  text-align: center;
}

.ey-lightbox-figure img {
  max-width: 92vw;
  max-height: 84vh;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
}

.ey-lightbox-caption {
  margin-top: 10px;
  color: #eee;
  font-size: 14px;
}

.ey-lightbox button {
  position: absolute;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 36px;
  line-height: 48px;
  opacity: 0.7;
}

.ey-lightbox button:hover,
.ey-lightbox button:focus {
  opacity: 1;
}

.ey-lightbox-close { top: 10px; right: 10px; }
.ey-lightbox-prev { top: 50%; left: 10px; margin-top: -24px; }
.ey-lightbox-next { top: 50%; right: 10px; margin-top: -24px; }

/* ---------------------------------------------------------------- error page */

.tm-error-headline {
  color: var(--tm-heading);
  font-size: 100px;
  line-height: 1;
  margin-bottom: 25px;
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 767px) {
  :root { --tm-space: 30px; }
  .tm-sidebar-a { margin-top: 40px; }
  .pull-right, .pull-left { float: none; padding: 0; display: block; margin: 0 auto 25px; }
  .article-index { float: none; width: auto; margin: 0 0 25px; }
}

/* ---------------------------------------------------------------- category headings */

.content-category > h1,
.content-category > h2,
.com-content-category > h1,
.com-content-category-blog > h1,
.com-content-category > h2,
.com-content-category-blog > h2 {
  margin: 0 0 25px;
  font-size: 24px;
  line-height: 28px;
}

/* Blog pages whose item titles were small (K2 "catItemTitle") */
.tm-small-titles .blog-item .page-header h2 {
  font-size: 18px;
  line-height: 24px;
}

.blog-item .page-header h2 a {
  color: var(--tm-link);
}

/* Content directly below a title starts without extra space (K2 wrapped it in its own block) */
.page-header + *,
.page-header ~ figure + *,
.item-image + * {
  margin-top: 0;
}

/* Sub menus open on hover in the sidebar and are always open in the off-canvas menu */
.tm-sidebar-nav .mod-menu__toggle-sub {
  display: none;
}
