/* 3-2-1:      */
/* Fancy Flick */
.ff-stack { width: 150px; height: 200px; margin: 11px 15px; margin-left: 0; border: 0px solid black; display: inline-block; }
.ff-stack:nth-of-type(4n+1) { margin-right: 0; }
.ff-stack + br { display: none; }

.ff-stack a {}
.ff-stack a:hover { opacity: 0.9; }

.ff-stack img { position: absolute; box-shadow: 1px 1px 3px #aaa; border: 5px solid #fff; width: 120px; height: 120px; }

.ff-stack p { margin-top: 150px; }

/* Fancy Flick Gallery */
.ff-gallery-stack .ff-item { display: inline-block; width: 110px; height: 110px; text-align: center; margin: 8px 24px 12px 0; }
.ff-gallery-stack .ff-item:nth-of-type(7n+1) { margin-right: 0; }
.ff-gallery-stack .ff-fancybox { display: none; position: fixed; width: 100%; height: 100%; top: 0; left: 0; right: 0; z-index: 1; background-color: rgba(0,0,0,0.5); }
.ff-gallery-stack .ff-fancybox .holder { display: inline-block; background-color: rgba(255,255,255,1); border-radius: 5px; padding: 5px; position: relative; top: 50%; left: 50%; transform: translate(-50%, -50%); max-width: 90%; max-height: 90%; }
.ff-fancybox .holder img { display: block; max-width: 100%; max-height: 100%; width: auto !important; }
.ff-fancybox .holder .description { display: inline-block; padding: 5px; font-weight: bold; }
.ff-fancybox .holder .download { float: right; display: inline-block; border-radius: 4px; background: url("download.png") 0 50% no-repeat rgba(0,85,150,1); padding: 5px 5px 5px 20px; color: white; margin: 5px 0 0; }
.ff-fancybox .holder a.close { display: block; width: 21px; height: 21px; position: absolute; top: -7px; right: -7px; background: url("close.png") no-repeat; }
.ff-fancybox .holder .mini-nav { float: left; }
.ff-fancybox .holder .mini-nav a { width: 21px; height: 21px; display: inline-block; vertical-align: middle; line-height: 100%; }
.ff-fancybox .holder .mini-nav a.left { background: url("left.png") no-repeat; }
.ff-fancybox .holder .mini-nav a.right { background: url("right.png") no-repeat; }
.ff-fancybox .holder .mini-nav p { display: inline-block; padding: 0 !important; margin: 0 !important; vertical-align: middle; }
.ff-fancybox .holder .sm { float: right; }
.ff-fancybox .holder .sm p { font-size: 80%; padding: 0 !important; color: rgba(0, 85, 150, 1); display: inline-block; }
.ff-fancybox .holder .sm ul { list-style: none; padding: 0 !important; margin: 0 !important; display: inline-block; line-height: 100%; vertical-align: middle; }
.ff-fancybox .holder .sm li { display: inline-block; padding: 0 !important; margin: 0 0 0 5px !important; }
.ff-fancybox .holder .sm a { background: url("http://www.ewea.org/fileadmin/templates/fluid/images/common/social_icons.png") no-repeat rgba(0, 0, 0, 0); height: 22px; width: 22px; display: block; }
.ff-fancybox .holder .sm li.facebook a { background-position: -22px 0; }
.ff-fancybox .holder .sm li.facebook a:hover { background-position: -22px -22px; }
.ff-fancybox .holder .sm li.twitter a { background-position: -44px 0; }
.ff-fancybox .holder .sm li.twitter a:hover { background-position: -44px -22px; }
.ff-fancybox .holder .sm li.linkedin a { background-position: -66px 0; }
.ff-fancybox .holder .sm li.linkedin a:hover { background-position: -66px -22px; }
.ff-fancybox .holder .sm li.gplus a { background-position: -88px 0; }
.ff-fancybox .holder .sm li.gplus a:hover { background-position: -88px -22px; }

.ff-item img { height: 100px; box-shadow: 2px 2px 4px #bbb; border: 5px solid #fff; vertical-align: middle; }

.ff-item img:hover { opacity: 0.9; }

/* Fancy Tube */
.ft-stack { width: 184px; margin: 10px 45px 20px 0; display: inline-block; }
.ft-stack:nth-of-type(3n) { margin-right: 0; }
.ft-stack + br { display: none; }

.ft-stack a {}
.ft-stack a:hover { opacity: 0.9; }

.ft-stack img { width: 184px; height: auto; padding: 18px 0; background-color: #000; box-shadow: 2px 2px 4px #bbb; }

.ft-video-description { padding: 10px !important; }

/* Fancy Flick + Fancy Tube */
.ff-stack p,
.ft-stack p { font-size: 13px; padding-bottom: 0 !important; line-height: 15px; }

.ff-stack p a,
.ft-stack p a {
    display: block;
    height: 30px;
    position: relative;
    text-overflow: ellipsis;
    overflow: hidden;
    font-size: 12px;
    font-weight: bold;
}

.ff-stack p a:after,
.ft-stack p a:after {
    content: "";
    text-align: right;
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 1.2em;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,1) 60%);
}

/* Fancy Box */
.fb .fb-overlay { position: fixed; width: 100%; height: 100%; background-color: rgba(0,0,0,0.3); }

/* Quick Fix */
@media only screen and (max-width: 1200px), only screen and (max-device-width: 1200px) {
    #content .ff-item img {
        width: 100%;
        height: auto;
	max-width: 100%;
    }
    .ff-gallery-stack .ff-item:nth-of-type(7n+1) { margin-right: 24px; }
    .featherlight-content .title {
        font-size: 8px;
    }
}

/* Homepage preview */
#homepage_content .ff-item img { height: auto; }

#homepage_content .ff-item { margin: 5px 10px 5px 0; width: auto; height: auto; }
