/* Изолированное дополнение R4; подключать после page.css. */
a[data-cl-gallery] { cursor: zoom-in; }
a[data-cl-gallery]:focus-visible, [data-cl-rail]:focus-visible { outline: 3px solid #0c648b; outline-offset: 4px; }
.cl-gallery-controls { display: none; align-items: center; justify-content: center; gap: 20px; margin-top: 10px; color: var(--cl-ink, #092c45); font-size: 14px; }
.cl-gallery-controls[hidden] { display: none !important; }
.cl-gallery-controls button, .cl-lightbox button { min-width: 44px; min-height: 44px; border: 1px solid #bfcdd5; border-radius: 8px; padding: 8px 14px; background: #fff; color: #092c45; font: inherit; cursor: pointer; }
.cl-gallery-controls button:disabled, .cl-lightbox button:disabled { opacity: .4; cursor: default; }
.cl-lightbox { box-sizing: border-box; position: fixed; inset: 0; margin: auto; padding: 16px; width: min(1040px, calc(100% - 32px)); max-width: calc(100% - 32px); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); border: 0; border-radius: 8px; background: #fff; color: #092c45; overflow-y: auto; overscroll-behavior: contain; font: 16px/1.55 Arial, sans-serif; }
.cl-lightbox:not([open]) { display: none; }
.cl-lightbox::backdrop { background: rgba(4, 21, 34, .84); }
.cl-lightbox-top, .cl-lightbox-bottom, .cl-lightbox-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cl-lightbox-top { padding-bottom: 12px; }
.cl-lightbox-title { margin: 0; font-size: 16px; font-weight: 600; }
.cl-lightbox-count { margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cl-lightbox-mount { display: grid; place-items: center; min-width: 0; }
.cl-lightbox .cl-lightbox-mount img { display: block; width: 100%; height: auto; max-height: 70vh; max-height: 70dvh; object-fit: contain; }
.cl-lightbox-bottom { padding-top: 12px; align-items: start; }
.cl-lightbox-caption { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.cl-lightbox-actions { flex-wrap: wrap; flex-shrink: 0; justify-content: start; }
.cl-lightbox-actions a { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 0; color: #0c648b; font-size: 14px; text-underline-offset: 3px; }
.cl-lightbox-status { margin: 8px 0 0; font-size: 14px; color: #566a76; }
.cl-lightbox-status:empty { display: none; }
.cl-lightbox button:focus-visible, .cl-lightbox a:focus-visible, .cl-gallery-controls button:focus-visible { outline: 3px solid #0c648b; outline-offset: 3px; }
@media (max-width: 760px) {
  .cl-page .cl-gallery[data-cl-rail] { display: grid; grid-auto-columns: 84%; grid-auto-flow: column; grid-template-columns: none; gap: 16px; width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 0; padding-bottom: 12px; }
  .cl-page .cl-gallery[data-cl-rail] > * { min-width: 0; scroll-snap-align: start; }
  .cl-page .cl-gallery[data-cl-rail] .cl-photo img { aspect-ratio: 4 / 3; }
  .cl-page .cl-gallery[data-cl-rail] .cl-photo-callouts img { aspect-ratio: auto; }
  .cl-gallery-controls { display: flex; }
  .cl-lightbox { padding: 12px; width: calc(100% - 24px); max-width: calc(100% - 24px); }
  .cl-lightbox-bottom { flex-direction: column; }
  .cl-lightbox-actions { width: 100%; }
  .cl-lightbox-actions a { margin-right: auto; }
  .cl-lightbox-title { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { [data-cl-rail] { scroll-behavior: auto !important; } }
@media print { .cl-lightbox, .cl-gallery-controls { display: none !important; } }

.cl-gallery-controls .gt-arrow,.cl-lightbox .gt-arrow,#price .cl-actions .gt-arrow{width:20px;height:20px;flex:none;vertical-align:middle}
.cl-lightbox-actions a{gap:6px}
