.db-gallery-content { background: #fff; color: #12212c; padding-bottom: 64px; }
.db-gallery-content__container { width: calc(100% - 60px); max-width: 1180px; margin: 0 auto; }
.db-gallery-content__intro { margin-bottom: 40px; }
.dmm-theme .db-gallery-content__intro h2 { color: #12212c; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.25; margin: 0 0 16px; }
.dmm-theme .db-gallery-content__intro p { color: #202030; font-size: 16px !important; line-height: 1.5 !important; max-width: 900px; }
.db-gallery-content__intro > :last-child { margin-bottom: 0; }
.db-gallery-content__hero { margin: 0 0 30px; aspect-ratio: 1180 / 530; overflow: hidden; }
.db-gallery-content__rows { display: flex; flex-direction: column; gap: 30px; }
.db-gallery-content__row { display: grid; gap: 30px; }
.db-gallery-content__row--1 { grid-template-columns: minmax(0, 1fr); }
.db-gallery-content__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.db-gallery-content__row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.db-gallery-content__item { min-width: 0; margin: 0; aspect-ratio: 8 / 5; overflow: hidden; }
.db-gallery-content__row--1 .db-gallery-content__item { aspect-ratio: 1180 / 530; }
.db-gallery-content__row--3 .db-gallery-content__item { aspect-ratio: 4 / 3; }
.dmm-theme .db-gallery-content__image { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; max-width: none; }
.db-gallery-content__viewer-link { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.db-gallery-content [hidden] { display: none !important; }
.db-gallery-content__loader { display: flex; justify-content: center; margin-top: 32px; }
.dmm-theme .db-gallery-content__more { background: #fff; border: 1px solid #41515c; color: #12212c; padding: 16px 32px; font: inherit; cursor: pointer; }
.db-gallery-content__more:disabled { opacity: .6; cursor: wait; }
.db-gallery-content__status:empty { display: none; }
.db-gallery-content__status[data-success="true"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.db-gallery-content__footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 40px; }
.dmm-theme .db-gallery-content__end { color: #696977; font-size: 14px !important; line-height: 1.5 !important; margin: 0; }
.dmm-theme .db-gallery-content__footer a { color: #b90014; font-size: 14px; text-decoration: none; margin-left: auto; }
.db-gallery-content__footer a span { margin-left: 12px; }
.db-gallery-content__footer a:hover { text-decoration: underline; }
.db-gallery-content a:focus-visible, .db-gallery-content button:focus-visible { outline: 2px solid #b90014; outline-offset: 4px; }
dialog.db-gallery-viewer {
  position: fixed; inset: 0; width: 100vw; max-width: none; height: 100dvh;
  max-height: none; padding: 0; margin: 0; border: 0; background: transparent; color: #fff;
}
.db-gallery-viewer::backdrop { background: rgba(0, 0, 0, .94); }
.db-gallery-viewer:not([open]) { display: none; }
.db-gallery-viewer[open] { display: flex; align-items: center; justify-content: center; }
.db-gallery-viewer__inner { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 60px 80px 90px; box-sizing: border-box; }
.db-gallery-viewer__figure { display: flex; flex-direction: column; align-items: center; margin: 0; max-width: 100%; max-height: 100%; }
.dmm-theme .db-gallery-viewer__image { display: block; max-width: 100%; max-height: calc(100dvh - 190px); width: auto; height: auto; object-fit: contain; margin: 0; border: 0; }
.db-gallery-viewer__caption { color: #fff; font-size: 14px; line-height: 1.5; text-align: center; margin-top: 16px; max-width: 800px; max-height: 48px; overflow-y: auto; }
.dmm-theme .db-gallery-viewer button {
  appearance: none; position: absolute; display: flex; align-items: center; justify-content: center;
  width: 44px; min-width: 0; height: 44px; padding: 0; border: 1px solid rgba(255,255,255,.5);
  border-radius: 50% !important; background: #111; color: #fff; font-size: 28px; line-height: 1; cursor: pointer;
}
.db-gallery-viewer__close { top: 20px; right: 20px; }
.db-gallery-viewer__previous { left: 20px; top: calc(50% - 22px); }
.db-gallery-viewer__next { right: 20px; top: calc(50% - 22px); }
.db-gallery-viewer button:disabled { opacity: .3; cursor: default; }
.db-gallery-viewer button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.dmm-theme .db-gallery-viewer__counter { position: absolute; bottom: 24px; left: 0; width: 100%; margin: 0; text-align: center; color: #fff; font-size: 14px !important; }
.dmm-theme .db-gallery-viewer__status { position: absolute; bottom: 48px; left: 60px; right: 60px; text-align: center; margin: 0; color: #fff; font-size: 14px !important; }
@media (max-width: 782px) {
  .db-gallery-content__rows, .db-gallery-content__row { gap: 16px; }
  .db-gallery-content__hero { margin-bottom: 16px; }
}
@media (max-width: 600px) {
  .db-gallery-content { padding-bottom: 40px; }
  .db-gallery-content__intro { margin-bottom: 28px; }
  .db-gallery-content__row { grid-template-columns: 1fr; }
  .db-gallery-content__row .db-gallery-content__item { aspect-ratio: 3 / 2; }
  .db-gallery-content__hero { aspect-ratio: 3 / 2; }
  .db-gallery-viewer__inner { padding: 76px 16px 110px; }
  .dmm-theme .db-gallery-viewer__image { max-height: calc(100dvh - 230px); }
  .db-gallery-viewer__previous, .db-gallery-viewer__next { top: auto; bottom: 20px; }
  .db-gallery-viewer__counter { pointer-events: none; }
}
