html.max-tour-production-embed *,
html.max-tour-production-embed *::before,
html.max-tour-production-embed *::after {
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
  -webkit-hyphens: none !important;
}

html.max-tour-production-embed button,
html.max-tour-production-embed [role='button'],
html.max-tour-production-embed .chip,
html.max-tour-production-embed .pill,
html.max-tour-production-embed .badge,
html.max-tour-production-embed .tag,
html.max-tour-production-embed [class*='chip'],
html.max-tour-production-embed [class*='pill'],
html.max-tour-production-embed [class*='badge'],
html.max-tour-production-embed [class*='tag'] {
  text-align: center !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
  -webkit-hyphens: none !important;
}

html.max-tour-production-embed .chip,
html.max-tour-production-embed .pill,
html.max-tour-production-embed .badge,
html.max-tour-production-embed .tag,
html.max-tour-production-embed [class*='chip'],
html.max-tour-production-embed [class*='pill'],
html.max-tour-production-embed [class*='badge'],
html.max-tour-production-embed [class*='tag'] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

html.max-tour-production-embed .production-center-tile {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

html.max-tour-production-embed .production-center-tile > * {
  align-self: center !important;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

html.max-tour-production-embed .production-center-wide {
  position: relative !important;
}

html.max-tour-production-embed .production-center-wide > .production-center-label {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: min(62%, 320px) !important;
  margin: 0 !important;
  text-align: center !important;
  z-index: 2 !important;
}

html.max-tour-production-embed .cf-show-v26,
html.max-tour-production-embed .production-show-button {
  position: relative !important;
  transform: translateY(0) scale(1);
  transform-origin: center;
  transition: transform 110ms ease, filter 110ms ease, box-shadow 110ms ease !important;
  will-change: transform, filter, box-shadow;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Keep “Показать” and the arrow as one centered horizontal action. */
html.max-tour-production-embed .cf-show-v26.production-center-tile,
html.max-tour-production-embed .production-show-button.production-center-tile {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  white-space: nowrap !important;
}

html.max-tour-production-embed .cf-show-v26.production-center-tile > *,
html.max-tour-production-embed .production-show-button.production-center-tile > * {
  flex: 0 0 auto !important;
  width: auto !important;
  margin: 0 !important;
  align-self: center !important;
}

html.max-tour-production-embed .cf-show-v26:active,
html.max-tour-production-embed .production-show-button:active,
html.max-tour-production-embed .production-show-button.production-show-pressed {
  transform: translateY(3px) scale(0.965) !important;
  filter: brightness(0.78) saturate(1.08) !important;
  box-shadow: inset 0 5px 12px rgba(70, 0, 0, 0.34), 0 1px 2px rgba(60, 15, 0, 0.18) !important;
}

html.max-tour-production-embed .production-show-button.production-show-applied {
  animation: production-show-confirm 520ms cubic-bezier(.2,.8,.2,1) both;
}

/* Tour photography: make every excursion image visibly openable. */
html.max-tour-production-embed img.production-tour-photo {
  cursor: zoom-in !important;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

html.max-tour-production-embed img.production-tour-photo:focus-visible {
  outline: 3px solid rgba(238, 54, 39, 0.82) !important;
  outline-offset: 3px !important;
}

html.production-lightbox-open,
html.production-lightbox-open body,
html.max-tour-production-embed body.production-lightbox-open {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

html.max-tour-production-embed .production-tour-lightbox {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483646 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom)) !important;
  background: rgba(5, 7, 10, 0.94) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

html.max-tour-production-embed .production-tour-lightbox.is-open {
  display: flex !important;
}

html.max-tour-production-embed .production-tour-lightbox-figure {
  width: min(94vw, 1180px) !important;
  height: min(88vh, 900px) !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
}

html.max-tour-production-embed .production-tour-lightbox-image {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 94vw !important;
  max-height: calc(88vh - 58px) !important;
  object-fit: contain !important;
  border-radius: 14px !important;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.42) !important;
}

html.max-tour-production-embed .production-tour-lightbox-caption {
  max-width: min(88vw, 760px) !important;
  color: #fff !important;
  font: 600 15px/1.35 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  text-align: center !important;
}

html.max-tour-production-embed .production-tour-lightbox-close,
html.max-tour-production-embed .production-tour-lightbox-nav {
  position: fixed !important;
  z-index: 2147483647 !important;
  margin: 0 !important;
  border: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.14) !important;
  box-shadow: none !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  cursor: pointer !important;
}

html.max-tour-production-embed .production-tour-lightbox-close {
  top: max(16px, env(safe-area-inset-top)) !important;
  right: 16px !important;
  width: 46px !important;
  height: 46px !important;
  border-radius: 50% !important;
  font: 300 34px/1 Arial, sans-serif !important;
}

html.max-tour-production-embed .production-tour-lightbox-nav {
  top: 50% !important;
  width: 48px !important;
  height: 58px !important;
  border-radius: 16px !important;
  transform: translateY(-50%) !important;
  font: 300 42px/1 Arial, sans-serif !important;
}

html.max-tour-production-embed .production-tour-lightbox-prev { left: 12px !important; }
html.max-tour-production-embed .production-tour-lightbox-next { right: 12px !important; }
html.max-tour-production-embed .production-tour-lightbox-nav[hidden] { display: none !important; }

@keyframes production-show-confirm {
  0% { transform: translateY(2px) scale(0.97); filter: brightness(0.82) saturate(1.08); }
  38% { transform: translateY(0) scale(1.035); filter: brightness(1.13) saturate(1.12); box-shadow: 0 0 0 5px rgba(238, 54, 39, 0.22), 0 8px 20px rgba(171, 45, 28, 0.22); }
  100% { transform: translateY(0) scale(1); filter: none; }
}

@media (max-width: 640px) {
  html.max-tour-production-embed .production-tour-lightbox {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  html.max-tour-production-embed .production-tour-lightbox-image {
    max-width: 96vw !important;
    max-height: calc(86vh - 56px) !important;
    border-radius: 10px !important;
  }

  html.max-tour-production-embed .production-tour-lightbox-nav {
    width: 42px !important;
    height: 52px !important;
    background: rgba(0, 0, 0, 0.42) !important;
  }

  html.max-tour-production-embed .production-tour-lightbox-prev { left: 7px !important; }
  html.max-tour-production-embed .production-tour-lightbox-next { right: 7px !important; }
}

@media (prefers-reduced-motion: reduce) {
  html.max-tour-production-embed .cf-show-v26,
  html.max-tour-production-embed .production-show-button { transition: none !important; }
  html.max-tour-production-embed .production-show-button.production-show-applied { animation: none !important; filter: brightness(0.9) !important; }
}
