.full-gallery-page .library-header { margin-bottom: 24px; }
.full-gallery-entries { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 20px; }
.full-gallery-entry, .full-gallery-density-button, .full-gallery-reset { appearance: none; font: inherit; font-size: 12px; line-height: 1.4; padding: 9px 13px; border: 1px solid #dce5d4; border-radius: 8px; background: #fafcf6; color: #516b46; cursor: pointer; }
.full-gallery-entry[aria-pressed="true"], .full-gallery-density-button[aria-pressed="true"] { background: #eaf2e1; border-color: #adc59d; color: #315b38; }
.full-gallery-entry-count { margin-left: 9px; font-size: 10px; color: #819475; font-variant-numeric: tabular-nums; }
.full-gallery-controls { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(140px, 190px) minmax(140px, 190px) auto; align-items: end; gap: 10px; }
.full-gallery-controls input, .full-gallery-controls select { min-width: 0; width: 100%; border: 1px solid #dbe5d3; border-radius: 8px; padding: 11px 12px; font: inherit; font-size: 12px; color: #45623c; background: #fff; }
.full-gallery-field { display: grid; gap: 5px; min-width: 0; font-size: 10px; color: #7b8d70; }
.full-gallery-controls .full-gallery-reset { min-height: 40px; }
.full-gallery-display-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin: 16px 0 22px; }
.full-gallery-density { display: flex; align-items: center; gap: 5px; }
.full-gallery-control-label { margin-right: 4px; font-size: 11px; color: #7d8f70; }
.full-gallery-density-button { padding: 6px 10px; font-size: 11px; }
.full-gallery-versions { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: #5d7550; cursor: pointer; }
.full-gallery-versions input { width: 16px; height: 16px; accent-color: #64865b; }
.full-gallery-count { margin: 0 0 0 auto; font-size: 11px; color: #7d8e70; font-variant-numeric: tabular-nums; }
.library-gallery.full-gallery-wall { display: block; }
.full-gallery-wall { columns: 6; column-gap: 12px; }
.full-gallery-cell { break-inside: avoid; }
.full-gallery-page[data-density="comfortable"] .full-gallery-wall { columns: 5; column-gap: 20px; }
.full-gallery-card { display: inline-block; width: 100%; margin: 0 0 12px; vertical-align: top; break-inside: avoid; border-radius: 7px; }
.full-gallery-page[data-density="comfortable"] .full-gallery-card { margin-bottom: 20px; border-radius: 10px; }
.full-gallery-card .figure-image-viewport { height: auto; min-height: 0; background: #fff; }
.full-gallery-card .figure-crop, .full-gallery-placeholder svg { display: block; width: 100%; height: auto; }
.full-gallery-placeholder { background: linear-gradient(135deg, #fbfcf8, #f2f5ec); }
.full-gallery-card .figure-caption { padding: 8px 9px 9px; }
.full-gallery-card .figure-caption strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; overflow: hidden; font-size: 11px; line-height: 1.55; }
.full-gallery-card .figure-caption small { margin-top: 5px; font-size: 9px; line-height: 1.5; overflow-wrap: anywhere; }
.full-gallery-page[data-density="comfortable"] .figure-caption { padding: 11px 12px 12px; }
.full-gallery-page[data-density="comfortable"] .figure-caption strong { font-size: 12px; }
.full-gallery-empty { column-span: all; padding: 45px 20px; background: #f3f7ed; border-radius: 10px; text-align: center; color: #607850; }
.full-gallery-empty strong { font-size: 17px; font-weight: 550; }.full-gallery-empty p { font-size: 12px; margin: 12px 0 20px; }
.full-gallery-page button:focus-visible, .full-gallery-page input:focus-visible, .full-gallery-page select:focus-visible { outline: 2px solid #668853; outline-offset: 3px; }
.figure-preview-nav, .figure-dialog-navigation { display: flex; gap: 8px; align-items: center; justify-content: center; padding: 10px 16px; border-bottom: 1px solid #e4ebdd; background: #f6faf0; }
.figure-preview-prev, .figure-preview-next, .figure-nav-button { appearance: none; border: 1px solid #d6e2cc; border-radius: 7px; padding: 7px 12px; background: #fff; color: #486a3e; font: inherit; font-size: 12px; cursor: pointer; }
.figure-preview-prev:disabled, .figure-preview-next:disabled, .figure-nav-button:disabled { opacity: .4; cursor: default; }
.figure-preview-position { min-width: 68px; text-align: center; font-size: 11px; font-variant-numeric: tabular-nums; color: #708565; }
@media (max-width: 1440px) { .full-gallery-wall { columns: 5; }.full-gallery-page[data-density="comfortable"] .full-gallery-wall { columns: 4; } }
@media (max-width: 1050px) { .full-gallery-wall, .full-gallery-page[data-density="comfortable"] .full-gallery-wall { columns: 4; }.full-gallery-controls { grid-template-columns: minmax(180px, 1fr) minmax(130px, 170px) minmax(130px, 170px); }.full-gallery-controls .full-gallery-reset { justify-self: start; } }
@media (max-width: 760px) { .full-gallery-wall, .full-gallery-page[data-density="comfortable"] .full-gallery-wall { columns: 2; }.full-gallery-controls { grid-template-columns: 1fr 1fr; }.full-gallery-controls .full-gallery-search { grid-column: 1 / -1; }.full-gallery-display-controls { gap: 12px; margin-bottom: 17px; }.full-gallery-count { flex-basis: 100%; margin-left: 0; }.full-gallery-entry { padding: 9px 11px; }.full-gallery-card .figure-caption { padding: 8px; }.full-gallery-card .figure-caption strong { font-size: 11px; }.full-gallery-entry, .full-gallery-reset { min-height: 40px; } }
@media (max-width: 380px) { .full-gallery-entries { gap: 6px; }.full-gallery-entry { font-size: 11px; padding: 9px 10px; }.full-gallery-wall { column-gap: 9px; }.full-gallery-page[data-density="comfortable"] .full-gallery-wall { column-gap: 14px; } }
@media (prefers-reduced-motion: reduce) { .full-gallery-card { transition: none; } }

.full-gallery-card{scroll-margin:100px 0 24px}
@media(max-width:600px){.figure-dialog-bar{flex-wrap:wrap;gap:7px}.figure-dialog-bar>.dialog-close{margin-left:auto}.figure-dialog-bar>.figure-preview-nav{order:3;width:100%;padding:6px 0;border-bottom:0}.figure-preview-prev,.figure-preview-next{padding:8px 12px}}
