/* Local photo-book overlay; geometry and colors match the original popup. */
#photoPopup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2147483647;
}
#photoPopupContent {
    position: relative;
    max-width: 80%;
    max-height: 80%;
    touch-action: pan-y;
}
#photoPopup #popupImage {
    display: block;
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    opacity: 0;
    transition: opacity .45s ease;
}
#photoPopup #popupImage.show { opacity: 1; }
#photoPopup button {
    -webkit-appearance: none;
    appearance: none;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    background: transparent;
    border: none;
    cursor: pointer;
    line-height: normal;
}
#photoPopup .popup-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    font-size: 30px;
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin: 0 30px;
    border-radius: 50%;
    background: transparent;
}
#photoPopup #prevBtn { left: -50px; }
#photoPopup #nextBtn { right: -50px; }
#photoPopup #closePopup {
    position: absolute;
    top: -50px;
    right: -20px;
    margin: 0;
    padding: 5px 10px;
    font-size: 30px;
    background: transparent;
}
#photoPopup .popup-btn svg {
    display: block;
    width: 28px;
    height: 28px;
    stroke: white;
    stroke-width: 2;
    fill: none;
    pointer-events: none;
}
#photoPopup button:focus-visible { outline: 2px solid white; outline-offset: 3px; }
.photoBookImage { cursor: pointer; }
#photoPopup .local-album-status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
