.gallery-showcase { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line); }
.gallery-top { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.gallery-top h3 { font-size: 32px; margin-bottom: 20px; }
.gallery-top p { font-size: 13px; color: var(--muted); }
.gallery-controls { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 28px; flex-wrap: wrap; }
.gallery-controls label { font-size: 12px; font-weight: bold; display: flex; flex-direction: column; gap: 7px; }
.gallery-controls select { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); min-height: 44px; padding: 10px 14px; min-width: 220px; max-width: 100%; }
.gallery-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery-filters button { border: 1px solid var(--line); background: var(--paper); color: var(--ink); padding: 10px 16px; min-height: 44px; }
.gallery-filters button[aria-pressed="true"] { background: var(--ink); color: white; border-color: var(--ink); }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.photo-card { background: var(--paper); border: 1px solid var(--line); min-width: 0; }
.photo-open { display: block; padding: 0; border: 0; width: 100%; background: #d3d8cc; cursor: zoom-in; }
.photo-open img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.photo-body { padding: 22px; }
.photo-body h3 { margin: 12px 0 10px; font-size: 25px; overflow-wrap: anywhere; }
.photo-body p { font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.photo-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.photo-badge { color: var(--ink); background: #dfe8d1; padding: 4px 10px; font-size: 11px; font-weight: bold; }
.photo-history { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; font-size: 12px; }
.photo-history summary { cursor: pointer; font-weight: bold; }
.photo-history ol { padding-left: 18px; margin-bottom: 0; }
.photo-history li { margin-top: 10px; }
.photo-history .trace-note { font-size: 11px; color: var(--muted); margin-top: 12px; }
.gallery-message { color: var(--muted); padding: 24px; background: var(--paper); border-left: 2px solid var(--orange); font-size: 14px; }
.gallery-viewer { max-width: min(980px, 94vw); max-height: 92dvh; width: 980px; padding: 0; border: 0; color: var(--ink); background: var(--paper); }
.gallery-viewer::backdrop { background: #0b211ee0; }
.gallery-viewer img { display: block; width: 100%; max-height: 65dvh; object-fit: contain; background: #142921; }
.viewer-close { position: absolute; top: 14px; right: 14px; border: 1px solid var(--line); color: var(--ink); background: var(--paper); padding: 10px 15px; min-height: 44px; }
.viewer-info { padding: 22px; }
.viewer-info h3 { margin-bottom: 8px; }
.viewer-info p { font-size: 13px; margin-bottom: 10px; white-space: pre-line; overflow-wrap: anywhere; }
.viewer-controls { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; }
.viewer-controls button { border: 1px solid var(--ink); background: transparent; color: var(--ink); padding: 10px 14px; min-height: 44px; }
@media (max-width: 680px) { .gallery-grid { grid-template-columns: 1fr; } .gallery-top { align-items: start; flex-direction: column; gap: 0; } .gallery-top h3 { margin-bottom: 8px; } .gallery-controls, .gallery-controls label, .gallery-controls select { width: 100%; } .gallery-filters { gap: 6px; } .gallery-filters button { padding-inline: 12px; } .gallery-showcase { margin-top: 36px; } }
