* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto Slab", serif;
  background-color: rgba(250, 250, 245, 1);
  color: rgba(55, 58, 60, 1);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: center;
  background-image: url("https://res.cloudinary.com/starborn/image/upload/q_auto/v1728046749/wwo/pawel-czerwinski-APVgVX_yDDc-unsplash_odhivt.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.gallery-header {
  align-items: center;
  background-color: rgba(192, 192, 192, 1);
  background-image: url("https://res.cloudinary.com/starborn/image/upload/q_auto/v1728046747/wwo/gray-shiny-background_r6tg8h.png");
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  height: 120px;
  justify-content: center;
  padding: 10px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.gallery-title {
  margin: 0;
  font-size: 2rem;
  color: rgba(55, 58, 60, 1);
}

.gallery-container {
  display: flex;
  gap: 24rem;
  overflow-x: auto;
  padding: 20px;
  align-items: center;
  height: calc(100vh - 200px);
  scroll-behavior: smooth;
  padding: 0 24rem;
}

.artwork {
  display: inline-block;
  text-align: center;
  position: relative;
  flex-shrink: 0;
}

.canvas {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url("https://res.cloudinary.com/starborn/image/upload/q_auto/v1728046747/wwo/annie-spratt-xz485Eku8O4-unsplash_dbvjhn.jpg");
}

.frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 10;
}

.frame-1,
.canvas-1 {
  width: 718px;
  height: 571px;
}

.frame-2,
.canvas-2 {
  width: 551px;
  height: 636px;
}

.frame-3,
.canvas-3 {
  width: 685px;
  height: 625px;
}

.frame-4,
.canvas-4 {
  width: 537px;
  height: 678px;
}

.frame-5,
.canvas-5 {
  width: 500px;
  height: 692px;
}

.plaque {
  background-color: rgba(192, 192, 192, 1);
  background-image: url("https://res.cloudinary.com/starborn/image/upload/q_auto/v1728046747/wwo/gray-shiny-background_r6tg8h.png");
  border: 1px solid rgba(120, 120, 120, 1);
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  color: rgba(55, 58, 60, 1);
  display: inline-block;
  font-weight: 500;
  margin: 10px auto;
  padding: 10px 20px;
  text-align: center;
}

.attribution {
  font-size: 0.8rem;
  color: rgba(120, 120, 120, 1);
  text-align: center;
  margin-top: 5px;
}

.attribution a {
  color: rgba(120, 120, 120, 1);
  text-decoration: underline;
}

footer a:hover,
.attribution a:hover {
  text-decoration: none;
}

footer {
  text-align: center;
  padding: 20px;
  background-color: rgba(55, 58, 60, 1);
  color: rgba(250, 250, 245, 1);
  height: 80px;
}

footer a {
  color: rgba(250, 250, 245, 1);
  font-weight: 500;
}

@media (max-width: 768px) {
  .gallery-header {
    height: auto;
    padding: 10px 20px;
    padding: 15px;
    text-align: center;
  }

  .gallery-title {
    font-size: 1.5rem;
  }

  .gallery-container {
    flex-direction: column;
    gap: 2rem;
    padding: 20px;
    height: auto;
  }

  .artwork {
    width: 100%;
  }

  .canvas,
  .frame {
    width: 100%;
    height: auto;
  }

  .frame {
    position: relative;
  }

  .frame-1,
  .canvas-1,
  .frame-2,
  .canvas-2,
  .frame-3,
  .canvas-3,
  .frame-4,
  .canvas-4,
  .frame-5,
  .canvas-5 {
    width: 100%;
    height: auto;
  }

  .plaque {
    width: 90%;
    padding: 5px 10px;
    margin: 5px auto;
  }

  footer {
    font-size: 1rem;
    padding: 10px;
  }
}
