@font-face {
    font-family: 'Lato';
    src: url('../../nextgen_admin/static/Lato-Regular.ttf') format('truetype')
}

/* Thickbox-based IGW Rules */

#TB_window.ngg_tb_window {
    box-shadow: 0 0 20px 10px rgba( 0, 0, 0, .5 );
}

.ngg_tb_window #TB_iframeContent {
    height:100.1% !important;
}

.ngg_tb_window #TB_title {
    height: 0 !important;
    border: none !important;
}

.ngg_tb_window #TB_closeWindowButton {
    background: transparent;
    top: 10px;
    right: 20px;
}

.ngg_tb_window .tb-close-icon,
.ngg_tb_window #TB_closeWindowButton:focus .tb-close-icon {
    color: #fff;
    border: none;
    box-shadow: none;
    background: #9fbb1a;
    border-radius: 50%;
    padding: 1px;
    height: 20px;
    width: 20px;
    font-size: 12px;
}

.ngg_tb_window #TB_closeWindowButton:hover .tb-close-icon, 
.ngg_tb_window #TB_closeWindowButton:focus .tb-close-icon {
    color: #fff;
}

.ngg_tb_window .tb-close-icon:before {
    font: normal 18px dashicons;
}

/* TinyMCE 4-based IGW rules */

#ngg_attach_to_post_dialog {
    width: 95% !important;
    left: 2.5% !important;
}

#ngg_attach_to_post_dialog-head
#ngg_attach_to_post_dialog-title {
    display: none;
}

#ngg_attach_to_post_dialog-body {
    width: 100% !important;
}

#ngg_attach_to_post_dialog-head {
    min-height: 0;
    height: 0;
    border: none;
}

#ngg_attach_to_post_dialog-head .mce-close {
    position: absolute;
    background: transparent;
    top: 10px !important;
    right: 20px !important;
    z-index: 2;
}

#ngg_attach_to_post_dialog-head .mce-close i,
#ngg_attach_to_post_dialog-head .mce-close:focus i {
    color: #fff;
    border: none;
    box-shadow: none;
    background: #9fbb1a;
    border-radius: 50%;
    padding: 1px;
    height: 20px;
    width: 20px;
    font-size: 12px;
}

#ngg_attach_to_post_dialog-head .mce-close:hover i, 
#ngg_attach_to_post_dialog-head .mce-close:focus i {
    color: #fff;
}

#ngg_attach_to_post_dialog-head .mce-close i:before {
    font: normal 17px dashicons;
    color: #fff;
    margin: 1.2px 0 0 -8px;
}

.ngg_attach_to_post_window {
	position: relative;
	border: none !important;
}

/* TinyMCE 3-based IGW rules */

.ngg_attach_to_post_window .mceResize,
.ngg_attach_to_post_window .mceTop,
.ngg_attach_to_post_window .mceBottom,
.ngg_attach_to_post_window .mceLeft,
.ngg_attach_to_post_window .mceRight,
.ngg_attach_to_post_window .mceCenter  {
	background: transparent !important;
	border: none !important;
}

.ngg_attach_to_post_window .mceMiddle span  {
	padding-top: 6px !important;
}

.ngg_attach_to_post_window .mceTop {
	display: block !important;
	height: 0px !important;
	font-size: 0px !important;
}

.ngg_attach_to_post_window .mceClose {
	background: url('uploader-icons.png') !important;
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	width: 15px !important;
	height: 15px !important;
	background-position: -100px 0 !important;
	position: absolute !important;
	top: 44px !important;
	right: 30px !important;
}

#ngg_attach_to_post_dialog-body {
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    border-radius: 0px;
    background: rgba(255, 255, 255, 0.6);
    border-top: none;
}

/* Styling for NGG placeholder in Gutenberg. This styling mimics
 * rules in ngg_attach_to_post_tinymce_plugin.css to ensure the
 * placeholder is properly styled for Gutenberg. */

div[aria-label="Block: Classic"] .nggPlaceholder {
    background-color: #ffffff;
    border-radius: 0;
    box-shadow: 0 0 4px 2px rgba(0,0,0,.05);
    box-sizing: border-box;
    border-top: 5px solid #b8d330;
    color: #fff;
    font-family: sans-serif;
    font-size: 20px;
    margin: 20px auto !important;
    outline: none !important;
    text-align: center;
    width: 99%;
    min-height: 210px;
    padding: 60px 60px 70px;
}

div[aria-label="Block: Classic"] .nggPlaceholder h3 {
    color: black !important;
    text-transform: uppercase;
    font-size: 21px;
    font-family: "Lato", sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 3px !important;
    margin-bottom: 0;
    margin-top: 0;
}

div[aria-label="Block: Classic"] .nggPlaceholderButton {
    background: black !important;
    border-radius: 2px;
    border: none !important;
    box-shadow: none !important;
    color: #fff !important;
    display: inline-block !important;
    font-size: 12px;
    font-weight: bold;
    font-family: "Lato", sans-serif !important;
    height: 36px !important;
    line-height: 36px !important;
    letter-spacing: 1.2px;
    margin: 0px 4px 2px 0;
    padding: 0;
    width: 121px;
    text-align: center;
    text-transform: uppercase !important;
    text-shadow: none !important;
    cursor: pointer;
}

div[aria-label="Block: Classic"] .nggPlaceholderButton:hover {
    background: #383838 !important;
}

@media (max-width: 781px) {
    #TB_window.ngg_tb_window {
        position: absolute !important;
    }
}