#graphene--modal {
    cursor: pointer;
    z-index: 10001;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: auto;
    height: auto;
    overflow: auto;
    position: fixed;
}

#graphene--modal-overlay {
    cursor: default;
    position: absolute;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 100%;
    text-indent: 200%;
    white-space: nowrap;
    background-color: rgba(0, 0, 0, .7);
    overflow: hidden;
    z-index: 10002;
}

.graphene--modal-content {
    max-height: 95vh;
    max-width: 95vw;
    position: fixed;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 95%;
    -webkit-box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.6);
    -moz-box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.6);
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.6);
    z-index: 10003;
}

.graphene--modal-content.image {
    height: auto;
}

.graphene--modal-content.image .graphene--modal-content-wrapper {
    padding: 0px;
}

.graphene--modal-content-wrapper {
    cursor: default;
    position: relative;
    padding: 30px;
    background-color: #fff;
    overflow-y: auto;
    overflow-x: hidden;
}

@media screen and (min-width: 700px) {
    .graphene--modal-content {
        width: 700px;
        height: auto;
    }
}

.graphene--modal-content .graphene--modal-content-image {
    background-color: #000;
    border: 4px solid #000;
    padding: 0;
}

.graphene--modal-content img {
    display: block;
    max-width: 100%;
    z-index: 4;
}

.graphene--modal-close-btn {
    position: absolute;
    width: 30px;
    height: 30px;
    top: 0;
    right: 0;
    z-index: 5;
    background: #111;
    text-indent: 200%;
    white-space: nowrap;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: pointer;
    display: block;
    overflow: hidden;
    padding: 0;
    text-decoration: none;
}

.graphene--modal-close-btn:before {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 1px;
    color: #eee;
    content: "\00d7";
    display: block;
    font-size: 22px;
    font-weight: 100;
    line-height: 28px;
    margin: auto;
    text-align: center;
    text-indent: 0;
}

.graphene--modal-init {
    display: none;
}

.graphene--modal-hide {
    -webkit-animation: graphene--modal-fadeOut 366ms;
    animation: graphene--modal-fadeOut 366ms;
}

.graphene--modal-show {
    -webkit-animation: graphene--modal-fadeIn 366ms;
    animation: graphene--modal-fadeIn 366ms;
}

.graphene--modal-visuallyhide {
    position: absolute;
    overflow: hidden;
    clip: rect(0 0 0 0);
    height: 1px;
    width: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
}

@-webkit-keyframes graphene--modal-fadeIn {
    from {
        display: block;
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes graphene--modal-fadeIn {
    from {
        display: block;
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@-webkit-keyframes graphene--modal-fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        display: none;
    }
}

@keyframes graphene--modal-fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        display: none;
    }
}
