/* Gallery on phones for lot and model pages, see mobile-gallery.js. Desktop keeps each page's own gallery. */
.yfg-mg { display: none; }
.yfg-mlb { display: none; }
@media (max-width: 760px) {
  [data-yacht-gallery] .yacht-gallery-viewport,
  [data-yacht-gallery] .yacht-gallery-filters { display: none !important; }
  [data-yacht-gallery] .yacht-gallery-head { margin-bottom: 20px; }
  html.yfg-mg-on .model-page__gallery-section .model-page__gallery-carousel,
  html.yfg-mg-on .model-page__gallery-section .model-page__gallery-actions,
  html.yfg-mg-on .model-page__gallery-section .model-page__gallery-controls { display: none !important; }
  .model-page__gallery-section .yfg-mg { padding: 0 var(--yfg-mg-gutter, 20px); }
  .yfg-mg { display: grid; gap: 14px; padding: 0 18px; }
  .yfg-mg__photo { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 0; background: rgba(25, 40, 69, .2); cursor: pointer; overflow: hidden; aspect-ratio: 5 / 4; }
  .yfg-mg__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .yfg-mg__photo:has(.yfg-mg__more)::after { position: absolute; inset: 0; content: ''; background: rgba(25, 40, 69, .38); }
  .yfg-mg__more { position: absolute; z-index: 1; top: 50%; left: 50%; min-width: 62%; padding: 15px 18px; transform: translate(-50%, -50%); border: 1px solid rgba(246, 247, 244, .85); color: #f6f7f4; font: 500 13px/1.2 var(--yfg-font, "Wix Madefor Text", Arial, sans-serif); letter-spacing: .14em; text-align: center; text-transform: uppercase; white-space: nowrap; }

  html.yfg-mlb-open, html.yfg-mlb-open body { overflow: hidden; }
  .yfg-mlb[open] { position: fixed; inset: 0; display: grid; grid-template-rows: auto 1fr auto; width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; color: #f6f7f4; background: #192845; font-family: var(--yfg-font, "Wix Madefor Text", Arial, sans-serif); }
  .yfg-mlb::backdrop { background: #192845; }
  .yfg-mlb__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(env(safe-area-inset-top) + 10px) 12px 10px 16px; }
  .yfg-mlb__filter { position: relative; display: inline-flex; align-items: center; }
  .yfg-mlb__filter select { appearance: none; -webkit-appearance: none; min-width: 168px; height: 40px; padding: 0 38px 0 14px; border: 1px solid rgba(246, 247, 244, .55); border-radius: 0; color: #f6f7f4; background: transparent; font-family: inherit; font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
  .yfg-mlb__filter select option { color: #293d66; }
  .yfg-mlb__filter svg { position: absolute; right: 12px; width: 14px; height: 14px; pointer-events: none; }
  .yfg-mlb__close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; color: #f6f7f4; background: transparent; }
  .yfg-mlb__close svg { width: 22px; height: 22px; }
  .yfg-mlb__track { display: flex; min-height: 0; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .yfg-mlb__track::-webkit-scrollbar { display: none; }
  .yfg-mlb__slide { display: grid; flex: 0 0 100%; place-items: center; margin: 0; scroll-snap-align: center; scroll-snap-stop: always; }
  .yfg-mlb__slide img { display: block; width: 100%; height: auto; max-height: 100%; object-fit: contain; }
  .yfg-mlb__nav { position: absolute; top: 50%; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; transform: translateY(-50%); border: 1px solid rgba(246, 247, 244, .7); border-radius: 50%; color: #f6f7f4; background: rgba(25, 40, 69, .45); }
  .yfg-mlb__nav svg { width: 14px; height: 14px; }
  .yfg-mlb__nav--prev { left: 10px; }
  .yfg-mlb__nav--next { right: 10px; }
  .yfg-mlb__bottom { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 16px calc(env(safe-area-inset-bottom) + 18px); font-size: 14px; line-height: 1.35; }
  .yfg-mlb__bottom [data-mlb-caption] { opacity: .8; }
  .yfg-mlb__count { flex: none; font-size: 16px; letter-spacing: .04em; }
  .yfg-mlb__count i { margin: 0 .45em; font-style: normal; opacity: .55; }
}
