.cm-gallery { color: #333; font-family: Lato, sans-serif; font-size: 17px; line-height: 1.5; }
.cm-gallery figure, .cm-gallery p { margin: 0; padding: 0; }
.cm-gallery-open { position: relative; display: block; overflow: hidden; background: #f1f1f1; border-radius: 5px; box-shadow: 0 6px 22px #00000012; }
.cm-gallery .cm-gallery-main { display: block; width: 100%; height: 440px; object-fit: contain; margin: 0; }
.cm-gallery-zoom { position: absolute; right: 16px; bottom: 16px; border-radius: 30px; padding: 8px 17px; background: #0a44b2; color: #fff; font-size: 15px; font-weight: 700; }
.cm-gallery-caption { display: flex; align-items: baseline; gap: 18px; margin: 18px 0 5px; min-height: 28px; }
.cm-gallery-count { flex-shrink: 0; font-weight: 700; color: #0a44b2; font-variant-numeric: tabular-nums; }
.cm-gallery .cm-gallery-hint { color: #555; font-size: 15px; margin: 0 0 16px; }
.cm-gallery-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cm-gallery-thumb { position: relative; display: block; background: #f1f1f1; padding: 3px; border: 2px solid transparent; border-radius: 4px; overflow: hidden; }
.cm-gallery-thumb[aria-current="true"] { border-color: #0a44b2; background: #eaf0fc; }
.cm-gallery .cm-gallery-thumb img { display: block; width: 100%; height: 114px; object-fit: contain; margin: 0; }
.cm-gallery-number { position: absolute; bottom: 7px; left: 7px; min-width: 23px; text-align: center; border-radius: 3px; background: #252525; color: white; font-size: 12px; line-height: 23px; }
.cm-gallery a:focus-visible, .cm-gallery button:focus-visible, .cm-faq summary:focus-visible { outline: 3px solid #0a44b2; outline-offset: 4px; }
.cm-gallery-dialog:not([open]) { display: none; }
.cm-gallery-dialog[open] { display: flex; flex-direction: column; position: fixed; inset: 0; box-sizing: border-box; width: min(1200px, 94vw); height: 92vh; height: 92dvh; max-width: 94vw; max-height: 92dvh; padding: 18px 24px; margin: auto; border: 0; border-radius: 8px; background: #151515; color: #fff; overflow: hidden; }
.cm-gallery-dialog::backdrop { background: #000d; }
.cm-dialog-toolbar { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; gap: 15px; margin-bottom: 12px; }
.cm-dialog-image-wrap { min-height: 0; flex: 1; display: flex; align-items: center; justify-content: center; }
.cm-gallery .cm-dialog-image { display: block; max-width: 100%; width: 100%; height: 100%; object-fit: contain; }
.cm-dialog-footer { display: flex; align-items: center; gap: 18px; flex-shrink: 0; padding-top: 14px; }
.cm-gallery .cm-dialog-caption { flex: 1; text-align: center; font-size: 16px; line-height: 1.45; }
.cm-gallery-dialog button { min-height: 44px; min-width: 46px; padding: 9px 14px; border: 1px solid #666; border-radius: 24px; color: #fff; background: #303030; font-family: inherit; font-size: 17px; cursor: pointer; }
.cm-gallery-dialog button:hover { background: #0a44b2; }
.cm-gallery-dialog button:focus-visible { outline-color: #fff; }
.cm-gallery-dialog .cm-dialog-close { font-size: 15px; }
.cm-dialog-close span { margin-left: 8px; font-size: 22px; }
html.cm-viewer-open { overflow: hidden; }
.cm-faq { font-family: Lato, sans-serif; color: #333; font-size: 18px; line-height: 1.65; }
.cm-faq details { border-bottom: 1px solid #d7d7d7; }
.cm-faq details:first-child { border-top: 1px solid #d7d7d7; }
.cm-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 2px; font-weight: 700; cursor: pointer; list-style: none; }
.cm-faq summary::-webkit-details-marker { display: none; }
.cm-faq summary::after { content: '+'; color: #0a44b2; font-size: 26px; font-weight: 400; flex-shrink: 0; }
.cm-faq details[open] summary::after { content: '−'; }
.cm-faq-answer { padding: 0 30px 22px 2px; max-width: 900px; }
.cm-faq-answer p { padding: 0; margin: 0; }
.cm-faq-answer a { color: #0a44b2; text-decoration: underline; text-underline-offset: 3px; }
.cm-gallery-section, .cm-faq-section, .cm-gallery-section h2 { scroll-margin-top: 110px; }
@media (max-width: 767px) {
  .cm-gallery { font-size: 16px; }
  .cm-gallery .cm-gallery-main { height: 300px; }
  .cm-gallery-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .cm-gallery .cm-gallery-thumb img { height: 84px; }
  .cm-gallery-caption { gap: 12px; margin-top: 14px; }
  .cm-gallery-zoom { bottom: 10px; right: 10px; padding: 6px 12px; font-size: 14px; }
  .cm-gallery .cm-gallery-hint { margin: 8px 0 14px; font-size: 14px; }
  .cm-gallery-dialog[open] { padding: 12px; width: 96vw; max-width: 96vw; height: 94vh; height: 94dvh; max-height: 94dvh; }
  .cm-dialog-footer { gap: 10px; }
  .cm-gallery .cm-dialog-caption { font-size: 14px; }
  .cm-faq { font-size: 16px; }
  .cm-faq summary { padding: 17px 2px; gap: 15px; }
  .cm-faq-answer { padding-right: 10px; }
}
