.catalog-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 30px;
}
.catalog-intro h2 { margin: 0; }
.catalog-intro > p { margin: 0 0 7px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.category-index { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 35px; }
.category-index a { border: 1px solid var(--line); padding: 9px 16px; font-size: 11px; transition: background .2s, border-color .2s; }
.category-index a:hover { background: var(--blue); border-color: #a4bdbe; }
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 45px 26px; }
.photo-category { min-width: 0; scroll-margin-top: 30px; }
.category-cover { display: block; position: relative; width: 100%; height: 370px; padding: 0; border: 0; background: #e2e6e0; overflow: hidden; }
.category-cover > img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .45s; }
.category-cover:hover > img { transform: scale(1.035); }
.album-count { position: absolute; bottom: 15px; left: 15px; background: var(--paper); padding: 5px 10px; font-size: 10px; }
.cover-arrow { position: absolute; top: 15px; right: 15px; width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); font-size: 22px; }
.category-copy { padding-top: 19px; }
.category-number { margin: 0 0 8px; color: var(--muted); text-transform: uppercase; font-size: 9px; letter-spacing: .1em; }
.category-copy h3 { font-family: var(--serif); font-weight: 400; font-size: 36px; letter-spacing: -.04em; line-height: 1.1; margin: 0 0 12px; }
.category-copy > p:not(.category-number) { font-size: 12px; line-height: 1.8; color: var(--muted); margin: 0 0 19px; min-height: 65px; }
.category-actions { display: flex; justify-content: space-between; align-items: center; gap: 15px; border-top: 1px solid var(--line); padding-top: 13px; }
.category-actions button, .category-actions a { background: transparent; border: 0; padding: 5px 0; font-size: 11px; display: inline-flex; gap: 13px; align-items: center; }
.category-actions a { color: #355f65; font-weight: 700; }
.category-actions button:hover, .category-actions a:hover { text-decoration: underline; text-underline-offset: 4px; }
.album-dialog { padding: 24px; width: min(1120px, 95vw); max-height: 95vh; }
.album-dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 25px; margin-bottom: 17px; }
.album-dialog-head .eyebrow { color: #b8caca; font-size: 9px; }
.album-dialog-head h2 { margin: 6px 0 8px; font-size: 38px; }
.album-dialog-head #album-description { text-align: left; font-size: 11px; color: #ced7d4; max-width: 700px; margin: 0; }
.album-dialog .dialog-close { position: static; white-space: nowrap; padding: 10px 0; align-items: center; }
.album-stage { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #121b1b; padding: 12px; }
.album-stage #photo-full { display: block; height: 51vh; width: calc(100% - 108px); min-width: 0; max-height: 620px; object-fit: contain; margin: auto; }
.album-stage button { flex: 0 0 40px; width: 40px; height: 44px; border: 1px solid #68817f; background: transparent; color: var(--paper); font-size: 23px; }
.album-stage button[hidden] { display: none; }
.album-toolbar { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-top: 10px; }
.album-toolbar #photo-position { margin: 0; color: #ced7d4; font-size: 12px; text-align: left; }
.album-toolbar .text-link { font-size: 11px; }
.album-thumbnails { display: flex; gap: 10px; overflow-x: auto; padding: 12px 2px 3px; }
.album-thumbnails button { flex: 0 0 76px; padding: 2px; border: 2px solid transparent; background: transparent; }
.album-thumbnails button[aria-pressed="true"] { border-color: var(--blue); }
.album-thumbnails img { width: 68px; height: 52px; object-fit: cover; }
.album-dialog button:focus-visible, .album-dialog a:focus-visible { outline-color: var(--blue); }
@media (max-width: 1050px) {
  .category-grid { gap: 35px 20px; }
  .category-cover { height: 300px; }
  .category-copy h3 { font-size: 31px; }
  .category-copy > p:not(.category-number) { min-height: 88px; }
}
@media (max-width: 760px) {
  .catalog-intro { display: block; }
  .catalog-intro > p { margin: 20px 0 0; font-size: 12px; }
  .category-index { margin-bottom: 27px; gap: 7px; }
  .category-index a { padding: 8px 12px; font-size: 11px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 18px; }
  .category-cover { height: 290px; }
  .album-count { left: 10px; bottom: 10px; font-size: 9px; }
  .category-copy h3 { font-size: 30px; }
  .category-copy > p:not(.category-number) { min-height: 87px; font-size: 11px; }
  .category-number { font-size: 8px; }
  .category-actions { flex-wrap: wrap; gap: 5px 12px; }
  .category-actions button, .category-actions a { font-size: 10px; }
  .cover-arrow { width: 30px; height: 30px; top: 10px; right: 10px; font-size: 20px; }
  .album-dialog { padding: 17px; }
  .album-dialog-head { gap: 12px; }
  .album-dialog-head h2 { font-size: 32px; }
  .album-dialog-head #album-description { font-size: 10px; }
  .album-dialog .dialog-close { font-size: 10px; gap: 8px; }
  .album-dialog-head .eyebrow { font-size: 8px; }
  .album-stage { padding: 8px; gap: 6px; }
  .album-stage #photo-full { width: calc(100% - 76px); height: 43vh; }
  .album-stage button { flex-basis: 30px; width: 30px; height: 42px; font-size: 21px; }
  .album-toolbar .text-link { font-size: 10px; }
}
@media (max-width: 520px) {
  .category-grid { grid-template-columns: 1fr; gap: 36px; }
  .category-cover { height: 390px; }
  .category-copy { padding-top: 17px; }
  .category-copy h3 { font-size: 35px; }
  .category-number { font-size: 10px; }
  .category-copy > p:not(.category-number) { min-height: 0; font-size: 12px; margin-bottom: 17px; }
  .category-actions { flex-wrap: nowrap; }
  .category-actions button, .category-actions a { font-size: 12px; }
  .album-count { font-size: 10px; }
  .album-stage { position: relative; padding: 8px 0; }
  .album-stage #photo-full { width: 100%; height: 42vh; }
  .album-stage button { position: absolute; top: calc(50% - 21px); z-index: 1; background: #182323dc; border-color: #92a7a4; }
  .album-prev { left: 5px; }
  .album-next { right: 5px; }
}
@media (prefers-reduced-motion: reduce) { .category-cover > img { transition: none; } }
