JSFiddle - React, Tailwind, and code Playground

HTML

<div class="photo">
    <div class="photo__inner">
        <img src="http://tribulationsparisiennes.hautetfort.com/media/00/00/3753014239.jpg" alt="" />
    </div>
</div>

CSS

.photo {
    position: relative;
    margin: 20px auto;
    border: 5px solid #DBDBDB;
}
.photo:before, .photo:after {
    content: '';
    position: absolute;
    width: 50%;
    height:5px;      
    background: #FF0000;
}
.photo:before {
     left: -5px;
     top: -5px;    
}
.photo:after {
    right:-5px;
    bottom:-5px;
}
.photo__inner {
    position: relative;
}
.photo__inner:before, .photo__inner:after {
    content: '';
    position: absolute;
    height: 50%;
    width: 5px;   
    background: #FF0000;
}
.photo__inner:before {
     left: -5px;
     top: -5px;  
}

.photo__inner:after {
    right:-5px;
    bottom:-5px;
}
.photo img {
    display: block;
    width: 100%;
    position: relative;
    z-index: 1;
}