/* Photo information has its own fullscreen layout, independent of resizable sheets. */
.mm-feed-zoom-info-modal.mm-photo-info-layer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f7f4ef;
  isolation: isolate;
  opacity: 1;
}
.mm-feed-zoom-info-modal.mm-photo-info-layer[hidden] { display: none !important; }
.mm-photo-info-layer.is-closing { pointer-events: none; }
/* Keep the backdrop out of an opacity-animated parent (especially important in Safari).
   Blur, tint and content start together when the layer becomes visible. */
.mm-photo-info-layer.is-open .mm-photo-info-layer__backdrop { animation: mmPhotoInfoBlurIn 240ms ease both; }
.mm-photo-info-layer.is-open .mm-photo-info-layer__dialog { animation: mmPhotoInfoFadeIn 240ms ease both; }
.mm-photo-info-layer.is-closing .mm-photo-info-layer__backdrop { animation: mmPhotoInfoBlurOut 240ms ease both; }
.mm-photo-info-layer.is-closing .mm-photo-info-layer__dialog { animation: mmPhotoInfoFadeOut 240ms ease both; }
@keyframes mmPhotoInfoBlurIn {
  from { background: rgba(12,14,18,0); -webkit-backdrop-filter: blur(0) saturate(1); backdrop-filter: blur(0) saturate(1); }
  to { background: rgba(12,14,18,.68); -webkit-backdrop-filter: blur(26px) saturate(.75); backdrop-filter: blur(26px) saturate(.75); }
}
@keyframes mmPhotoInfoBlurOut {
  from { background: rgba(12,14,18,.68); -webkit-backdrop-filter: blur(26px) saturate(.75); backdrop-filter: blur(26px) saturate(.75); }
  to { background: rgba(12,14,18,0); -webkit-backdrop-filter: blur(0) saturate(1); backdrop-filter: blur(0) saturate(1); }
}
@keyframes mmPhotoInfoFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes mmPhotoInfoFadeOut { from { opacity: 1; } to { opacity: 0; } }
.mm-photo-info-layer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 14, 18, .68);
  -webkit-backdrop-filter: blur(26px) saturate(.75);
  backdrop-filter: blur(26px) saturate(.75);
}
.mm-photo-info-layer__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  box-sizing: border-box;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: max(5rem, 8vh) max(2rem, 8vw);
  padding-top: max(5rem, 8vh, calc(env(safe-area-inset-top) + 4rem));
  padding-bottom: max(3rem, 8vh, calc(env(safe-area-inset-bottom) + 2rem));
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.3) transparent;
  outline: none;
}
.mm-photo-info-layer__panel {
  width: min(68rem, 100%);
  min-width: 0;
  margin-block: auto;
}
.mm-photo-info-layer__title {
  max-width: 20ch;
  margin: 0 0 clamp(2.5rem, 6vh, 4.5rem);
  padding: 0;
  color: inherit;
  font-family: "San Francisco", Arial, sans-serif;
  font-size: clamp(2.6rem, 6vw, 6.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -.035em;
  text-transform: none;
  overflow-wrap: anywhere;
}
/* Keep the photo layer readable even when the site's light theme overrides headings/icons. */
.mm-feed-zoom-info-modal.mm-photo-info-layer .mm-photo-info-layer__title,
.mm-feed-zoom-info-modal.mm-photo-info-layer .mm-photo-info-layer__close,
.mm-feed-zoom-info-modal.mm-photo-info-layer .mm-photo-info-layer__close i {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}
.mm-photo-info-layer__details {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vh, 3.5rem) clamp(2rem, 6vw, 5rem);
  margin: 0;
}
.mm-photo-info-layer__field { min-width: 0; }
.mm-photo-info-layer__field--date { grid-column: 1 / -1; }
.mm-photo-info-layer__field dt {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: 0 0 .85rem;
  color: rgba(247,244,239,.58);
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.mm-feed-zoom-info-modal.mm-photo-info-layer .mm-photo-info-layer__field dt i {
  display: inline-flex;
  flex: 0 0 auto;
  color: inherit !important;
  -webkit-text-fill-color: currentColor;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 0;
}
.mm-photo-info-layer__field dd {
  margin: 0;
  color: inherit;
  font-size: clamp(1.05rem, 1.7vw, 1.4rem);
  font-weight: 300;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.mm-photo-info-layer__field ul { list-style: none; padding: 0; margin: 0; }
.mm-photo-info-layer__field li { margin: 0 0 .25rem; padding: 0; }
/* Reuse the photo viewer's close-button styling, including its responsive sizing.
   Only pin it to the viewport and keep it visible while the viewer controls dim. */
.mm-feed-zoom .mm-photo-info-layer .mm-photo-info-layer__close {
  position: fixed;
  opacity: 1 !important;
  pointer-events: auto !important;
}
.mm-feed-zoom.has-info-open > [data-feed-zoom-close] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
@media (max-width: 767.98px) {
  .mm-photo-info-layer__dialog { padding-inline: 1.6rem; padding-top: max(6rem, calc(env(safe-area-inset-top) + 5rem)); padding-bottom: max(2.5rem, calc(env(safe-area-inset-bottom) + 2rem)); }
  .mm-photo-info-layer__details { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .mm-photo-info-layer__title { font-size: clamp(2.3rem, 10vw, 4rem); margin-bottom: 2.5rem; }
  .mm-photo-info-layer__field dd { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mm-photo-info-layer__backdrop, .mm-photo-info-layer__dialog { animation: none !important; }
  .mm-photo-info-layer__close { transition: none; }
}
