JSFiddle - React, Tailwind, and code Playground

HTML

<div class="lightbox lightbox--active">
    <div class="lightbox__inner">
        <div class="lightbox__content" data-lightbox-content="">
            <img src="http://cdn1.pri.org/sites/default/files/styles/story_main/public/story/images/One-of-the-photos-taken-b-013.jpg?itok=LCk-zocA">
        </div>
    </div>
</div>

CSS

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.8)
}
.lightbox.lightbox--active {
    display: block
}
.lightbox .lightbox__inner {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 90vh;
    background-color: #fff
}
.lightbox .lightbox__content {
    height: 100%
}
.lightbox .lightbox__content img {
    display: block;
    max-width: 90vw;
    max-height: 90vh
}
.lightbox .lightbox__close {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: #fff 2px solid;
    cursor: pointer;
    color: #fff;
    background-color: #000
}