#gallery-clear-button {
  display: inline-block;
  float: right;
  line-height: 26px; }

#curly_gallery_metabox .inside {
  padding: 0; }

#curly_gallery_metabox .inside-container {
  padding: 6px 12px 12px; }
  #curly_gallery_metabox .inside-container :first-child {
    margin-top: 0; }

#curly_gallery_metabox .images {
  overflow: hidden;
  margin: 1em 0; }
  #curly_gallery_metabox .images img {
    float: left;
    margin-right: 3.22555%;
    margin-bottom: 3.22555%;
    width: 22.580837%;
    height: auto; }
    #curly_gallery_metabox .images img:nth-child(4n) {
      margin-right: 0; }
    #curly_gallery_metabox .images img:nth-child(-4n), #curly_gallery_metabox .images img:nth-child(-3n), #curly_gallery_metabox .images img:nth-child(-2n), #curly_gallery_metabox .images img:nth-child(-n) {
      margin-bottom: 0; }

#curly_gallery_metabox .actions {
  padding: 10px;
  clear: both;
  border-top: 1px solid #ddd;
  background: #f5f5f5; }
