.jhsg-wrap,
.jhsg-wrap * {
  box-sizing: border-box;
}

.jhsg-wrap {
  --jhsg-navy: #091a2f;
  --jhsg-paper: #f6f3ed;
  --jhsg-text: #0a1b2e;
  --jhsg-muted: #737a81;
  --jhsg-line: #d4cec2;
  width: 100%;
  color: var(--jhsg-text);
  font-family: Arial, Helvetica, sans-serif;
}

.jhsg-wrap button {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.jhsg-shell {
  width: min(1380px, calc(100% - 56px));
  margin-inline: auto;
}

.jhsg-hero {
  position: relative;
  min-height: var(--jhsg-hero-height);
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 25% 100%,
    var(--jhsg-navy);
}

.jhsg-hero::before {
  content: "";
  position: absolute;
  top: -95px;
  right: 12%;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: var(--jhsg-accent);
  opacity: .96;
}

.jhsg-hero-mark {
  position: absolute;
  right: 2.5%;
  bottom: -40px;
  color: rgba(255,255,255,.08);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 190px;
  font-weight: 700;
  line-height: 1;
  user-select: none;
}

.jhsg-hero-inner {
  position: relative;
  z-index: 1;
  min-height: var(--jhsg-hero-height);
  display: grid;
  grid-template-columns: 1fr minmax(260px, 500px) auto;
  align-items: center;
  gap: 55px;
}

.jhsg-eyebrow {
  margin: 0 0 10px !important;
  color: rgba(255,255,255,.65);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .17em;
}

.jhsg-hero h2 {
  margin: 0 !important;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 6vw, 84px);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.05em;
}

.jhsg-hero h2 span {
  color: var(--jhsg-accent);
}

.jhsg-hero-copy {
  margin: 0 !important;
  padding-left: 20px;
  border-left: 2px solid var(--jhsg-accent);
  color: rgba(255,255,255,.75);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.55;
}

.jhsg-story-count {
  align-self: end;
  padding-bottom: 28px;
  color: rgba(255,255,255,.7);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  white-space: nowrap;
}

.jhsg-gallery {
  padding: 68px 0 72px;
  background: var(--jhsg-paper);
}

.jhsg-filter-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--jhsg-line);
}

.jhsg-filters {
  display: flex;
  gap: 29px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.jhsg-filters::-webkit-scrollbar {
  display: none;
}

.jhsg-filter {
  position: relative;
  flex: none;
  padding: 10px 0 16px;
  border: 0;
  color: #7d8288;
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}

.jhsg-filter::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--jhsg-accent);
  transform: scaleX(0);
  transition: transform .25s ease;
}

.jhsg-filter:hover,
.jhsg-filter.is-active {
  color: var(--jhsg-text);
}

.jhsg-filter.is-active::after {
  transform: scaleX(1);
}

.jhsg-count {
  flex: none;
  padding-bottom: 15px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  letter-spacing: .06em;
}

.jhsg-grid {
  display: grid;
  grid-template-columns: repeat(var(--jhsg-columns), minmax(0, 1fr));
  gap: 36px 20px;
}

.jhsg-card {
  min-width: 0;
  animation: jhsg-card-in .45s ease both;
}

.jhsg-card.is-hidden {
  display: none;
}

@keyframes jhsg-card-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.jhsg-card-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.jhsg-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #d9d4ca;
}

.jhsg-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s cubic-bezier(.2,.75,.3,1);
}

.jhsg-no-image {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #7d8288;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.jhsg-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5,14,25,.04), transparent 53%, rgba(5,14,25,.45));
}

.jhsg-number {
  position: absolute;
  top: 14px;
  left: 14px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.jhsg-open {
  position: absolute;
  right: 13px;
  bottom: 13px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: var(--jhsg-navy);
  background: rgba(255,255,255,.95);
  font-size: 17px;
  transition: transform .3s ease;
}

.jhsg-card[data-type="video"] .jhsg-open {
  padding-left: 2px;
  color: #fff;
  background: var(--jhsg-accent);
  font-size: 12px;
}

.jhsg-card-button:hover .jhsg-media img {
  transform: scale(1.05);
}

.jhsg-card-button:hover .jhsg-open {
  transform: scale(1.09) rotate(5deg);
}

.jhsg-card-button:focus-visible {
  outline: 3px solid var(--jhsg-accent);
  outline-offset: 5px;
}

.jhsg-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 1px 0;
}

.jhsg-meta small,
.jhsg-meta strong {
  display: block;
}

.jhsg-meta small {
  margin-bottom: 7px;
  color: var(--jhsg-accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.jhsg-meta strong {
  color: var(--jhsg-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
}

.jhsg-meta em {
  flex: none;
  margin-top: 18px;
  color: #8a8e92;
  font-size: 9px;
  font-style: normal;
  letter-spacing: .1em;
}

.jhsg-empty {
  padding: 64px 30px;
  border: 1px dashed var(--jhsg-line);
  text-align: center;
  background: rgba(255,255,255,.45);
}

.jhsg-empty strong {
  display: block;
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 400;
}

.jhsg-empty p {
  margin: 0 !important;
  color: var(--jhsg-muted);
}

.jhsg-lightbox[hidden] {
  display: none !important;
}

.jhsg-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 20px;
}

.jhsg-lightbox-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(2,8,16,.84);
  backdrop-filter: blur(7px);
  cursor: pointer;
}

.jhsg-lightbox-box {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, .65fr);
  width: min(980px, 100%);
  max-height: 92vh;
  overflow: hidden;
  color: #fff;
  background: var(--jhsg-navy);
  box-shadow: 0 30px 90px rgba(0,0,0,.42);
}

.jhsg-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--jhsg-navy);
  background: rgba(255,255,255,.95);
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

.jhsg-lightbox-media {
  position: relative;
  min-height: 580px;
  background: #020a14;
}

.jhsg-lightbox-media img,
.jhsg-lightbox-media iframe,
.jhsg-lightbox-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
}

.jhsg-video-link {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
}

.jhsg-video-link span {
  padding: 13px 20px;
  border-radius: 999px;
  background: var(--jhsg-accent);
}

.jhsg-lightbox-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 42px 32px;
}

.jhsg-lightbox-info small {
  margin-bottom: 14px;
  color: var(--jhsg-accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.jhsg-lightbox-info h3 {
  margin: 0 !important;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.12;
}

.jhsg-lightbox-info p {
  margin: 15px 0 0 !important;
  color: rgba(255,255,255,.65);
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 1050px) {
  .jhsg-hero-inner {
    grid-template-columns: 1fr minmax(240px, 420px);
  }

  .jhsg-story-count {
    display: none;
  }

  .jhsg-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .jhsg-shell {
    width: min(620px, calc(100% - 34px));
  }

  .jhsg-hero-inner {
    min-height: max(var(--jhsg-hero-height), 300px);
    grid-template-columns: 1fr;
    align-content: center;
    gap: 24px;
  }

  .jhsg-hero::before {
    top: -60px;
    right: -60px;
    width: 190px;
    height: 190px;
  }

  .jhsg-hero-mark {
    right: -25px;
    bottom: -12px;
    font-size: 125px;
  }

  .jhsg-hero-copy {
    max-width: 430px;
    font-size: 16px;
  }

  .jhsg-gallery {
    padding: 50px 0 58px;
  }

  .jhsg-filters {
    gap: 22px;
  }

  .jhsg-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .jhsg-meta strong {
    font-size: 22px;
  }

  .jhsg-lightbox-box {
    grid-template-columns: 1fr;
    max-height: 94vh;
    overflow-y: auto;
  }

  .jhsg-lightbox-media {
    min-height: 54vh;
  }

  .jhsg-lightbox-info {
    padding: 24px 23px 28px;
  }

  .jhsg-lightbox-info h3 {
    font-size: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jhsg-wrap *,
  .jhsg-wrap *::before,
  .jhsg-wrap *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

