/* ==========================================
   main.css
   These are the final styles for the project.
   Author:   Saddam Arbaa
   Website:  TODO
			========================================== */

@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@500&family=Satisfy&display=swap");

* {box-sizing: border-box;}

body {
  margin: 0;
  padding: 0;
  /* background: linear-gradient(to right, #f93d66, #6d47d9); */
  color: white;
  background-color: #000;
}

.logo {
  font-family: "Satisfy", cursive;
  padding: 20px;
  font-size: 3rem;
}

.container {
  display: grid;
  grid-gap: 20px;
  padding: 20px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-template-rows: repeat(auto-fit, 180px);
}

.gallery__image {transition: transform 0.3s ease-in-out;}

.gallery__image:hover {transform: scale(1.05);}

.gallery__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  background-color: rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  z-index: 2;
  /* opacity: 0; */
  transition: opacity 0.5s ease-in-out;
}

.overlay.open {
  transition: opacity 0.8s ease-in;
  opacity: 1;
  display: grid;
  align-items: center;
  justify-items: center;
}

.overlay-inner {
  background: white;
  width: 700px;
  padding: 20px;
}

.overlay__inner img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
