/* ==========================================================================
   hgphoto Gallery Styles
   ========================================================================== */
/**
* hgphoto Gallery - Reset
*/
.hgphoto-gallery-wrap,
.hgphoto-gallery-wrap *,
.hgphoto-tags-filter-list,
.hgphoto-tags-filter-list * {
    background: none;
    border: 0 none;
    border-radius: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    float: none;
    font-size: 100%;
    height: auto;
    letter-spacing: normal;
    /*list-style:none;*/
    outline: none;
    position: static;
    text-decoration: none;
    text-indent: 0;
    text-shadow: none;
    text-transform: none;
    width: auto;
    visibility: visible;
    overflow: visible;
    margin: 0;
    padding: 0;
    line-height: 1;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    -ms-box-shadow: none;
    -o-box-shadow: none;
    box-shadow: none;
    -webkit-appearance: none;
    transition: none;
    -webkit-transition: none;
    -moz-transition: none;
    -o-transition: none;
    -ms-transition: none;
}

/**
* Tags Addon
*/
.hgphoto-tags-filter-list {
    clear: both;
    margin: 0 0 10px 0;
}

.hgphoto-tags-filter-list li.hgphoto-tags-filter,
.hgphoto-tags-filter-list li.hgphoto-tag-filter {
    float: left;
    margin: 0 20px 10px 0;
}

.hgphoto-tags-filter-list .hgphoto-tag-filter-link {
    font-size: 13px;
    font-weight: bold;
}

/**
* Breadcrumbs Addon
*/
.hgphoto-breadcrumbs {
    display: block;
    margin: 0 0 20px 0;
    padding: 10px;
    background: #eee;
    clear: both;
}

.hgphoto-breadcrumbs a {
    text-decoration: none;
}

/**
* WooCommerce Addon
*/
.hgphoto-hidden {
    display: none;
}

/**
* Main Wrapper
*/
.hgphoto-gallery-wrap {
    width: 100%;
    margin: 0 auto 20px auto;
    /**
    * Pagination Addon
    */
    /**
    * Description
    */
    /**
    * Inner Wrapper
    */
}

.hgphoto-gallery-wrap .hgphoto-pagination {
    margin: 0 0 20px 0;
}

.hgphoto-gallery-wrap .hgphoto-gallery-description {
    clear: both;
}

.hgphoto-gallery-wrap .hgphoto-gallery-public {
    width: 100%;
    margin: 0 auto 20px auto;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    /**
    * Clearing
    */
    /**
    * Inner
    */
    /**
    * Gallery Item
    */
    /**
    * Column Widths and Clearing
    */
    /**
    * Optional: Isotope
    * - if enabled, .hgphototope is added to .hgphoto-gallery-public
    * - no clearing on gallery items
    */
    /**
    * Optional: CSS Animations
    * - if enabled, .hgphoto-gallery-css-animations is added to .hgphoto-gallery-public
    */
}

.hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-clear {
    clear: both;
}

.hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-clear:after {
    clear: both;
    content: '.';
    display: block;
    height: 0;
    line-height: 0;
    overflow: auto;
    visibility: hidden;
    zoom: 1;
}

.hgphoto-gallery-wrap .hgphoto-gallery-public .hgphoto-gallery-item-inner {
    position: relative;
    /**
    * Dynamic Positioning
    */
}

.hgphoto-gallery-wrap .hgphoto-gallery-public .hgphoto-gallery-item-inner .hgphoto-gallery-position-overlay {
    box-sizing: border-box;
    position: absolute;
    overflow: visible;
    z-index: 999;
    /**
    * Top Left
    */
    /**
    * Top Right
    */
    /**
    * Bottom Left
    */
    /**
    * Bottom Right
    */
}

.hgphoto-gallery-wrap .hgphoto-gallery-public .hgphoto-gallery-item-inner .hgphoto-gallery-position-overlay.hgphoto-gallery-top-left {
    top: 0;
    left: 0;
    padding: 5px 0 0 5px;
}

.hgphoto-gallery-wrap .hgphoto-gallery-public .hgphoto-gallery-item-inner .hgphoto-gallery-position-overlay.hgphoto-gallery-top-right {
    top: 0;
    right: 0;
    padding: 5px 5px 0 0;
    text-align: right;
}

.hgphoto-gallery-wrap .hgphoto-gallery-public .hgphoto-gallery-item-inner .hgphoto-gallery-position-overlay.hgphoto-gallery-bottom-left {
    bottom: 0;
    left: 0;
    padding: 0 0 5px 5px;
}

.hgphoto-gallery-wrap .hgphoto-gallery-public .hgphoto-gallery-item-inner .hgphoto-gallery-position-overlay.hgphoto-gallery-bottom-right {
    bottom: 0;
    right: 0;
    padding: 0 5px 5px 0;
    text-align: right;
}

.hgphoto-gallery-wrap .hgphoto-gallery-public .hgphoto-gallery-item {
    float: left;
    /**
    * Link
    */
    /**
    * Image
    */
    /**
    * Videos
    */
}

.hgphoto-gallery-wrap .hgphoto-gallery-public .hgphoto-gallery-item > .hgphoto-gallery-link {
    display: block;
    outline: none;
    border: 0 none;
    position: relative;
}

.hgphoto-gallery-wrap .hgphoto-gallery-public .hgphoto-gallery-item img {
    float: none;
    display: block;
    margin: 0 auto;
    padding: 0;
    max-width: 100%;
}

.hgphoto-gallery-wrap .hgphoto-gallery-public .hgphoto-gallery-item iframe, .hgphoto-gallery-wrap .hgphoto-gallery-public .hgphoto-gallery-item video {
    display: block;
    margin: 0 auto;
    width: 100%;
}

.hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-1-columns .hgphoto-gallery-item {
    clear: both;
    width: 100%;
}

.hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-2-columns .hgphoto-gallery-item {
    width: 50%;
}

.hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-2-columns .hgphoto-gallery-item:nth-child(2n+1) {
    clear: both;
}

.hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-3-columns .hgphoto-gallery-item {
    width: 33.33%;
}

.hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-3-columns .hgphoto-gallery-item:nth-child(3n+1) {
    clear: both;
}

.hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-4-columns .hgphoto-gallery-item {
    width: 25%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-4-columns .hgphoto-gallery-item:nth-child(4n+1) {
    clear: both;
}

.hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-5-columns .hgphoto-gallery-item {
    width: 20%;
}

.hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-5-columns .hgphoto-gallery-item:nth-child(5n+1) {
    clear: both;
}

.hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-6-columns .hgphoto-gallery-item {
    width: 16.66%;
}

.hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-6-columns .hgphoto-gallery-item:nth-child(6n+1) {
    clear: both;
}

.hgphoto-gallery-wrap .hgphoto-gallery-public.hgphototope .hgphoto-gallery-item {
    clear: none !important;
}

.hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-css-animations {
    /**
    * Gallery Item
    */
}

.hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-css-animations .hgphoto-gallery-item {
    /**
    * Image
    */
    /**
    * Image Hover
    * - Always force opacity: 1, as the CSS Opacity setting for images may be less e.g. 0.5
    */
}

.hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-css-animations .hgphoto-gallery-item img {
    opacity: 0;
    transition: all .2s ease-in-out;
}

.hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-css-animations .hgphoto-gallery-item a:hover img {
    opacity: 1 !important;
}

/**
* Main Wrapper
*/
.hgphoto-gallery-public.hgphoto-justified-gallery {
    /**
    * Inner
    */
    /*    .hgphoto-gallery-description {
            &.hgphoto-gallery-description-above {
                display: table;
            }
        }*/
}

.hgphoto-gallery-public.hgphoto-justified-gallery .hgphoto-gallery-item-inner {
    position: absolute;
}

.hgphoto-gallery-public.hgphoto-gallery-1-columns .hgphoto-title,
.hgphoto-gallery-public.hgphoto-gallery-1-columns .hgphoto-caption,
.hgphoto-gallery-public.hgphoto-gallery-2-columns .hgphoto-title,
.hgphoto-gallery-public.hgphoto-gallery-2-columns .hgphoto-caption,
.hgphoto-gallery-public.hgphoto-gallery-3-columns .hgphoto-title,
.hgphoto-gallery-public.hgphoto-gallery-3-columns .hgphoto-caption,
.hgphoto-gallery-public.hgphoto-gallery-4-columns .hgphoto-title,
.hgphoto-gallery-public.hgphoto-gallery-4-columns .hgphoto-caption,
.hgphoto-gallery-public.hgphoto-gallery-5-columns .hgphoto-title,
.hgphoto-gallery-public.hgphoto-gallery-5-columns .hgphoto-caption,
.hgphoto-gallery-public.hgphoto-gallery-6-columns .hgphoto-title,
.hgphoto-gallery-public.hgphoto-gallery-6-columns .hgphoto-caption {
    text-align: center;
    width: 100%;
    font-size: 14px;
    line-height: 24px;
    display: inline-block;
}

.hgphoto-gallery-public.hgphoto-gallery-1-columns .hgphoto-title,
.hgphoto-gallery-public.hgphoto-gallery-2-columns .hgphoto-title,
.hgphoto-gallery-public.hgphoto-gallery-3-columns .hgphoto-title,
.hgphoto-gallery-public.hgphoto-gallery-4-columns .hgphoto-title,
.hgphoto-gallery-public.hgphoto-gallery-5-columns .hgphoto-title,
.hgphoto-gallery-public.hgphoto-gallery-6-columns .hgphoto-title {
    font-size: 18px;
    line-height: 26px;
    font-weight: 600;
}

.hgphoto-gallery-public.hgphoto-gallery-1-columns .hgphoto-caption,
.hgphoto-gallery-public.hgphoto-gallery-2-columns .hgphoto-caption,
.hgphoto-gallery-public.hgphoto-gallery-3-columns .hgphoto-caption,
.hgphoto-gallery-public.hgphoto-gallery-4-columns .hgphoto-caption,
.hgphoto-gallery-public.hgphoto-gallery-5-columns .hgphoto-caption,
.hgphoto-gallery-public.hgphoto-gallery-6-columns .hgphoto-caption {
    font-weight: 200;
}

/**
* RTL Support
*/
.hgphoto-gallery-wrap.hgphoto-gallery-rtl {
    /**
    * Inner Wrapper
    */
}

.hgphoto-gallery-wrap.hgphoto-gallery-rtl .hgphoto-gallery-public {
    /**
    * Gallery Item
    */
}

.hgphoto-gallery-wrap.hgphoto-gallery-rtl .hgphoto-gallery-public .hgphoto-gallery-item {
    float: right;
}

/**
* Mobile Landscape Size to Tablet Portrait (devices and browsers)
* - hgphoto Gallery Columns: If 4, 5 or 6, reduce to 3 columns. Isotope will detect change + resize automatically.
*/
@media only screen and (max-width: 767px) {
    /**
    * Main Wrapper
    */
    .hgphoto-gallery-wrap {
        /**
        * Inner Wrapper
        */
    }

    .hgphoto-gallery-wrap .hgphoto-gallery-public {
        /**
        * Column Widths and Clearing
        */
        /**
        * Optional: Isotope
        * - if enabled, .hgphototope is added to .hgphoto-gallery-public
        * - no clearing on gallery items
        */
    }

    .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-4-columns .hgphoto-gallery-item {
        width: 33%;
    }

    .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-4-columns .hgphoto-gallery-item:nth-child(4n+1) {
        clear: none;
    }

    .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-4-columns .hgphoto-gallery-item:nth-child(3n+1) {
        clear: both;
    }

    .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-5-columns .hgphoto-gallery-item {
        width: 33%;
    }

    .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-5-columns .hgphoto-gallery-item:nth-child(5n+1) {
        clear: none;
    }

    .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-5-columns .hgphoto-gallery-item:nth-child(3n+1) {
        clear: both;
    }

    .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-6-columns .hgphoto-gallery-item {
        width: 33%;
    }

    .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-6-columns .hgphoto-gallery-item:nth-child(6n+1) {
        clear: none;
    }

    .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-6-columns .hgphoto-gallery-item:nth-child(3n+1) {
        clear: both;
    }

    .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphototope .hgphoto-gallery-item {
        clear: none !important;
    }
}

/**
* Mobile Landscape (devices and browsers)
* - hgphoto Gallery Columns: Reduce to 2 column. Isotope will detect change + resize automatically.
*/
@media only screen and (max-width: 459px) {
    /**
    * Main Wrapper
    */
    .hgphoto-gallery-wrap {
        /**
        * Inner Wrapper
        */
    }

    .hgphoto-gallery-wrap .hgphoto-gallery-public {
        /**
        * Column Widths and Clearing
        */
        /**
        * Optional: Isotope
        * - if enabled, .hgphototope is added to .hgphoto-gallery-public
        * - no clearing on gallery items
        */
    }

    .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-2-columns .hgphoto-gallery-item, .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-3-columns .hgphoto-gallery-item, .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-4-columns .hgphoto-gallery-item, .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-5-columns .hgphoto-gallery-item, .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-6-columns .hgphoto-gallery-item {
        width: 50%;
    }

    .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-2-columns .hgphoto-gallery-item:nth-child(3n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-2-columns .hgphoto-gallery-item:nth-child(4n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-2-columns .hgphoto-gallery-item:nth-child(5n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-2-columns .hgphoto-gallery-item:nth-child(6n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-3-columns .hgphoto-gallery-item:nth-child(3n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-3-columns .hgphoto-gallery-item:nth-child(4n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-3-columns .hgphoto-gallery-item:nth-child(5n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-3-columns .hgphoto-gallery-item:nth-child(6n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-4-columns .hgphoto-gallery-item:nth-child(3n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-4-columns .hgphoto-gallery-item:nth-child(4n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-4-columns .hgphoto-gallery-item:nth-child(5n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-4-columns .hgphoto-gallery-item:nth-child(6n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-5-columns .hgphoto-gallery-item:nth-child(3n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-5-columns .hgphoto-gallery-item:nth-child(4n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-5-columns .hgphoto-gallery-item:nth-child(5n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-5-columns .hgphoto-gallery-item:nth-child(6n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-6-columns .hgphoto-gallery-item:nth-child(3n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-6-columns .hgphoto-gallery-item:nth-child(4n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-6-columns .hgphoto-gallery-item:nth-child(5n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-6-columns .hgphoto-gallery-item:nth-child(6n+1) {
        clear: none;
    }

    .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-2-columns .hgphoto-gallery-item:nth-child(2n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-3-columns .hgphoto-gallery-item:nth-child(2n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-4-columns .hgphoto-gallery-item:nth-child(2n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-5-columns .hgphoto-gallery-item:nth-child(2n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-6-columns .hgphoto-gallery-item:nth-child(2n+1) {
        clear: both;
    }

    .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphototope .hgphoto-gallery-item {
        clear: none !important;
    }
}

/**
* Mobile Portrait (devices and browsers)
* - hgphoto Gallery Columns: Reduce to 1 column. Isotope will detect change + resize automatically.
*/
@media only screen and (max-width: 320px) {
    /**
    * Main Wrapper
    */
    .hgphoto-gallery-wrap {
        /**
        * Inner Wrapper
        */
    }

    .hgphoto-gallery-wrap .hgphoto-gallery-public {
        /**
        * Column Widths and Clearing
        */
        /**
        * Optional: Isotope
        * - if enabled, .hgphototope is added to .hgphoto-gallery-public
        * - no clearing on gallery items
        */
    }

    .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-1-columns .hgphoto-gallery-item, .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-2-columns .hgphoto-gallery-item, .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-3-columns .hgphoto-gallery-item, .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-4-columns .hgphoto-gallery-item, .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-5-columns .hgphoto-gallery-item, .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-6-columns .hgphoto-gallery-item {
        width: 100%;
    }

    .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-1-columns .hgphoto-gallery-item:nth-child(2n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-1-columns .hgphoto-gallery-item:nth-child(3n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-1-columns .hgphoto-gallery-item:nth-child(4n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-1-columns .hgphoto-gallery-item:nth-child(5n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-1-columns .hgphoto-gallery-item:nth-child(6n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-2-columns .hgphoto-gallery-item:nth-child(2n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-2-columns .hgphoto-gallery-item:nth-child(3n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-2-columns .hgphoto-gallery-item:nth-child(4n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-2-columns .hgphoto-gallery-item:nth-child(5n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-2-columns .hgphoto-gallery-item:nth-child(6n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-3-columns .hgphoto-gallery-item:nth-child(2n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-3-columns .hgphoto-gallery-item:nth-child(3n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-3-columns .hgphoto-gallery-item:nth-child(4n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-3-columns .hgphoto-gallery-item:nth-child(5n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-3-columns .hgphoto-gallery-item:nth-child(6n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-4-columns .hgphoto-gallery-item:nth-child(2n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-4-columns .hgphoto-gallery-item:nth-child(3n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-4-columns .hgphoto-gallery-item:nth-child(4n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-4-columns .hgphoto-gallery-item:nth-child(5n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-4-columns .hgphoto-gallery-item:nth-child(6n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-5-columns .hgphoto-gallery-item:nth-child(2n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-5-columns .hgphoto-gallery-item:nth-child(3n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-5-columns .hgphoto-gallery-item:nth-child(4n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-5-columns .hgphoto-gallery-item:nth-child(5n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-5-columns .hgphoto-gallery-item:nth-child(6n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-6-columns .hgphoto-gallery-item:nth-child(2n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-6-columns .hgphoto-gallery-item:nth-child(3n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-6-columns .hgphoto-gallery-item:nth-child(4n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-6-columns .hgphoto-gallery-item:nth-child(5n+1), .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphoto-gallery-6-columns .hgphoto-gallery-item:nth-child(6n+1) {
        clear: both;
    }

    .hgphoto-gallery-wrap .hgphoto-gallery-public.hgphototope .hgphoto-gallery-item {
        clear: none !important;
    }
}

/* ==========================================================================
   hgphoto Lightbox Gallery Styles
   ========================================================================== */
/*! hgphotobox v2.1.5 fancyapps.com | fancyapps.com/hgphotobox/#license */
.hgphotobox-wrap,
.hgphotobox-skin,
.hgphotobox-outer,
.hgphotobox-inner,
.hgphotobox-image,
.hgphotobox-wrap iframe,
.hgphotobox-wrap object,
.hgphotobox-nav,
.hgphotobox-nav span,
.hgphotobox-tmp,
.hgphotobox-buttons,
.hgphotobox-thumbs,
.hgphotobox-wrap *,
.hgphotobox-thumbs *,
.hgphotobox-buttons * {
    background: none;
    border: 0 none;
    border-radius: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    float: none;
    font-size: 100%;
    height: auto;
    letter-spacing: normal;
    list-style: none;
    outline: none;
    position: static;
    text-decoration: none;
    text-indent: 0;
    text-shadow: none;
    text-transform: none;
    width: auto;
    visibility: visible;
    overflow: visible;
    margin: 0;
    padding: 0;
    line-height: 1;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    -ms-box-shadow: none;
    -o-box-shadow: none;
    box-shadow: none;
    -webkit-appearance: none;
    transition: none;
    -webkit-transition: none;
    -moz-transition: none;
    -o-transition: none;
    -ms-transition: none;
}

.hgphotobox-wrap {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 988020;
}

.hgphotobox-skin {
    position: relative;
    background: #f9f9f9;
    color: #444;
    text-shadow: none;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}

.hgphotobox-opened {
    z-index: 988030;
}

.hgphotobox-opened .hgphotobox-skin {
    -webkit-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    -moz-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.hgphotobox-outer, .hgphotobox-inner {
    position: relative;
}

.hgphotobox-inner {
    overflow: hidden;
    /**
     * Actions
     */
    /**
    * Dynamic Positioning
    */
}

.hgphotobox-inner .hgphotobox-actions {
    position: absolute;
    z-index: 988050;
}

.hgphotobox-inner .hgphotobox-position-overlay {
    box-sizing: border-box;
    position: absolute;
    overflow: visible;
    z-index: 988041;
    /* Beat the prev/next controls */
    padding: 0;
    /**
    * Top Left
    */
    /**
    * Top Right
    */
    /**
    * Bottom Left
    */
    /**
    * Bottom Right
    */
}

.hgphotobox-inner .hgphotobox-position-overlay.hgphoto-gallery-top-left {
    top: 0;
    left: 0;
    text-align: left;
}

.hgphotobox-inner .hgphotobox-position-overlay.hgphoto-gallery-top-right {
    top: 0;
    right: 0;
    text-align: right;
}

.hgphotobox-inner .hgphotobox-position-overlay.hgphoto-gallery-bottom-left {
    bottom: 0;
    left: 0;
    text-align: left;
}

.hgphotobox-inner .hgphotobox-position-overlay.hgphoto-gallery-bottom-right {
    bottom: 0;
    right: 0;
    text-align: right;
}

.hgphotobox-type-iframe .hgphotobox-inner {
    -webkit-overflow-scrolling: touch;
    height: 100%;
}

.hgphotobox-type-iframe .hgphotobox-inner .hgphotobox-iframe {
    width: 100%;
    height: 100%;
}

.hgphotobox-error {
    color: #444;
    font: 13px/20px "Helvetica Neue", Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 15px;
    white-space: nowrap;
}

.hgphotobox-image, .hgphotobox-iframe {
    display: block;
    width: 100%;
    height: 100%;
}

.hgphotobox-image {
    max-width: 100%;
    max-height: 100%;
}

#hgphotobox-loading, .hgphotobox-close, .hgphotobox-prev span, .hgphotobox-next span {
    background-image: url("../images/albums/arrows/controls.png");
}

#hgphotobox-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -22px;
    margin-left: -22px;
    background-position: 0 -108px;
    opacity: 0.8;
    cursor: pointer;
    z-index: 988060;
}

#hgphotobox-loading div {
    width: 44px;
    height: 44px;
    background: url("../images/albums/popup_loader.gif") center center no-repeat;
}

.hgphotobox-close {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    z-index: 988040;
}

.hgphotobox-nav {
    position: absolute;
    top: 0;
    width: 15%;
    height: 100%;
    cursor: pointer;
    text-decoration: none;
    background: transparent url("images/blank.gif");
    /* helps IE */
    -webkit-tap-highlight-color: transparent;
    z-index: 988040;
}

.hgphotobox-nav:focus {
    outline: none;
}

.hgphotobox-prev {
    left: 0;
}

.hgphotobox-next {
    right: 0;
}

.hgphotobox-prev.hgphotobox-arrows-outside {
    left: -100px;
}

.hgphotobox-next.hgphotobox-arrows-outside {
    right: -100px;
}

.hgphotobox-nav span {
    position: absolute;
    top: 50%;
    width: 36px;
    height: 34px;
    margin-top: -18px;
    cursor: pointer;
    z-index: 988040;
    visibility: hidden;
}

body.hgphoto-touch .hgphotobox-nav span {
    visibility: visible;
}

.hgphotobox-prev span {
    left: 10px;
    background-position: 0 -36px;
}

.hgphotobox-next span {
    right: 10px;
    background-position: 0 -72px;
}

.hgphotobox-nav:hover span {
    visibility: visible;
}

.hgphotobox-tmp {
    position: absolute;
    top: -99999px;
    left: -99999px;
    max-width: 99999px;
    max-height: 99999px;
    overflow: visible !important;
}

a.hgphotobox-close,
a.hgphotobox-nav,
a.fancy-close:hover,
a.hgphotobox-nav:hover {
    border: 0;
}

/* Overlay helper */
.hgphotobox-lock {
    overflow: visible !important;
    width: auto;
}

.hgphotobox-lock body {
    overflow: hidden !important;
}

.hgphotobox-lock-test {
    overflow-y: hidden !important;
}

.hgphotobox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    display: none;
    z-index: 988010;
    /*background: url("images/hgphotobox_overlay.png");*/
    background-color: rgba(0, 0, 0, 0.7);
}

.hgphotobox-overlay-fixed {
    position: fixed;
    bottom: 0;
    right: 0;
}

/* Title helper */
.hgphotobox-title {
    visibility: hidden;
    font-size: 13px;
    line-height: 20px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    position: relative;
    text-shadow: none;
    z-index: 988090;
}

.hgphotobox-opened .hgphotobox-title {
    visibility: visible;
}

.hgphotobox-title-float-wrap {
    position: absolute;
    bottom: auto;
    right: 50%;
    margin-top: 20px;
    z-index: 988050;
    text-align: center;
}

.hgphotobox-title-float-wrap .child {
    display: inline-block;
    margin-right: -100%;
    padding: 2px 20px;
    background: transparent;
    /* Fallback for web browsers that doesn't support RGBa */
    background: rgba(0, 0, 0, 0.8);
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    border-radius: 15px;
    text-shadow: 0 1px 2px #222;
    color: #FFF;
    line-height: 24px;
    white-space: normal;
}

.hgphotobox-title-float-wrap.hgphotobox-title-text-wrap .child {
    white-space: normal;
}

.hgphotobox-title-outside-wrap {
    position: relative;
    margin-top: 10px;
    color: #fff;
}

.hgphotobox-title-inside-wrap {
    padding-top: 10px;
}

.hgphotobox-title-over-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    color: #fff;
    padding: 10px;
    background: #000;
    background: rgba(0, 0, 0, 0.8);
}

#hgphotobox-buttons {
    position: fixed;
    left: 0;
    width: 100%;
    z-index: 988050;
}

#hgphotobox-buttons.top {
    top: 10px;
}

#hgphotobox-buttons.bottom {
    bottom: 10px;
}

/* Allows for thumbnails to be displayed */
#hgphotobox-buttons.bottom.has-padding {
    bottom: 80px;
}

#hgphotobox-buttons.top.has-padding {
    top: 80px;
}

#hgphotobox-buttons ul {
    display: block;
    width: auto;
    height: 30px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    border: 1px solid #111;
    border-radius: 3px;
    -webkit-box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    -moz-box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    background: #323232;
    background: -moz-linear-gradient(top, #444444 0%, #343434 50%, #292929 50%, #333333 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #444444), color-stop(50%, #343434), color-stop(50%, #292929), color-stop(100%, #333333));
    background: -webkit-linear-gradient(top, #444444 0%, #343434 50%, #292929 50%, #333333 100%);
    background: -o-linear-gradient(top, #444444 0%, #343434 50%, #292929 50%, #333333 100%);
    background: -ms-linear-gradient(top, #444444 0%, #343434 50%, #292929 50%, #333333 100%);
    background: linear-gradient(top, #444444 0%, #343434 50%, #292929 50%, #333333 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#444444', endColorstr='#222222', GradientType=0);
}

#hgphotobox-buttons ul li {
    float: left;
    margin: 0;
    padding: 0;
}

#hgphotobox-buttons ul li#hgphotobox-buttons-title span {
    display: block;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 13px;
    line-height: 30px;
    padding: 0 10px;
    color: #fff;
}

#hgphotobox-buttons a {
    display: block;
    width: 30px;
    height: 30px;
    text-indent: -9999px;
    background-color: transparent;
    background-image: url("../images/albums/arrows/arrows.png");
    background-repeat: no-repeat;
    outline: none;
    opacity: 0.8;
}

#hgphotobox-buttons a:hover {
    opacity: 1;
}

#hgphotobox-buttons a.btnPrev {
    background-position: 5px 0;
}

#hgphotobox-buttons a.btnNext {
    background-position: -33px 0;
    border-right: 1px solid #3e3e3e;
}

#hgphotobox-buttons a.btnPlay {
    background-position: 0 -30px;
}

#hgphotobox-buttons a.btnPlayOn {
    background-position: -30px -30px;
}

#hgphotobox-buttons a.btnToggle,
#hgphotobox-buttons a.btnFullscreen {
    background-position: 3px -60px;
    border-left: 1px solid #111;
    border-right: 1px solid #3e3e3e;
    width: 35px;
}

#hgphotobox-buttons a.btnToggleOn,
#hgphotobox-buttons a.btnFullscreenOn {
    background-position: -27px -60px;
}

#hgphotobox-buttons a.btnClose {
    border-left: 1px solid #111;
    width: 35px;
    background-position: -56px 0px;
}

#hgphotobox-buttons a.btnDisabled {
    opacity: 0.4;
    cursor: default;
}

/**
 * Lightbox: Thumbnails Helper
 */
#hgphotobox-thumbs {
    position: fixed;
    left: 0;
    width: 100%;
    overflow: hidden;
    z-index: 988050;
    box-sizing: border-box;
}

#hgphotobox-thumbs.top {
    top: 2px;
}

#hgphotobox-thumbs.top.has-other-content {
    top: 50px;
}

#hgphotobox-thumbs.bottom {
    bottom: 2px;
}

#hgphotobox-thumbs.bottom.has-other-content {
    bottom: 50px;
}

#hgphotobox-thumbs.inline {
    position: absolute;
}

#hgphotobox-thumbs * {
    box-sizing: border-box;
}

#hgphotobox-thumbs ul {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
}

#hgphotobox-thumbs ul li {
    border: 3px solid #fff;
    float: left;
    margin: 5px;
    opacity: 1;
}

#hgphotobox-thumbs ul li.active {
    opacity: 0.75;
    border: 3px solid #888;
}

#hgphotobox-thumbs ul li:hover {
    opacity: 0.75;
}

#hgphotobox-thumbs ul li a {
    display: block;
    position: relative;
    overflow: hidden;
    border: 1px solid #222;
    background: #111;
    outline: none;
}

#hgphotobox-thumbs ul li img {
    display: block;
    position: relative;
    border: 0;
    padding: 0;
    max-width: 100%;
    width: 100%;
    height: 100%;
    left: 0 !important;
    top: 0 !important;
}

/* Retina stuff */
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
    #hgphotobox-loading, .hgphotobox-close, .hgphotobox-prev span, .hgphotobox-next span {
        background-image: url("images/hgphotobox_sprite%402x.png");
        background-size: 44px 152px;
    }

    #hgphotobox-loading div {
        background-image: url("../images/albums/popup_loader.gif");
        background-size: 24px 24px;
    }
}

@media only screen and (max-width: 600px) {
    .hgphotobox-prev.hgphotobox-arrows-outside {
        left: -75px;
        width: 12%;
    }

    .hgphotobox-next.hgphotobox-arrows-outside {
        right: -75px;
        width: 12%;
    }
}