
// --------------------------------------------------------------------------------------------
// Justified Gallery / #basel-justified-gallery
// --------------------------------------------------------------------------------------------

//  Justified Gallery - v3.5.4
//  http://miromannino.github.io/Justified-Gallery/
//  Copyright (c) 2015 Miro Mannino
//  Licensed under the MIT license.
 
.basel-justified-gallery {

	&:not(.justified-gallery) {
		display: none;	
	}
}

@-webkit-keyframes justified-gallery-show-caption-animation {
    from {
        opacity: 0
    }
    to {
        opacity: .7
    }
}

@keyframes justified-gallery-show-caption-animation {
    from {
        opacity: 0
    }
    to {
        opacity: .7
    }
}

.justified-gallery {
    width: 100%;
    position: relative;
    overflow: hidden;

    .caption {
        display: none !important;
    }
}

.justified-gallery>a,
.justified-gallery>div {
    position: absolute;
    display: inline-block;
    overflow: hidden;
    opacity: 0;
    filter: alpha(opacity=0)
}

.justified-gallery>a>img,
.justified-gallery>div>img,
.justified-gallery>a>a>img,
.justified-gallery>div>a>img {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 0;
    padding: 0;
    border: 0
}

.justified-gallery>a>.caption,
.justified-gallery>div>.caption {
    display: none;
    position: absolute;
    bottom: 0;
    padding: 5px;
    background-color: #000;
    left: 0;
    right: 0;
    margin: 0;
    color: #fff;
    font-size: 12px;
    font-weight: 300;
    font-family: sans-serif
}

.justified-gallery>a>.caption.caption-visible,
.justified-gallery>div>.caption.caption-visible {
    display: initial;
    opacity: .7;
    filter: "alpha(opacity=70)";
    -webkit-animation: justified-gallery-show-caption-animation 500ms 0 ease;
    animation: justified-gallery-show-caption-animation 500ms 0 ease;
}

.justified-gallery>.entry-visible {
    opacity: 1;
    filter: alpha(opacity=100);
    -webkit-animation: fade-in .6s ease;
    animation: fade-in .6s ease;
}

.justified-gallery>.spinner {
    position: absolute;
    bottom: 0;
    margin-left: -24px;
    padding: 10px 0;
    left: 50%;
    opacity: initial;
    filter: initial;
    overflow: initial
}

.justified-gallery>.spinner>span {
    display: inline-block;
    opacity: 0;
    filter: alpha(opacity=0);
    width: 8px;
    height: 8px;
    margin: 0 4px;
    background-color: #000;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    border-bottom-left-radius: 6px
}