html.listeo-gallery-open {
  overflow: hidden;
}

html.listeo-gallery-open body {
  overflow: hidden;
}

html.listeo-gallery-open.listeo-gallery-has-scrollbar {
  scrollbar-gutter: stable;
  background-color: #111;
}

@supports not (scrollbar-gutter: stable) {
  html.listeo-gallery-open body { padding-inline-end: var(--listeo-gallery-scrollbar, 0px); }
}

.listeo-gallery {
  --gallery-bg: #111;
  --gallery-muted: #aaa;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: zoom-out;
  overflow: hidden;
  overscroll-behavior: contain;
  opacity: 1;
  transition: opacity 200ms ease, transform 200ms ease;
}

.listeo-gallery[open] { display: flex; flex-direction: column; }
.listeo-gallery [hidden] { display: none !important; }
.listeo-gallery::backdrop { background: rgb(17 17 17 / 94%); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: opacity 200ms ease; }
@supports (scrollbar-gutter: stable) {
  .listeo-gallery, .listeo-gallery::backdrop { width: calc(100vw + var(--listeo-gallery-scrollbar, 0px)); }
}
.listeo-gallery.is-closing::backdrop { opacity: 0; }
.listeo-gallery.is-closing { opacity: 0; transform: translateY(12px); }
.listeo-gallery *, .listeo-gallery *::before, .listeo-gallery *::after { box-sizing: border-box; }
.listeo-gallery__photo, .listeo-gallery__title, .listeo-gallery__counter,
.listeo-gallery__caption, .listeo-gallery__attribution, .listeo-gallery__indicators { cursor: default; }

.listeo-gallery__header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  flex: 0 0 auto;
  min-height: 88px;
  padding: max(16px, env(safe-area-inset-top)) max(32px, env(safe-area-inset-right)) 16px max(32px, env(safe-area-inset-left));
  border-bottom: 1px solid rgb(255 255 255 / 9%);
  z-index: 2;
}

.listeo-gallery button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  border: 0;
  box-shadow: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.listeo-gallery button::before, .listeo-gallery button::after { content: none; }
.listeo-gallery button:focus-visible, .listeo-gallery a:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }

.listeo-gallery .listeo-gallery__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 48px;
  height: 48px;
  padding: 12px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 50%;
  background: transparent;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.listeo-gallery .listeo-gallery__button:hover { background: rgb(255 255 255 / 10%); border-color: rgb(255 255 255 / 40%); }
.listeo-gallery .listeo-gallery__button:active { transform: scale(.94); }
.listeo-gallery__button svg { width: 24px; height: 24px; flex: 0 0 24px; }
.listeo-gallery .listeo-gallery__back { width: auto; min-width: 0; max-width: 100%; border: 0; border-radius: 8px; justify-self: start; font-size: 14px; }
.listeo-gallery__back span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listeo-gallery__counter { grid-column: 2; font-size: 14px; font-weight: 500; letter-spacing: .04em; font-variant-numeric: tabular-nums; color: #ddd; }
.listeo-gallery__close { grid-column: 3; justify-self: end; }

.listeo-gallery__overview {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 42px 24px 80px;
  scrollbar-color: #555 var(--gallery-bg);
}

.listeo-gallery .listeo-gallery__title {
  grid-column: 2;
  max-width: 60vw;
  min-width: 0;
  margin: 0;
  color: #fff;
  font: inherit;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -.025em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listeo-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 1040px;
  margin: 0 auto;
}

.listeo-gallery .listeo-gallery__tile {
  display: block;
  cursor: zoom-in;
  position: relative;
  width: 100%;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background: #222;
  isolation: isolate;
}

.listeo-gallery__tile:nth-child(3n + 1) { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.listeo-gallery__tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: filter 300ms ease; }
.listeo-gallery__tile:hover img { filter: brightness(1.07); }
.listeo-gallery__tile > svg { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 1; width: 36px; height: 36px; padding: 8px; border-radius: 100px; background: rgb(0 0 0 / 35%); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); color: #fff; opacity: 0; transform: scale(.85); transition: opacity 200ms ease, transform 200ms ease; pointer-events: none; }
.listeo-gallery__tile:hover > svg, .listeo-gallery__tile:focus-visible > svg { opacity: 1; transform: scale(1); }
.listeo-gallery__tile-label { position: absolute; inset-inline: 16px; bottom: 16px; width: fit-content; max-width: calc(100% - 32px); padding: 5px 10px; border-radius: 5px; background: rgb(0 0 0 / 50%); color: #fff; font-size: 12px; line-height: 1.5; text-align: start; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; backdrop-filter: blur(8px); }

.listeo-gallery__viewer { position: relative; display: flex; flex-direction: column; flex: 1; min-height: 0; }
.listeo-gallery.is-viewing .listeo-gallery__header { border-color: transparent; }
.listeo-gallery__stage { position: relative; display: flex; align-items: center; justify-content: center; flex: 1; min-height: 0; margin: 8px 104px 0; touch-action: pan-y pinch-zoom; }
.listeo-gallery__photo { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; user-select: none; -webkit-user-drag: none; }
.listeo-gallery .listeo-gallery__arrow { position: absolute; top: calc(50% - 72px); background: rgb(17 17 17 / 65%); }
.listeo-gallery__previous { inset-inline-start: 28px; }
.listeo-gallery__next { inset-inline-end: 28px; }
.listeo-gallery:dir(rtl) .listeo-gallery__arrow svg { transform: scaleX(-1); }

.listeo-gallery__footer { display: flex; flex-direction: column; align-items: center; flex: 0 0 auto; gap: 6px; padding: 20px 24px max(24px, env(safe-area-inset-bottom)); }
.listeo-gallery .listeo-gallery__caption { max-width: 900px; max-height: 12vh; overflow-y: auto; margin: 0; color: #ddd; font-size: 14px; line-height: 1.6; text-align: center; white-space: pre-line; }
.listeo-gallery__attribution { max-width: 900px; max-height: 8vh; overflow-y: auto; color: var(--gallery-muted); font-size: 12px; line-height: 1.5; text-align: center; }
.listeo-gallery__attribution a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.listeo-gallery__caption:empty, .listeo-gallery__attribution:empty { display: none; }
.listeo-gallery__indicators { display: flex; align-items: center; gap: 5px; max-width: min(100%, 560px); min-height: 32px; overflow-x: auto; padding: 5px; scrollbar-width: none; direction: ltr; }
.listeo-gallery__indicators::-webkit-scrollbar { display: none; }
.listeo-gallery .listeo-gallery__indicator { position: relative; flex: 0 0 28px; height: 28px; padding: 12px 0; border-radius: 0; background: transparent; }
.listeo-gallery .listeo-gallery__indicator::after { content: ''; display: block; height: 3px; border-radius: 4px; background: #555; transition: background 220ms ease, transform 220ms ease; }
.listeo-gallery .listeo-gallery__indicator:hover::after { background: #999; }
.listeo-gallery .listeo-gallery__indicator[aria-current="true"]::after { background: #fff; transform: scaleY(1.35); }

.listeo-gallery__status { position: absolute; top: 42%; inset-inline: 24px; color: var(--gallery-muted); font-size: 14px; text-align: center; pointer-events: none; }
.listeo-gallery.is-loading .listeo-gallery__status::before { content: ''; display: block; width: 28px; height: 28px; margin: 0 auto 16px; border: 2px solid #444; border-top-color: #fff; border-radius: 50%; animation: listeo-gallery-spin 800ms linear infinite; }
.listeo-gallery .listeo-gallery__retry { position: absolute; top: 52%; left: 50%; transform: translateX(-50%); padding: 8px 18px; border: 1px solid #555; border-radius: 6px; background: transparent; font-size: 14px; }
@keyframes listeo-gallery-spin { to { transform: rotate(360deg); } }

/* Keep the overview entry point visible even for a small gallery. */
[data-listing-gallery] .slg-button[data-gallery-count] { display: inline-block; }
.listing-slider a.mfp-gallery,
.listing-slider-small a.mfp-gallery,
#single-listing-grid-gallery a.slg-gallery-img::before,
#single-listing-grid-gallery a.slg-gallery-img-single::before { cursor: pointer; }

@media (max-width: 767px) {
  .listeo-gallery__header { min-height: 72px; padding: max(12px, env(safe-area-inset-top)) 16px 12px; }
  .listeo-gallery .listeo-gallery__button { width: 44px; height: 44px; padding: 10px; }
  .listeo-gallery .listeo-gallery__back { width: auto; padding-inline: 0; font-size: 13px; }
  .listeo-gallery__counter { font-size: 12px; }
  .listeo-gallery__overview { padding: 24px 16px 48px; }
  .listeo-gallery .listeo-gallery__title { font-size: 16px; }
  .listeo-gallery__grid { gap: 8px; }
  .listeo-gallery .listeo-gallery__tile { border-radius: 5px; }
  .listeo-gallery__tile-label { inset-inline: 8px; bottom: 8px; max-width: calc(100% - 16px); }
  .listeo-gallery__stage { margin: 0; }
  .listeo-gallery__photo { border-radius: 5px; }
  .listeo-gallery .listeo-gallery__arrow { top: auto; bottom: max(16px, env(safe-area-inset-bottom)); }
  .listeo-gallery__previous { inset-inline-start: 16px; }
  .listeo-gallery__next { inset-inline-end: 16px; }
  .listeo-gallery__footer { gap: 4px; padding: 16px 18px max(16px, env(safe-area-inset-bottom)); }
  .listeo-gallery__indicators { max-width: calc(100% - 112px); min-height: 44px; }
  .listeo-gallery .listeo-gallery__indicator { flex-basis: 20px; }
  .listeo-gallery__caption { font-size: 13px; }
}

@media (max-height: 500px) and (orientation: landscape) {
  .listeo-gallery__header { min-height: 56px; padding-block: 6px; }
  .listeo-gallery__footer { padding-block: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .listeo-gallery, .listeo-gallery *, .listeo-gallery *::before, .listeo-gallery *::after { animation: none !important; transition: none !important; }
}

/* Fullwidth listing photo with the existing titlebar over the image. */
@media (min-width: 1201px) {
  .listeo-fullwidth-gallery-frame { padding: 0 20px 10px; margin-bottom: 50px; }
  .listeo-fullwidth-gallery-frame .listeo-fullwidth-gallery { margin-bottom: 0; border-radius: 10px; }
  body:has(.listeo-fullwidth-gallery-frame):not(:has(.lhb-is-scrolled)) :is(#header-container, #header, .lhb-hp-header) { box-shadow: none !important; }
}
.listeo-fullwidth-gallery {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: min(max(520px, 72vh), var(--listeo-fullwidth-max-height, 760px));
  margin-bottom: 50px;
  background: #111;
  color: #fff;
}

.listeo-fullwidth-gallery__photo { position: absolute; inset: 0; z-index: -2; display: block; border-radius: inherit; overflow: hidden; }
.listeo-fullwidth-gallery__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.listeo-fullwidth-gallery::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(180deg, rgb(17 17 17 / 5%) 20%, rgb(17 17 17 / 35%) 50%, rgb(17 17 17 / 85%) 100%); pointer-events: none; }
.listeo-fullwidth-gallery > .container { padding-top: 180px; padding-bottom: 100px; pointer-events: none; }
.listeo-fullwidth-gallery a, .listeo-fullwidth-gallery button { pointer-events: auto; }
.listeo-fullwidth-gallery .listeo-grid-gallery-title { margin: 0; }
.listeo-fullwidth-gallery #titlebar.listing-titlebar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px; margin: 0; padding: 0; background: transparent; zoom: 1; }
.listeo-fullwidth-gallery #titlebar .listing-titlebar-title { flex: 1 1 400px; min-width: 0; margin: 0; }
.listeo-fullwidth-gallery #titlebar.listing-titlebar h1 { font-size: clamp(28px, 2.9vw, 44px); line-height: 1.15; margin: 4px 0 12px; overflow-wrap: anywhere; }
.listeo-fullwidth-gallery #titlebar.listing-titlebar h1,
.listeo-fullwidth-gallery #titlebar.listing-titlebar a,
.listeo-fullwidth-gallery #titlebar.listing-titlebar span,
.listeo-fullwidth-gallery #titlebar.listing-titlebar strong,
.listeo-fullwidth-gallery #titlebar.listing-titlebar i,
.listeo-fullwidth-gallery #titlebar.listing-titlebar b,
.listeo-fullwidth-gallery #titlebar.listing-titlebar .rating-counter a strong { color: #fff !important; }
.listeo-fullwidth-gallery #titlebar .listing-titlebar-title { text-shadow: 0 1px 4px rgb(17 17 17 / 35%); }
.listeo-fullwidth-gallery #titlebar.listing-titlebar .listing-pricing-tag,
.listeo-fullwidth-gallery #titlebar.listing-titlebar .numerical-rating::before { background: rgb(17 17 17 / 35%); }
.listeo-fullwidth-gallery #titlebar.listing-titlebar .listing-tag,
.listeo-fullwidth-gallery #titlebar.listing-titlebar .star-rating { background: rgb(255 255 255 / 10%); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); text-shadow: none; }
.listeo-fullwidth-gallery #titlebar.listing-titlebar .listing-tag { background: var(--primary-color); padding: 7px 16px; }
.listeo-fullwidth-gallery #titlebar.listing-titlebar .star-rating { padding: 3px 14px; }
.listeo-fullwidth-gallery #titlebar .like-icon::before,
.listeo-fullwidth-gallery #titlebar .like-icon::after { color: inherit; }
.listeo-fullwidth-gallery #titlebar .listing-widget,
.listeo-fullwidth-gallery #titlebar .listing-share { margin: 0 !important; }
.listeo-fullwidth-gallery #titlebar .like-button,
.listeo-fullwidth-gallery #titlebar .like-button-notlogged { display: inline-flex; align-items: center; gap: 8px; width: auto; max-width: 100%; margin: 0; padding: 9px 20px; border: 1px solid rgb(255 255 255 / 55%); border-radius: 50px; background: rgb(17 17 17 / 25%); color: #fff; transition: border-color 200ms ease, color 200ms ease, background-color 200ms ease; }
.listeo-fullwidth-gallery #titlebar :is(.like-button, .like-button-notlogged) :is(.like-icon, .bookmark-btn-title) { transition: color 200ms ease; }
.listeo-fullwidth-gallery #titlebar.listing-titlebar :is(.like-button, .like-button-notlogged):is(:hover, :focus-visible) { border-color: var(--primary-color); color: var(--primary-color) !important; }
.listeo-fullwidth-gallery #titlebar.listing-titlebar :is(.like-button, .like-button-notlogged):is(:hover, :focus-visible) :is(.like-icon, .bookmark-btn-title) { color: inherit !important; }
.listeo-fullwidth-gallery #titlebar .like-icon { margin: 0; }
.listeo-fullwidth-gallery #titlebar .listing-logo { flex-shrink: 0; align-self: center; }
.listeo-fullwidth-gallery #titlebar .listing-widget { display: flex; flex-direction: column; align-items: flex-end; }
.listeo-fullwidth-gallery #titlebar.listing-titlebar .listeo-fullwidth-gallery__button {
  position: static;
  display: inline-flex !important;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 8px;
  max-width: 100%;
  min-height: 42px;
  margin: 0;
  padding: 8px 20px;
  border: 1px solid transparent;
  border-radius: 50px;
  background: var(--fullwidth-button-background, #fff);
  color: var(--fullwidth-button-color, #333) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
  text-align: center;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease;
}
.listeo-fullwidth-gallery__directions { --fullwidth-button-background: rgb(255 255 255 / 10%); --fullwidth-button-color: #fff; }
.listeo-fullwidth-gallery .listeo-fullwidth-gallery__button:is(:hover, :focus-visible) { --fullwidth-button-background: var(--primary-color); --fullwidth-button-color: #fff; }
.listeo-fullwidth-gallery #titlebar.listing-titlebar .listeo-fullwidth-gallery__button i { flex-shrink: 0; margin: 0; color: inherit !important; font-size: 14px; line-height: 1; }
.listeo-fullwidth-gallery__actions { display: flex; justify-content: flex-end; margin-top: 20px; }
.listeo-fullwidth-gallery .photo-attribution { margin-top: 16px; font-size: 12px; line-height: 1.5; }
.listeo-fullwidth-gallery .photo-attribution a { color: inherit; text-decoration: underline; }
.listeo-fullwidth-gallery a:focus-visible,
.listeo-fullwidth-gallery button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.listeo-fullwidth-gallery__photo:focus-visible { outline-offset: -6px; }

@media (max-width: 767px) {
  .listeo-fullwidth-gallery { min-height: min(620px, var(--listeo-fullwidth-max-height, 720px)); min-height: min(720px, 85svh, var(--listeo-fullwidth-max-height, 720px)); margin-bottom: 32px; }
  .listeo-fullwidth-gallery > .container { width: 100%; padding: 180px 24px 40px; }
  .listeo-fullwidth-gallery #titlebar.listing-titlebar { gap: 20px; align-items: flex-start; }
  .listeo-fullwidth-gallery #titlebar .listing-titlebar-title { flex-basis: auto; width: 100%; }
  .listeo-fullwidth-gallery #titlebar.listing-titlebar span a { font-size: 15px; line-height: 1.6; }
  .listeo-fullwidth-gallery #titlebar.listing-titlebar span.listing-tag a { font-size: 13px; }
  .listeo-fullwidth-gallery #titlebar .listing-logo { width: 64px; height: 64px; margin: 0; align-self: flex-start; }
  .listeo-fullwidth-gallery #titlebar .listing-widget { flex-direction: row; flex-wrap: wrap; align-items: stretch; gap: 12px; width: 100%; }
  .listeo-fullwidth-gallery__directions, .listeo-fullwidth-gallery__actions { flex: 1 1 165px; zoom: .9; }
  .listeo-fullwidth-gallery__actions { justify-content: flex-start; margin-top: 0; }
  .listeo-fullwidth-gallery #titlebar.listing-titlebar .listeo-fullwidth-gallery__button { width: 100%; padding-inline: 12px; }
}
