/* Zoom the artwork, not the tile or its caption. SVGs repaint at their new
   size instead of magnifying a blurred/composited screenshot. */
.architecture-transition {
    position: fixed;
    inset: 0;
    height: 100vh;
    height: 100svh;
    z-index: 2147483000;
    isolation: isolate;
    overscroll-behavior: contain;
    touch-action: none;
    cursor: progress;
}

.architecture-transition__backdrop {
    position: absolute;
    inset: 0;
    background: var(--popover, #fff);
    opacity: 0;
}

.architecture-transition__frame {
    position: absolute;
    overflow: hidden;
    background: #fff;
    pointer-events: none;
}

.architecture-transition__art {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    object-fit: cover;
    transform: none;
    transition: none;
    background: #fff;
}

/* This is the same width as the real normalized project hero. */
.architecture-transition__measure {
    position: absolute;
    visibility: hidden;
    width: min(58.2077051926vw, 83.3333333333svh);
    aspect-ratio: 4 / 3;
    pointer-events: none;
}

/* The image itself is already at its final size when the next page opens.
   Only the surrounding UI enters; never fade, blur or thicken the cover. */
.architecture-transition-arriving .interior-project-page > .site-header,
.architecture-transition-arriving .interior-project-page .interior-project-scroll,
.architecture-transition-arriving .interior-project-page .interior-project-hero .interior-project-photo-credit,
.architecture-transition-arriving .interior-project-page .interior-project > :not(.interior-project-hero),
.architecture-transition-arriving .interior-project-page > .page-end-navigation {
    animation: architecture-project-reveal 300ms ease-out both;
}

@keyframes architecture-project-reveal {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .architecture-transition-arriving .interior-project-page * {
        animation: none !important;
    }
}
