/**
 * ----------------------------------------------------------------------------
 * Editor CSS
 * ----------------------------------------------------------------------------
 */

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

/* Customize the overall block */

div[data-type="imagely/nextgen-gallery"],
div[data-type="imagely/nextgen-gallery-simple"],
div[data-type="imagely/nextgen-album-simple"] {
    z-index: 30;
}

div[data-type="imagely/nextgen-gallery"].is-selected>.editor-block-list__block-edit:before,
div[data-type="imagely/nextgen-gallery"].is-hovered>.editor-block-list__block-edit:before,
div[data-type="imagely/nextgen-gallery-simple"].is-selected>.editor-block-list__block-edit:before,
div[data-type="imagely/nextgen-gallery-simple"].is-hovered>.editor-block-list__block-edit:before,
div[data-type="imagely/nextgen-album-simple"].is-selected>.editor-block-list__block-edit:before,
div[data-type="imagely/nextgen-album-simple"].is-hovered>.editor-block-list__block-edit:before {
	outline: none !important;
}

div[data-type="imagely/nextgen-gallery"] .editor-block-list__breadcrumb,
div[data-type="imagely/nextgen-gallery-simple"] .editor-block-list__breadcrumb,
div[data-type="imagely/nextgen-album-simple"] .editor-block-list__breadcrumb {
	display: none !important;
}

div[data-type="imagely/nextgen-gallery"]:focus::after,
div[data-type="imagely/nextgen-gallery-simple"]:focus::after,
div[data-type="imagely/nextgen-album-simple"]:focus::after {
    box-shadow: none !important;
}

/* Popup modal when IGW is open */
#add-ngg-gallery-modal {
    background: white;
    position: fixed;
    top: 50px;
    bottom: 50px;
    right: 35px;
    left: 35px;
    z-index: 99999;
}

#add-ngg-gallery-modal-background {
    background: black;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99988;
    opacity: 70%;
}

/* Legacy iframe support */
#add-ngg-gallery-modal iframe {
    height: 100%;
    width: 100%;
}

/* Direct React rendering support */
#add-ngg-gallery-modal .add-ngg-gallery-modal-content {
    height: 100%;
    width: 100%;
    overflow: auto;
}

#add-ngg-gallery-modal-close {
    position: absolute;
    top: 10px;
    right: 25px;
    background-color: #9fbb1a;
    border-radius: 50%;
    color: white;
    padding: 1px;
	  z-index: 50;
}

#add-ngg-gallery-modal-spinner {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    background: white;
    opacity: 1;
    transition: visibility 0.5s linear 0.6s, opacity 0.4s linear, font-size 0.3s linear;
    visibility: visible;
    font-size: 15vh;
}

#add-ngg-gallery-modal-spinner.add-ngg-gallery-modal-spinner-hidden {
    opacity: 0;
    visibility: hidden;
    transition-delay: 0s;
    font-size: .5vh;
}

#add-ngg-gallery-modal-spinner i.fa.fa-spin {
}

/* Customize the NextGEN Gallery placeholder */

div[data-type="imagely/nextgen-gallery"] .add-ngg-gallery-parent,
div[data-type="imagely/nextgen-gallery-simple"] .add-ngg-gallery-parent,
div[data-type="imagely/nextgen-album-simple"] .add-ngg-gallery-parent {
    outline: none !important;
}

div[data-type="imagely/nextgen-gallery"] .add-ngg-gallery-block,
div[data-type="imagely/nextgen-gallery-simple"] .add-ngg-gallery-block,
div[data-type="imagely/nextgen-album-simple"] .add-ngg-gallery-block {
    background-color: #ffffff;
    border-radius: 2px;
    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;
    outline: none !important;
    min-height: 210px;
    padding: 60px 60px 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

div[data-type="imagely/nextgen-gallery"] .add-ngg-gallery-block h3,
div[data-type="imagely/nextgen-gallery-simple"] .add-ngg-gallery-block h3,
div[data-type="imagely/nextgen-album-simple"] .add-ngg-gallery-block h3 {
    color: black !important;
    font-family: "Lato", sans-serif !important;
    font-size: 21px;
    font-weight: 700 !important;
    letter-spacing: 3px !important;
    margin-bottom: 15px;
    margin-top: 0;
    text-align: center;
    text-transform: uppercase;
    width: 100%;
}

/* Styling for Add NextGEN Gallery buttons */

div[data-type="imagely/nextgen-gallery"] .add-ngg-gallery-button,
div[data-type="imagely/nextgen-gallery-simple"] .add-ngg-gallery-button,
div[data-type="imagely/nextgen-album-simple"] .add-ngg-gallery-button {
    font-size: 14px;
    letter-spacing: 1.2px;
    line-height: 20px;
    font-family: "Lato", sans-serif;
    font-weight: 900;
    color: #fff;
    background-color: black;
    border: none;
    box-shadow: none;
    padding: 12px 24px;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    flex: 1;
    flex-grow: 0;
    margin: 0 0 0 15px;
}

div[data-type="imagely/nextgen-gallery"] .add-ngg-gallery-button:only-of-type,
div[data-type="imagely/nextgen-gallery-simple"] .add-ngg-gallery-button:only-of-type,
div[data-type="imagely/nextgen-album-simple"] .add-ngg-gallery-button:only-of-type {
    flex-grow: 1;
    width: 300px;
    max-width: 300px;
}

div[data-type="imagely/nextgen-gallery"] .add-ngg-gallery-button:first-of-type,
div[data-type="imagely/nextgen-gallery-simple"] .add-ngg-gallery-button:first-of-type,
div[data-type="imagely/nextgen-album-simple"] .add-ngg-gallery-button:first-of-type {
    margin-left: 0;
}

div[data-type="imagely/nextgen-gallery"] .add-ngg-gallery-button:hover,
div[data-type="imagely/nextgen-gallery-simple"] .add-ngg-gallery-button:hover,
div[data-type="imagely/nextgen-album-simple"] .add-ngg-gallery-button:hover {
    background: #383838;
}
