#hero-area,
#portfolio-area {
    display: block;
    width: 100%;
    border-bottom: 1px solid #ddd;
}

#hero-area h1,
#portfolio-area h1 {
    display: block;
    width: 100%;
    line-height: 30px;
    font-size: 16px;
    font-family: Poppins-Regular, sans-serif;
    font-weight: normal;
    color: #222;
    text-align: left;
    text-transform: capitalize;
    padding: 10px 25px;
}

#hero-area .images,
#portfolio-area .images {
    display: block;
    width: 100%;
    padding: 0 25px 30px 25px;
    white-space: nowrap;
    overflow: auto;
    font-size: 0;
}

.images .loading {
    display: inline-block;
    vertical-align: middle;
    height: 300px;
    margin-right: 25px;
}

.hero-area-image,
.portfolio-area-image {
    display: inline-block;
    vertical-align: middle;
    margin-right: 25px;
}

.hero-area-image img,
.portfolio-area-image img {
    display: block;
    height: 300px;
    margin-bottom: 10px;
}

#hero-area .caption,
#portfolio-area .caption {
    display: block;
    width: 100%;
    line-height: 20px;
    font-size: 16px;
    font-family: Poppins-Bold, sans-serif;
    font-weight: bold;
    color: #222;
    text-align: left;
}

#hero-area .edit-btn,
#portfolio-area .edit-btn {
    display: inline-block;
    vertical-align: middle;
    line-height: 20px;
    font-size: 14px;
    font-family: Poppins-Regular, sans-serif;
    font-weight: normal;
    color: blueviolet;
    border: 0;
    outline: 0;
    background: transparent;
}


/********************************************/

#texts {
    display: block;
    width: 100%;
    padding: 25px;
    border-bottom: 1px solid #ddd;
}

#texts h1 {
    display: block;
    width: 100%;
    line-height: 30px;
    font-size: 16px;
    font-family: Poppins-Regular, sans-serif;
    font-weight: normal;
    color: #222;
    text-align: left;
    text-transform: capitalize;
    padding: 10px 0;
}

#texts_ {
    display: block;
    width: 100%;
}

.text {
    display: block;
    width: 100%;
    margin-bottom: 25px;
}

.text textarea {
    display: block;
    width: 100%;
    height: 100px;
    border: 0;
    outline: 0;
    background: #eee;
    resize: vertical;
    font-family: Poppins-Regular, sans-serif;
    font-weight: normal;
    color: #222;
    text-align: left;
    padding: 15px;
    line-height: 25px;
    font-size: 20px;
}

.text .edit-btn {
    display: inline-block;
    vertical-align: middle;
    margin-top: 5px;
    font-family: Poppins-Regular, sans-serif;
    font-weight: normal;
    color: blueviolet;
    font-size: 16px;
    height: 20px;
    border: 0;
    outline: 0;
    background: transparent;
    margin-left: 15px;
}


/*************************************************/

#edit-image {
    display: block;
    width: 100%;
    height: 100%;
    overflow: auto;
    padding: 50px 0;
    position: fixed;
    z-index: 200;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, .9);
}

#edit-image .background-layer {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
}

#edit-image section {
    display: block;
    width: 1000px;
    background: #fff;
    margin: 0 auto;
    font-size: 0;
    position: relative;
    z-index: 10;
}

#exit-image-edit {
    display: block;
    width: 40px;
    height: 40px;
    position: absolute;
    z-index: 10;
    top: 0;
    left: 0;
    border: 0;
    outline: 0;
    padding: 10px;
    background: #222;
}

#exit-image-edit svg {
    display: block;
    width: 100%;
    height: 100%;
}

#exit-image-edit polyline {
    fill: none;
    stroke: #fff;
    stroke-width: 2;
}

#image-section {
    display: inline-block;
    vertical-align: top;
    width: 40%;
}

#preview-image {
    display: block;
    width: 100%;
}

#editor-section {
    display: inline-block;
    vertical-align: top;
    width: 60%;
    padding: 40px;
}

#update-image {
    display: inline-block;
    vertical-align: middle;
    font-family: Poppins-Regular, sans-serif;
    font-weight: normal;
    color: blueviolet;
    font-size: 16px;
    border: 0;
    outline: 0;
    background: transparent;
    margin-bottom: 20px;
}

#image-input {
    position: fixed;
    z-index: -10;
    top: -100%;
    left: -100%;
}

#editor-section h2 {
    display: block;
    width: 100%;
    line-height: 25px;
    font-size: 18px;
    font-family: Poppins-Regular, sans-serif;
    font-weight: normal;
    color: #222;
    text-align: left;
    margin-bottom: 5px;
}

#caption-input,
#message-input {
    display: block;
    width: 100%;
    height: 50px;
    border-radius: 4px;
    border: 1px solid #999;
    background: transparent;
    outline: 0;
    padding: 0 15px;
    font-family: Poppins-Regular, sans-serif;
    font-weight: normal;
    color: #444;
    text-align: left;
    font-size: 16px;
    margin-bottom: 20px;
}

#save-image {
    display: inline-block;
    vertical-align: middle;
    padding: 0 30px;
    height: 50px;
    border: 0;
    outline: 0;
    border-radius: 4px;
    background: blueviolet;
    font-family: Poppins-Regular, sans-serif;
    font-weight: normal;
    color: #fff;
    font-size: 16px;
    margin-right: 10px;
}

#cancel-image-edit {
    display: inline-block;
    vertical-align: middle;
    padding: 0 30px;
    height: 50px;
    border: 0;
    outline: 0;
    border-radius: 4px;
    background: #ddd;
    font-family: Poppins-Regular, sans-serif;
    font-weight: normal;
    color: #222;
    font-size: 16px;
}

@media only screen and (max-width: 1100px) {
    #edit-image section {
        width: 90%;
    }
    #update-image {
        font-size: 14px;
    }
    #edit-image h2 {
        font-size: 15px;
    }
    #caption-input {
        font-size: 14px;
    }
    #save-image,
    #cancel-image-edit {
        padding: 0 25px;
        height: 40px;
        font-size: 12px;
    }
    @media only screen and (max-width: 700px) {
        #edit-image section {
            width: 400px;
        }
        #image-section {
            display: block;
            width: 100%;
        }
        #editor-section {
            display: block;
            width: 100%;
            padding: 40px 30px;
        }
        @media only screen and (max-width: 500px) {
            #edit-image {
                padding: 0;
            }
            #edit-image section {
                width: 100%;
                background: #fff;
            }
            #editor-section {
                padding: 40px 20px;
            }
        }
    }
}


/**********************************************/

#edit-text {
    display: block;
    width: 100%;
    height: 100%;
    overflow: auto;
    padding: 50px 0;
    position: fixed;
    z-index: 200;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, .9);
}

#edit-text .background-layer {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
}

#edit-text section {
    display: block;
    width: 500px;
    background: #fff;
    margin: 0 auto;
    font-size: 0;
    position: relative;
    z-index: 10;
}

#text-input {
    display: block;
    width: 100%;
    height: 200px;
    padding: 20px;
    font-family: Poppins-Regular, sans-serif;
    font-weight: normal;
    color: #222;
    font-size: 16px;
    border: 0;
    outline: 0;
    background: transparent;
    border-bottom: 1px solid #ddd;
    resize: none;
}

#save-text {
    display: inline-block;
    vertical-align: middle;
    padding: 0 30px;
    height: 40px;
    border: 0;
    outline: 0;
    border-radius: 4px;
    background: blueviolet;
    font-family: Poppins-Regular, sans-serif;
    font-weight: normal;
    color: #fff;
    font-size: 14px;
    margin: 20px 10px 20px 20px;
}

#cancel-text-edit {
    display: inline-block;
    vertical-align: middle;
    padding: 0 30px;
    height: 40px;
    border: 0;
    outline: 0;
    border-radius: 4px;
    background: #ddd;
    font-family: Poppins-Regular, sans-serif;
    font-weight: normal;
    color: #222;
    font-size: 14px;
    margin: 20px 0;
}

@media only screen and (max-width: 700px) {
    #edit-text section {
        width: 400px;
    }
    @media only screen and (max-width: 500px) {
        #edit-text {
            background: #fff;
        }
        #edit-text section {
            width: 100%;
        }
    }
}