/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Container for centering content on wider screens */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Body Styles */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #222;
  color: #fff;
  line-height: 1.6;
  padding: 20px;
  background-color: #222;
  background-image: url('../images/background-bible-verse.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* Header Styles (full width) */
header {
  background-color: #ff671f;
  padding: 20px;
  text-align: center;
  border: 2px dashed #fff;
  border-radius: 12px;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.2), 0 4px 10px rgba(0,0,0,0.4);

}
header h1 {
  font-size: 2.5em;
  color: #fff;
}

/* Description Section */
.description {
  margin-top: 25px;
  margin-bottom: 30px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
.description h2 {
  font-size: 1.8em;
  margin-bottom: 10px;
}
.description p {
  font-size: 1em;
}

/* Blueprint Container */
.blueprint-container {
  position: relative;
  margin: 0 auto;
}
.blueprint {
  width: 100%;
  height: auto;
  display: block;
  border: 3px solid rgba(255, 255, 255, 0.75);
  border-radius: 12px;

}
@media (min-width: 1024px) {
  .blueprint-container {
    max-width: 1024px;
  }
}

/* Camera Icon Styling */
.camera-icon {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  padding: 5px;
}
.camera-icon img {
  width: 20px;
  height: 20px;
}

/* Lightbox Overlay */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* Lightbox Content */
.lightbox-content {
  position: relative;
  background: rgba(34, 34, 34, 0.35);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 20px;
  border: 5px solid rgba(255, 255, 255, .75);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  max-width: 90%;
  max-height: 90vh; /* limit height of lightbox on desktop */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  align-items: center; /* <-- this ensures everything is centered horizontally */
  text-align: center;
}

.lightbox-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  max-height: 70vh;
  object-fit: contain;
}
.lightbox-content h3 {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 10px;
}
.lightbox-content p {
  font-size: 1em;
  overflow-y: auto;
  flex-grow: 1;
  /*margin-top: 10px;*/
}


/* Lightbox Navigation Arrows */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;      /* fixed width */
  height: 40px;     /* fixed height */
  line-height: 40px; /* centers the text vertically */
  text-align: center;
  font-size: 1.5em;
  color: #fff;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;  /* ensures a perfect circle */
  user-select: none;
  z-index: 1010;
  display: none;
}
.arrow.left {
  left: 10px;
}
.arrow.right {
  right: 10px;
}

/* Lightbox Indicator */
.indicator {
  position: absolute;
  bottom: 16px;  /* Adjust how far up from the image bottom */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 10;
}
.indicator .dot {
  width: 10px;
  height: 10px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  cursor: pointer;
}
.indicator .dot.active {
  background: #ff671f;
}

.image-wrapper {
  position: relative;
  display: inline-block;
}

#lightbox-image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Responsive Styles for Lightbox and Text */
@media (max-width: 768px) {
  header h1 {
    font-size: 2em;
  }
  .description h2 {
    font-size: 1.5em;
  }
  .camera-icon img {
    width: 15px;
    height: 15px;
  }
  .lightbox-content {
    padding: 15px;
  }
}
@media (max-width: 480px) {
  header h1 {
    font-size: 1.8em;
  }
  .description h2 {
    font-size: 1.3em;
  }
  .camera-icon img {
    width: 12px;
    height: 12px;
  }
}

/* ------------------- */
/* Cards Container */
.cards-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

/* Card Styles */
.card {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  background-color: #333;
  border: 3px solid rgba(255, 255, 255, 0.75);
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s;
}
.card:hover {
  transform: translateY(-5px);
}
.card-header {
  padding: 20px;
  background-color: #444;
  border-bottom: 0px solid rgba(255, 255, 255, 0.75);
}

/* Card Content (collapsed state) */
.card-content {
  max-height: 0;
  padding: 0 20px;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

/* Card Content (expanded state) */
.card.active .card-content {
  max-height: 1000px;
  padding: 20px;
}

/* Card Content Text and Image */
.card-content p {
  margin-bottom: 10px;
}
.card-content img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  display: block;
  margin-bottom: 10px;
}