.content-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.content-modal.active {
    display: flex;
}

.content-modal__button-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    line-height: 1;
    transition: color 0.3s;
    border-radius: 100%;
    display: flex;
    width: 50px;
    height: 50px;
    border: none;
    padding: 1px 11px;

    background-color: rgba(255, 255, 255, 0.2);
}

.content-modal__button-close:hover {
    background-color: rgba(255, 255, 255, 0.4);
}
.content-modal__button-close:focus {
    outline: none;
}

.content-modal__wrap {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-modal__wrap img,
.content-modal__wrap video {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: background-color 0.3s ease;
}
.play-button-overlay svg {
    width: 30px;
    height: 30px;
    color: white;
}

.play-button-overlay.mini {
    width: 30px;
    height: 30px;
    left: 54%;
}

.play-button-overlay.mini svg {
    width: 15px;
    height: 15px;
}

.media-trigger {
    position: relative;
}
