/* Progressive enhancement: without JavaScript, both full-width image links show. */
.photo-gallery{min-width:0;min-height:0;overflow:visible;background:#241d18;color:#f1eadc}
.photo-gallery>figure{margin:0;min-width:0}
.photo-gallery>figure[hidden]{display:none}
.photo-gallery>figure>a{position:relative;display:block;color:inherit}
.photo-gallery>figure>a:focus-visible{outline:3px solid #d6ad52;outline-offset:-4px}
.crew-card .photo-gallery .photo-gallery-image,.workplace-photo.photo-gallery .photo-gallery-image{display:block;width:100%;height:auto;min-height:0;object-fit:contain;filter:none;transform:none;transition:none}
.photo-gallery figcaption{padding:12px 16px;font-size:.72rem;font-weight:700;letter-spacing:.06em}
.photo-gallery-hint{position:absolute;right:12px;bottom:12px;padding:10px 14px;background:#f1eadc;color:#0d0a09;box-shadow:0 2px 14px #0006;font-size:.7rem;font-weight:700;letter-spacing:.04em}
.photo-gallery-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0 14px}
.photo-gallery-choice{display:flex;min-width:0;align-items:center;gap:10px;padding:6px;border:2px solid #746b61;background:transparent;color:#f1eadc;cursor:pointer;text-align:left;font:inherit;font-size:.65rem;line-height:1.35}
.photo-gallery-choice[aria-pressed="true"]{border-color:#d6ad52;background:#3b3027}
.photo-gallery-choice:hover{background:#3b3027}
.photo-gallery-choice:focus-visible{outline:3px solid #d6ad52;outline-offset:2px}
.crew-card .photo-gallery .photo-gallery-choice img,.workplace-photo.photo-gallery .photo-gallery-choice img{display:block;flex:0 0 64px;width:64px;height:36px;min-height:0;object-fit:contain;filter:none;transform:none;transition:none}
.photo-gallery-summary{margin:0;padding:12px 16px;color:#c9c0b0;font-size:.65rem;line-height:1.5}
.profile-photo-link{position:relative;display:block;color:inherit;cursor:zoom-in}
/* Preserve each landing card's existing image sizing and flex layout. */
.crew-card>.profile-photo-link{height:100%}
.crew-card>.profile-photo-link.is-natural-height{flex:0 0 auto;height:auto}
.profile-photo-link .photo-gallery-hint{top:12px;bottom:auto;z-index:2}
.profile-photo-link:focus-visible img{outline:3px solid #d6ad52;outline-offset:-4px}
body.photo-dialog-open{overflow:hidden}
.photo-dialog{width:calc(100vw - 32px);max-width:2000px;height:calc(100dvh - 32px);max-height:none;margin:auto;padding:0;border:1px solid #746b61;background:#17120f;color:#f1eadc;font-family:'Space Grotesk',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.photo-dialog::backdrop{background:#0d0a09e8}
.photo-dialog-shell{display:flex;height:100%;min-height:0;flex-direction:column}
.photo-dialog-header{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;border-bottom:1px solid #746b61}
.photo-dialog-header h2{margin:0;font-family:inherit;font-size:1rem;font-weight:700;text-transform:none;letter-spacing:0}
.photo-dialog-caption{margin:5px 0 0;color:#c9c0b0;font-size:.72rem;line-height:1.4}
.photo-dialog-content{display:flex;flex:1 1 auto;min-height:0;min-width:0}
.photo-profile{flex:0 0 32%;min-width:300px;max-width:440px;overflow:auto;overscroll-behavior:contain;padding:28px;background:#f1eadc;color:#211c17;line-height:1.6;font-size:.9rem;overflow-wrap:anywhere}
.photo-profile>p{margin:0 0 20px}
.photo-profile .photo-profile-type{color:#8d241d;font-size:.72rem;font-weight:700;letter-spacing:.08em}
.photo-profile .photo-profile-facts{font-size:.82rem;color:#5c544b}
.photo-profile .photo-profile-description{white-space:pre-line}
.photo-profile .photo-profile-total{margin:24px 0;padding-top:18px;border-top:1px solid #a59a89}
.photo-profile-total p{margin:0}
.photo-profile-total strong{font-size:2.2rem;line-height:1.2;margin-right:8px}
.photo-profile-links{display:flex;flex-direction:column;align-items:flex-start;gap:12px;margin-top:24px}
.photo-profile-links a{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:10px 14px;border:1px solid #8a7b68;color:#211c17;font-weight:700;font-size:.78rem;text-decoration:underline;text-decoration-color:#8d241d;text-underline-offset:4px}
.photo-profile-links a:hover{background:#e2d5bf}
.photo-profile .photo-profile-demo{padding:10px;background:#d6ad52;font-weight:700}
.photo-dialog button{min-height:44px;padding:0 16px;border:1px solid #746b61;background:#241d18;color:#f1eadc;cursor:pointer;font:700 .75rem/1.2 'Space Grotesk',sans-serif}
.photo-dialog button:hover{background:#3b3027}
.photo-dialog button:focus-visible,.photo-dialog-image-area:focus-visible{outline:3px solid #d6ad52;outline-offset:-4px}
.photo-profile:focus-visible,.photo-profile a:focus-visible{outline:3px solid #8d241d;outline-offset:-4px}
.photo-dialog-image-area{display:flex;flex:1 1 auto;min-height:0;min-width:0;align-items:center;justify-content:center;overflow:auto;overscroll-behavior:contain}
.photo-dialog-image{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.photo-dialog.is-zoomed .photo-dialog-image-area{display:block}
.photo-dialog.is-zoomed .photo-dialog-image{width:var(--photo-natural-width,1920px);max-width:none;max-height:none;height:auto}
.photo-dialog-controls{display:flex;flex:0 0 auto;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;padding:12px 16px;border-top:1px solid #746b61}
.photo-dialog-status{margin:0;font-size:.75rem;text-align:center}
.photo-dialog-zoom{margin-left:auto}
.photo-dialog [hidden]{display:none}
@media(max-width:800px){
  .photo-dialog-content{flex-direction:column;overflow:auto;overscroll-behavior:contain}
  .photo-dialog-image-area{flex:0 0 auto;height:42dvh;min-height:200px}
  .photo-profile{flex:0 0 auto;min-width:0;max-width:none;overflow:visible;padding:22px}
}
@media(max-width:600px){
  .photo-gallery-choice{align-items:flex-start;flex-direction:column;gap:6px;padding:7px}
  .crew-card .photo-gallery .photo-gallery-choice img,.workplace-photo.photo-gallery .photo-gallery-choice img{flex:0 0 auto;width:100%;height:auto;aspect-ratio:16 / 9}
  .photo-dialog{width:calc(100vw - 16px);height:calc(100dvh - 16px)}
  .photo-dialog-header{padding:8px 10px;gap:8px}
  .photo-dialog-header h2{font-size:.85rem}
  .photo-dialog-controls{gap:8px;padding:8px 10px}
  .photo-dialog button{padding:0 12px}
  .photo-dialog-zoom{margin-left:0}
}
