.myPhotoLibrary ul {
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: flex-start;
  align-content: flex-start;
  gap: 0;
}
.myPhotoLibrary li {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  text-align: center;
}
.myPhotoLibrary img {
  z-index: 1;
  box-shadow: 5px 5px 7px rgba(51, 51, 51, 0.75);
  filter: grayscale(100%);
  -webkit-filter: grayscale(100%);
  transform: scale(1);
  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  -ms-transform: scale(1);
  -o-transform: scale(1);
  transition: all 0.5s ease-in-out;
  -webkit-transition: all 0.5s ease-in-out;
  -moz-transition: all 0.5s ease-in-out;
  -ms-transition: all 0.5s ease-in-out;
  -o-transition: all 0.5s ease-in-out;
}
.myPhotoLibrary img:hover {
  margin: 0;
  z-index: 10;
  filter: grayscale(0);
  -webkit-filter: grayscale(0);
  transition: all 0.5s ease-in-out;
  -webkit-transition: all 0.5s ease-in-out;
  -moz-transition: all 0.5s ease-in-out;
  -ms-transition: all 0.5s ease-in-out;
  -o-transition: all 0.5s ease-in-out;
  transform: scale(2);
  -webkit-transform: scale(2);
  -moz-transform: scale(2);
  -ms-transform: scale(2);
  -o-transform: scale(2);
}
.myPhotoLibrary li:first-of-type img:hover {
  transform: scale(2) translate(25%);
  -webkit-transform: scale(2) translate(25%);
  -moz-transform: scale(2) translate(25%);
  -ms-transform: scale(2) translate(25%);
  -o-transform: scale(2) translate(25%);
  transition: all 0.5s ease-in-out;
  -webkit-transition: all 0.5s ease-in-out;
  -moz-transition: all 0.5s ease-in-out;
  -ms-transition: all 0.5s ease-in-out;
  -o-transition: all 0.5s ease-in-out;
}
.myPhotoLibrary li:last-of-type img:hover {
  transform: scale(2) translate(-25%);
  -webkit-transform: scale(2) translate(-25%);
  -moz-transform: scale(2) translate(-25%);
  -ms-transform: scale(2) translate(-25%);
  -o-transform: scale(2) translate(-25%);
  transition: all 0.5s ease-in-out;
  -webkit-transition: all 0.5s ease-in-out;
  -moz-transition: all 0.5s ease-in-out;
  -ms-transition: all 0.5s ease-in-out;
  -o-transition: all 0.5s ease-in-out;
}
.myPhotoLibrary p {
  margin: 0.5rem 0.5rem 0;
  font-size: 1rem;
  text-align: center;
  text-wrap: wrap;
  opacity: 1;
  transition: all 1s ease-in-out 1s;
  -webkit-transition: all 1s ease-in-out 1s;
  -moz-transition: all 1s ease-in-out 1s;
  -ms-transition: all 1s ease-in-out 1s;
  -o-transition: all 1s ease-in-out 1s;
}
.myPhotoLibrary img:hover + p {
  opacity: 0;
  transition: all 0.2s ease-in-out;
  -webkit-transition: all 0.2s ease-in-out;
  -moz-transition: all 0.2s ease-in-out;
  -ms-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
}
