@media (max-width: 700px) {
  .bigmp-media-lightbox {
    align-items: center;
    padding: 64px 14px 82px;
  }

  .bigmp-media-lightbox__close {
    top: 14px;
    right: 14px;
  }

  .bigmp-media-lightbox__nav {
    top: auto;
    bottom: 18px;
    width: 44px;
    height: 44px;
    transform: none;
    font-size: 0;
    line-height: 1;
  }

  .bigmp-media-lightbox__nav svg {
    width: 26px;
    height: 26px;
  }

  .bigmp-media-lightbox__nav:hover,
  .bigmp-media-lightbox__nav:focus {
    transform: scale(1.04);
  }

  .bigmp-media-lightbox__nav--prev {
    left: max(18px, env(safe-area-inset-left));
  }

  .bigmp-media-lightbox__nav--next {
    right: max(18px, env(safe-area-inset-right));
  }

  .bigmp-media-lightbox__count {
    bottom: 30px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.38);
  }
}

@media (min-width: 701px) and (max-width: 1320px) {
  .bigmp-media-lightbox {
    padding-left: 86px;
    padding-right: 86px;
  }
}

@media (min-width: 1321px) {
  .bigmp-media-lightbox__nav--prev {
    left: calc((100vw - 1120px) / 2 - 72px);
  }

  .bigmp-media-lightbox__nav--next {
    right: calc((100vw - 1120px) / 2 - 72px);
  }
}

@media (min-width: 1180px) {
  .single-hp_listing .content-container.site-container {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 900px) {
  .bigmp-hp-listing-page,
  .single-hp_listing .bigmp-hp-listing-page {
    width: min(100% - 32px, 1180px);
  }

  .bigmp-profile-hero {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
    padding: 26px 0 30px;
  }

  .bigmp-profile-hero h1 {
    font-size: 36px;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .bigmp-profile-contact {
    width: 100%;
    justify-self: stretch;
    margin-left: 0;
    margin-right: 0;
  }

  .bigmp-profile-button__desktop {
    display: none;
  }

  .bigmp-profile-button__mobile {
    display: inline;
  }

  .bigmp-profile-content {
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px 0 64px;
  }

  .bigmp-profile-main,
  .bigmp-profile-sidebar {
    display: contents;
    position: static;
  }

  .bigmp-profile-gallery,
  .bigmp-profile-card,
  .bigmp-profile-side-card {
    width: 100%;
    max-width: none;
    align-self: stretch;
  }

  .bigmp-profile-gallery {
    order: 10;
  }

  .bigmp-profile-card--amenities {
    order: 20;
  }

  .bigmp-profile-card--offer {
    order: 18;
  }

  .bigmp-profile-side-card {
    order: 30;
  }

  .bigmp-profile-card--description {
    order: 40;
  }

  .bigmp-profile-card--related {
    order: 45;
  }

  .bigmp-profile-gallery__main img,
  .bigmp-profile-gallery__main iframe,
  .bigmp-profile-gallery__main video,
  .bigmp-profile-gallery__video-preview {
    height: 260px;
    aspect-ratio: auto;
    max-height: none;
  }

  .bigmp-profile-gallery__main,
  .bigmp-profile-gallery__main-trigger {
    min-height: 260px;
  }
}

@media (max-width: 600px) {
  .single-hp_listing .bigmp-profile-hero {
    padding: 34px 0 30px;
  }

  .single-hp_listing .bigmp-profile-hero h1 {
    margin-left: auto;
    margin-right: auto;
    font-size: 36px;
    line-height: 1.05;
    text-align: center;
  }

  .single-hp_listing .bigmp-profile-content {
    padding-top: 28px;
  }

  .single-hp_listing .content-container.site-container {
    width: 100% !important;
    max-width: none !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .single-hp_listing .bigmp-profile {
    width: 100%;
  }

  .bigmp-profile-hero {
    gap: 14px;
  }

  .bigmp-profile-hero h1 {
    margin-bottom: 12px;
  }

  .bigmp-profile-breadcrumbs {
    margin-bottom: 18px;
    font-size: 12px;
  }

  .bigmp-profile-badges,
  .bigmp-profile-facts {
    justify-content: center;
  }

  .bigmp-profile-summary {
    margin-bottom: 14px;
    font-size: 15px;
    line-height: 1.5;
  }

  .bigmp-profile-facts {
    gap: 8px;
  }

  .bigmp-profile-facts span {
    min-height: 30px;
    padding: 0 10px;
    font-size: 13px;
  }

  .bigmp-profile-contact,
  .bigmp-profile-card,
  .bigmp-profile-side-card {
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
  }

  .bigmp-profile-contact {
    padding: 16px;
  }

  .bigmp-profile-content {
    gap: 14px;
    padding-top: 24px;
  }

  .bigmp-profile-card__body,
  .bigmp-profile-side-card {
    padding: 16px;
  }

  .bigmp-profile-side-card {
    text-align: center;
  }

  .bigmp-profile-side-card h2 {
    margin-bottom: 12px;
  }

  .bigmp-profile-amenities {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .bigmp-profile-related {
    grid-template-columns: 1fr;
  }

  .bigmp-profile-related-card {
    grid-template-columns: 72px minmax(0, 1fr);
    min-height: 96px;
  }

  .bigmp-profile-related-card__media {
    width: 72px;
    height: 72px;
  }

  .bigmp-profile-amenities li {
    justify-content: center;
    width: min(100%, 200px);
    min-height: 34px;
    padding: 8px 10px;
  }

  .bigmp-profile-schedule div {
    grid-template-columns: 1fr;
    gap: 4px;
    justify-items: center;
  }

  .bigmp-profile-schedule dd {
    text-align: center;
  }

  .bigmp-profile-links {
    justify-content: center;
  }

  .bigmp-profile-gallery {
    padding: 8px;
  }

  .bigmp-profile-gallery__layout--pro {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .bigmp-profile-gallery__thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-columns: auto;
    max-height: none;
    overflow-y: visible;
    overflow-x: visible;
    padding-right: 0;
    padding-bottom: 0;
    gap: 7px;
  }

  .bigmp-profile-gallery__thumb,
  .bigmp-profile-gallery__thumb img {
    min-height: 66px;
  }
}
