.jpr-petition-memorial-wrap {
  position: relative;
}
.jpr-petition-polaroid-grid {
  display:flex;
  flex-wrap:wrap;
  gap:22px;
  align-items:flex-start;
}
.jpr-petition-polaroid {
  --rotation: -2deg;
  width: min(180px, 100%);
  background:#fff;
  border-radius:10px;
  padding:8px 8px 14px;
  box-shadow:0 12px 26px rgba(0,0,0,.14);
  border:1px solid rgba(0,0,0,.08);
  transform:rotate(var(--rotation));
  transition:transform .18s ease, box-shadow .18s ease;
  cursor:pointer;
  position:relative;
}
.jpr-petition-polaroid:hover {
  transform:rotate(0deg) translateY(-4px);
  box-shadow:0 24px 54px rgba(0,0,0,.2);
}
.jpr-petition-polaroid:nth-child(3n+1) { --rotation: -3deg; }
.jpr-petition-polaroid:nth-child(3n+2) { --rotation: 2.5deg; }
.jpr-petition-polaroid:nth-child(3n+3) { --rotation: -1deg; }
.jpr-petition-polaroid::before {
  content:"";
  position:absolute;
  top:-10px;
  left:50%;
  width:72px;
  height:22px;
  transform:translateX(-50%) rotate(-2deg);
  background:rgba(252,238,193,.82);
  border-radius:3px;
  box-shadow:0 2px 4px rgba(0,0,0,.08);
}
.jpr-petition-polaroid-image {
  width:100%;
  aspect-ratio: 4 / 5;
  border-radius:4px;
  overflow:hidden;
  background:#ececec;
}
.jpr-petition-polaroid-image img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.jpr-petition-polaroid-body {
  padding-top:12px;
}
.jpr-petition-polaroid-name {
  font-weight:700;
  font-size:.95rem;
  line-height:1.25;
  margin-bottom:6px;
}
.jpr-petition-polaroid-meta {
  font-size:.84rem;
  color:#555;
}
.jpr-petition-polaroid-status {
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:4px 10px;
  border-radius:999px;
  background:#111;
  color:#fff;
  font-size:.76rem;
  letter-spacing:.02em;
  margin-bottom:10px;
}
.jpr-petition-polaroid-note {
  font-size:.82rem;
  color:#444;
  margin-top:10px;
}
.jpr-petition-modal-image {
  border-radius:18px;
  overflow:hidden;
  background:#f2f2f2;
}
.jpr-petition-modal-image img {
  width:100%;
  height:auto;
  display:block;
}
.jpr-petition-modal-facts {
  display:grid;
  gap:12px;
}
.jpr-petition-modal-fact {
  padding:12px 14px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  background:#fafafa;
}
.jpr-petition-modal-fact-label {
  font-size:.76rem;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:#777;
  margin-bottom:6px;
}
.jpr-petition-modal-fact-value {
  font-weight:600;
  color:#111;
}

.jpr-petition-map-wrap {
  margin: 0 0 28px;
}
.jpr-petition-map-card {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  box-shadow: 0 20px 48px rgba(0,0,0,.08);
}
.jpr-petition-map-head {
  padding: 18px 20px 10px;
}
.jpr-petition-map-note {
  color: #555;
  font-size: .95rem;
  margin: 6px 0 0;
}
.jpr-petition-map-canvas {
  width: 100%;
  height: 420px;
  background: #f0f0f0;
}
.jpr-petition-map-popup {
  min-width: 200px;
}
.jpr-petition-map-popup-thumb {
  margin-bottom: 10px;
  border-radius: 10px;
  overflow: hidden;
}
.jpr-petition-map-popup-thumb img {
  width: 100%;
  display: block;
}
.jpr-petition-map-popup-title {
  font-weight: 700;
  margin-bottom: 8px;
}
.jpr-petition-map-popup-line {
  font-size: .9rem;
  color: #333;
  margin-bottom: 4px;
}


.jpr-petition-topband {
  padding-top: 0;
  margin-bottom: 2rem;
}
.jpr-petition-topband-map {
  width: 100%;
  margin: 0 0 1.25rem;
}
.jpr-petition-topband .jpr-petition-map-canvas {
  height: clamp(320px, 44vw, 560px);
}
.jpr-petition-topband .jpr-petition-map-head {
  padding: 0 0 1rem;
  max-width: 100%;
}
@media (min-width: 1200px) {
  .jpr-petition-topband .jpr-petition-map-canvas {
    height: clamp(420px, 40vw, 620px);
  }
}
@media (max-width: 991.98px) {
  .jpr-petition-topband {
    margin-bottom: 1.5rem;
  }
  .jpr-petition-topband-map {
    margin-bottom: 1rem;
  }
  .jpr-petition-topband .jpr-petition-map-canvas {
    height: clamp(280px, 62vw, 380px);
  }
}
@media (max-width: 575.98px) {
  .jpr-petition-topband .jpr-petition-map-canvas {
    height: clamp(240px, 68vw, 320px);
  }
}
.leaflet-container {
  z-index: 1;
}

.jpr-petition-map-head {
  padding: 0 0 1rem;
  max-width: 100%;
}
.jpr-petition-topband .jpr-petition-map-head {
  padding: 0 0 1rem;
  max-width: 100%;
}
.jpr-petition-map-note {
  color: #4c4c4c;
  font-size: clamp(.96rem, 1.1vw, 1.04rem);
  line-height: 1.65;
  max-width: 72ch;
}
.jpr-petition-map-marker-wrap {
  background: transparent;
  border: 0;
}
.jpr-petition-map-marker {
  width: 48px;
  height: 58px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 6px;
  box-shadow: 0 12px 22px rgba(0,0,0,.22);
  padding: 5px 5px 12px;
  position: relative;
  transform: rotate(-4deg);
}
.jpr-petition-map-marker::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 18px;
  height: 10px;
  transform: translateX(-50%) rotate(-5deg);
  border-radius: 2px;
  background: rgba(252,238,193,.92);
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
}
.jpr-petition-map-marker-photo,
.jpr-petition-map-mini-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 2px;
  background: #ececec;
}
.jpr-petition-map-marker-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.jpr-petition-map-popup-shell .leaflet-popup-content-wrapper,
.jpr-petition-map-popup-shell .leaflet-popup-tip {
  background: transparent;
  box-shadow: none;
}
.jpr-petition-map-popup-shell .leaflet-popup-content {
  margin: 0;
  overflow: visible;
}
.jpr-petition-map-popup-shell .leaflet-popup-close-button {
  z-index: 1200;
  color: #111;
  top: 8px;
  right: 8px;
}
.jpr-petition-map-polaroid {
  display: block;
  width: min(220px, calc(100vw - 56px));
  background: #fff;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 10px;
  padding: 8px 8px 14px;
  box-shadow: 0 16px 34px rgba(0,0,0,.24);
  position: relative;
  overflow: visible;
  cursor: pointer;
}
.jpr-petition-map-polaroid-tape {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 52px;
  height: 16px;
  transform: translateX(-50%) rotate(-2deg);
  background: rgba(252,238,193,.92);
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0,0,0,.08);
}
.jpr-petition-map-polaroid-photo {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  background: #ececec;
}
.jpr-petition-map-polaroid-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.jpr-petition-map-polaroid-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 12px;
  text-align: left;
}
.jpr-petition-map-polaroid-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: .76rem;
}
.jpr-petition-map-polaroid-name {
  font-weight: 700;
  font-size: .92rem;
  line-height: 1.25;
  color: #111;
}
.jpr-petition-map-polaroid-meta,
.jpr-petition-map-polaroid-note {
  font-size: .82rem;
  color: #4a4a4a;
}
.jpr-petition-map-polaroid-link {
  font-size: .88rem;
  font-weight: 700;
  color: #111;
  text-decoration: underline;
}
.leaflet-pane.leaflet-popup-pane,
.leaflet-pane.leaflet-marker-pane {
  z-index: 650;
}
.leaflet-popup {
  margin-bottom: 18px;
}


@media (max-width: 767.98px) {
  .jpr-petition-polaroid-grid {
    gap: 14px;
  }
  .jpr-petition-polaroid {
    width: min(156px, 100%);
    padding: 7px 7px 12px;
  }
  .jpr-petition-polaroid::before {
    width: 52px;
    height: 16px;
    top: -8px;
  }
  .jpr-petition-map-polaroid {
    width: min(184px, calc(100vw - 42px));
    padding: 7px 7px 12px;
  }
  .jpr-petition-map-polaroid-tape {
    width: 46px;
    height: 14px;
    top: -8px;
  }
}
