/*
 * Sidrabe Galleriffic 2 layout
 * Restores the pre-update 350 x 220 gallery geometry.
 * Replace assets/components/gallery/packages/galleriffic20/css/galleriffic-2.css
 * with this file (or load it after the package stylesheet).
 */

div.galleriffic {
    width: 350px;
}

div.galleriffic div.gal_main {
    /* JavaScript enables the gallery after initialisation. */
    display: none;
    float: right;
    width: 350px;
}

div.galleriffic div.gal_main a,
div.galleriffic div.navigation a {
    color: #777;
    text-decoration: none;
}

div.galleriffic div.gal_main a:focus,
div.galleriffic div.gal_main a:hover,
div.galleriffic div.gal_main a:active {
    text-decoration: underline;
}

div.galleriffic div.controls {
    display: none;
    height: 23px;
    margin-top: 5px;
}

div.galleriffic div.controls a {
    padding: 5px;
}

div.galleriffic div.ss-controls {
    float: left;
}

div.galleriffic div.nav-controls {
    float: right;
}

div.galleriffic div.slideshow-container {
    position: relative;
    clear: both;
    height: 220px;
}

div.galleriffic div.loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 350px;
    height: 220px;
    background-image: url('/assets/components/gallery/packages/galleriffic20/css/loader.gif');
    background-repeat: no-repeat;
    background-position: center;
}

div.galleriffic div.slideshow span.image-wrapper {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

div.galleriffic div.slideshow a.advance-link {
    display: block;
    width: 350px;
    height: 220px;
    line-height: 220px;
    text-align: center;
}

div.galleriffic div.slideshow a.advance-link:hover,
div.galleriffic div.slideshow a.advance-link:active,
div.galleriffic div.slideshow a.advance-link:visited {
    text-decoration: none;
}

div.galleriffic div.slideshow img {
    vertical-align: middle;
    border: 1px solid #ccc;
}

div.galleriffic div.download {
    float: right;
}

div.galleriffic div.caption-container {
    display: none;
    position: relative;
    clear: left;
    height: 75px;
}

div.galleriffic span.image-caption {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 350px;
}

div.galleriffic div.caption {
    padding: 12px;
}

div.galleriffic div.image-title {
    font-size: 1.4em;
    font-weight: bold;
}

div.galleriffic div.image-desc {
    padding-top: 12px;
    line-height: 1.3em;
}

div.galleriffic ul.thumbs {
    clear: both;
    margin: 0;
    padding: 0;
}

div.galleriffic ul.thumbs li {
    float: left;
    padding: 0;
    margin: 5px 10px 5px 0;
    list-style: none;
}

div.galleriffic a.thumb {
    display: block;
    padding: 2px;
    border: 1px solid #ccc;
}

div.galleriffic ul.thumbs li.selected a.thumb {
    background: #000;
}

div.galleriffic a.thumb:focus {
    outline: none;
}

div.galleriffic ul.thumbs img {
    display: block;
    border: none;
}

div.galleriffic div.pagination {
    clear: both;
}

div.galleriffic div.navigation div.top {
    height: 11px;
    margin-bottom: 12px;
}

div.galleriffic div.navigation div.bottom {
    margin-top: 12px;
}

div.galleriffic div.pagination a,
div.galleriffic div.pagination span.current,
div.galleriffic div.pagination span.ellipsis {
    display: block;
    float: left;
    margin-right: 2px;
    padding: 4px 7px 2px;
    border: 1px solid #ccc;
}

div.galleriffic div.pagination a:hover {
    background-color: #eee;
    text-decoration: none;
}

div.galleriffic div.pagination span.current {
    color: #fff;
    font-weight: bold;
    background-color: #000;
    border-color: #000;
}

div.galleriffic div.pagination span.ellipsis {
    padding: 5px 0 3px 2px;
    border: none;
}

/* Keep the gallery within the available column on small screens. */
#galerija .galleriffic { max-width: 100%; }
#galerija .galleriffic::after { content: ""; display: block; clear: both; }
#galerija .galleriffic .gal_main,
#galerija .galleriffic .loader,
#galerija .galleriffic .image-wrapper,
#galerija .galleriffic .advance-link { width: 100%; }
#galerija .galleriffic .navigation { max-width: 100%; }
#galerija .galleriffic .slideshow img { max-width: calc(100% - 2px); height: auto; }
