html.album-modal-open { overflow: hidden; }
.project-album { padding: 80px 0; }
.album-viewer { border: 1px solid #d8d5cf; border-radius: 6px; overflow: hidden; background: #fff; }
.album-toolbar, .album-dialog__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; background: #f5f5f3; color: #171717; }
.album-select { display: grid; gap: 5px; min-width: 0; flex: 1; max-width: 480px; font-size: 12px; }
.album-select select { width: 100%; min-width: 0; height: 42px; padding: 0 10px; border: 1px solid #c9c9c4; border-radius: 4px; background: white; color: #171717; font: inherit; font-size: 14px; }
.album-controls { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.album-icon { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; background: #fff; color: #171717; border: 1px solid #ccc; border-radius: 4px; cursor: pointer; }
.album-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.album-icon:hover, .album-icon[aria-pressed="true"] { background: #ead7ad; }
.album-icon:disabled { opacity: .35; cursor: default; }
.album-icon:focus-visible, .album-sheet:focus-visible, .album-thumbnail:focus-visible { outline: 3px solid #aa792e; outline-offset: -3px; }
.album-counter { min-width: 64px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.album-sheet { display: block; width: 100%; aspect-ratio: 2000 / 1414; padding: 0; border: 0; background: #fff; cursor: zoom-in; }
.album-sheet img { display: block; width: 100%; height: 100%; object-fit: contain; }
.album-status { margin: 0; padding: 0 16px; color: #913323; font-size: 13px; }
.album-status:not(:empty) { padding-block: 12px; }
.album-thumbnails { display: flex; gap: 10px; padding: 16px; overflow-x: auto; border-top: 1px solid #deded9; }
.album-thumbnail { flex: 0 0 120px; display: grid; gap: 5px; padding: 5px; border: 2px solid transparent; border-radius: 4px; background: #f3f3f0; color: #333; cursor: pointer; text-align: left; }
.album-thumbnail[aria-pressed="true"] { border-color: #ad7b2b; }
.album-thumbnail img { display: block; width: 106px; height: 75px; object-fit: contain; background: #fff; }
.album-thumbnail span { height: 34px; font-size: 11px; line-height: 17px; overflow: hidden; }
.album-footer { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-top: 18px; font-size: 13px; color: #625c53; }
.album-footer p { flex: 1 1 440px; margin: 0; }
.album-footer a { color: #76551f; text-decoration: underline; }
.album-dialog { width: calc(100vw - 32px); max-width: 1600px; height: calc(100dvh - 32px); max-height: none; margin: auto; padding: 0; border: 0; border-radius: 6px; background: #e8e8e5; }
.album-dialog::backdrop { background: rgba(0, 0, 0, .8); }
.album-dialog[open] { display: flex; flex-direction: column; }
.album-dialog__toolbar { flex-shrink: 0; }
.album-dialog__toolbar strong { min-width: 0; font-size: 15px; }
.album-dialog__sheet { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.album-dialog__sheet img { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.album-dialog__sheet.is-zoomed img { width: 2000px; max-width: none; height: auto; }
@media (max-width: 760px) {
  .project-album { padding: 56px 0; }
  .album-toolbar, .album-dialog__toolbar { flex-wrap: wrap; gap: 12px; padding: 12px; }
  .album-select { flex-basis: 100%; max-width: none; }
  .album-toolbar .album-controls { width: 100%; justify-content: center; }
  .album-dialog { width: 100vw; height: 100dvh; border-radius: 0; }
  .album-dialog__toolbar strong { flex-basis: 100%; }
  .album-dialog__toolbar .album-controls { width: 100%; justify-content: space-between; gap: 4px; }
  .album-dialog__sheet.is-zoomed img { width: 1400px; }
}
