/* Reaction Popup - Centered Modal Style */
.reaction-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    /* High z-index to sit on top of everything */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.4);
    /* Dim background */
    backdrop-filter: blur(2px);
    /* Blur background slightly */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-out;
    pointer-events: none;
    /* Allow clicks through when hidden, but blocked when visible via class */
}

.reaction-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.reaction-image {
    max-width: 80%;
    /* Don't overflow width */
    max-height: 60vh;
    /* Don't overflow height */
    width: auto;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 4px solid #FFF;
    background: #FFF;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reaction-overlay.show .reaction-image {
    transform: scale(1);
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .reaction-image {
        max-width: 85%;
        max-height: 50vh;
        /* Slightly smaller on mobile to leave space */
        border-width: 3px;
    }
}