/* Define CSS variables for colors */
:root {
  --background-color: #d8dbe2;
  --gradient-color-1: rgba(255, 255, 255, 0.5);
  --gradient-color-2: rgba(255, 255, 255, 0.15);
}

/* Use border-box box-sizing for all elements */
* {
  box-sizing: border-box;
}

/* Apply background color, gradients, and image */
body {
  width: 100%;
  height: 100%;
  background-color: var(--background-color);
  background-image: linear-gradient(
      90deg,
      var(--gradient-color-1),
      var(--gradient-color-2) 70%
    ),
    linear-gradient(0deg, var(--gradient-color-2) 50%, transparent 70%),
    url(https://grainy-gradients.vercel.app/noise.svg);
}

.container {
  max-width: 80vw;
  margin: 80px auto;
  position: relative;
}

header .container {
  padding: 20px;
  border-radius: 5px;
  background-image: linear-gradient(to bottom right, #3d3d3d, #000);
  box-shadow: inset 0 0 5px 0 rgba(0, 0, 0, 0.25),
    0 5px 10px 5px rgba(0, 0, 0, 0.25);
}

header .container div {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #3d3d3d;
  background-image: linear-gradient(to bottom right, #000, #bfbfbf, #000);
  box-shadow: 0 0 0 1px #bfbfbf, 1px 2px 2px 2px rgba(0, 0, 0, 0.5);
}

.top-left {
  top: 15px;
  left: 15px;
}

.top-right {
  top: 15px;
  right: 15px;
}

.bottom-right {
  bottom: 15px;
  right: 15px;
}

.bottom-left {
  bottom: 15px;
  left: 15px;
}

header h1 {
  text-align: center;
  text-transform: uppercase;
  font-size: 3rem;
  font-weight: bold;
  color: #000;
  background-image: linear-gradient(to bottom right, #f8d88f, #c6a647);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0px 0px 10px rgba(255, 255, 255, 0.5);
  letter-spacing: 2px;
}

header h3 {
  text-align: center;
  text-transform: uppercase;
  font-size: 2rem;
  font-weight: bold;
  color: #000;
  background-image: linear-gradient(to bottom right, #f8d88f, #c6a647);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0px 0px 10px rgba(255, 255, 255, 0.5);
  letter-spacing: 2px;
}

#gallery {
  max-width: 100%;
  line-height: 0;
  -webkit-column-count: 4;
  -webkit-column-gap: 60px;
  -moz-column-count: 4;
  -moz-column-gap: 60px;
  column-count: 4;
  column-gap: 60px;
}

#gallery .frame {
  margin-bottom: 40px;
  border-radius: 4px;
  border: solid 10px;
  border-image: linear-gradient(to bottom right, #56575a, #000) 1;
  box-shadow: 0 0 5px 0 rgb(0 0 0 / 25%) inset, 0 5px 10px 5px rgb(0 0 0 / 25%);
  position: relative;
  display: inline-block;
}

#gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1px;
  cursor: pointer;
  border: groove 4px;
  border-bottom-color: #56575a;
  border-left-color: #2b2b2d;
  border-right-color: #2b2b2d;
  border-top-color: #000;
  position: relative;
}

.overlay {
  cursor: pointer;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.overlay::before {
  content: "";
  background: rgba(255, 255, 255, 0.1);
  width: 40%;
  height: 100%;
  top: 0%;
  left: -125%;
  transform: skew(-25deg);
  position: absolute;
  transition: left 1.5s ease-out;
}

.overlay:hover::before {
  left: 200%;
}

@media (max-width: 1200px) {
  #gallery {
    column-count: 3;
  }
}

@media (max-width: 980px) {
  #gallery {
    column-count: 2;
  }
}

@media (max-width: 640px) {
  #gallery {
    column-count: 1;
  }
}