.jp-hero-credit {
  margin-block: .6rem .2rem;
  padding-block: 0;
  color: #455c51;
  font-size: .84rem;
}

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

.jp-photo img {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
}

.jp-photo-open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: zoom-in;
}

.jp-photo-open > span {
  position: absolute;
  inset: auto 8px 8px auto;
  padding: .35rem .65rem;
  border-radius: 4px;
  background: #18372e;
  color: #fff;
  font-size: .78rem;
  line-height: 1.45;
}

.jp-credits {
  margin-block: 1.1rem;
  color: #52645d;
  font-size: .85rem;
}

.jp-credits summary {
  cursor: pointer;
}

.jp-credits li + li {
  margin-top: .65rem;
}

.jp-credit-url {
  display: block;
  overflow-wrap: anywhere;
}

.jp-photo-close:focus-visible,
.jp-photo-open:focus-visible {
  outline: 2px solid #a05c17;
  outline-offset: 3px;
}

.jp-photo-dialog {
  width: min(calc(100% - 24px), 1120px);
  max-width: none;
  max-height: calc(100dvh - 24px);
  padding: clamp(10px, 2.25vw, 25px);
  border: 1px solid #d5dfd5;
  border-radius: 8px;
  background: #fff;
  color: #253931;
  overflow: auto;
}

.jp-photo-dialog::backdrop {
  background: #152a22e3;
}

.jp-photo-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: .7rem;
}

.jp-photo-dialog-head #jp-photo-title {
  margin: 0;
  font-size: clamp(1.03rem, 3.65vw, 1.42rem) !important;
  line-height: 1.45 !important;
}

.jp-photo-close {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .35rem .7rem;
  border: 1px solid #a2b5aa;
  border-radius: 4px;
  background: #f2f7ef;
  color: #1a3a5c;
  white-space: nowrap;
  cursor: pointer;
}

.jp-photo-dialog figure {
  margin: 0;
}

.jp-photo-dialog img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70dvh;
  object-fit: contain;
  background: #f5f7f3;
}

.jp-photo-dialog figcaption {
  padding-top: .55rem;
  font-size: .8rem;
}

@media (max-width: 630px) {
  .jp-site-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
