/* Lysboksen for bildegalleriene (public/skript/lysboks.js). */
a.ph-lysboks { display: block; cursor: zoom-in; }
a.ph-lysboks:focus-visible { outline: 3px solid #D74F84; outline-offset: 3px; }
html.ph-lb-apen { overflow: hidden; }

.ph-lysboks-vindu {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; color: #fff;
}
.ph-lysboks-vindu::backdrop { background: rgba(26, 14, 20, .92); }
.ph-lysboks-vindu figure {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  width: 100%; height: 100%; margin: 0; padding: 56px 72px 24px; box-sizing: border-box;
}
.ph-lysboks-vindu img { max-width: 100%; max-height: calc(100dvh - 120px); object-fit: contain; cursor: default; }
.ph-lb-teller { font-size: 15px; color: rgba(255, 255, 255, .8); min-height: 1.2em; }
.ph-lb-knapp {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer;
}
.ph-lb-knapp:hover { background: #D74F84; }
.ph-lb-knapp:focus-visible { outline: 3px solid #F48EAB; outline-offset: 2px; }
.ph-lb-knapp svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ph-lb-lukk { top: 12px; right: 12px; }
.ph-lb-forrige { left: 12px; top: 50%; transform: translateY(-50%); }
.ph-lb-neste { right: 12px; top: 50%; transform: translateY(-50%); }
.ph-lb-ett .ph-lb-forrige, .ph-lb-ett .ph-lb-neste { display: none; }
@media (max-width: 600px) {
  .ph-lysboks-vindu figure { padding: 56px 8px 72px; }
  .ph-lb-forrige, .ph-lb-neste { top: auto; bottom: 12px; transform: none; }
  .ph-lb-forrige { left: calc(50% - 60px); }
  .ph-lb-neste { right: calc(50% - 60px); }
}
