html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  box-sizing: border-box;
  background: rgb(23, 25, 27);
  overflow-x: hidden;
}

.hero-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: url('Photos/bg.jpg') no-repeat center center;
  background-size: cover;
  z-index: -1;
}

/* Add a dark overlay above the background image */
.hero-bg::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45); /* Adjust opacity as needed */
  z-index: 1;
  pointer-events: none;
}

header {
  width: 100vw;
  top: 0;
  left: 0;
  z-index: 2;
}
.logo-img {
  height: 150px;
  width: auto;
  display: block;
  margin: 0 auto;
}

.header-grey-box {
  background: rgba(254, 241, 233, 1);
  width: 100vw;
  min-height: 180px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
}

nav {
  width: 100vw;
  /* Increase margin-top for more space from the top */
  margin-top: 10px;
}

nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav ul li {
  color: rgb(23, 25, 27);
  font-weight: 700;
  letter-spacing: 2.5px;
  font-size: 22px;
  text-transform: uppercase;
  position: relative;
  transition: opacity 0.2s;
  cursor: pointer;
  line-height: 1.2;
}

nav ul li,
.subtitle {
  /* Add animation */
  opacity: 0;
  transform: translateY(-40px);
  animation: fadeDown 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

nav ul li:nth-child(1) { animation-delay: 0.2s; }
nav ul li:nth-child(2) { animation-delay: 0.35s; }
nav ul li.logo-space { animation-delay: 0.5s; }
nav ul li:nth-child(4) { animation-delay: 0.65s; }
nav ul li:nth-child(5) { animation-delay: 0.8s; }
.subtitle { animation-delay: 0.6s; }

@keyframes fadeDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

nav ul li.logo-space {
  width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* Align to top */
  background: none;
  margin: 0 30px;
  padding: 0;
}

.logo-space {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-blank {
  display: none; /* Remove blank space so subtitle aligns with nav items */
}

.subtitle {
  color: #fff;
  font-size: 38px;
  letter-spacing: 1.5px;
  font-weight: 900;
  opacity: 1;
  font-family: 'Rammetto One', Arial, sans-serif;
  text-transform: none;
  text-shadow: 0 4px 24px rgba(0,0,0,0.45), 0 1px 0 #fff;
  display: block;
  text-align: center;
  width: auto;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  height: auto;
  line-height: 1.2;
}

.see-my-work-btn {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  background: #fff;
  color: #222;
  font-family: 'Rammetto one', Arial, sans-serif;
  font-size: 20px; /* Medium font size */
  font-weight: 700;
  letter-spacing: 2px; /* Medium letter spacing */
  padding: 16px 40px; /* Medium padding */
  border-radius: 32px; /* Medium border radius */
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  text-decoration: none;
  z-index: 100;
  opacity: 0;
  animation: popUpBtn 1s 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  transition: background 0.2s, color 0.2s;
}
.see-my-work-btn:hover {
  background: #222;
  color: #fff;
}

@keyframes popUpBtn {
  from {
    opacity: 0;
    bottom: 40px; /* Start lower */
  }
  to {
    opacity: 1;
    bottom: 90px; /* Move up to final position */
  }
}

@media (max-width: 1100px) {
  nav ul {
    gap: 30px;
  }
  nav ul li.logo-space {
    width: 220px;
  }
  .logo-blank {
    height: 40px;
  }
  .subtitle {
    font-size: 15px;
  }
}

@media (max-width: 700px) {
  nav ul {
    flex-direction: column;
    gap: 18px;
  }
  nav ul li.logo-space {
    width: 100vw;
    margin: 0;
  }
}
/* Pinterest-style gallery */
.gallery {
  column-count: 4;
  column-gap: 40px; /* More space between columns */
  padding: 0 40px 40px 40px; /* No top padding, more bottom padding */
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 40px; /* More space between rows */
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.gallery-item img {
  width: 100%;
  display: block;
  border-radius: 18px;
  transition: filter 0.3s, transform 0.3s;
}

.gallery-item:hover img {
  filter: brightness(0.30);
  transform: scale(1.04);
}

.gallery-item::after {
  content: "See post";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  letter-spacing: 1px;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-title {
    text-align: center;
    margin: 60px 0 90px 0; /* Increased top margin to move it further down */
    font-family: 'Rammetto One', 'Montserrat', Arial, sans-serif;
    font-size: 3rem;
    color: rgba(254, 241, 233, 1);
    letter-spacing: 2px;
    font-weight: 400;
    text-shadow: 0 2px 12px rgba(0,0,0,0.09);
}

@media (max-width: 1100px) {
  nav ul {
    gap: 30px;
  }
  nav ul li.logo-space {
    width: 220px;
  }
  .subtitle {
    font-size: 15px;
  }
  .gallery {
    column-count: 3;
  }
}

@media (max-width: 700px) {
  nav ul {
    flex-direction: column;
    gap: 18px;
  }
  nav ul li.logo-space {
    width: 100vw;
    margin: 0;
  }
  .gallery {
    column-count: 2;
  }
  .header-grey-box {
    padding: 18px 0 10px 0;
  }
}

@media (max-width: 500px) {
  .gallery {
    column-count: 1;
    padding: 20px 10px 10px;
  }
  .gallery-title {
    font-size: 2rem;
  }
}

/* Add at the end of style-gallery.css */
.site-footer {
  background: #181818;
  color: #fef1e9;
  text-align: center;
  padding: 32px 0 24px 0;
  font-size: 1.1rem;
  margin-top: 48px;
  border-top: 1px solid #333;
}

.site-footer .footer-link {
  color: #fef1e9;
  text-decoration: underline;
  margin: 0 8px;
  transition: color 0.2s;
}

.site-footer .footer-link:hover {
  color: #ffb47e;
}

/* ================= MOBILE STYLES ================= */
@media (max-width: 500px) {
  html, body {
    font-size: 15px;
    overflow-x: hidden;
  }
  .logo-img {
    height: 70px;
    max-width: 90vw;
  }
  .header-grey-box {
    min-height: 90px;
    padding: 0 4px;
  }
  nav ul {
    flex-direction: column;
    gap: 10px;
    padding: 0 0 8px 0;
  }
  nav ul li {
    font-size: 1rem;
    letter-spacing: 1.2px;
  }
  nav ul li.logo-space {
    width: 100%;
    margin: 0;
  }
  .gallery-title {
    font-size: 1.3rem;
    margin: 30px 0 30px 0;
    padding: 0 8px;
  }
  .gallery {
    column-count: 2;
    column-gap: 12px;
    padding: 10px 4px 10px 4px;
    max-width: 100vw;
  }
  .gallery-item {
    margin-bottom: 18px;
    border-radius: 10px;
  }
  .gallery-item img {
    border-radius: 10px;
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
  }
  .gallery-item::after {
    font-size: 1.1rem;
    padding: 0 4px;
  }
  .site-footer {
    font-size: 0.95rem;
    padding: 18px 0 12px 0;
    margin-top: 18px;
  }
  .site-footer .footer-link {
    margin: 0 4px;
  }
}
