#tris-popup-overlay {
    position: fixed;
    z-index: 999999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);

    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    padding: 40px 0;
}

.tris-popup-content {
    background: transparent;
    padding: 20px;
    position: relative;
    border-radius: 8px;
    width: fit-content;
    max-width: 1600px;

    margin: 80px auto 40px;

    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

.tris-popup-close {
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 1001;
    width: 35px;
    height: 35px;
    border: 2px solid white;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    outline: none;
    padding: 0;
}

.tris-popup-close:hover {
    background: #333;
    color: #fff;
}

.tris-popup-content video {
    margin-bottom: 0px!important;
}

@media (max-width: 768px) {
    .tris-popup-content {
        width: 100%;
        margin: 40px auto;
        max-height: calc(100vh - 40px);
    }
}

/* ----------------------------------------------- */
/* TEXTE */
/* ----------------------------------------------- */
#popup-text {
    padding: 20px 25px;
    border-radius: 6px;
    margin-bottom: 20px;
    line-height: 1.6;
    color: #333;
}

#popup-image img {
    width: 100%;
    height: auto;
    max-height: 50vh;
    object-fit: contain;
    display: block;
    border-radius: 6px;
    margin-bottom: 20px;
}

#popup-video video {
    width: 100%;
    object-fit: contain;
    border-radius: 6px;
}
