#album-container .simplePagerContainer { 
  display: flex; 
  flex-direction: column; 
}

#album-container .simplePagerNav {
  order:2;
  margin: 1.875rem 1.875rem 0;
  font-size: 1.25rem;
}

#album-container .simplePagerNav a {
  color: #000;
  color: var(--primary-color, #000);
  border: 1px solid #000;
  border: 1px solid var(--primary-color, #000);
}

#album-container .simplePagerNav a:hover {
  text-decoration: none;
  background-color: #000;
  background-color: var(--primary-color, #000);
  color: #fff;
}

#album-container .currentPage a {
  background: transparent;
  border: none;
  cursor: default;
}

#album-container .currentPage a:hover {
  background: transparent;
  border: none;
  color: initial;
}

#album-list,
#single-album,
.instagram-wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  order:1;
}

.album-cover {
  transition: box-shadow 0.3s ease-in-out;
  width: calc(33% - 1.875rem);
  margin: 0.9375rem;
  background-color: #333;
  background-color: var(--primary-color, #333);
}

.album-cover:hover {
  box-shadow: 0 0 10px 3px rgba(0, 0, 0, .5);
}

.album-cover img {
  width: 100%;
  height: 12.5rem; /* height of container */
  object-fit: cover;
  object-position: 50% 50%;
}

.album-cover a {
  color: #fff;
  text-decoration: none;
  display: block;
}

.album-cover a:hover {
  text-decoration: underline;
  color: #fff;
}

.album-cover .album-title {
  font-size: 1rem;
  line-height: 1.25rem;
  font-weight:bold;
  margin: 0;
  padding: .75rem 1rem;
  text-align: center;
  text-transform: none;
}

/* Instagram Photo Grid */
.instagram-wrap .insta-photo {
  width: calc(25% - 1.25rem);
  margin: 0.625rem;
  position: relative;
  background-size: cover;
}

.instagram-wrap .insta-photo:hover .bg-holder:before {
  opacity: 1;
  -webkit-transform: scale(1);
  -ms-transform: scale(1);
  transform: scale(1);
}

.instagram-wrap .insta-photo:hover .hover:before {
  -webkit-transform: translate(-50%, -50%) scale(1);
  -ms-transform: translate(-50%, -50%) scale(1);
  transform: translate(-50%, -50%) scale(1);
  -webkit-transition: .5s cubic-bezier(.09, 1.07, .69, 1.49);
  transition: .5s cubic-bezier(.09, 1.07, .69, 1.49);
}

.instagram-wrap .insta-photo:hover .hover:after {
  -webkit-transform: translate(-50%, -50%) scale(1) rotate(90deg);
  -ms-transform: translate(-50%, -50%) scale(1) rotate(90deg);
  transform: translate(-50%, -50%) scale(1) rotate(90deg);
  -webkit-transition: .5s cubic-bezier(.09, 1.07, .69, 1.49);
  transition: .5s cubic-bezier(.09, 1.07, .69, 1.49);
}

.instagram-wrap .insta-photo .bg-holder {
  padding-bottom: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.instagram-wrap .insta-photo .bg-holder:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, .6);
  -webkit-transform: scale(0);
  -ms-transform: scale(0);
  transform: scale(0);
  opacity: 0;
  -webkit-transition: .3s;
  transition: .3s;
}

.instagram-wrap .insta-photo .hover {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.instagram-wrap .insta-photo .hover:before,
.instagram-wrap .insta-photo .hover:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%) scale(0);
  -ms-transform: translate(-50%, -50%) scale(0);
  transform: translate(-50%, -50%) scale(0);
  width: 2.5625rem;
  height: 0.19rem;
  background: #fff;
  -webkit-transition: .3s;
  transition: .3s;
}

.instagram-wrap .insta-photo .hover:after {
  -webkit-transform: translate(-50%, -50%) scale(0) rotate(90deg);
  -ms-transform: translate(-50%, -50%) scale(0) rotate(90deg);
  transform: translate(-50%, -50%) scale(0) rotate(90deg);
}

.instagram-wrap .insta-photo img {
  width: 100%;
  max-height: 100%;
}

.instagram-btn {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1rem 0;
}

.instagram-btn a {
  background-color: #000;
  background-color: var(--secondary-color, #000);
  border: 2px solid #000;
  border: 2px solid var(--secondary-color, #000);
  padding: 1rem 1.5rem;
  color: #fff;
  text-transform: uppercase;
  font-weight: bold;
  -webkit-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.instagram-btn a:hover {
  text-decoration: none;
  background: transparent;
  color: #000;
  color: var(--secondary-color, #000);
}

/*Single Album CSS */
#single-album .album-thumb {
  margin: 0.625rem;
}

#single-album .album-thumb img {
    width: 100%;
    max-width: 15.625rem;
    height: 15.625rem;
    object-fit: cover;
    object-position: 50% 50%;
}

@media (max-width: 1023px) {
  .album-cover {
    width: calc(50% - 2.5rem);
  }
}

@media (max-width: 767px) {
  .album-cover {
    width: 100%;
  }

  .album-cover img {
    height: 18.75rem;
  }

  .instagram-wrap .insta-photo {
    width: calc(50% - 1.25rem);
  }
}

@media (max-width: 560px) {
  .instagram-wrap .insta-photo {
    width: 100%;
  }
}
