/*
Theme Name:     Divi-Child
Theme URI:      
Description:    Divi child theme.
Author:         Me
Author URI:     
Template:       Divi
Version:        0.1.0
*/

:root{
  --grid-item-height: 150px;
}

body{
  background-color: black;
}
.coded-container {
  display: grid;
  height: auto;
  width: 100%;
  place-content: center;
  perspective: 100vw;
  position: relative;
	margin: 0 auto;
}
.grid {
  position: relative;
  border: 3px solid #000;
  height: 100vh;
  width: 80vw;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  grid-auto-rows: var(--grid-item-height);
  overflow: scroll;
  transform: rotateY(50deg) scale(0.5);
  transition: transform 1.5s, scale 1s;
}
.rotateFlat{
  transform: rotateY(0deg) scale(1);
  transition-timing-function: ease-out;
  transition-timing-function: cubic-bezier(0, 0, 0.58, 1);
  transition: transform 1.5s, scale 1s;
}
.imageHolder{
  position: relative;
  max-height: var(--grid-item-height);
  overflow: hidden;
}
.imageHolder:hover{
  overflow: unset;
  transform: scale(1.2);
  transition: scale 1s;
  z-index: 2;

}

.imageHolder .dummy-image:hover{
  /* left: -5px; */
  top: -10px;
  z-index: 4;
  box-shadow: 2px 4px 10px black;;
  transition: top 0.15s, left 0.15s
}
.dummy-image {
  position: absolute;
  max-height: var(--grid-item-height);
  width: auto;
  left: 0px;
  top:0px;
  transition: top 0.15s, left 0.15s
}

.loading{
  text-align: center;
  padding-top: 80px;
  width: 100%;
  color: white;
  position: absolute;
  top:0;
  left: 0;
  z-index: 2;
  font-size: 50px;
  font-weight: bold;
  text-shadow: 5px 5px 5px black;
  transform: perspective(150vw) translateZ(50px);
}
.loadingOver{
  opacity: 0;
  display:none;
  transition: opacity 1s display 1s;
}
/* Single Image Styling */
.imageInfo{
  position: absolute;
  top: 4vh;
  left: 5vw;
  background-color: white;
  z-index: 6;
  background-color: white;
  border: 1vw solid #eee;
  padding: 1vw;
  display: none;
  opacity: 0;
  width: 85vw;
  height: 90vh;
  transition: width 1s, height 1s;
}
.imageInfoDisplayed{
  opacity: 1;
  transition: opacity 3s;
  z-index: 5;
}
.closeItem{
  position: absolute;
  right: -20px;
  top: -20px;
  width: 40px;
  height: 40px;
  border: 4px solid #eee;
  line-height: 40px;
  text-align: center;
  border-radius: 22px;
  background-color: white;
}
.closeItem:hover{
  background-color: #eee;
  color: white;
  cursor: pointer;
}
/* Spinner */
.lds-dual-ring {
  display: inline-block;
  width: 80px;
  height: 80px;
}
.lds-dual-ring:after {
  content: " ";
  display: block;
  width: 64px;
  height: 64px;
  margin: 8px;
  border-radius: 50%;
  border: 6px solid #fff;
  border-color: #fff transparent #fff transparent;
  animation: lds-dual-ring 1.2s linear infinite;
}
@keyframes lds-dual-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
