.jm-album-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 1rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.jm-album-page .jm-page-header {
  margin-bottom: 0.75rem;
  text-align: center;
  max-width: none;
}

.jm-album-page .jm-page-header::after {
  margin-top: 0.75rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.jm-album-page {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.jm-album-page .jm-page-header {
  width: min(100%, 1100px);
}

.jm-album-page .jm-album-intro {
  width: min(100%, 1100px);
  margin: 0 0 1rem;
}

.jm-album-page .jm-album-grid {
  width: min(100%, 1100px);
  margin-left: auto;
  margin-right: auto;
}

.jm-album-photo-grid {
  width: min(100%, 1100px);
  margin: 0 auto;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jm-album-photo-grid__tile {
  width: 100%;
  margin: 0;
}

.jm-album-photo-grid__item {
  display: block;
  width: 100%;
  text-decoration: none;
  border-radius: 0;
  overflow: hidden;
  background: #f2f2f2;
  border: 0;
  box-shadow: none;
  transition: transform 200ms var(--jm-ease), filter 200ms var(--jm-ease);
}

.jm-album-photo-grid__item img {
  display: block;
  width: 100%;
  height: auto;
}

.jm-album-photo-grid__item:hover {
  transform: translateY(-2px);
  box-shadow: none;
  filter: saturate(1.02);
}

.jm-album-photo-grid__caption {
  margin-top: 0.45rem;
  font-size: 0.84rem;
  line-height: 1.3;
  color: rgba(53, 60, 76, 0.9);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 559px) {
  .jm-album-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (min-width: 760px) {
  .jm-album-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1120px) {
  .jm-album-photo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.jm-album-carousel {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.jm-album-carousel__stage {
  position: relative;
  background: rgba(0, 0, 0, 0.03);
  border: 0;
  border-radius: var(--jm-radius);
  box-shadow: none;
  overflow: hidden;
}

.jm-album-carousel__stageBtn {
  display: block;
  padding: 0;
  margin: 0;
  border: 0;
  width: 100%;
  background: transparent;
  cursor: zoom-in;
}

.jm-album-carousel__stageImg {
  width: 100%;
  height: min(56vh, 560px);
  object-fit: cover;
  display: block;
  background: transparent;
}

.jm-album-carousel__caption {
  padding: 10px 12px;
  text-align: center;
  color: rgba(80, 89, 108, 0.92);
  font-size: 0.95rem;
  line-height: 1.35;
  background: #fff;
  border-top: 1px solid rgba(140, 150, 170, 0.18);
}

.jm-album-carousel__caption[hidden] {
  display: none;
}

.jm-album-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  transition: transform 180ms var(--jm-ease), background 180ms var(--jm-ease);
}

.jm-album-carousel__nav:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: translateY(-50%) scale(1.04);
}

.jm-album-carousel__nav--prev {
  left: 10px;
}

.jm-album-carousel__nav--next {
  right: 10px;
}

.jm-album-carousel__thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.jm-album-carousel__thumb {
  padding: 0;
  border: 0;
  border-radius: var(--jm-radius);
  overflow: hidden;
  background: #f6f6f6;
  box-shadow: none;
  cursor: pointer;
  transform: translateY(0);
  transition: transform 180ms var(--jm-ease);
}

.jm-album-carousel__thumb:hover {
  transform: translateY(-2px);
  box-shadow: none;
}

.jm-album-carousel__thumb.is-active {
  box-shadow: none;
}

.jm-album-carousel__thumb img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  transition: transform 220ms var(--jm-ease), filter 220ms var(--jm-ease);
}

.jm-album-carousel__thumb:hover img {
  transform: scale(1.03);
  filter: grayscale(1) saturate(0) contrast(1.05);
}

@media (max-width: 699px) {
  .jm-album-carousel__thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .jm-album-carousel__thumb img {
    height: 150px;
  }
}

@media (min-width: 700px) and (max-width: 979px) {
  .jm-album-carousel__thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .jm-album-carousel__thumb img {
    height: 150px;
  }
}

@media (min-width: 980px) {
  .jm-album-carousel__thumb img {
    height: 160px;
  }
}

.jm-album-grid .jm-album-item {
  margin: 0;
}

.jm-album-grid .jm-album-item__title {
  margin: 0.55rem 0 0;
  font-size: 0.95rem;
  line-height: 1.3;
  text-align: center;
}

.jm-album-grid .jm-album-item__title a {
  color: #233146;
  text-decoration: none;
}

.jm-album-grid .jm-album-item__title a:hover {
  text-decoration: underline;
}

:root {
  --jm-radius: 14px;
  --jm-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --jm-shadow-sm: 0 6px 18px rgba(20, 20, 30, 0.08);
  --jm-shadow-md: 0 14px 36px rgba(20, 20, 30, 0.14);
  --jm-border: rgba(140, 150, 170, 0.2);
}

/* Header search */
.jm-search-item {
  position: relative;
}

.jm-search {
  position: relative;
  display: flex;
  align-items: center;
}

.jm-search__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.jm-search__input {
  width: clamp(117px, 13vw, 182px);
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(140, 150, 170, 0.35);
  border-radius: 999px;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.9);
  outline: none;
}

.header-dark #header:not(.scrolled) .jm-search__input {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.92);
}

.jm-search__input:focus {
  box-shadow: 0 0 0 3px rgba(48, 133, 238, 0.18);
  border-color: rgba(48, 133, 238, 0.55);
}

.jm-search__suggest {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(520px, 92vw);
  background: #fff;
  border: 1px solid rgba(140, 150, 170, 0.25);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  z-index: 200;
}

.jm-search__suggest[hidden] {
  display: none;
}

.jm-search__option {
  display: block;
  padding: 10px 12px;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(140, 150, 170, 0.14);
}

.jm-search__option:last-child {
  border-bottom: 0;
}

.jm-search__option:hover,
.jm-search__option.is-active {
  background: rgba(48, 133, 238, 0.08);
  text-decoration: none;
}

.jm-search__option-title {
  font-weight: 600;
  line-height: 1.2;
}

.jm-search__option-excerpt {
  margin-top: 2px;
  font-size: 0.85rem;
  line-height: 1.25;
  color: rgba(80, 89, 108, 0.85);
}

/* Search results page */
.jm-search-page .jm-search {
  margin: 1rem auto 1.25rem;
  max-width: 720px;
}

.jm-search-page .jm-search__input {
  width: 100%;
  height: 44px;
  border-radius: 14px;
}

.jm-search-results {
  max-width: 72ch;
  margin: 0 auto 2rem;
}

.jm-search-results__meta {
  margin: 0 0 0.75rem;
  color: rgba(80, 89, 108, 0.9);
}

.jm-search-results__item {
  display: block;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(140, 150, 170, 0.2);
  box-shadow: var(--jm-shadow-sm);
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
}

.jm-search-results__item:hover {
  box-shadow: var(--jm-shadow-md);
  transform: translateY(-1px);
}

.jm-search-results__title {
  font-weight: 650;
  line-height: 1.2;
}

.jm-search-results__excerpt {
  margin-top: 4px;
  color: rgba(80, 89, 108, 0.9);
  font-size: 0.95rem;
  line-height: 1.35;
}

/* Footer: legal + social share icons */
.jm-footer-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px 16px;
}

.jm-footer-legal {
  margin: 0;
}

.jm-footer-meta {
  justify-self: start;
}

.jm-footer-copyright {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(80, 89, 108, 0.9);
  text-align: center;
}

.jm-footer-share {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  justify-self: end;
}

.jm-footer-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  width: 38px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(140, 150, 170, 0.3);
  background: #fff;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--jm-ease), box-shadow 160ms var(--jm-ease),
    background 160ms var(--jm-ease);
}

.jm-footer-share__btn img {
  width: 17px;
  height: 17px;
  display: block;
}

.jm-footer-share__btn:hover,
.jm-footer-share__btn:focus {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--jm-shadow-sm);
  background: rgba(48, 133, 238, 0.06);
}

.jm-share__hint {
  width: 100%;
  margin-top: 0.35rem;
  color: rgba(80, 89, 108, 0.9);
  font-size: 0.9rem;
}

@media (max-width: 680px) {
  .jm-footer-bar {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .jm-footer-share {
    justify-content: flex-start;
    justify-self: start;
  }

  .jm-footer-copyright {
    text-align: left;
  }
}

/* Splash gate */
.jm-splash {
  min-height: calc(100vh - 140px);
  display: grid;
  place-items: center;
  padding: 2rem 1rem 3rem;
}

.jm-splash__card {
  width: min(520px, 92vw);
  border: 1px solid rgba(140, 150, 170, 0.22);
  border-radius: 16px;
  box-shadow: var(--jm-shadow-md);
  background: rgba(255, 255, 255, 0.98);
  padding: 20px 18px;
}

.jm-splash__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 0.75rem;
}

.jm-splash__brand-mark {
  height: 54px;
  width: auto;
  display: block;
}

.jm-splash__brand-text {
  height: 34px;
  width: auto;
  display: block;
}

.jm-splash__title {
  margin: 0 0 0.35rem;
}

.jm-splash__lead {
  margin: 0 0 1rem;
  color: rgba(80, 89, 108, 0.9);
}

.jm-splash__error {
  margin: 0 0 0.75rem;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(232, 86, 0, 0.08);
  color: #8a3200;
  border: 1px solid rgba(232, 86, 0, 0.25);
}

.jm-splash__form {
  display: grid;
  gap: 10px;
}

.jm-splash__label {
  font-weight: 600;
}

.jm-splash__input {
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(140, 150, 170, 0.35);
  padding: 0 12px;
  font-size: 1rem;
}

.jm-splash__button {
  height: 44px;
  border-radius: 14px;
  border: 0;
  background: #3085ee;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.jm-splash__button:hover {
  background: #126bd9;
}

/* Language toggle */
.jm-langswitch-item {
  display: inline-flex;
  align-items: center;
  padding-left: 9px;
}

.jm-langswitch {
  display: inline-flex;
  gap: 9px;
  align-items: center;
}

.jm-flag {
  width: 41px;
  height: 27px;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  box-shadow: none;
  transition: transform 180ms var(--jm-ease), box-shadow 180ms var(--jm-ease),
    filter 180ms var(--jm-ease);
  user-select: none;
  overflow: hidden;
  padding: 0 !important;
  margin: 0;
}

.jm-flag img {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.jm-flag:hover,
.jm-flag:focus {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: none;
  filter: saturate(1.05) contrast(1.02);
}

.jm-flag.is-active {
  outline: none;
  box-shadow: 0 0 0 2px rgba(48, 133, 238, 0.35);
}

.jm-flag--fr {
  background: linear-gradient(90deg, #0055a4 0 33%, #ffffff 33% 66%, #ef4135 66% 100%);
}

.jm-flag--en {
  background: none;
}

/* Reset nav link styling around the flags (Quark dropmenu styles apply to all <a>) */
.dropmenu ul li.jm-langswitch-item > a,
.overlay-menu .tree li.jm-langswitch-item > a {
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  transform: none !important;
}

.dropmenu ul li.jm-langswitch-item > a:hover,
.dropmenu ul li.jm-langswitch-item > a:focus {
  background: transparent !important;
}

/* Simple card grids (Home page) */
.jm-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0.75rem 0 2rem;
}

@media (max-width: 1000px) {
  .jm-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .jm-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .jm-card-grid.jm-home-latest-grid .card:nth-child(n + 5) {
    display: none;
  }
}

.jm-card-grid .card {
  margin: 0;
}

/* Make cards uniform within the grid */
.jm-card-grid .card.jm-blog-card,
.jm-card-grid .card.jm-album-card {
  height: 100%;
}

.jm-card-grid .card.jm-blog-card .card-header,
.jm-card-grid .card.jm-album-card .card-header {
  min-height: 96px;
}

.jm-card-grid .card.jm-blog-card .card-footer,
.jm-card-grid .card.jm-album-card .card-footer {
  min-height: 44px;
}

html {
  scroll-behavior: smooth;
}

/* Page headers (Blog index etc.) */
.jm-page-header {
  margin: 1.6rem 0 1.25rem;
  text-align: left;
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
}

/* Blog index: center the title block */
.jm-blog-index .jm-page-header {
  text-align: center;
}

.jm-blog-index .jm-page-lead {
  text-align: left;
  margin-left: auto;
  margin-right: auto;
}

.jm-blog-index .jm-page-header::after {
  max-width: 220px;
  margin-left: auto;
  margin-right: auto;
}

.jm-home-lead {
  text-align: center;
  max-width: 72ch;
  margin: 0.75rem auto 1.5rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(80, 89, 108, 0.95);
}

.jm-page-title {
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}

.jm-page-lead {
  max-width: 62ch;
  color: rgba(80, 89, 108, 0.9);
  font-size: 1rem;
  line-height: 1.55;
}

.jm-page-header::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 1rem;
  background: rgba(140, 150, 170, 0.2);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Header logo sizing (keeps nav clickable) */
#header {
  height: auto;
  min-height: 110px;
  position: relative;
  z-index: 50;
}

/* When using a fixed header, offset page content by the header height */
body.header-fixed #body-wrapper {
  padding-top: 110px;
}

#header .navbar {
  height: 100%;
  padding-top: 0.15rem;
  padding-bottom: 0.075rem;
  align-items: center;
}

#header .navbar-section {
  height: auto;
}

#header .navbar-section.logo {
  flex: 0 0 auto;
}

#header .navbar-section.desktop-menu {
  flex: 1 1 auto;
}

#header .navbar-section.logo .jm-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

#header .navbar-section.logo .jm-logo img {
  width: auto;
  display: block;
}

#header .navbar-section.logo .jm-logo__mark {
  height: 119px;
}

#header .navbar-section.logo .jm-logo__text {
  height: 74px;
}

/* Header nav sizing */
#header .dropmenu ul li a {
  padding: 3px 34px 3px 23px;
  font-size: 0.9rem;
  font-weight: 400 !important;
}

#header .dropmenu > ul > li > a,
#header .dropmenu > ul > li > a.active,
.overlay-menu .tree > li > a {
  font-weight: 400 !important;
}

/* Ensure dropdown menus sit above the hero on Home */
#header .dropmenu ul ul {
  z-index: 60;
}

body.header-fixed.header-animated #header.scrolled {
  height: auto;
  min-height: 3.75rem;
}

body.header-fixed.header-animated #header.scrolled .navbar-section {
  height: auto;
}

body.header-fixed.header-animated #header.scrolled .jm-logo__mark {
  height: 79px;
}

body.header-fixed.header-animated #header.scrolled .jm-logo__text {
  height: 49px;
}

body.header-fixed.header-animated #header.scrolled .navbar {
  padding-top: 0.075rem;
  padding-bottom: 0.075rem;
}

/* Keep mobile menu overlay + close icon above header */
@media (max-width: 840px) {
  .mobile-container {
    z-index: 120;
  }

  .mobile-container .overlay {
    z-index: 120;
  }

  .mobile-menu {
    z-index: 130;
  }

  .mobile-menu .button_container {
    z-index: 140;
  }

  body.mobile-nav-open #header {
    z-index: 110;
  }
}

@media (max-width: 820px) {
  #header {
    min-height: 78px;
  }

  body.header-fixed #body-wrapper {
    padding-top: 78px;
  }

  #header .navbar-section.logo .jm-logo {
    gap: 8px;
  }

  #header .navbar-section.logo .jm-logo__mark {
    height: 78px;
  }

  #header .navbar-section.logo .jm-logo__text {
    height: 48px;
  }

  body.header-fixed.header-animated #header.scrolled .jm-logo__mark {
    height: 58px;
  }

  body.header-fixed.header-animated #header.scrolled .jm-logo__text {
    height: 36px;
  }
}

@media (max-width: 560px) {
  #header {
    min-height: 65px;
  }

  body.header-fixed #body-wrapper {
    padding-top: 65px;
  }

  #header .navbar-section.logo .jm-logo {
    gap: 6px;
  }

  #header .navbar-section.logo .jm-logo__mark {
    height: 65px;
  }

  #header .navbar-section.logo .jm-logo__text {
    height: 40px;
  }

  body.header-fixed.header-animated #header.scrolled .jm-logo__mark {
    height: 48px;
  }

  body.header-fixed.header-animated #header.scrolled .jm-logo__text {
    height: 30px;
  }
}

/* Blog listing cards: consistent sizing */
.jm-blog-index .bricklayer {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* Post content: keep inline images comfortable on screen */
.content-item {
  max-width: 72ch;
  margin-left: auto;
  margin-right: auto;
}

.content-item .e-content {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.content-item .e-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

.content-item .e-content p {
  margin-bottom: 0.95rem;
}

.content-item .content-title {
  max-width: 72ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.content-item .e-content img {
  display: block;
  height: auto;
  width: auto;
  max-width: min(520px, 100%);
  margin: 0.8rem 0 1rem;
  border-radius: 10px;
  box-shadow: var(--jm-shadow-sm);
  image-rendering: -webkit-optimize-contrast;
}

.content-item .e-content > p > img:only-child {
  width: 100%;
  max-width: min(520px, 96%);
}

.content-item .e-content > p:nth-of-type(odd) > img:only-child {
  margin-right: auto;
}

.content-item .e-content > p:nth-of-type(even) > img:only-child {
  margin-left: auto;
}

.content-item .e-content img.jm-img--sm {
  max-width: min(280px, 100%);
}

.content-item .e-content img.jm-img--md {
  max-width: min(420px, 100%);
}

.content-item .e-content img.jm-img--lg {
  max-width: min(520px, 100%);
}

.content-item .e-content img.jm-img--full {
  max-width: 100%;
}

.content-item.jm-img-default--sm .e-content img:not(.jm-img--sm):not(.jm-img--md):not(.jm-img--lg):not(.jm-img--full) {
  max-width: min(280px, 100%);
}

.content-item.jm-img-default--md .e-content img:not(.jm-img--sm):not(.jm-img--md):not(.jm-img--lg):not(.jm-img--full) {
  max-width: min(420px, 100%);
}

.content-item.jm-img-default--lg .e-content img:not(.jm-img--sm):not(.jm-img--md):not(.jm-img--lg):not(.jm-img--full) {
  max-width: min(520px, 100%);
}

.content-item.jm-img-default--full .e-content img:not(.jm-img--sm):not(.jm-img--md):not(.jm-img--lg):not(.jm-img--full) {
  max-width: 100%;
}

/* Blog cards: center content */
.blog-listing .bricklayer .card.jm-blog-card .card-header,
.blog-listing .bricklayer .card.jm-blog-card .card-body,
.blog-listing .bricklayer .card.jm-blog-card .card-footer {
  text-align: left;
}

.content-item .e-content figure {
  margin: 1.25rem 0;
}

.content-item .e-content .jm-text-image-block {
  display: flow-root;
}

.content-item .e-content .jm-image-blocks {
  width: 100%;
  margin-top: 1.6rem;
}

.content-item .e-content .jm-image-block {
  width: min(100%, var(--jm-image-block-width, 100%));
  margin: 1rem auto 1.2rem;
}

.content-item .e-content .jm-image-block--left {
  margin-left: 0;
  margin-right: auto;
}

.content-item .e-content .jm-image-block--center {
  margin-left: auto;
  margin-right: auto;
}

.content-item .e-content .jm-image-block--right {
  margin-left: auto;
  margin-right: 0;
}

.content-item .e-content .jm-image-block img {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  display: block;
}

.content-item .e-content .jm-image-block figcaption {
  margin-top: 0.5rem;
}

.content-item .e-content .jm-article-block {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.92fr);
  gap: 1.6rem;
  align-items: start;
  margin: 2rem 0;
}

.content-item .e-content .jm-article-block__text {
  min-width: 0;
}

.content-item .e-content .jm-article-block__text h2 {
  margin-top: 0;
}

.content-item .e-content .jm-article-block__media {
  width: min(100%, var(--jm-article-media-width, 100%));
  margin: 0;
  justify-self: end;
}

.content-item .e-content .jm-article-block__media img {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.content-item .e-content .jm-article-block__media figcaption {
  margin-top: 0.55rem;
  text-align: left;
}

.content-item .e-content .jm-article-block--media-left {
  grid-template-columns: minmax(260px, 0.92fr) minmax(0, 1.08fr);
}

.content-item .e-content .jm-article-block--media-left .jm-article-block__text {
  order: 2;
}

.content-item .e-content .jm-article-block--media-left .jm-article-block__media {
  order: 1;
  justify-self: start;
}

.content-item .e-content .jm-article-block--media-center .jm-article-block__media {
  justify-self: center;
}

.content-item .e-content .image-block {
  width: var(--image-width, 100%);
  max-width: 100%;
  margin: 1rem 0;
}

.content-item .e-content .image-block.wrap.align-left {
  float: left;
  margin: 0 1.5rem 1rem 0;
}

.content-item .e-content .image-block.wrap.align-right {
  float: right;
  margin: 0 0 1rem 1.5rem;
}

.content-item .e-content .image-block.align-center {
  margin-inline: auto;
}

.content-item .e-content .image-block.align-full {
  width: 100%;
}

.content-item .e-content .image-block img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0;
}

.content-item .e-content .image-block figcaption {
  margin-top: 0.5rem;
}

.content-item .e-content .image-block.wrap {
  display: inline-block;
}

.content-item .e-content .image-block:not(.wrap) {
  float: none;
  clear: both;
}

.content-item .e-content .image-block:not(.wrap).align-left {
  margin-left: 0;
  margin-right: auto;
}

.content-item .e-content .image-block:not(.wrap).align-right {
  margin-left: auto;
  margin-right: 0;
}

.content-item .e-content .image-block:not(.wrap).align-center,
.content-item .e-content .image-block:not(.wrap).align-full {
  margin-left: auto;
  margin-right: auto;
}

.content-item .e-content .image-block.wrap.align-center,
.content-item .e-content .image-block.wrap.align-full {
  float: none;
  clear: both;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.content-item .e-content figcaption {
  max-width: min(860px, 100%);
  margin: 0.5rem auto 0;
  color: rgba(80, 89, 108, 0.9);
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 900px) {
}

.blog-listing .bricklayer .card.jm-blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--jm-border);
  border-radius: var(--jm-radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--jm-shadow-sm);
  transform: translateY(0);
  transition: transform 220ms var(--jm-ease), box-shadow 220ms var(--jm-ease);
}

.blog-listing .bricklayer .card.jm-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--jm-shadow-md);
}

.blog-listing .bricklayer .card.jm-blog-card .card-image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 320ms var(--jm-ease), filter 320ms var(--jm-ease);
}

.blog-listing .bricklayer .card.jm-blog-card:hover .card-image img {
  transform: scale(1.02);
  filter: grayscale(1) saturate(0) contrast(1.05);
}

.blog-listing .bricklayer .card.jm-blog-card .card-title h5 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.2;
  min-height: calc(1.2em * 2);
  margin-bottom: 0;
}

.blog-listing .bricklayer .card.jm-blog-card .card-title a {
  text-decoration: none;
}

.blog-listing .bricklayer .card.jm-blog-card .card-title a:hover {
  text-decoration: underline;
}

.blog-listing .bricklayer .card.jm-blog-card .card-body {
  flex: 1 1 auto;
  overflow: hidden;
  max-height: calc(1.5em * 4);
}

.blog-listing .bricklayer .card.jm-blog-card .card-body p {
  margin-bottom: 0;
}

.blog-listing .bricklayer .card.jm-blog-card .card-footer {
  margin-top: auto;
}

/* Home page also uses the same blog card partial */
.jm-card-grid .card.jm-blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--jm-border);
  border-radius: var(--jm-radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--jm-shadow-sm);
  transform: translateY(0);
  transition: transform 220ms var(--jm-ease), box-shadow 220ms var(--jm-ease);
}

.jm-card-grid .card.jm-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--jm-shadow-md);
}

.jm-card-grid .card.jm-blog-card .card-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 320ms var(--jm-ease), filter 320ms var(--jm-ease);
}

.jm-card-grid .card.jm-blog-card:hover .card-image img {
  transform: scale(1.04);
  filter: grayscale(1) saturate(0) contrast(1.05);
}

/* Hero text readability on photo backgrounds */
.modular-hero.hero.overlay-dark-gradient .container,
.modular-hero.hero.overlay-dark-gradient .container h1,
.modular-hero.hero.overlay-dark-gradient .container h2,
.modular-hero.hero.overlay-dark-gradient .container p,
.modular-hero.hero.overlay-dark-gradient .container a {
  color: #fff;
}

/* Hero entrance (subtle) */
.modular-hero.hero .container > * {
  animation: jmFadeUp 520ms var(--jm-ease) both;
}

.modular-hero.hero .container > *:nth-child(2) {
  animation-delay: 80ms;
}

.modular-hero.hero .container > *:nth-child(3) {
  animation-delay: 140ms;
}

@keyframes jmFadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Remove hero down-arrow indicator */
.hero #to-start,
.modular-hero #to-start {
  display: none !important;
}

/* Navigation hover polish */
.dropmenu ul li a {
  border-radius: 10px;
  transition: background 180ms var(--jm-ease), color 180ms var(--jm-ease),
    transform 180ms var(--jm-ease);
}

/* Disable desktop hover dropdowns in the header nav */
#header .dropmenu ul ul {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  transform: none !important;
}

#header .dropmenu ul li:hover > ul {
  display: none !important;
  visibility: hidden !important;
}

.dropmenu ul li a:before,
.dropmenu ul ul li a:before {
  content: "" !important;
  display: none !important;
}

.dropmenu ul li a:hover,
.dropmenu ul li a:focus {
  background: rgba(48, 133, 238, 0.08);
  text-decoration: none;
}

.dropmenu > ul > li > a:hover,
.dropmenu > ul > li > a:focus {
  transform: translateY(-1px);
}

/* Album cards (Home page) */
.card.jm-album-card {
  border: 1px solid var(--jm-border);
  border-radius: var(--jm-radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--jm-shadow-sm);
  transform: translateY(0);
  transition: transform 220ms var(--jm-ease), box-shadow 220ms var(--jm-ease);
}

.card.jm-album-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--jm-shadow-md);
}

.card.jm-album-card .card-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 320ms var(--jm-ease), filter 320ms var(--jm-ease);
}

.card.jm-album-card:hover .card-image img {
  transform: scale(1.04);
  filter: grayscale(1) saturate(0) contrast(1.05);
}

.card.jm-album-card .card-title a {
  text-decoration: none;
}

.card.jm-album-card .card-title a:hover {
  text-decoration: underline;
}

.card.jm-album-card .card-title h5 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.2;
  min-height: calc(1.2em * 2);
  margin-bottom: 0;
}

.card.jm-album-card .card-body {
  flex: 1 1 auto;
  overflow: hidden;
  max-height: calc(1.5em * 4);
}

.card.jm-album-card .card-body p {
  margin-bottom: 0;
}

/* Full-bleed media cards with opaque floating metadata */
.blog-listing .bricklayer .card.jm-blog-card,
.jm-card-grid .card.jm-blog-card,
.jm-card-grid .card.jm-album-card,
.card.jm-album-card {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  padding: 0;
}

.blog-listing .bricklayer .card.jm-blog-card .card-image,
.jm-card-grid .card.jm-blog-card .card-image,
.jm-card-grid .card.jm-album-card .card-image,
.card.jm-album-card .card-image {
  position: absolute;
  inset: 0;
  margin: 0;
}

.blog-listing .bricklayer .card.jm-blog-card .card-image > a,
.jm-card-grid .card.jm-blog-card .card-image > a,
.jm-card-grid .card.jm-album-card .card-image > a,
.card.jm-album-card .card-image > a {
  display: block;
  width: 100%;
  height: 100%;
}

.blog-listing .bricklayer .card.jm-blog-card .card-image img,
.jm-card-grid .card.jm-blog-card .card-image img,
.jm-card-grid .card.jm-album-card .card-image img,
.card.jm-album-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-listing .bricklayer .card.jm-blog-card .jm-card-meta,
.jm-card-grid .card.jm-blog-card .jm-card-meta,
.jm-card-grid .card.jm-album-card .jm-card-meta,
.card.jm-album-card .jm-card-meta {
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 2;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.18);
  padding: 0.75rem 0.85rem;
}

.blog-listing .bricklayer .card.jm-blog-card .card-header,
.blog-listing .bricklayer .card.jm-blog-card .card-body,
.jm-card-grid .card.jm-blog-card .card-header,
.jm-card-grid .card.jm-blog-card .card-body,
.jm-card-grid .card.jm-album-card .card-header,
.jm-card-grid .card.jm-album-card .card-body,
.card.jm-album-card .card-header,
.card.jm-album-card .card-body {
  background: transparent;
  padding: 0;
}

.blog-listing .bricklayer .card.jm-blog-card .card-title h5,
.jm-card-grid .card.jm-blog-card .card-title h5,
.jm-card-grid .card.jm-album-card .card-title h5,
.card.jm-album-card .card-title h5 {
  margin: 0;
  min-height: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  line-height: 1.2;
}

.blog-listing .bricklayer .card.jm-blog-card .card-body,
.jm-card-grid .card.jm-blog-card .card-body,
.jm-card-grid .card.jm-album-card .card-body,
.card.jm-album-card .card-body {
  margin-top: 0.2rem;
  max-height: none;
}

.blog-listing .bricklayer .card.jm-blog-card .card-body p,
.jm-card-grid .card.jm-blog-card .card-body p,
.jm-card-grid .card.jm-album-card .card-body p,
.card.jm-album-card .card-body p {
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  line-height: 1.4;
}

.blog-listing .bricklayer .card.jm-blog-card .card-footer,
.jm-card-grid .card.jm-blog-card .card-footer,
.jm-card-grid .card.jm-album-card .card-footer,
.card.jm-album-card .card-footer {
  display: none !important;
}

/* Uniform overlay panel sizing + smaller cards + larger gaps */
.jm-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

@media (max-width: 1200px) {
  .jm-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .jm-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .jm-card-grid {
    grid-template-columns: 1fr;
  }
}

.jm-blog-index .bricklayer {
  max-width: 1100px;
}

.jm-blog-index .bricklayer .bricklayer-column-sizer {
  width: 25%;
}

.jm-blog-index .bricklayer .bricklayer-column {
  padding-left: 14px;
  padding-right: 14px;
}

@media (max-width: 1200px) {
  .jm-blog-index .bricklayer .bricklayer-column-sizer {
    width: 33.3333%;
  }
}

@media (max-width: 820px) {
  .jm-blog-index .bricklayer .bricklayer-column-sizer {
    width: 50%;
  }
}

@media (max-width: 560px) {
  .jm-blog-index .bricklayer .bricklayer-column-sizer {
    width: 100%;
  }
}

.blog-listing .bricklayer .card.jm-blog-card {
  margin-bottom: 28px;
}

.blog-listing .bricklayer .card.jm-blog-card .jm-card-meta,
.jm-card-grid .card.jm-blog-card .jm-card-meta,
.jm-card-grid .card.jm-album-card .jm-card-meta,
.card.jm-album-card .jm-card-meta {
  min-height: 0;
  height: 98px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  padding: 0.5rem 0.65rem;
}

.blog-listing .bricklayer .card.jm-blog-card .card-header,
.jm-card-grid .card.jm-blog-card .card-header,
.jm-card-grid .card.jm-album-card .card-header,
.card.jm-album-card .card-header {
  min-height: 0;
}

.blog-listing .bricklayer .card.jm-blog-card .card-subtitle,
.jm-card-grid .card.jm-blog-card .card-subtitle,
.jm-card-grid .card.jm-album-card .card-subtitle,
.card.jm-album-card .card-subtitle {
  margin: 0;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blog-listing .bricklayer .card.jm-blog-card .card-subtitle .blog-date,
.jm-card-grid .card.jm-blog-card .card-subtitle .blog-date,
.jm-card-grid .card.jm-album-card .card-subtitle .blog-date,
.card.jm-album-card .card-subtitle .blog-date,
.blog-listing .bricklayer .card.jm-blog-card .card-subtitle time,
.jm-card-grid .card.jm-blog-card .card-subtitle time,
.jm-card-grid .card.jm-album-card .card-subtitle time,
.card.jm-album-card .card-subtitle time {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.15;
}

.jm-album-grid .jm-album-item__link {
  display: block;
  border-radius: var(--jm-radius);
  overflow: hidden;
  background: #f6f6f6;
  border: 0;
  box-shadow: none;
  transform: translateY(0);
  transition: transform 220ms var(--jm-ease);
}

.jm-album-grid .jm-album-item__link:hover {
  transform: translateY(-3px);
  box-shadow: none;
}

.jm-album-grid .jm-album-item__link img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  transition: transform 220ms var(--jm-ease), filter 220ms var(--jm-ease);
}

.jm-album-grid .jm-album-item__link:hover img {
  transform: scale(1.03);
  filter: grayscale(1) saturate(0) contrast(1.05);
}

.jm-album-grid .jm-album-item__empty {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}

.content-item .e-content .jm-album-photo-grid__item img,
.content-item .e-content .jm-album-grid .jm-album-item__link img,
.content-item .e-content .jm-album-carousel__stageImg,
.content-item .e-content .jm-album-carousel__thumb img {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

@media (min-width: 700px) {
  .jm-album-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .jm-album-grid .jm-album-item__link img {
    height: 150px;
  }
}

@media (min-width: 980px) {
  .jm-album-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .jm-album-grid .jm-album-item__link img {
    height: 160px;
  }
}

.jm-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
}

.jm-lightbox[aria-hidden="false"] {
  display: flex;
}

.jm-lightbox .jm-lightbox__stage {
  width: min(96vw, 1680px);
  height: min(90vh, 1100px);
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.jm-lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: auto;
}

.jm-lightbox.is-actual img {
  max-width: none;
  max-height: none;
  height: auto;
  margin: 0;
}

.jm-lightbox.is-actual .jm-lightbox__stage {
  display: block;
  overflow: auto;
}

.jm-lightbox.is-actual .jm-lightbox__stage img {
  cursor: zoom-out;
}

.jm-lightbox .jm-lightbox__stage img {
  cursor: zoom-in;
}

.jm-lightbox .jm-lightbox__caption {
  padding: 12px 14px 14px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  line-height: 1.35;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.jm-lightbox .jm-lightbox__close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
}

.jm-lightbox .jm-lightbox__zoom {
  position: absolute;
  top: 14px;
  right: 88px;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
}

.jm-lightbox .jm-lightbox__zoom:hover {
  background: rgba(255, 255, 255, 0.2);
}

.jm-lightbox .jm-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.jm-lightbox .jm-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
}

.jm-lightbox .jm-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.jm-lightbox .jm-lightbox__nav--prev {
  left: 14px;
}

.jm-lightbox .jm-lightbox__nav--next {
  right: 14px;
}
