:root {
    color-scheme: dark;
    background: #111922;
    color: #f4f7fa;
    font: 1rem/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
}
body { margin: 0; }
.enc-photo-view {
    display: grid;
    grid-template: auto minmax(0, 1fr) / minmax(0, 1fr) auto auto;
    align-items: center;
    height: 100vh;
    height: 100dvh;
}
.enc-photo-back, #enc-zoom-label {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: .3em clamp(.5rem, 2.5vw, 1.5rem);
}
.enc-photo-back { justify-self: start; color: #c4e9ff; text-underline-offset: .18em; }
#enc-photo-zoom { width: 1.1rem; height: 1.1rem; margin: 0; accent-color: #89cfff; }
#enc-zoom-label { padding-inline-start: .45rem; cursor: pointer; }
:focus-visible { outline: 2px solid #89cfff; outline-offset: -2px; }
.enc-photo-stage {
    grid-column: 1 / -1;
    align-self: stretch;
    overflow: auto;
    background: #0b1118;
}
.enc-photo-frame {
    position: relative;
    display: grid;
    grid-template: minmax(0, 1fr) / minmax(0, 1fr);
    place-items: center;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
}
.enc-photo-frame img { display: block; max-width: 100%; max-height: 100%; }
.enc-photo-frame.enc-watermarked::after {
    content: "electronord.gr";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: clamp(16px, 3vw, 38px);
    font-weight: 700;
    letter-spacing: .02em;
    text-shadow: 0 1px 3px #0009, 0 0 1px #000c;
    opacity: var(--enc-watermark-opacity, .35);
    pointer-events: none;
    user-select: none;
}
#enc-photo-zoom:checked ~ .enc-photo-stage .enc-photo-frame {
    grid-template: auto / auto;
    width: max-content;
    height: max-content;
    min-width: 100%;
    min-height: 100%;
    cursor: zoom-out;
}
#enc-photo-zoom:checked ~ .enc-photo-stage img { max-width: none; max-height: none; }
@media (max-width: 480px) {
    .enc-photo-back, #enc-zoom-label { font-size: .875rem; }
}
