@charset "utf-8";

body {
  margin: 10px;
  font-family: Arial, sans-serif;
  padding-bottom: 10px; /* Additional padding for footer */
}

/* ----- Navigation ----- */

.mobile-title {
  display: none; /* Hidden on desktop */
  color: #F4F4EF;
  font-weight: none;
  font-size: 1em;
}

.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  background-color: #3F2847;
  color: #F4F4EF;
  z-index: 1000;
  display: flex;
  padding: 10px 0;
  justify-content: center;
}

.nav-container {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 980px;
  padding: 0 20px;
  font-size: 1em;
}

.nav-links {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-grow: 1;
}

.nav-links a {
  color: #F4F4EF;
  text-decoration: none;
  font-weight: normal;
}

.nav-links a.active {
  font-weight: bold;
  color: #7F7296;
}

.nav-links a:hover {
  text-decoration: none;
  color: #7F7296;
}

/* ----- Hamburger Navigation ----- */
.hamburger {
  display: none; /* Hidden on desktop */
  flex-direction: column;
  margin-left: auto;
  gap: 5px;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: #F4F4EF;
}

/* ----- Mobile ----- */
@media screen and (max-width: 768px) {
  .mobile-title {
    display: block; /* Show title */
    margin-right: auto;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 10px;
    background-color: #3F2847;
    position: absolute;
    top: 50px;
    right: 10px;
    width: 110px;
    padding: 10px;
    border-radius: 10px;
  }

  .nav-links.show {
    display: flex;
    text-align: center;
  }

  .nav-links a {
    padding: 10px 0;
  }

  .hamburger {
    display: flex !important; /* Show the hamburger navigation */
  }
}


/* ----- Image Headers ----- */

.header-images {
  width: 100%;
  max-width: 980px;
  margin: 10px auto 0;
  margin-top: 20px;
  display: block;
  opacity: 1; /* Default opacity */
  transition: opacity 0.5s ease; /* Smooth transition */
}

.header-images.fade-out {
  opacity: 0; /* Faded out state */
}

/* ----- Sections ----- */

h1 {
  font-size: 1.8em;
  color: #3F2847;
  text-align: center;
}

h2 {
  font-size: 1em;
  color: #3F2847;
  text-align: center;
}

p {
  font-size: 1.2em;
  color: #181818;
  text-align: left;
  max-width: 930px;
  margin: 10px auto;
  margin-bottom: 30px;
}

blockquote {
  color: #7F7296;
  margin: 20px auto;
  max-width: 800px;
  padding: 20px;
  border-left: 3px solid #3F2847;
}

hr {
  border: none;
  height: 1px;
  background-color: #7F7296;
  margin: 10px auto 0;
  width: 100%;
  max-width: 780px;  
}

/* ----- Polaroid Pictures Overlay ----- */

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999; /* Ensures the overlay is on top of everything */
}

.overlay img {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
}

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

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

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

/* ----- Socials ----- */

.instagram {
  display: block;
  margin: 30px auto;
  width: 140px;
  height: auto;
}

/* ----- Footer ----- */

.footer {
  position: relative;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  background-color: #3F2847;
  color: #F4F4EF;
  z-index: 1000;
  display: flex;
  padding: 10px 0;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 980px;
  padding: 0 20px;
  font-size: .8em;
}

.footer-link {
  color: #F4F4EF;
  text-decoration: none;
  font-weight: normal;
}

.footer-link:hover {
  color: #7F7296;
}

/* ----- Image Gallery ----- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  max-width: 830px;
  margin: 0 auto;
}

.gallery-item {
  width: 200px;
  height: 200px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item:hover {
  transform: scale(1.05);
}

/* ----- Image Gallery Lightbox ----- */

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000; /* Ensures the lightbox is on top of everything */
  display: none; /* Hidden by default */
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
}

.close-lightbox {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: #fff;
  color: #000;
  padding: 5px 10px;
  cursor: pointer;
  border: none;
  font-size: 1.5em;
}