.hg-home-photo-stage {
    position: relative;
    display: flex;
    min-height: 320px;
    align-items: center;
    justify-content: center;
}

.hg-home-photo-frame,
.hg-home-photo-mark {
    display: block;
    width: 240px;
    height: 320px;
    max-width: 100%;
    object-fit: contain;
    pointer-events: none;
    position: absolute;
    inset: 0;
    margin: auto;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.hg-home-photo-frame {
    opacity: 0;
    transition: opacity 120ms ease;
}

/* 0.5 s per handle: the incoming photo appears at once above the outgoing one, which fades out beneath it. */
.hg-home-photo-frame.is-active {
    opacity: 1;
    position: relative;
    z-index: 1;
    transition: none;
}

/* The shared background watermark: the same pattern every render carries outside the handle area. */
.hg-home-photo-mark {
    z-index: 2;
}

.hg-home-photo-cycle .config-mockup-label {
    display: flex;
    min-height: 2.8em;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .hg-home-photo-stage {
        min-height: 300px;
    }
    .hg-home-photo-frame,
    .hg-home-photo-mark {
        width: 225px;
        height: 300px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hg-home-photo-frame,
    .config-mockup-label {
        transition: none !important;
    }
}
