/* ===========================
   RESET & BASE STYLES
=========================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
  font-family: 'Helvetica Neue', sans-serif;
  background: #f9f9f9;
  color: #222;
  overflow-x: hidden;
}

/* ===========================
   HEADER
=========================== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #fff;
  border-bottom: 1px solid #ddd;
  flex-wrap: wrap;
  font-family: "BBH Sans Bogle", sans-serif;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 2px;
}
.logo {
  font-size: 1.8rem;
  font-weight: bold;
}
.baby {
  display: none;
}
nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}
nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}
nav a:hover {
  color: #000;
}
.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

/* ===========================
   RESPONSIVE HEADER
=========================== */
@media (max-width: 780px) {
  .hamburger {
    display: block;
  }
  nav {
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
  }
  nav ul {
    display: none;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
  }
  nav ul.active {
    display: flex;
  }
  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
@media (max-width: 480px) {
  .logo {
    display: none;
  }
  .baby {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
  }
}

/* ===========================
   MASONRY GALLERY
=========================== */
.gallery {
  column-count: 5;
  column-gap: 1rem;
  padding: 2rem;
}
@media (max-width: 1024px) {
  .gallery {
    column-count: 2;
  }
}
@media (max-width: 600px) {
  .gallery {
    column-count: 1;
  }
}

/* ===========================
   PHOTO BLOCK
=========================== */
.photo {
  position: relative;
  break-inside: avoid;
  margin-bottom: 1rem;
  width: 100%;
  overflow: hidden;
}
.photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.photo:hover img {
  transform: scale(1.05);
}

/* ===========================
   OVERLAY
=========================== */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.photo:hover .overlay {
  opacity: 1;
}

/* ===========================
   VIDEO GALLERY
=========================== */
.video-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  padding: 2rem;
}
.video-block {
  position: relative;
}
.video-block video {
  width: 100%;
  height: auto;
  display: block;
}
.video-block .overlay {
  margin-top: 0.5rem;
  font-size: 1rem;
  text-align: center;
  color: #333;
}

/* ===========================
   ABOUT + CONTACT + SOCIAL
=========================== */
.about-section,
.contact-section,
.social-section {
  max-width: 600px;
  margin: 2rem auto;
  padding: 0 1rem;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.contact-form button {
  padding: 0.75rem;
  font-size: 1rem;
  background-color: #000;
  color: #fff;
  border: none;
  cursor: pointer;
}

.social-links a {
  margin: 0 0.5rem;
  text-decoration: none;
  font-weight: 500;
  color: #000;
  margin-top: 1rem;
}

i{
  font-size: 2em;
  margin-top: 1em;
}
.success-message {
  background-color: #d4edda;
  color: #155724;
  padding: 1rem;
  margin: 1rem auto;
  max-width: 600px;
  border-radius: 4px;
  text-align: center;
  font-weight: 500;
}
.fail-message {
  background-color: #edd4d4;
  color: #571515;
  padding: 1rem;
  margin: 1rem auto;
  max-width: 600px;
  border-radius: 4px;
  text-align: center;
  font-weight: 500;
}

/* ===========================
   PHOTOS PAGE STYLES
=========================== */
.photos-page main {
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

.photos-page .full-gallery {
  display: flex;
  flex-direction: row;
  height: 88vh;
  width: 100vw;
  overflow: hidden;
}

.photos-page .full-gallery .photo {
  width: calc(20% - 1.6rem);
  margin: 0.75rem;
}

.photos-page .full-gallery .photo img {
  height: 100%;
  object-fit: cover;
}

/* Responsive stacking for photos page */
@media (max-width: 1160px) {
  .photos-page .full-gallery {
    flex-direction: column;
    align-items: center;
    height: auto;
  }

  .photos-page .full-gallery .photo {
    width: 100%;
    max-width: 85vw;
    height: 15vh;
    margin-bottom: 1rem;
    margin-top: 1rem;
  }

  .photos-page .overlay {
    opacity: 1;
    background: none;
  }

  .photos-page .overlay span {
    background-color: #000;
    color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 1rem;
    white-space: nowrap;
  }
}
/* ===========================
   FOOTER
=========================== */
.site-footer {
  background-color: #fff;
  border-top: 1px solid #ddd;
  padding: 1rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #333;
  font-family: "BBH Sans Bogle", sans-serif;
  letter-spacing: 1px;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.footer-links {
  margin: 1rem 0;
}

.footer-links a {
  margin: 0 0.5rem;
  text-decoration: none;
  font-weight: 500;
  color: #000;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-note a {
  color: #0077cc;
  text-decoration: none;
  font-weight: 600;
}

.footer-note a:hover {
  text-decoration: underline;
}
/* ===========================
   VIEW PAGE STYLES
=========================== */
.image-viewer {
  text-align: center;
  padding: 2rem;
}
.image-viewer img {
  margin-top: 1em;
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.image-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 90vw;
  margin: 0 auto;
  width: fit-content;
}

.image-header h1 {
  font-size: 1.5rem;
  margin: 0;
  font-weight: 600;
}

.close-button {
  font-size: 1.5rem;
  text-decoration: none;
  color: #333;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.25rem 0.85rem;
  border-radius: 50%;
  margin-left: 1em;
  font-weight: bold;
  transition: background 0.2s ease;
}
.close-button:hover {
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
}
