body, html {
  height: 100%;
  margin: 0;
  font-family: 'Georgia', serif;
  color: #fff;
  background: #181313;
  overflow-x: hidden;
}

.background {
  background: url('images/background.jpg') no-repeat center center fixed;
  background-size: cover;
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0; left: 0;
  z-index: 0;
  opacity: 0.25;
}

.logo-watermark {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 40vh;
  z-index: 1;
  display: flex;
  align-items: center top;
  justify-content: center;
  pointer-events: none;
  opacity: 0.15;
  font-size: 10vw;
  font-family: 'Old English Text MT', 'Blackletter', serif;
  color: #fff;
  text-align: center;
  letter-spacing: 0.1em;
  user-select: none;
}

.content {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 60px); /* Adjust height to account for pagination */
  padding-bottom: 60px; /* Remove padding to avoid overlap */
}


header {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

header h2 {
  font-size: 3rem;
  font-style: italic;
  font-family: 'Georgia', serif;
  font-weight: 400;
  margin-bottom: 0.5em;
  margin-top: 0;
  letter-spacing: 0.05em;
}

header h3 {
  font-size: 2.2rem;
  font-family: 'Georgia', serif;
  font-weight: 400;
  margin: 0.2em 0;
}

header h4 {
  font-size: 1.5rem;
  font-style: italic;
  font-family: 'Georgia', serif;
  font-weight: 400;
  margin: 0.2em 0 0.8em 0;
}

.location {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 1em;
  color: #ccc;
}

nav {
  margin-bottom: 2em;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 0.4em;
  font-size: 1.1em;
  font-family: 'Georgia', serif;
  opacity: 0.9;
  border-bottom: 1px solid #fff2;
  transition: color 0.2s;
}
nav a:hover {
  color: #ffd700;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
  background: rgba(20, 10, 10, 0.85);
  border-radius: 16px;
}

.grid-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.grid img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 4px 16px #000a;
  transition: transform 0.2s;
  display: block;
}

.grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 32px #000c;
}

.heart-icon {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 1.5rem;
  color: #fff;
  text-shadow: 0 2px 8px #000;
  opacity: 0.85;
  pointer-events: none;
}

#image-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  display: none; /* Only this! */
  align-items: center;
  justify-content: center;
  z-index: 1000;
  flex-direction: column;
}


#modal-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.85);
  z-index: 1000;
}

#modal-img {
  max-width: 90vw;
  max-height: 90vh;
  margin: auto;
  box-shadow: 0 8px 32px #000c;
  border-radius: 16px;
  position: relative;
  z-index: 1001;
  display: block;
}

#close-modal {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
  z-index: 1002;
}

.script-header {
  position: relative;
  width: 100%;
  height: 340px; /* adjust as needed */
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0;
  background: none;
  z-index: 1;
}

.lettering-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;   /* adjust as needed for your design */
  max-width: 90vw;
  transform: translate(-50%, -50%);
  opacity: 0.8;
  z-index: 1;
  pointer-events: none;
}

.centerpiece-img {
  position: relative;
  width: 260px;   /* adjust to match your concept */
  height: 320px;  /* adjust to match your concept */
  object-fit: cover;
  border: 4px solid #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.7);
  z-index: 2;
  background: #181212;
}

.pagination {
  display: flex;
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
  list-style: none; /* Remove default list styling */
  padding: 10px 0; /* Adjust padding for spacing */
  margin: 0; /* Remove unnecessary margin */
  position: fixed; /* Fix at the bottom of the viewport */
  bottom: 0; /* Align to the bottom */
  left: 0;
  width: 100%; /* Full width */
  background-color: rgba(24, 19, 19, 0.95); /* Match website aesthetic */
  z-index: 100; /* Ensure it stays above other elements */
}


.pagination a {
  text-decoration: none; /* Remove underline */
  font-size: 2.5rem; /* Increase font size */
  font-family: 'Georgia', serif; /* Match website font */
  color: #fff; /* Text color */
  background-color: transparent; /* Remove background color */
  border: none; /* Remove border */
  padding: 5px 15px; /* Adjust padding for better spacing */
  margin: 0 5px; /* Adjust margin for spacing between numbers */
  border-radius: 0; /* Remove rounded corners */
  transition: color 0.3s ease; /* Smooth hover effect */
}

.pagination a:hover {
  color: #ffd700; /* Change text color on hover */
}

.pagination a.active {
  background-color: transparent; /* Remove background color */
  color: #ffd700; /* Highlight active page with gold color */
  font-weight: bold; /* Make active page bold */
  text-decoration: underline; /* Underline active page */
}

.pagination-ellipsis {
  font-size: 2rem;
  color: #fff;
  margin: 0 5px;
}


