html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  font-family: sans-serif;
  background-color: #eee;
}

a:link,
a:visited {
  color: #bdc3c7;
}

.credit {
  position: absolute;
  text-align: center;
  width: 100%;
  padding: 20px 0;
  color: #fff;
  display: none;
}

#gallery-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 30px;
  padding: 30px;
  margin-bottom: 4px;
}

@media only screen and (max-width: 768px) {
  #gallery-container {
    grid-template-columns: 1fr;
    grid-gap: 12px;
    padding: 12px;
  }
}

.title {
  width: 100%;
  text-align: center;
  font-size: 3rem;
  margin: 0;
  margin: 30px 0;
}

@media only screen and (max-width: 768px) {
  .title {
    font-size: 1.6rem;
    margin: 15px 0;
  }
}

#panorama-container {
  position: fixed;
  display: flex;
  width: 100%;
  height: 100%;
  top: 0;
  background: rgba(0, 0, 0, 0.9);
  transform: scale(0, 0);
  opacity: 0;
  -webkit-transition: all 0.5s ease-out;
  transition: all 0.5s ease-out;
  z-index: 100;
}

#panorama-container.open {
  opacity: 1;
  transform: scale(1, 1);
}

.photo {
  display: flex;
  width: 100%;
  aspect-ratio: 2/1;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
}

.photo:hover {
  border-color: #000;
}

.loader {
  border: 6px solid #f3f3f3;
  border-radius: 50%;
  border-top: 6px solid #3498db;
  width: 40px;
  height: 40px;
  animation: spin 2s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#progress-bar {
  position: fixed;
  top: 0;
  width: 0;
  height: 5px;
  background-color: #fff;
  transition: opacity 0.5s ease;
}

.close {
  width: 44px;
  height: 44px;
  position: absolute;
  right: 0;
  margin: 20px;
  cursor: pointer;
  color: white;
}

@media only screen and (max-width: 768px) {
  .close {
    width: 20px;
    height: 20px;
  }
}

#main-container {
  width: 100%;
  height: 85%;
  align-self: center;
  background-color: #000;
}
