@import url("https://fonts.googleapis.com/css2?family=Nunito&family=Playfair+Display:ital,wght@1,700&display=swap");

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

html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: "Playfair Display", serif;
  background-color: #fff4e6;
}

header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 4.8rem;
  gap: 1.6rem;
}

h1 {
  font-size: 7.2rem;
  color: #d9480f;
  letter-spacing: 0.5rem;
  font-weight: 700;
}

p {
  margin: 0 5%;
  font-size: 2rem;
  font-family: "Nunito", sans-serif;
  font-weight: 400;
  color: #555;
  text-transform: uppercase;
  line-height: 2.8rem;
  letter-spacing: 1rem;
  text-align: center;
}

figure {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 2.4rem;
}

figure img {
  width: 36rem;
  height: auto;  
}

span {
  font-size: 1.8rem;
  font-family: "Nunito", sans-serif;
  color: #d9480f;
  letter-spacing: 0.2rem;
  text-align: center;
}

.loader {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(230, 252, 245, 0.6);
}

.loader img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.images-container {
  margin: 1rem 5%;
  columns: 3;
  column-gap: 1.8rem;
}

.images-container a {
  display: inline-block;
  overflow: hidden;
}

.images-container img {
  width: 100%;
  margin-bottom: 1.8rem;
  transition: all 0.3s;
  opacity: 0.84;
}

.images-container img:hover {
  transform: scale(1.07);
  opacity: 1;
}

/* Responsive Styles For Tablet Devices */
@media screen and (max-width: 75rem) {
  h1 {
    font-size: 6.4rem;
  }

  .images-container {
    columns: 2;
  }
}

/* Responsive Styles For Mobile Devices */
@media screen and (max-width: 40rem) {
  header {
    margin-bottom: 3.6rem;
  }

  h1 {
    font-size: 4.8rem;
  }

  p {
    font-size: 1.5rem;
    letter-spacing: 0.8rem;
  }

  .images-container {
    columns: 1;
  }

  .images-container img {
    opacity: 1;
  }

  .images-container img:hover {
    transform: scale(1);
  }
}
