/* "My map" — personal photo locations page.
   Map fills viewport, pins open a lightbox with the photo.
   Color tokens align with global brand. */

.mmm {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 40px) clamp(16px, 4vw, 32px);
  color: var(--fg, #f1f1f1);
}

.mmm-head {
  text-align: center;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.mmm-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent, #ff8a00);
}

.mmm-title {
  margin: 0 0 10px;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.mmm-lead {
  margin: 0 auto;
  max-width: 640px;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.55;
  color: var(--fg-mute, #8a8f99);
}

.mmm-map {
  width: 100%;
  height: clamp(420px, 70vh, 720px);
  border-radius: 12px;
  background: #0a0a0a;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  z-index: 0;
}

.mmm-map--empty {
  filter: saturate(0.4) brightness(0.85);
}

.mmm-empty {
  position: relative;
}

.mmm-empty-msg {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 16px 24px;
  text-align: center;
  font-size: 16px;
  color: var(--fg-mute, #8a8f99);
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.55), rgba(10, 10, 10, 0.65));
  border-radius: 12px;
}

/* Custom marker — circular orange pulse */
.mmm-marker {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent, #ff8a00);
  border: 3px solid #fff;
  box-shadow: 0 0 0 4px rgba(255, 138, 0, 0.25), 0 4px 10px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.mmm-marker:hover,
.mmm-marker:focus {
  transform: scale(1.18);
  outline: none;
}

/* Lightbox */
.mmm-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
}

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

.mmm-lightbox-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.mmm-lightbox-close:hover,
.mmm-lightbox-close:focus {
  background: rgba(255, 255, 255, 0.22);
  outline: none;
}

.mmm-lightbox-figure {
  margin: 0;
  max-width: min(1100px, 95vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.mmm-lightbox-figure img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
  background: #111;
}

.mmm-lightbox-caption {
  text-align: center;
  color: #d4d4d4;
  font-size: 14px;
  line-height: 1.45;
  max-width: 800px;
  padding: 0 12px;
}

.mmm-lightbox-caption strong {
  color: #fff;
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.mmm-lightbox-caption .mmm-year {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent, #ff8a00);
}

/* Hide global header/footer artifacts that clash on a full-screen map */
body.is-my-map .author {
  margin-bottom: 12px;
}
