/* The photos and the deck plan big (zoom.js). */
[data-zoom] img,
[data-zoom] [data-zoom-src] {
    cursor: zoom-in;
}

.z-viewer {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: #050E17;
    display: flex;
    flex-direction: column;
    animation: z-open 0.25s ease both;
}

.z-track {
    flex: 1;
    min-height: 0;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.z-track::-webkit-scrollbar {
    display: none;
}

.z-track figure {
    flex: none;
    width: 100%;
    height: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    scroll-snap-align: center;
}

.z-track figure.is-zoomed {
    display: block;
    overflow: auto;
}

.z-track img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: #FFFFFF00;
}

.z-track figure.is-zoomed img {
    max-width: none;
    max-height: none;
    height: auto;
    margin: auto;
}

.z-close,
.z-tools button {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(11, 34, 54, 0.82);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    color: #FFFFFF;
    font: 700 26px/1 system-ui, sans-serif;
    cursor: pointer;
}

.z-close {
    position: absolute;
    z-index: 1;
    top: max(16px, env(safe-area-inset-top));
    right: 16px;
    width: 46px;
    height: 46px;
    border-radius: 16px;
}

.z-tools {
    position: absolute;
    z-index: 1;
    right: 16px;
    bottom: calc(20px + env(safe-area-inset-bottom));
    display: flex;
    gap: 8px;
}

.z-tools button {
    width: 50px;
    height: 50px;
    border-radius: 16px;
}

.z-count {
    position: absolute;
    left: 16px;
    bottom: calc(32px + env(safe-area-inset-bottom));
    padding: 6px 12px;
    border-radius: 10px;
    background: rgba(11, 34, 54, 0.82);
    color: #FFFFFF;
    font: 800 13px/1.2 system-ui, sans-serif;
}

@keyframes z-open {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .z-viewer {
        animation: none;
    }
}
