/* ==========================================================================
   GALLERY
   ========================================================================== */


/* ==========================================================================
   HOME GALLERY SECTION
   ========================================================================== */




/* ==========================================================================
   SECTION HEADING
   ========================================================================== */

.gallery-section__heading {
    max-width: 680px;

    margin: 0 auto 36px;

    text-align: center;
}








.gallery-section__intro {
    max-width: 610px;

    margin: 0 auto;

    color: #666666;

    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    line-height: 1.7;
}


/* ==========================================================================
   GALLERY GRID
   ========================================================================== */

.gallery-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 20px;
}


/* ==========================================================================
   CARD
   ========================================================================== */

.gallery-card {
    min-width: 0;

    margin: 0;

    background: #FFFFFF;

    border: 1px solid #E7E7E7;
    border-radius: 8px;

    overflow: hidden;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}





/* ==========================================================================
   IMAGE
   ========================================================================== */

.gallery-card__media {
    position: relative;

    display: block;

    width: 100%;

    aspect-ratio: 4 / 3;

    background: #E7E7E7;

    overflow: hidden;
}





.gallery-card:hover
.gallery-card__media img {
    transform: scale(1.035);
}


/* ==========================================================================
   OVERLAY
   ========================================================================== */

.gallery-card__overlay {
    position: absolute;

    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        rgba(0, 0, 0, .32);

    opacity: 0;

    transition:
        opacity .2s ease;

    pointer-events: none;
}


.gallery-card:hover
.gallery-card__overlay,
.gallery-card__media:focus
.gallery-card__overlay {
    opacity: 1;
}


/* ==========================================================================
   ZOOM ICON
   ========================================================================== */

.gallery-card__zoom {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    background: #FFFFFF;

    border-radius: 50%;

    color: #002EBE;

    font-size: 17px;

    transform:
        scale(.88);

    transition:
        transform .2s ease;
}


.gallery-card:hover
.gallery-card__zoom {
    transform:
        scale(1);
}


/* ==========================================================================
   CARD BODY
   ========================================================================== */

.gallery-card__body {
    padding: 14px 15px 15px;
}


.gallery-card__title {
    margin: 0 0 4px;

    color: #262626;

    font-family: "Raleway", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;

    text-transform: none;
}


.gallery-card__category {
    margin: 0;

    color: #888888;

    font-family: "Open Sans", sans-serif;
    font-size: 11px;
    line-height: 1.5;
}


/* ==========================================================================
   HOME GALLERY FOOTER
   ========================================================================== */

.gallery-section__footer {
    margin-top: 32px;

    text-align: center;
}


.gallery-section__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;

    padding: 10px 18px;

    background: #FFFFFF;

    border: 1px solid #002EBE;
    border-radius: 6px;

    color: #002EBE;

    font-family: "Raleway", sans-serif;
    font-size: 12px;
    font-weight: 700;

    text-decoration: none;

    transition:
        color .2s ease,
        background-color .2s ease,
        border-color .2s ease;
}


.gallery-section__button .fa {
    margin-left: 8px;
}





/* ==========================================================================
   GALLERY PAGE INTRO
   ========================================================================== */




/* ==========================================================================
   BREADCRUMB
   ========================================================================== */




.gallery-breadcrumb a {
    color: #666666;

    text-decoration: none;
}


.gallery-breadcrumb a:hover,
.gallery-breadcrumb a:focus {
    color: #002EBE;

    text-decoration: none;
}


.gallery-breadcrumb .fa {
    margin-right: 4px;
}


/* ==========================================================================
   PAGE INTRO CONTENT
   ========================================================================== */

.gallery-page-intro__content {
    max-width: 720px;
}








/* ==========================================================================
   GALLERY PAGE
   ========================================================================== */

.gallery-page {
    width: 100%;

    padding: 55px 0 72px;

    background: #FFFFFF;
}


/* ==========================================================================
   FILTER
   ========================================================================== */

.gallery-filter-wrap {
    width: 100%;

    margin-bottom: 25px;
}


.gallery-filter {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 9px;
}


.gallery-filter__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding: 8px 15px;

    background: #FFFFFF;

    border: 1px solid #DDDDDD;
    border-radius: 50px;

    color: #444444;

    font-family: "Raleway", sans-serif;
    font-size: 11px;
    font-weight: 700;

    white-space: nowrap;

    text-decoration: none;

    transition:
        color .2s ease,
        background-color .2s ease,
        border-color .2s ease;
}


.gallery-filter__chip:hover,
.gallery-filter__chip:focus {
    border-color: #002EBE;

    color: #002EBE;

    text-decoration: none;
}


.gallery-filter__chip.is-active {
    background: #002EBE;

    border-color: #002EBE;

    color: #FFFFFF;
}


/* ==========================================================================
   RESULT META
   ========================================================================== */

.gallery-page__meta {
    margin-bottom: 22px;
}


.gallery-page__meta p {
    margin: 0;

    color: #666666;

    font-family: "Open Sans", sans-serif;
    font-size: 12px;
    line-height: 1.6;
}


.gallery-page__meta strong {
    color: #262626;
}


/* ==========================================================================
   EMPTY STATE
   ========================================================================== */

.gallery-empty {
    max-width: 520px;

    margin: 30px auto;

    padding: 45px 30px;

    text-align: center;

    background: #F0F0F0;

    border: 1px solid #E7E7E7;
    border-radius: 8px;
}


.gallery-empty__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;

    margin: 0 auto 18px;

    background: #FFFFFF;

    border-radius: 50%;

    color: #002EBE;

    font-size: 22px;
}








/* ==========================================================================
   PAGINATION
   ========================================================================== */

.gallery-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 7px;

    margin-top: 38px;
}


.gallery-pagination__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 44px;
    height: 44px;

    padding: 0 12px;

    background: #FFFFFF;

    border: 1px solid #DDDDDD;
    border-radius: 6px;

    color: #444444;

    font-family: "Open Sans", sans-serif;
    font-size: 12px;
    font-weight: 600;

    text-decoration: none;
}


.gallery-pagination__item:hover,
.gallery-pagination__item:focus {
    border-color: #002EBE;

    color: #002EBE;

    text-decoration: none;
}


.gallery-pagination__item.is-active {
    background: #002EBE;

    border-color: #002EBE;

    color: #FFFFFF;
}


.gallery-pagination__item--nav {
    gap: 7px;

    padding-left: 15px;
    padding-right: 15px;
}


.gallery-pagination__ellipsis {
    min-width: 30px;

    text-align: center;

    color: #888888;
}


/* ==========================================================================
   MAGNIFIC POPUP
   ========================================================================== */

.mfp-fade.mfp-bg {
    opacity: 0;

    transition:
        opacity .2s ease;
}


.mfp-fade.mfp-bg.mfp-ready {
    opacity: .88;
}


.mfp-fade.mfp-bg.mfp-removing {
    opacity: 0;
}


.mfp-fade.mfp-wrap
.mfp-content {
    opacity: 0;

    transform:
        scale(.97);

    transition:
        opacity .2s ease,
        transform .2s ease;
}


.mfp-fade.mfp-wrap.mfp-ready
.mfp-content {
    opacity: 1;

    transform:
        scale(1);
}


.mfp-fade.mfp-wrap.mfp-removing
.mfp-content {
    opacity: 0;
}


/* Caption */

.mfp-bottom-bar {
    margin-top: 8px;
}


.mfp-title {
    padding-right: 55px;

    color: #FFFFFF;

    font-family: "Open Sans", sans-serif;
    font-size: 12px;
    line-height: 1.5;
}


/* Close */

.mfp-close {
    width: 48px !important;
    height: 48px !important;

    font-size: 32px !important;

    opacity: 1 !important;
}


/* ==========================================================================
   TABLET
   ========================================================================== */

@media only screen
and (min-width: 768px)
and (max-width: 991px) {

    .gallery-section {
        padding: 60px 0;
    }


    .gallery-section__heading {
        margin-bottom: 32px;
    }


    .gallery-section__heading h2 {
        font-size: 28px;
    }


    .gallery-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 18px;
    }


    .gallery-page-intro__content h1 {
        font-size: 32px;
    }


    .gallery-page {
        padding-top: 48px;
        padding-bottom: 60px;
    }

}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media screen and (max-width: 767px) {

    .gallery-section {
        padding: 48px 0;
    }


    .gallery-section__heading {
        margin-bottom: 27px;

        text-align: left;
    }


    .gallery-section__eyebrow {
        font-size: 11px;
    }


    .gallery-section__heading h2 {
        font-size: 25px;
    }


    .gallery-section__intro {
        font-size: 13px;
    }


    .gallery-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 12px;
    }


    .gallery-card__body {
        padding: 11px 12px 12px;
    }


    .gallery-card__title {
        font-size: 12px;
    }


    .gallery-card__category {
        font-size: 10px;
    }


    .gallery-section__footer {
        margin-top: 26px;
    }


    .gallery-section__button {
        width: 100%;
    }


    /* Page */

    .gallery-page-intro {
        padding: 30px 0;
    }


    .gallery-breadcrumb {
        margin-bottom: 18px;
    }


    .gallery-page-intro__content h1 {
        font-size: 28px;
    }


    .gallery-page-intro__content > p:last-child {
        font-size: 13px;
    }


    .gallery-page {
        padding: 38px 0 48px;
    }


    /* Horizontal category chips */

    .gallery-filter-wrap {
        margin-left: -15px;
        margin-right: -15px;

        width: auto;

        overflow: hidden;
    }


    .gallery-filter {
        flex-wrap: nowrap;

        padding: 0 15px 8px;

        overflow-x: auto;
        overflow-y: hidden;

        -webkit-overflow-scrolling: touch;

        scrollbar-width: thin;
    }


    .gallery-filter__chip {
        flex: 0 0 auto;

        min-height: 40px;

        padding-left: 14px;
        padding-right: 14px;
    }


    /* Pagination */

    .gallery-pagination {
        margin-top: 30px;
    }


    .gallery-pagination__item {
        min-width: 42px;
        height: 42px;

        padding-left: 10px;
        padding-right: 10px;
    }


    .gallery-pagination__item--nav span {
        display: none;
    }


    .gallery-pagination__item--nav {
        width: 42px;

        padding: 0;
    }


    /* Lightbox */

    .mfp-arrow {
        transform:
            scale(.8);
    }

}


/* ==========================================================================
   VERY SMALL MOBILE
   ========================================================================== */

@media screen and (max-width: 479px) {

    .gallery-grid {
        grid-template-columns:
            1fr;

        gap: 16px;
    }


    .gallery-card__body {
        padding: 14px;
    }


    .gallery-card__title {
        font-size: 14px;
    }


    .gallery-card__category {
        font-size: 11px;
    }


    .gallery-page-intro__content h1 {
        font-size: 26px;
    }

}