.acf-field-gallery-api .filters
{
    position: relative;
    z-index: 20;

    padding: 20px;
}

.acf-field-gallery-api .filters .field
{
    overflow: hidden;

    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            box-sizing: border-box;
    padding-right: 60px;
}

.acf-field-gallery-api .filters .field input
{
    padding: 8px 20px 7px;
}

.acf-field-gallery-api .filters .action
{
    position: absolute;
    top: 20px;
    right: 20px;

    width: 60px;
}

.acf-field-gallery-api .filters .action button
{
    line-height: 36px;

    display: block;

    width: 100%;
    height: auto;
    padding: 0 6px;

    text-align: center;

    border: none;
}

.acf-field-gallery-api .filters .action button span
{
    line-height: 36px;

    display: block;

    width: 100%;
    height: auto;

    text-align: center;
}

.acf-field-gallery-api .acf-gallery-attachments
{
    z-index: 10;
}

.acf-field-gallery-api .notice
{
    padding: 60px 30px;

    text-align: center;

    color: #666;
    -webkit-box-shadow: none;
       -moz-box-shadow: none;
            box-shadow: none;
}

.acf-field-gallery-api .spinner
{
    position: absolute;
    z-index: 30;
    top: 50%;
    right: 100px;

    display: block;
    display: none;
    visibility: visible;

    width: 20px;
    height: 20px;
    margin: 0;

    -webkit-transform: translate3d(0%,-50%,0);
       -moz-transform: translate3d(0%,-50%,0);
         -o-transform: translate3d(0%,-50%,0);
            transform: translate3d(0%,-50%,0);

    background-size: 20px 20px;

    filter: alpha(opacity=70);
}

.acf-gallery-api-list
{
    position: absolute;
    top: 76px;
    left: 0;

    overflow: hidden;
    overflow-y: auto;

    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            box-sizing: border-box;
    width: 100%;
    height: calc(100% - 76px);
    margin: 0;
    padding: 20px;
}

.acf-gallery-api-list li
{
    position: relative;

    float: left;

    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            box-sizing: border-box;
    width: 25%;
    min-height: 180px;
}

.acf-gallery-api-list li:nth-child(4n+5)
{
    clear: both;
}

.acf-gallery-api-list img
{
    position: relative;
    z-index: 10;

    display: block;

    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.acf-gallery-api-list input
{
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;

    opacity: 0;
}

.acf-gallery-api-list label
{
    position: relative;

    display: block;

    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            box-sizing: border-box;
    width: 100%;
    padding: 10px;

    border: 3px solid transparent;
}

.acf-gallery-api-list input:checked + label
{
    border-color: #008ec2;
}

.acf-gallery-api-list input:checked + label:after
{
    font-family: dashicons;
    font-size: 16px;
    line-height: 30px;

    position: absolute;
    z-index: 20;
    top: 0;
    right: 0;

    display: block;

    width: 30px;
    height: 30px;

    content: '\f147';
    text-align: center;
    vertical-align: top;

    color: white;
    background-color: #008ec2;
}
