body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background-color: #f4f4f2;
  color: #2f2f2f;
}

header {
  background:url(assets/images/black_angel.jpeg) no-repeat center center/cover;
  height: 100vh;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  position: relative;
}

header::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

header .content {
  position: relative;
  z-index: 1;
  padding: 0 1rem;
}

header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
}

.search-box {
  max-width: 500px;
  margin: 0 auto;
}

.search-box input {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
}

.search-box input {
  z-index: 101;
  position: relative;
  background-color: #fff;
}


nav {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  padding: 1rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

nav a {
  text-decoration: none;
  color: #2f2f2f;
  font-weight: bold;
}

nav a:hover {
  color: #6a8b5f;
}

/* Menu button (hidden on desktop) */
.menu-button {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  margin-left: auto;
}

/* Navigation menu */
.navbar ul {
  list-style: none;
  display: flex;
  gap: 15px;
  padding: 0;
}

/* Mobile menu hidden */
@media (max-width: 768px) {
  .menu-button {
    display: block;
  }

  .navbar ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: white;
    text-align: center;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
  }

  .navbar ul.active {
    display: flex;
  }
}
  
.section {
  padding: 30px 20px;
  background: rgba(255,255,255,0.9);
  color: #333;
  max-width: 1100px;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.section .container {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

#zasluzeni {
  background: url('assets/images/zasl_back.jpeg') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  color: white; /* optional: make text readable on dark images */
  padding: 4rem 1rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 768px) {
  #zasluzeni {
    background-attachment: scroll; /* disables fixed background on mobile */
    background-position: 57% center;
  }
}

.contact {
  background: url('assets/images/contact2.jpeg') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  color: white; /* optional: make text readable on dark images */
  padding: 4rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact a {
  all: unset;
}

@media (max-width: 768px) {
  .contact {
    background-attachment: scroll; /* disables fixed background on mobile */
    background-position: 57% center;
  }
}

/* RESULTS CONTAINER */

#results-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
  max-height: 80vh; /* ⬆️ Make it taller relative to screen */
  overflow-y: auto;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-top: 1rem;
  z-index: 100;
  position: relative;
}



.person-card {
  background: #fff;
  color: #2f2f2f;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 280px; /* ✅ restrict width */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease;
}

.person-card:hover {
  transform: translateY(-5px);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 1rem;
  text-align: center;
}

.person-card h3 {
  margin: 0.5rem 0;
  font-size: 1.5rem;
}

.person-card p {
  font-size: 0.85rem;
}

/* Responsive layout */
@media (max-width: 900px) {
  .person-card {
    max-width: 45%;
  }
}

@media (max-width: 600px) {
  .person-card {
    max-width: 100%;
  }

  .card-content h3 {
    font-size: 1.25rem;
  }

  .card-content p {
    font-size: 0.9rem;
  }
}


.view-profile-btn {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: #6a8b5f;
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.view-profile-btn:hover {
  background-color: #59714d;
}

.profile-link-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: #6a8b5f;
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.3s ease;
  text-align: center;
}

.profile-link-btn:hover {
  background-color: #59714d;
}


@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.about-video-wrapper {
  margin-top: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.about-video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}


footer {
  background-color: #eaeaea;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  header h1 {
    font-size: 2rem;
  }

  .search-box input {
    font-size: 0.9rem;
  }
}


/* ---------------------------
   Profile Page Styles
---------------------------- */
#profile-container {
  max-width: 600px;
  margin: 3rem auto;
  background-color: rgb(255, 255, 255,0.8);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  text-align: center;
}

#profile-container img {
  width: 100%;
  max-height: 350px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 1.5rem;
}

#profile-container h1 {
  font-size: 2rem;
  font-family: 'Playfair Display', serif;
  margin-bottom: 1rem;
}

#profile-container p {
  font-size: 1rem;
  margin: 0.5rem 0;
}

.back-button {
  display: inline-block;
  margin-top: 2rem;
  background-color: #6a8b5f;
  color: white;
  padding: 0.5rem 1.2rem;
  text-decoration: none;
  font-weight: bold;
  border-radius: 10px;
  transition: background 0.3s ease;
}

.back-button:hover {
  background-color: #59714d;
}

.back-button {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.7rem 1.5rem;
  background-color: #6a8b5f;
  color: #ffffff;
  text-decoration: none;
  border-radius: 12px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.back-button:hover {
  background-color: #59714d;
}

.profileSwiper {
  width: 100%;
  max-width: 700px;
  max-height: 90vh; /* optional: controls vertical overflow */
  margin: 2rem auto 1rem auto;
  overflow: hidden;
  position: relative;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}


.profileSwiper .swiper-slide img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background-color: white;
  border-radius: 16px;
  display: block;
  margin: 0 auto;
}



.swiper-button-next,
.swiper-button-prev {
  color: white;
}


/* Lightbox Modal */
.image-lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  cursor: default;
}


.image-lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

/* Lightbox Navigation Buttons (Next/Prev) */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 1001;
  color: #333;
  border-radius: 8px;
}

#lightbox-prev {
  left: 20px;
}

#lightbox-next {
  right: 20px;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  font-size: 2.5rem;
  color: red;
  cursor: pointer;
  z-index: 1001;
  font-weight: bold;
}

.lightbox-close-btn:hover {
  color: darkred;
}

/* Responsive Fixes */
@media (max-width: 600px) {
  .lightbox-nav {
    font-size: 1.5rem;
    padding: 0.4rem 0.8rem;
  }

  .lightbox-close-btn {
    font-size: 2rem;
    top: 15px;
    right: 15px;
  }
}


@media (max-width: 600px) {
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
}


@media (max-width: 600px) {
  .search-box {
    padding: 0 1rem;
  }

  .search-box input {
    font-size: 1rem;
    padding: 0.7rem;
    border-radius: 6px;
    box-sizing: border-box;
  }
}



@media (max-width: 768px) {
  .menu-button {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: white;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem 0;
  }

  .nav-links.active {
    display: flex;
  }
}

#memory-form-container {
  margin-top: 2rem;
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

#memory-form-container h3 {
  margin-bottom: 0.5rem;
  font-family: 'Playfair Display', serif;
}

#memory-input {
  width: 100%;
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
  resize: vertical;
  box-sizing: border-box;
}

#submit-memory {
  margin-top: 0.75rem;
  background-color: #6a8b5f;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

#submit-memory:hover {
  background-color: #59714d;
}


/* --------------------------------
    GALLERY
  --------------------------------*/

#gallery {
  padding: 3rem 1rem;
  background: #f9f9f9;
  text-align: center;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}


/*.main-image img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: opacity 0.5s ease;
}

.thumbnails {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.thumbnails .thumb {
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  transition: transform 0.3s ease, opacity 0.3s ease;
  flex-shrink: 0;
}

.thumbnails .thumb:hover,
.thumbnails .thumb.active {
  opacity: 1;
  transform: scale(1.05);
  border: 2px solid #6a8b5f;
}

.gallery-nav-btn {
  background: rgba(255, 255, 255, 0.8);
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  color: #333;
  border-radius: 8px;
  transition: background 0.3s ease;
}

#prev-btn {
  left: 10px;
}

#next-btn {
  right: 10px;
}*/

.gallery-container img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: zoom-in;
}

.gallery-container img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}


/* Lightbox Modal for fullscreen image */
.image-modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.95);
  justify-content: center;
  align-items: center;
}

.image-modal img {
  max-width: 95vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(255,255,255,0.2);
  object-fit: contain;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 3rem;
  font-weight: bold;
  cursor: pointer;
}

.close-modal:hover {
  color: #ccc;
}

.person-highlight a {
  color: #6a8b5f;
  text-decoration: none;
  font-weight: bold;
}

.person-highlight a:hover {
  text-decoration: underline;
}


/*--------------------------------------
CANDLES 
-------------------------------------*/

#candles-section {
  margin-top: 3rem;
  text-align: center;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(255,255,255,0.8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

#light-candle-btn {
  background-color: rgb(255, 255, 255,0.5);
  color: black;
  padding: 0.6rem 1.4rem;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

#light-candle-btn:hover {
  background-color: #59714d;
}

#candle-display {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

#candle-display img {
  width: 50px;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

#candle-display img:hover {
  transform: scale(1.08);
}

.candle-quote {
  margin-top: 2rem;
  font-style: italic;
  color: #444;
  font-size: 0.95rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

#memory-list div {
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
}

