/* APT program photographs; controls are scoped away from other page dialogs. */
.apt-gallery{min-width:0;max-width:100%;margin:0}
.apt-gallery [hidden]{display:none!important}
.apt-gallery-sr{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.apt-gallery-stage{position:relative;aspect-ratio:1.72;margin:0;overflow:hidden;background:var(--sand,#beb5a2);touch-action:pan-y}
.apt-gallery-open{display:block;width:100%;height:100%;padding:0;border:0;background:transparent;cursor:zoom-in;touch-action:pan-y}
.apt-gallery-open>img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;user-select:none}
.apt-gallery-expand{position:absolute;bottom:15px;right:16px;display:grid;place-items:center;width:35px;height:35px;background:#1e1e1e99;color:#fff;font-size:24px;line-height:1;pointer-events:none}
.apt-gallery .apt-gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #e8e7e299;border-radius:50%;background:#1e1e1e8c;color:#fff;font-size:23px;line-height:1;cursor:pointer;box-shadow:none}
.apt-gallery .apt-gallery-arrow:hover{background:var(--moss,#494b30)}
.apt-gallery-previous{left:15px}
.apt-gallery-next{right:15px}
.apt-gallery .apt-gallery-open:focus-visible{outline:3px solid var(--off-white,#e8e7e2);outline-offset:-5px}
.apt-gallery .apt-gallery-arrow:focus-visible,.apt-gallery .apt-gallery-close:focus-visible{outline:3px solid #fff;outline-offset:3px}
.apt-gallery-thumbnails{position:relative;display:flex;gap:9px;overflow-x:auto;overscroll-behavior-x:contain;max-width:100%;padding:4px 2px 6px;margin-top:10px;scrollbar-width:thin;scrollbar-color:var(--sand,#beb5a2) transparent}
.apt-gallery-thumbnail{display:block;flex:0 0 112px;width:112px;height:76px;padding:3px;border:2px solid transparent;background:transparent;border-radius:0;cursor:pointer}
.apt-gallery-thumbnail img{width:100%;height:100%;object-fit:cover;user-select:none}
.apt-gallery-thumbnail[aria-pressed="true"]{border-color:var(--moss,#494b30)}
.apt-gallery-thumbnail:hover{background:var(--sand,#beb5a2)}
.apt-gallery .apt-gallery-thumbnail:focus-visible{outline:2px solid var(--vintage-brown,#462d1a);outline-offset:-2px}
.apt-gallery-meta{display:flex;justify-content:flex-end;align-items:start;gap:15px;margin-top:3px;font-size:10px;line-height:1.6;color:var(--muted,#5d5a50)}
.apt-gallery-meta p{margin:0}
.apt-gallery-meta>span{flex-shrink:0;min-width:38px;text-align:right;letter-spacing:.04em}
.apt-gallery dialog.apt-gallery-lightbox{position:fixed;inset:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;padding:18px 24px 20px;border:0;border-radius:0;background:#171916;color:var(--off-white,#e8e7e2);box-sizing:border-box;overflow:hidden}
.apt-gallery-lightbox[open]{display:flex;flex-direction:column}
.apt-gallery-lightbox::backdrop{background:#171916}
.apt-gallery-lightbox-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-shrink:0;margin-bottom:10px;font-size:12px;letter-spacing:.08em}
.apt-gallery .apt-gallery-close{display:grid;place-items:center;width:44px;height:44px;padding:0;background:transparent;color:#fff;border:1px solid #e8e7e277;border-radius:50%;font-size:30px;line-height:1;cursor:pointer}
.apt-gallery .apt-gallery-close:hover{background:var(--moss,#494b30)}
.apt-gallery-lightbox-stage{position:relative;display:flex;align-items:center;justify-content:center;flex:1;min-height:0;width:100%;touch-action:pan-y}
.apt-gallery-lightbox-stage>img{display:block;width:100%;height:100%;max-height:100%;object-fit:contain;user-select:none}
.apt-gallery-lightbox-caption{flex-shrink:0;margin:14px 0 0;font-size:11px;line-height:1.6;color:#e8e7e2c9;text-align:center}
@media(max-width:720px){
  .apt-gallery-stage{aspect-ratio:1.45}
  .apt-gallery .apt-gallery-arrow{width:40px;height:40px;font-size:21px}
  .apt-gallery-previous{left:10px}
  .apt-gallery-next{right:10px}
  .apt-gallery-thumbnail{flex-basis:94px;width:94px;height:66px}
  .apt-gallery-thumbnails{gap:6px;margin-top:7px}
  .apt-gallery-meta{font-size:9px;gap:10px}
  .apt-gallery-expand{width:31px;height:31px;right:12px;bottom:12px;font-size:22px}
  .apt-gallery dialog.apt-gallery-lightbox{padding:12px 10px 18px}
  .apt-gallery-lightbox-toolbar{margin-inline:4px;margin-bottom:8px}
  .apt-gallery-lightbox-caption{font-size:10px;margin-top:12px}
}
@media print{
  .apt-gallery-thumbnails,.apt-gallery-arrow,.apt-gallery-expand,.apt-gallery-lightbox{display:none!important}
  .apt-gallery-stage{aspect-ratio:2.5}
  .apt-gallery-open{cursor:default}
  .apt-gallery-meta{font-size:8pt}
}

.apt-gallery-placeholder .apt-gallery-stage>img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
