@import url('https://fonts.googleapis.com/css?family=Raleway:400,700&display=swap');

.gallery {
    height: auto;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;

    display: -webkit-box;

    display: -ms-flexbox;

    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: reverse;
        -ms-flex-direction: row-reverse;
            flex-direction: row-reverse;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;

    padding: 20px 0;
}

.gallery__filters {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;

    width: 250px;
}

.filter-list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;

    -ms-flex-wrap: wrap;

        flex-wrap: wrap;

    list-style: none;
    margin: 0;
    padding: 0;

    width: 100%;
}

.filter-list .filter {
    margin-right: 10px;
    margin-bottom: 10px;

    width: 100%;
}

.filter-list .filter:first-child {
    width: 100%;
}

.filter-list .filter-btn {
    border: none;
    background-color: white;
    padding: 8px 16px;
    color: #132D68;
    font-weight: bold;
    width: 100%;
    text-align: left;
}

.filter-list .filter-btn.is-active {
    background-color: #132D68;
    color: white;
}

.gallery__images {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;

    width: 100%;
}

.gallery__images-list {
    width: 100%;
    height: auto;

    list-style: none;

    margin: 0 auto;
    padding: 0;
}

.grid-sizer,
.gallery-img {
    width: calc(33% - 10px);
}

.gallery-vid-container {
    display: block;
}

.gallery-img--vid video {
    width: 100%;
    height: auto;
}

.gallery-vid-container {
    position: relative;
}

.gallery-vid-decor {
    z-index: 1;

    pointer-events: none;

    position: absolute;

    width: 80px;
    height: 80px;
    top: calc(50% - 40px);
    left: calc(50% - 40px);

    background-image: url('https://www.windrushfoundation.org.uk/videos/play.svg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 50%;
}

.grid-sizer {
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
}

.gallery-img {
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    overflow: hidden;
    margin-bottom: 10px;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .gallery {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        -webkit-box-pack: start;
            -ms-flex-pack: start;
                justify-content: flex-start;
    }

    .gallery-vid-decor {
        width: 50px;
        height: 50px;
        top: calc(50% - 25px);
        left: calc(50% - 25px);
    }

    .gallery__filters {
        padding: 20px 0;
        width: auto;
    }

    .filter-list {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
            -ms-flex-direction: row;
                flex-direction: row;
        -ms-flex-wrap: nowrap;
            flex-wrap: nowrap;
    }

    .filter-list .filter {
        width: auto;
    }
}

.gallery-img img {
    width: 100%;
    height: auto;
    cursor: pointer;
}

.img-modal {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(19, 45, 104, .7);

    cursor: pointer;

    z-index: 900;

    display: -webkit-box;

    display: -ms-flexbox;

    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}

.img-modal .modal-close {
    width: 20px;
    height: 20px;

    position: absolute;
    top: 80px;
    right: 80px;

    cursor: pointer;

    z-index: 100;
}

@media screen and (max-width: 768px) {
    .img-modal .modal-close {
        width: 20px;
        height: 20px;
    }
}

.img-modal-fig {
    width: 70vw;
    height: 80vh;
    overflow: hidden;

    position: relative;
}

@media screen and (max-width: 768px) {
    .img-modal-fig {
        width: 90vw;
        height: 90vh;
        overflow: hidden;

        position: relative;
    }
}

.img-modal img {
    position: absolute;

    top: 50%;
    left: 50%;

    max-height: 85%;
    width: auto;

    margin: 0 auto;

    -webkit-transform: translate(-50%, -50%);

        -ms-transform: translate(-50%, -50%);

            transform: translate(-50%, -50%);
}

.gallery-hero {
    width: 100%;
    height: calc(100vh - 132px);

    display: -webkit-box;

    display: -ms-flexbox;

    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;

    background-size: cover;
    background-position: 50% 50%;

    margin-bottom: 0;

    position: relative;
}

.gallery-hero .gallery-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;

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

    width: 100%;
    height: 100%;

    z-index: 0;
}

.gallery-hero .gallery-hero__title {
    color: white;
    font-family: "Raleway", Arial, Sans-serif;
    font-size: 80px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 2.2em;
    letter-spacing: 5px;
    width: 100%;

    z-index: 10;

    padding-top: 100px;

    text-align: center;
}

.gallery-hero .gallery-hero__cta {
    width: 100%;
    padding-bottom: 100px;
    margin-top: -200px;

    z-index: 10;

    display: -webkit-box;

    display: -ms-flexbox;

    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}

.gallery-hero .gallery-hero__cta a {
    margin-left: 10px;
    margin-right: 10px;

    font-family: "Raleway", Arial, Sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    background-color: rgba(0,0,0,0);
    border: 2px solid white;
    border-radius: 8px;
    padding: 15px 37px;
}

.gallery-hero .gallery-hero__cta a.alt {
    background-color: #082d68;
    border: 2px solid #082d68;
}

.gallery-hero .gallery-hero__cta a:hover {
    border: 2px solid white;
    background-color: rgba(255, 255, 255, .4);
    color: #082d68;
}

.gallery-hero .gallery-hero__cta a.alt:hover {
    background-color: rgba(0,0,0,0);
    border: 2px solid white;
    color: white;
}

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

    .gallery-hero {
        height: 400px;
    }

    .gallery-hero .gallery-hero__title {
        font-size: 37px;
        line-height: 1.7em;
    }

    .gallery-hero .gallery-hero__cta {
        margin-top: -100px;
        padding-bottom: 0;
    }

    .gallery-hero .gallery-hero__cta a {
        font-size: 14px;
        padding: 12px 16px;
    }

}
