/* Keep the non-photo media inside the existing fixed gallery frame. */
.listing-page-content .listing-media-panel > .media-plan-link:not(.media-plan-pdf-wrap) {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.listing-page-content .listing-media-panel > .media-plan-link:not(.media-plan-pdf-wrap) .media-plan-image {
  display: block;
  flex: 0 1 auto;
  width: 100%;
  height: 100% !important;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  object-position: center;
}

.listing-page-content .listing-media-panel > .listing-public-video-wrap {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.listing-page-content .listing-media-panel > .listing-public-video-wrap .media-video {
  display: block;
  width: 100%;
  height: 100% !important;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}
