.frames {
    width: 100%;
    height: 420px;
    margin: 60px auto 40px auto;
    position: relative;
    overflow: visible;
}

.frame {
    position: absolute;
    height: 0px;
    width: 0px;
    left: 0;
    top: 0;
    text-align: center;
    background-size: cover;
    background-position: center;
    border: 0px solid #231f20;
    background-color: #fff;
    opacity: 1;
    cursor: pointer;
}

.frames img {
    display: none;
}

.frames-buttons {
    width: 100%;
    height: auto;
    text-align: center;
    margin-bottom: 60px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.frames-button-next {
    display: inline-block;
    width: 22px;
    height: 36px;
    margin-left: 30px;
   background: url(images/frames_next.png) no-repeat;
    cursor: pointer;
}

.frames-button-prev {
    display: inline-block;
    width: 23px;
    height: 36px;
    margin-right: 30px;
    background: url(images/frames_prev.png) no-repeat;
    cursor: pointer;
}

.frames-overlay {
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 999;
    text-align: center;
    vertical-align: middle;
}

.frames-overlay-image {
    display: inline-block;
    position: absolute;
    left: 50%;
    top: 50%;
    max-width: 95%;
    height: auto;
    max-height: 95%;
    overflow: hidden;
    text-align: center;
}

.frames-overlay-buttons {
    width: 100%;
    height: 20px;
    position: absolute;
    top: 50%;
    margin-top: -30px;
    left: 0;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.frames-overlay-button-prev {
    position: absolute;
    left: 10px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0,0,0,0.2) url(images/prev.png) center center no-repeat;
    cursor: pointer;
}

.frames-overlay-button-next {
    position: absolute;
    right: 10px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0,0,0,0.2) url(images/next.png) center center no-repeat;
    cursor: pointer;
}