.gallery-photo { display: block; border-radius: 9px; overflow: hidden; border: 1px solid var(--edge); background: #18130f; }
.gallery-photo:hover { border-color: #efcd93; }
.gallery-photo img { width: 100%; height: 100%; object-fit: cover; }
.gallery-viewer {
  position: fixed; padding: 12px; max-width: min(92vw, 1120px); max-height: 94dvh; margin: auto;
  border: 1px solid var(--edge-bright); border-radius: 11px; background: #100e0c; color: var(--ivory);
}
.gallery-viewer::backdrop { background: #000d; }
.gallery-viewer form { display: flex; justify-content: end; margin-bottom: 6px; }
.gallery-viewer button { min-width: 36px; min-height: 34px; border: 1px solid var(--edge); border-radius: 5px; background: #292016; color: var(--ivory); cursor: pointer; }
.gallery-viewer button:hover { background: #4e3820; }
.gallery-large-photo { height: auto; width: auto; max-height: 69dvh; max-width: 100%; margin-inline: auto; object-fit: contain; }
.gallery-viewer-caption { margin-top: 7px; font-size: 13px; text-align: center; }
.gallery-controls { display: flex; justify-content: center; align-items: center; gap: 11px; margin-top: 8px; }
.gallery-position { font-size: 12px; }
