.ig-feed {
    background-color: var(--arthurMurrayBlue);
    padding: 5vw 0;
    /*display: grid;*/
	display: none;
    grid-template-columns: calc(100% - 2.3rem);
    justify-items: center;
    justify-content: center;
    color: var(--white);
    -moz-column-gap: 1em;
    grid-column-gap: 1em;
    column-gap: 1em;
}

.ig-feed h2 {
    text-align: center;
}

.bh-profile,
.sb-profile {
    grid-row: 2/3;
    grid-column: 1/2;
}

.bh-profile {
    grid-row: 4/5;
}

.instafeed1,
.instafeed2 {
    grid-row: 3/4;
    grid-column: 1/2;
}

.instafeed2 {
    grid-row: 5/6;
}

.instafeed {
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: auto;
    grid-gap: 1.3rem;
    gap: 1.3rem;
    justify-content: center;
    padding: 0;
    border-radius: 12px;
    margin-bottom: 2em;
}

.ig-profile img {
    width: 50px;
    border-radius: 50%;
    grid-column: 1/2;
    grid-row: 1/3;
    transition: all .3s ease-out;
}

.instafeed figcaption,
.instafeed figure img {
    grid-column: 1/2;
    grid-row: 1/2;
    transition: all .4s ease-out;
}

.instafeed figure img {
    -o-object-fit: cover;
    object-fit: cover;
    aspect-ratio: 1/1;
    margin: 0;
    position: relative;
    border-radius: 10px;
}

.instafeed figcaption {
    opacity: 0;
    color: var(--white);
    height: 100px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    z-index: 2;
    align-self: center;
    text-align: center;
    margin: .75em;
}

.ig-profile a,
.instafeed a {
    display: grid;
    text-decoration: none;
}

.instafeed a {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    max-width: 320px;
    margin: 0 auto;
}

[dir=ltr] .video::after {
    text-align: right;
}

[dir=rtl] .video::after {
    text-align: left;
}

.album::after,
.video::after {
    grid-row: 1/2;
    grid-column: 1/2;
    z-index: 3;
    display: block;
    margin: .5em;
}

.video::after {
    font-family: "Font Awesome 5 Free", sans-serif;
    font-weight: 900;
    content: "\f04b";
    color: var(--white);
    font-size: 1em;
}

.album::after {
    content: url(../images/album.svg);
    width: 1em;
    justify-self: right;
}

.ig-profile {
    margin-bottom: 3em;
}

.ig-profile a {
    grid-template-columns: 50px auto;
    grid-template-rows: repeat(2, 25px);
    -moz-column-gap: 1em;
    grid-column-gap: 1em;
    column-gap: 1em;
    color: var(--offwhite);
    max-width: 485px;
}

.instafeed figure:nth-of-type(7),
.instafeed figure:nth-of-type(8),
.instafeed figure:nth-of-type(9) {
    display: none;
}

.ig-profile h3 {
    grid-column: 2/3;
    grid-row: 1/2;
    font-size: 100%;
    align-self: end;
    margin: 0;
}

.ig-profile p {
    grid-column: 2/3;
    grid-row: 2/3;
    font-size: 70%;
    align-self: top;
}

.ig-profile i {
    grid-column: 1/2;
    grid-row: 1/3;
    justify-self: center;
    align-self: center;
    font-size: 1.5em;
    color: var(--white);
    z-index: 3;
    opacity: 0;
    transition: all .4s ease-out;
}

.ig-profile a:hover {
    color: var(--white);
    transition: all .3s ease-out;
}

.ig-profile a:hover i {
    opacity: 1;
    transition: all .3s ease-out;
}

@media screen and (min-width: 650px) {
    .ig-feed h2 {
        text-align: left;
    }

    .instafeed {
        grid-template-columns: repeat(2, minmax(auto, 50%));
        gap: 1em;
        justify-self: center;
    }

    .instafeed a {
        max-width: 230px;
    }
}

@media screen and (min-width: 857px) {
    .instafeed figure:hover img {
        filter: brightness(.4);
        transition: all .5s ease-out;
        transform: scale(1.08);
    }

    .ig-profile a:hover img {
        filter: brightness(.3);
        transition: all .3s ease-out;
    }

    .instafeed1 figure:nth-of-type(1):hover img,
    .instafeed2 figure:nth-of-type(4):hover img {
        transform: scale(1.03);
    }

    .instafeed figure:hover figcaption {
        opacity: 1;
        transition: opacity 1s .3s ease-out;
        z-index: 4;
    }
}

@media screen and (min-width: 1000px) {
    .ig-profile {
        justify-self: left;
        margin-left: 5em;
    }

    .instafeed {
        grid-template-columns: repeat(6, minmax(auto, 175px));
        grid-template-rows: repeat(2, minmax(auto, 175px));
    }

    .instafeed figure:nth-of-type(7),
    .instafeed figure:nth-of-type(8),
    .instafeed figure:nth-of-type(9) {
        display: block;
    }

    .instafeed figure:nth-of-type(1) {
        grid-column: 3/5;
        grid-row: 1/2;
    }

    .instafeed figure:nth-of-type(8) {
        grid-row: 2/3;
        grid-column: 5/6;
    }

    .instafeed figure:nth-of-type(9) {
        grid-row: 2/3;
        grid-column: 6/7;
    }

    .instafeed a {
        max-width: none;
    }
}
