body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
  text-align: left;
  background-image: url('assets/texture.jpg');
  background-size: auto; /* Adjust as needed */
  background-repeat: repeat; /* Adjust as needed */
  background-attachment: scroll;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3); /* Adjust the opacity as needed */
  z-index: -1; /* Ensure it stays behind the content */
}

main {
  padding: 2rem;
}

/* Header */

.header-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

header {
  font-family: "Mansalva", serif;
  text-align: center;
  background-image: url(assets/spiral2.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 350px;
  padding-left: 50px;
  padding-right: 50px;
  padding-bottom: 25px;
  padding-top: 20px;
  transform: rotate(-2deg);
}

header h1 {
  margin-bottom: 0px;
  margin-top: 0px;
}

/* gallery boxes (polaroids) */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(1000px);
  }
  to {
    opacity: 1;
    transform: translate(var(--random-x, 0), var(--random-y, 0)) rotate(var(--random-rotate, 0deg));
  }
}

#gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 40px;
  justify-content: center;
}

.box {
  background-color: #fefefe;
  border: 2px solid #bebebe;
  border-top: #fff;
  border-bottom: #888888;
  border-radius: 2px;
  padding: 15px;
  overflow: hidden;
  width: 250px;
  max-height: 800px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 12px 3px rgba(0, 0, 0, 0.8); /* Deeper shadow */
  transition: transform 0.2s ease;
  opacity: 0;
  overflow: visible;
}

.box img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Crop the image to fit the container */
  filter: contrast(0.7) sepia(0.2) brightness(1.2);
}

.box h3 {
  margin: 10px 0;
  font-family: "Mansalva", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 28px;
}

/* modal windows */

@keyframes appear {
  from {
      opacity: 0;
  }
  to {
      opacity: 1;
  }
}

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
    display: flex; /* Use flexbox for centering */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    animation: appear 0.5s; /* Apply the fade-in animation */
}

.modal-content {
  background-color: #fefefe;
  border-radius: 4px;
  padding: 20px;
  width: 80%; /* Could be more or less, depending on screen size */
  max-width: 800px; /* Maximum width */
  max-height: 90vh; /* Maximum height, 90% of the viewport height */
  overflow-y: auto; /* Enable vertical scrolling if content exceeds max-height */
}

.close-button {
  background-image: url('assets/x.png');
  background-size: 20px;
  background-repeat: no-repeat;
  background-position: center;
  background-color: inherit;
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 16px;
  cursor: pointer;
  border-bottom-left-radius: 6px;
  border: none;
}

.modal-image {
  width: 100%;
  cursor: pointer;
}

/* Footer */

.footer-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

footer {
  font-family: "Mansalva", serif;
  background-image: url(assets/spiral2.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 250px;
  transform: rotate(-2deg);
  padding-top: 30px;
  padding-left: 30px;
  padding-right: 30px;
  padding-bottom: 20px;

}

footer p {
  margin: 0;
  padding-left: 30px;
  padding-right: 30px;
}
