#page {
  background-image: url("bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  margin:0;
}

#top-center-img {
  /* Center horizontally at the top */
  display: block;
  margin: 0 auto;
  
  /* Flexible sizing for all devices */
  width: 20%;
  max-width: 600px; /* Limits size on large screens */
  height: auto;     /* Maintains correct aspect ratio */
  
  /* Optional: Adds spacing from the very top of the page */
  padding-top: 20px;
  
  mix-blend-mode: multiply;
  
  z-index: 1;
}

/* Container holding the stone and its label */
.stone-wrapper {
  position: absolute; 
  top: 15%;          
  left: 50%;
  transform: translateX(-50%); 
  
  display: flex;
  flex-direction: column;
  align-items: center; /* Centers the image and text box horizontally */
  gap: 12px;           
  
  width: 100%;        /* Allows the container room to center elements */
  max-width: 400px;   /* Constrains the container size on huge displays */
  box-sizing: border-box;
}

/* Typography settings optimized for perfect centering */
.stone-text {
  margin: 0;
  width: 100%;         /* Spans the full width of the wrapper */
  text-align: center;  /* Forces text alignment to absolute center */
  font-size: 1.5rem;   
  color: #333333;      
  
  /* Fallback layout support */
  display: block;      
}

/* Mobile responsive sizing */
@media (max-width: 480px) {
  .stone-text {
    font-size: 1.2rem; 
    padding: 0 10px;   /* Prevents text from touching edge of screen if long */
  }
}


/* Sticky container at the bottom */
.bottom-button-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 16px;
  padding-bottom: 15%;
  
  /* Positions the buttons side-by-side */
  display: flex;
  gap: 12px; /* Gap between buttons */
  justify-content: center; /* Centers them on desktop screens */
  
  /* Optional: Soft background blur to make text readable */
  background: linear-gradient(to top, rgba(255,255,255,0.9), rgba(255,255,255,0));
  z-index: 999; /* Keeps buttons above all images */
}

/* Individual button styling */
.btn {
  flex: 1; /* Forces buttons to grow equally */
  max-width: 200px; /* Prevents buttons from becoming too wide on large screens */
  padding: 14px 20px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s;
}

/* Button variants */
.btn-primary {
  background-color: #555;
  color: white;
}

.btn-secondary {
  background-color: #a0a0a0;
  color: #333333;
}

/* Gallery Styles */
.gallery {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.clickable-img {
  width: 200px;
  cursor: pointer;
  transition: transform 0.2s;
}
.clickable-img:hover {
  transform: scale(1.05);
}

/* Fullscreen Overlay Styles (All Screens) */
.overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9); /* Dark background overlay */
  z-index: 9999; /* Sits on top of everything */
  justify-content: center;
  align-items: center;
}

/* Responsive Image inside Overlay */
.overlay img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain; /* Prevents image distortion */
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* Close Button Layout */
.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  user-select: none;
}

.info {
    text-align: center;
    max-width: 90%;
    padding: 0px 20px;
    font-weight: bold;
}
