/**
 * @author: Procurios (Peter Slagter)
 * @about:  pc-article-gallery.css - General layout and grid settings of article gallery snippet
 */

/**
 * Defaults, resets
 */

/** Hidden to users, visible to screen readers */
.ag-article-offscreen {
    position: absolute;
    left: -9999em;
    top: -9999em;
}

/**
 * Layout without Javascript
 */

.ag-article {
    margin-bottom: 1.5em;
    padding-bottom: 1.5em;
    border-bottom: 1px solid #ccc;
}

.ag-art-last {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

/**
 * Layout with Js
 */

.has-js .pc-article-gallery {
    position: relative;
    overflow: hidden;
}

.has-js .pc-article-gallery-flexDimensions .ag-article {
    height: auto !important;
}

.has-js .ag-article {
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin-bottom: 0;
    padding-bottom: 0;
    border: 0;
}

/**
 * Default layout of gallery navigation
 */

.ag-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    display: inline;
    width: 100%;
    margin: 0;
    padding: 0.3rem 0;
    list-style: none;
    text-align: center;
    background-color: rgba(255, 255, 255, .7);
    z-index: 10000;
}

.ag-nav li {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    line-height: 1.5;
    margin: 0.1rem 0.3rem 0.1rem 0;
    border: none;
    border-radius: 0.2rem;
    cursor: pointer;
    color: #ccc;
    background-color: rgba(0, 0, 0, 0.5);
}

.ag-nav li:hover,
.ag-nav-aleft:hover,
.ag-nav-aright:hover,
.ag-nav li.ag-nav-active {
    text-shadow: none;
    color: #fff;
    background: #000;
}

.ag-nav-aleft,
.ag-nav-aright {
    position: absolute;
    top: calc(50% - 0.8em);
    width: 1.5em;
    height: 1.5em;
    line-height: 1.5;
    color: #fff;
    border: none;
    border-radius: 0.2rem;
    font-size: 2em;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.ag-nav-aleft {
    left: 0;
}

.ag-nav-aright {
    right: 0;
}
