:root {
  --jd-text: #161616;
  --jd-muted: #566270;
  --jd-line: #1f1f1f;
  --jd-soft-line: #d8e0e6;
  --jd-accent: #66c4ec;
  --jd-accent-dark: #2b91bd;
  --jd-font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --jd-font-body: "Droid Serif", Georgia, "Times New Roman", serif;
}

html {
  font-size: 16px;
}

body {
  color: var(--jd-text);
  font-family: var(--jd-font-body);
  background: #fff;
}

a {
  color: inherit;
  text-decoration-color: var(--jd-accent);
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--jd-accent-dark);
}

h1,
h2,
h3,
h4,
h5,
h6,
.h7 {
  font-family: var(--jd-font-heading);
}

h1 {
  margin-bottom: 20px;
}

.container-xl {
  max-width: 1230px;
}

.jd-topbar {
  align-items: center;
  border-bottom: 1px solid var(--jd-line);
  display: flex;
  justify-content: flex-end;
  min-height: 60px;
}

.jd-social {
  align-items: center;
  display: flex;
  gap: 22px;
}

.jd-social a,
.jd-search-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: #141414;
  display: inline-flex;
  line-height: 1;
  padding: 0;
  text-decoration: none;
}

.jd-social a {
  font-size: 22px;
  justify-content: center;
  min-width: 22px;
}

.jd-social a:hover,
.jd-search-toggle:hover {
  color: var(--jd-accent-dark);
}

.jd-social-icon {
  display: block;
  fill: currentColor;
  height: 22px;
  width: 22px;
}

.jd-social-icon--youtube,
.jd-social-icon--flickr {
  width: 24px;
}

.jd-social-icon--instagram {
  height: 21px;
  width: 21px;
}

.jd-search-toggle {
  gap: 6px;
  font-family: var(--jd-font-body);
  font-size: 16px;
  font-weight: 400;
  justify-content: center;
}

.jd-search-toggle .jd-social-icon {
  height: 18px;
  width: 18px;
}

.jd-logo {
  display: block;
  margin: 26px auto 18px;
  max-width: min(470px, 82vw);
}

.jd-logo img {
  display: block;
  height: auto;
  width: 100%;
}

.jd-menu-bar {
  border-bottom: 1px solid var(--jd-line);
  border-top: 1px solid var(--jd-line);
}

.jd-primary-nav {
  min-height: 45px;
  padding: 0;
}

.navbar-toggler {
  border: 1px solid var(--jd-soft-line);
  margin: 7px auto;
}

.jd-main-menu {
  gap: 18px;
}

.jd-main-menu .nav-link {
  color: #121212;
  font-size: 18px;
  padding: 10px 12px;
}

.jd-main-menu .nav-link:focus,
.jd-main-menu .nav-link:hover,
.jd-main-menu .active > .nav-link {
  color: var(--jd-accent-dark);
}

.jd-main-menu .dropdown-toggle::after {
  border: 0;
  color: #8e9aa5;
  content: "⌄";
  font-size: 18px;
  margin-left: 8px;
  vertical-align: 0;
}

.dropdown-menu {
  border: 1px solid var(--jd-soft-line);
  border-radius: 0;
  box-shadow: 0 1px 2px rgb(0 0 0 / 4%);
  min-width: 225px;
  padding: 10px 20px;
}

.dropdown-item {
  border-bottom: 1px solid var(--jd-soft-line);
  color: #151515;
  font-size: 16px;
  padding: 14px 0;
  white-space: normal;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: transparent;
  color: var(--jd-accent-dark);
}

.dropdown-menu li:last-child .dropdown-item {
  border-bottom: 0;
}

.jd-main {
  padding: 48px 0 64px;
}

.block-page-title-block h1,
.page-title {
  font-family: var(--jd-font-heading);
  font-size: clamp(3rem, 6vw, 3.9rem);
  font-weight: 400;
  line-height: 1;
  margin: 0 0 20px;
}

.page-node-type-event .block-page-title-block h1 {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1.12;
  margin-bottom: 6px;
}

.jd-rich-text {
  color: #2e3842;
  font-size: 18px;
  line-height: 1.45;
  max-width: 880px;
}

.jd-rich-text h2,
.jd-rich-text h3 {
  color: #151515;
  font-family: var(--jd-font-heading);
  font-weight: 700;
  line-height: 1.12;
  margin: 28px 0 16px;
}

.jd-rich-text h2 {
  font-size: 34px;
}

.jd-rich-text h3 {
  font-size: 27px;
}

.jd-rich-text li {
  margin: 0 0 16px;
  padding-left: 4px;
}

.jd-rich-text img {
  height: auto;
  max-width: 100%;
}

.jd-event-card {
  min-width: 0;
}

.jd-event-title {
  font-family: var(--jd-font-heading);
  font-size: clamp(1.55rem, 2vw, 2.05rem);
  font-weight: 400;
  line-height: 1.08;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}

.jd-event-title a {
  text-decoration: none;
}

.jd-event-meta {
  color: #405161;
  display: flex;
  flex-wrap: wrap;
  font-family: var(--jd-font-body);
  font-size: 12px;
  font-weight: 700;
  gap: 13px;
  letter-spacing: 0.18em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.jd-event-meta .field,
.jd-event-meta .field__items,
.jd-event-meta .field__item {
  display: inline;
}

.jd-event-image {
  display: block;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}

.jd-event-image img {
  aspect-ratio: 1.16 / 1;
  display: block;
  height: auto;
  object-fit: cover;
  transition: transform 220ms ease;
  width: 100%;
}

.jd-event-card:hover .jd-event-image img,
.jd-event-image:focus-visible img {
  transform: scale(1.045);
}

.jd-event-tag {
  background: var(--jd-accent);
  bottom: 30px;
  color: #fff;
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  left: -10px;
  line-height: 1.1;
  min-width: 145px;
  max-width: calc(100% - 12px);
  padding: 8px 16px;
  position: absolute;
}

.jd-event-tag .field,
.jd-event-tag .field__items,
.jd-event-tag .field__item {
  display: inline;
}

.jd-event-facts {
  border-bottom: 1px solid var(--jd-soft-line);
  border-top: 1px solid var(--jd-soft-line);
  display: grid;
  gap: 18px;
  margin: 0 0 28px;
  padding: 18px 0;
}

.jd-event-facts strong {
  display: block;
  font-family: var(--jd-font-body);
  font-size: 12px;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.jd-event-hero {
  margin: 0 0 26px;
}

.jd-event-hero img {
  display: block;
  height: auto;
  width: 100%;
}

.jd-event-practical {
  color: #a0a5ac;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 34px;
}

.jd-event-practical::after {
  background: var(--jd-soft-line);
  content: "";
  display: block;
  height: 4px;
  margin-top: 24px;
  width: 50px;
}

.jd-event-practical p {
  margin: 0 0 8px;
}

.jd-event-practical p:first-child {
  white-space: normal;
}

.jd-event-practical .field,
.jd-event-practical .field__items,
.jd-event-practical .field__item {
  display: inline;
}

.jd-event-body {
  font-size: 15px;
  line-height: 1.55;
  max-width: none;
}

.jd-event-body p {
  margin-bottom: 16px;
}

.jd-event-videos {
  border-top: 1px solid var(--jd-soft-line);
  margin-top: 28px;
  padding-top: 18px;
}

.jd-event-video + .jd-event-video {
  margin-top: 22px;
}

.jd-event-video iframe {
  border: 0;
}

.jd-gallery {
  margin-top: 34px;
}

.jd-gallery-thumb {
  aspect-ratio: 1 / 1;
  background: #f2f4f6;
  border: 0;
  display: block;
  overflow: hidden;
  padding: 0;
  width: 100%;
}

.jd-gallery-thumb img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
  width: 100%;
}

.jd-gallery-thumb:hover img,
.jd-gallery-thumb:focus-visible img {
  transform: scale(1.045);
}

.jd-gallery-modal .modal-content {
  border: 0;
  border-radius: 0;
}

.jd-gallery-modal .modal-body {
  align-items: center;
  background: #111;
  display: flex;
  justify-content: center;
  min-height: 60vh;
  padding: 0;
  position: relative;
}

.jd-gallery-modal img {
  display: block;
  max-height: 82vh;
  max-width: 100%;
  object-fit: contain;
}

.jd-gallery-nav {
  align-items: center;
  background: rgb(255 255 255 / 38%);
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 50%;
  color: rgb(17 17 17 / 78%);
  display: flex;
  font-size: 30px;
  height: 42px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: background-color 160ms ease, color 160ms ease;
  width: 42px;
  z-index: 2;
}

.jd-gallery-nav:hover,
.jd-gallery-nav:focus-visible {
  background: rgb(255 255 255 / 72%);
  color: #111;
}

.jd-gallery-nav--prev {
  left: 18px;
}

.jd-gallery-nav--next {
  right: 18px;
}

.jd-search-modal {
  border: 0;
  border-radius: 0;
}

.jd-search-modal .modal-header,
.jd-search-modal .modal-footer {
  border-color: var(--jd-soft-line);
}

.jd-search-modal .form-control {
  border-color: var(--jd-soft-line);
  border-radius: 0;
  font-family: var(--jd-font-body);
}

.jd-footer {
  border-top: 1px solid var(--jd-line);
  padding: 28px 0;
}

@media (max-width: 991.98px) {
  .jd-main-menu {
    gap: 0;
    padding: 10px 0 14px;
  }

  .jd-main-menu .nav-link {
    border-bottom: 1px solid var(--jd-soft-line);
  }

  .dropdown-menu {
    border: 0;
    box-shadow: none;
    padding: 0 0 0 18px;
  }
}

@media (max-width: 640px) {
  .jd-topbar {
    justify-content: center;
    min-height: 48px;
  }

  .jd-social {
    gap: 14px;
  }

  .jd-main {
    padding-top: 34px;
  }

}
