picture > img {
    max-width: 100%;
    max-height: 300px;
}

div.image-field {
    display: flex;
    flex-direction: column;
}
.controls, .info {
    display: flex;
}
.controls > * {
    flex: auto;
}
.info > * {
    flex: auto;
}

div.crop {
    display: none;
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 99999;
    background-color: white;
}

div.crop > div.crop-view {
    width: 75%;
    float: left;
    height: 90%;
}

div.crop > div.crop-view img {
    max-height: 100%;
    width: auto!important;
}

div.crop > div.crop-controls {
    width: 25%;
    float: left;
    padding: 5px;
    overflow: auto;
    max-height: 100vh;
}


div.crop > div.crop-controls > div.btn-group {
    width: 100%;
}
div.crop > div.crop-controls > div.btn-group > #cancel {
    width: 40px;
}
div.crop > div.crop-controls > div.btn-group > #crop {
    width: calc(100% - 40px);
}

div.controls > button > span {
    display: none;
}


div.crop fieldset.ratio-select {
    margin: 10px;
    border: 1px solid black;
    transition: .5s;
    cursor: pointer;
    text-align: center;
    padding: 0 5px 5px;
}

div.crop fieldset.ratio-select:hover {
    padding: 0 0 5px;
    margin: 10px 5px;
    border: 1px solid red;
    transition: .3s;
}

div.crop fieldset.ratio-select > legend {
    background-color: #eee;
    border: 1px dotted grey;
    border-radius: 10px;
    padding-left: 15px;
    transition: .5s;
}

div.crop fieldset.ratio-select.chosen {
    padding: 0;
    margin: 5px;
    border: 1px solid red;
    transition: .3s;
}
div.crop fieldset.ratio-select.chosen > legend {
    background-color: #faa;
    letter-spacing: 0.05em;
    transition: .3s;
}

div.crop div.crop-controls div.crop-data  {
    display: none;
}

div.gallery-field .image-field {
    width: 30%;
    min-width: 210px;
    margin: 0 1.2%;
}

div.gallery-slider .image-field {
    width: 100%;
}

div.gallery-field picture {
    transition: 1s;
}

div.gallery-field picture.selected {
    opacity: 0.33;
    transition: .25s;
}

div#image-points {
    position: relative;
}

div#image-points > img {
    width: 100%;
}

@media (max-width: 1366px) {
    div.gallery-field .image-field {
        width: 48%;
        margin: 1%;
    }
    div.gallery-slider .image-field {
        width: 100%;
    }
}
@media (max-width: 996px) {
    div.gallery-field .image-field {
        width: 98%;
        margin: 0 auto;
    }
    div.gallery-slider .image-field {
        width: 100%;
    }
}
@media (min-width: 1440px) {
    div.gallery-field .image-field {
        width: 22%;
        margin: 0 1.2%;
    }
    div.gallery-slider .image-field {
        width: 100%;
    }
}
@media (min-width: 1920px) {
    div.gallery-field .image-field {
        width: 14%;
        margin: 0 1.2%;
    }
    div.gallery-slider .image-field {
        width: 100%;
    }
}

div.gallery-field .panel-heading {
    padding: 4px;
}

div.gallery-field .panel-body {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding: 10px;

}

div.gallery-field .panel-footer {
    padding: 3px;
}

div.gallery-field button.raise-priority, div.gallery-field button.lower-priority {
    padding: 0 5px;
    font-size: 10px;
}

div.gallery-field div.upload-progress {
    display: none;
    margin: 2px;
    height: 26px;
}

div.gallery-field div.image-field {
    margin-bottom: 10px;
}

span.point {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: green;
    border: 1px solid white;
    transition: 1s;
    transform: translate(-50%, -50%);
}

span.point>select.point-material{
    background: #fff;
    color: #000;
}


span.point.new {
    background-color: lime;
    border: 1px solid green;
}

span.point.edit {
    background-color: yellow;
    color: green;
    border: 1px solid orange;
}

select.point-material {
    position: absolute;
    top: 20px;
    left: 20px;
    overflow-y: hidden;
}

select.point-material > option[value="remove"] {
    text-align: center;
    font-weight: bold;
    color: white;
    background-color: red;
}
