/* Event poster popup (home page) */

#poster-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background-color: rgba(8, 30, 14, 0.75);
}

#poster-overlay.open {
    display: flex;
    animation: poster-fade 0.3s ease;
}

@keyframes poster-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.poster {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    animation: poster-rise 0.35s ease;
}

@keyframes poster-rise {
    from { transform: translateY(20px) scale(0.97); }
    to { transform: translateY(0) scale(1); }
}

.poster a {
    display: block;
}

.poster-image {
    display: block;
    width: auto;
    height: auto;
    max-width: min(100%, 520px);
    max-height: calc(100vh - 40px);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.poster-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 38px;
    height: 38px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 50%;
    background-color: #fffcf0;
    color: #083D16;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.poster-close:hover {
    background-color: #e9dfb8;
}
