/* Shared listing gallery. Typography and photography stay with the original brand. */
.listing-carousel .lc-frame { isolation: isolate; touch-action: pan-y; }
.listing-carousel .lc-frame > img { pointer-events: none; }
.listing-carousel .lc-frame > img:not(.on) { visibility: hidden; }
.listing-carousel .lc-btn { width: 46px; height: 46px; min-width: 44px; min-height: 44px; }
.listing-carousel .lc-count { pointer-events: none; letter-spacing: .08em; font-size: 12px; }
.lg-open-image { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; border: 0; padding: 0; cursor: zoom-in; background: transparent; }
.lg-open-image:focus-visible { outline: 3px solid #fff; outline-offset: -7px; }
.lg-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0 12px; }
.lg-caption { min-width: 0; margin: 0; font-family: var(--sans, sans-serif); font-size: 13px; line-height: 1.5; color: #1a2849; }
.lg-view-all { flex-shrink: 0; min-height: 44px; padding: 11px 16px; border: 1px solid #1a2849; color: #1a2849; background: transparent; font-family: var(--sans, sans-serif); font-size: 12px; font-weight: 500; line-height: 1.4; cursor: pointer; transition: background .2s, color .2s; }
.lg-view-all:hover { background: #1a2849; color: #f3f4ef; }
.lg-thumbnails { display: flex; gap: 9px; position: relative; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #9fa3aa transparent; padding: 4px 2px 10px; scroll-padding-inline: 3px; }
.lg-thumbnail { flex: 0 0 112px; width: 112px; min-width: 44px; height: 76px; min-height: 44px; border: 2px solid transparent; padding: 2px; margin: 0; background: transparent; cursor: pointer; opacity: .68; transition: opacity .15s, border-color .15s; }
.lg-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; background: #d6d6ce; }
.lg-thumbnail:hover, .lg-thumbnail[aria-current="true"] { opacity: 1; }
.lg-thumbnail[aria-current="true"] { border-color: #1a2849; }
.lg-view-all:focus-visible, .lg-thumbnail:focus-visible { outline: 2px solid #1a2849; outline-offset: 3px; }
.lg-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
html.listing-gallery-open, html.listing-gallery-open body { overflow: hidden; overscroll-behavior: none; }
.lg-dialog { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none; box-sizing: border-box; margin: 0; padding: 0; border: 0; color: #f3f4ef; background: #101a30; overflow: hidden; font-family: var(--sans, sans-serif); }
.lg-dialog:not([open]) { display: none; }
.lg-dialog[open] { display: flex; flex-direction: column; z-index: 2147483000; }
.lg-dialog::backdrop { background: #101a30; }
.lg-dialog-header { display: flex; align-items: center; gap: 20px; flex: 0 0 auto; padding: max(12px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) 12px max(24px, env(safe-area-inset-left)); border-bottom: 1px solid rgba(243,244,239,.13); }
.lg-dialog-title { flex: 1; margin: 0; font-family: var(--serif, serif); font-size: clamp(18px, 2vw, 25px); font-weight: 400; color: #f3f4ef; letter-spacing: normal; line-height: 1.25; }
.lg-dialog-count { white-space: nowrap; font-size: 12px; font-variant-numeric: tabular-nums; color: #d8dce4; }
.lg-dialog-close, .lg-dialog-prev, .lg-dialog-next { display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border: 1px solid rgba(243,244,239,.35); padding: 0; background: rgba(16,26,48,.82); color: #f3f4ef; font: 24px/1 var(--sans, sans-serif); cursor: pointer; }
.lg-dialog-close { border: 0; font-size: 32px; }
.lg-dialog-close:hover, .lg-dialog-prev:hover, .lg-dialog-next:hover { background: #f3f4ef; color: #1a2849; }
.lg-stage { flex: 1 1 auto; min-height: 0; position: relative; display: grid; place-items: center; overflow: hidden; touch-action: pan-y; }
.lg-full-image { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; user-select: none; }
.lg-dialog-prev, .lg-dialog-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.lg-dialog-prev { left: max(24px, env(safe-area-inset-left)); }
.lg-dialog-next { right: max(24px, env(safe-area-inset-right)); }
.lg-dialog-footer { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 24px; padding: 10px max(24px, env(safe-area-inset-right)) 4px max(24px, env(safe-area-inset-left)); }
.lg-full-caption { margin: 0; color: #f3f4ef; font-size: 13px; line-height: 1.45; }
.lg-original-link { display: inline-flex; align-items: center; min-height: 44px; flex-shrink: 0; color: #d8dce4; font-size: 11px; text-decoration: underline; text-underline-offset: 4px; }
.lg-dialog-thumbnails { flex: 0 0 auto; width: calc(100% - 48px); max-width: 1200px; margin: 0 auto; padding-bottom: 8px; scrollbar-color: #657080 transparent; }
.lg-dialog-thumbnails .lg-thumbnail { flex-basis: 92px; width: 92px; height: 62px; }
.lg-dialog-thumbnails .lg-thumbnail[aria-current="true"] { border-color: #f3f4ef; }
.lg-dialog button:focus-visible, .lg-dialog a:focus-visible { outline: 2px solid #f3f4ef; outline-offset: 3px; }
.lg-dialog-hint { flex: 0 0 auto; margin: 0; padding: 5px 24px max(10px, env(safe-area-inset-bottom)); color: #aeb7c8; font-size: 11px; text-align: center; line-height: 1.4; }
.lg-is-loading::after { content: ''; position: absolute; width: 30px; height: 30px; border: 2px solid rgba(243,244,239,.3); border-top-color: #f3f4ef; border-radius: 50%; animation: lg-spin .7s linear infinite; pointer-events: none; }
.lg-is-loading .lg-full-image { opacity: .35; }
.lg-load-error { position: absolute; top: 50%; left: 15%; right: 15%; text-align: center; color: #f3f4ef; line-height: 1.5; }
.lg-load-error[hidden] { display: none; }
@keyframes lg-spin { to { transform: rotate(360deg); } }
@media (max-width: 560px) {
  .listing-carousel .lc-btn { width: 44px; height: 44px; }
  .listing-carousel .lc-prev { left: 10px; }
  .listing-carousel .lc-next { right: 10px; }
  .lg-toolbar { align-items: flex-start; gap: 12px; padding-top: 12px; }
  .lg-caption { font-size: 12px; padding-top: 5px; }
  .lg-view-all { font-size: 11px; padding-inline: 12px; }
  .lg-thumbnail { flex-basis: 86px; width: 86px; height: 60px; }
  .lg-dialog-header { gap: 10px; padding-inline: 14px; }
  .lg-dialog-title { font-size: 18px; }
  .lg-dialog-close { width: 44px; height: 44px; }
  .lg-dialog-prev, .lg-dialog-next { width: 44px; height: 44px; }
  .lg-dialog-prev { left: max(10px, env(safe-area-inset-left)); }
  .lg-dialog-next { right: max(10px, env(safe-area-inset-right)); }
  .lg-dialog-footer { gap: 10px; padding-inline: 14px; }
  .lg-full-caption { font-size: 12px; }
  .lg-original-link { font-size: 10px; }
  .lg-dialog-thumbnails { width: calc(100% - 28px); }
  .lg-dialog-thumbnails .lg-thumbnail { flex-basis: 78px; width: 78px; height: 54px; }
  .lg-dialog-hint { font-size: 10px; }
}
@media (max-height: 560px) and (orientation: landscape) {
  .lg-dialog-header { padding-top: 4px; padding-bottom: 4px; }
  .lg-dialog-close { height: 44px; }
  .lg-dialog-footer { padding-top: 0; }
  .lg-dialog-thumbnails .lg-thumbnail { height: 44px; flex-basis: 66px; }
  .lg-dialog-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .listing-carousel .lc-frame > img, .lg-thumbnail, .lg-view-all { transition: none; }
  .lg-is-loading::after { animation: none; }
}
