/* LPAM Nederland v3.4.8 – fotoviewer: foto groot, bediening direct bij de foto.
   De achterliggende pagina blijft zichtbaar, donker gedimd. Geen databasewijziging. */
.lpam-photo-dialog{
  box-sizing:border-box;
  border:0;
  border-radius:0;
  padding:0;
  margin:auto;
  width:100vw;
  max-width:100vw;
  height:100vh;
  height:100dvh;
  max-height:100vh;
  max-height:100dvh;
  background:transparent;
  color:white;
  overflow:hidden;
}
.lpam-photo-dialog::backdrop{background:rgba(4,11,22,.79)}
.lpam-photo-dialog .lpam-photo-shade{
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  width:100%;
  height:100%;
  padding:12px;
  background:transparent;
}
.lpam-photo-dialog .lpam-photo-stage{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  max-width:calc(100vw - 24px);
  max-height:calc(100dvh - 24px);
}
.lpam-photo-dialog .lpam-photo-full{
  display:block;
  box-sizing:border-box;
  width:auto;
  height:auto;
  max-width:calc(100vw - 24px);
  max-height:calc(100vh - 24px);
  max-height:calc(100dvh - 24px);
  object-fit:contain;
  border:1px solid rgba(255,255,255,.24);
  border-radius:9px;
  background:rgba(8,15,25,.28);
  box-shadow:0 16px 60px rgba(0,0,0,.66);
}
.lpam-photo-dialog button{
  box-sizing:border-box;
  position:absolute;
  z-index:3;
  display:grid;
  place-items:center;
  color:white;
  font-family:inherit;
  cursor:pointer;
  background:rgba(12,29,46,.88);
  border:1px solid rgba(255,255,255,.65);
  box-shadow:0 2px 12px rgba(0,0,0,.48);
  line-height:1;
  touch-action:manipulation;
}
.lpam-photo-dialog button:hover,
.lpam-photo-dialog button:focus-visible{background:#264a70;outline:2px solid white;outline-offset:2px}
.lpam-photo-dialog .lpam-photo-close{
  top:9px;
  right:9px;
  width:46px;
  height:46px;
  border-radius:50%;
  font-size:33px;
  padding:0;
}
.lpam-photo-dialog .lpam-photo-prev,
.lpam-photo-dialog .lpam-photo-next{
  top:50%;
  transform:translateY(-50%);
  width:42px;
  height:54px;
  border-radius:9px;
  font-size:38px;
  padding:0;
}
.lpam-photo-dialog .lpam-photo-prev{left:7px}
.lpam-photo-dialog .lpam-photo-next{right:7px}
.lpam-photo-dialog button[hidden]{display:none}
.lpam-photo-dialog .lpam-photo-caption{
  position:absolute;
  bottom:10px;
  left:50%;
  transform:translateX(-50%);
  width:max-content;
  max-width:calc(100% - 35px);
  box-sizing:border-box;
  padding:5px 12px;
  border-radius:99px;
  background:rgba(8,19,32,.83);
  border:1px solid rgba(255,255,255,.22);
  text-align:center;
  color:#fff;
  font-size:14px;
  font-weight:700;
  line-height:1.3;
  pointer-events:none;
}
.lpam-photo-dialog .lpam-photo-caption:empty{display:none}
@media(max-width:600px){
  .lpam-photo-dialog .lpam-photo-shade{padding:6px}
  .lpam-photo-dialog .lpam-photo-stage{max-width:calc(100vw - 12px);max-height:calc(100dvh - 12px)}
  .lpam-photo-dialog .lpam-photo-full{
    max-width:calc(100vw - 12px);
    max-height:calc(100vh - 12px);
    max-height:calc(100dvh - 12px);
  }
  .lpam-photo-dialog .lpam-photo-close{top:6px;right:6px;width:44px;height:44px}
  .lpam-photo-dialog .lpam-photo-prev,
  .lpam-photo-dialog .lpam-photo-next{width:36px;height:49px;font-size:34px}
  .lpam-photo-dialog .lpam-photo-prev{left:3px}
  .lpam-photo-dialog .lpam-photo-next{right:3px}
  .lpam-photo-dialog .lpam-photo-caption{bottom:7px;font-size:13px}
}
