@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 62.5%;
}
body {
  font-family: "Lato", sans-serif;
  color: #ffcc00;
  font-size: 16px;
  font-weight: 400;
  background-image: url(../images/bg-pattern.png);
}
h1 {
  font-size: 50px;
  font-family: "Playfair Display", serif;
  color: #ffcc00;
  margin-top: 3rem;
  margin-bottom: 0;
  font-weight: 900;
}
a {
  color: #ffcc00;
  text-decoration: none;
}
a:link {
  color: #ffcc00;
  text-decoration: none;
}
a:hover {
  text-decoration: none;
  color: white;
}
a:active {
  text-decoration: none;
  color: #ffcc00;
}
a:focus {
  text-decoration: none;
  color: white;
}
.wrapper {
  width: 1280px;
  background: #660000;
  text-align: center;
  border: 2px solid black;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}
p.subtitle {
  font-size: 28px;
  font-family: "Playfair Display", serif;
  margin-top: 10px;
  margin-bottom: 50px;
  font-style: italic;
  color: white;
}
.grid-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 6 items por fila */
  grid-template-rows: repeat(2, 1fr); /* 3 filas */
  grid-gap: 30px; /* Espacio entre los items */
}

.grid-item {
  border: 3px solid #ffcc00;
  height: 305px;
  width: 219px;
}
.grid-item img {
  width: 100%;
  height: 100%;
}
.pagination {
  font-size: 1.6rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8rem;
}
.pagination a,
.pagination button,
.pagination span {
  padding: 1rem 1.5rem;
  margin-right: 10px;
  border: 1px solid #ffcc00;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  background: transparent;
  font-size: 1.6rem;
  font-weight: 600;
  color: #ffcc00;
}
.pagination a.active,
.pagination a:hover,
.pagination button:hover {
  color: white;
  border: 1px solid white;
}
.pagination div {
  margin-right: 20px;
}

.back {
  font-size: 40px;
  font-family: "Playfair Display", serif;
  font-weight: 900;
  margin: 3rem 0;
}
.grid-item.hidden {
  display: none;
}

/* Zoom Image */
/* .image-container {
  width: 30%;
  margin: 5% 0 0 5%;
} */
.overlay {
  display: none;
  position: absolute;
  width: 18.5%;
  height: 50.3%;
  margin-top: -11.9%;
  margin-left: 9.5%;
  border: 2px solid #555;
  z-index: 1000;
  background-repeat: no-repeat;
}
.overlay-left {
  margin-left: -19.8% !important;
}
.mouse-overlay {
  cursor: zoom-in;
  position: absolute;
  width: 2em;
  height: 2em;
  transform: translate(-50%, -50%);
  background-color: rgba(245, 245, 245, 0.6);
  border-radius: 50%;
}
@media only screen and (max-width: 768px) {
  /* .image-container {
    width: 55%;
  } */
  .overlay {
    margin-left: 70%;
    width: 25%;
    height: 15%;
  }
}
