.locations-contact {
  margin: 0;
  padding: 2em 1rem 3rem;
  background-image:
    linear-gradient(
      174deg,
      rgba(59, 59, 59, 0.8) -90%,
      rgba(0, 0, 0, 0.8) 100%
    ),
    url(../images/BallroomDancerFeet.jpg);
  background-size: cover;
}
.locations-contact h2 {
  text-align: center;
  color: var(--offwhite);
}
.locations-contact .card-item {
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  background-color: var(--offwhite);
  margin: 0 auto;
  flex-direction: column;
  transition: 0.5s;
  border: 1px solid var(--lightgray);
  text-align: left;
  overflow: hidden;
  width: 100%;
  max-width: 330px;
}
.locations-contact .card-item:nth-of-type(1) {
  border-right: none;
}
.locations-contact .card-item:nth-of-type(2) {
  border-left: none;
}
.locations-contact .card-text-2 {
  align-content: center;
}
.template-body {
  background-image:
    linear-gradient(
      174deg,
      rgba(235, 235, 235, 0.8) 0%,
      rgba(235, 235, 235, 0.8) 44%,
      var(--arthurMurrayBlue) 44.08%,
      var(--arthurMurrayBlue) 87%,
      var(--lightgray) 87.08%
    ),
    url(../images/FootprintsBackground.svg);
}
.ig-profile h3 {
  grid-column: 2/3;
  grid-row: 1/2;
  font-size: 100%;
  align-self: end;
  margin: 0;
}
.template-text-2 {
  color: var(--offwhite);
}
.template-text-2 a {
  color: var(--lightblue);
}
.locations-contact .card-text-2 h3 {
  padding: 0;
  margin: 0;
}
.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 0.4s ease-out;
}
.locations-contact i {
  font-size: 0.9em;
}
.locations-contact .card-text i {
  font-size: 1.1em;
}
.locations-contact .card-text-2 h3 i {
  font-size: 0.8em;
  vertical-align: text-top;
}
.ig-profile p {
  grid-column: 2/3;
  grid-row: 2/3;
  font-size: 70%;
  align-self: top;
}
.locations-contact .card-text {
  padding: 1rem;
  display: grid;
  grid-template-columns: auto;
  grid-template-rows: auto;
  grid-gap: 0.5em;
  gap: 0.5em;
}
.locations-contact .card-text p {
  font-weight: 700;
  font-size: 0.7em;
  color: var(--arthurMurrayBlue);
  line-height: 1.5;
  letter-spacing: 1.1px;
  margin: 0;
}
.locations-contact .card {
  align-self: center;
}
.locations-contact a {
  color: var(--arthurMurrayBlue);
  text-decoration: none;
  transition: all 0.4s ease-out;
}
.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;
}
.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;
}
.locations-contact a:hover {
  color: var(--arthurMurrayYellow);
  transition: all 0.4s ease-out;
}
@media screen and (min-width: 857px) {
  .locations-contact {
    padding: 3em 0 6em;
  }
  .locations-contact h3 {
    font-size: var(--h4);
    color: var(--darkgray);
    background-attachment: fixed;
  }
  .locations-contact .cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(auto, calc(340px - 0.666em)));
    grid-template-rows: auto;
    justify-content: center;
    grid-row: 2;
    padding: 0 1em;
  }
  .locations-contact .card-item {
    grid-template-columns: 1fr;
    grid-template-rows: 2.5em auto 2.5em auto;
  }
  .locations-contact .card-text {
    align-items: center;
    gap: 0.5em;
  }
  .locations-contact .card-text-2 p:nth-of-type(1) {
    align-self: end;
  }
  .locations-contact .card-text-2 p:nth-of-type(2) {
    align-self: start;
  }
  .locations-contact .card-text-2 p:nth-of-type(1).contact-phone {
    align-self: center;
  }
}
.ig-feed {
  background-image: linear-gradient(
    165deg,
    var(--arthurMurrayBlue) 0%,
    var(--mediumblue) 180%
  );
  padding: 5vw 0;
  display: grid;
  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 0.3s ease-out;
}
.instafeed figcaption,
.instafeed figure img {
  grid-column: 1/2;
  grid-row: 1/2;
  transition: all 0.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: 0.75em;
}
[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: 0.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;
}
.instafeed figure:nth-of-type(7),
.instafeed figure:nth-of-type(8),
.instafeed figure:nth-of-type(9) {
  display: none;
}
.ig-profile a:hover {
  color: var(--white);
  transition: all 0.3s ease-out;
}
.ig-profile a:hover i {
  opacity: 1;
  transition: all 0.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;
  }
  .template-body {
    background-image:
      linear-gradient(
        174deg,
        rgba(235, 235, 235, 0.8) 0%,
        rgba(235, 235, 235, 0.8) 38%,
        var(--arthurMurrayBlue) 38.08%,
        var(--arthurMurrayBlue) 87%,
        var(--lightgray) 87.08%
      ),
      url(../images/FootprintsBackground.svg);
  }
}
@media screen and (min-width: 857px) {
  .instafeed figure:hover img {
    filter: brightness(0.4);
    transition: all 0.5s ease-out;
    transform: scale(1.08);
  }
  .ig-profile a:hover img {
    filter: brightness(0.3);
    transition: all 0.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 0.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;
  }
  .template-body {
    background-image:
      linear-gradient(
        174deg,
        rgba(235, 235, 235, 0.8) 0%,
        rgba(235, 235, 235, 0.8) 45%,
        var(--arthurMurrayBlue) 45.08%,
        var(--arthurMurrayBlue) 100%
      ),
      url(../images/FootprintsBackground.svg);
  }
}
