body {
  margin: 0;
  padding: 0;
  background-image: url('../templates/background/page2.png');
}
.container {
  width: 100dvw;
  height: 100dvh;
  max-width: none;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background-image: url('../templates/background/page2-1.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: black; /* fills remaining space if aspect ratio doesn't match */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  }
  .font-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}
.font-image {
  position: absolute;
  width: min(6vw, 60px);
  height: auto;
  display: block;
  pointer-events: auto;
  
  /* Calculate position based on background-size: contain behavior */
  /* This positions the logo at the top-left of the visible background image */
  top: calc(50% - min(50vh, 50vw) + 2%);
  left: calc(58.5% - min(50vh, 50vw) + 2%);
}
.custom-heading {
  color: #ffffff; /*margin bottom is missing*/
  top: -30%;
  text-transform: uppercase;
  position: relative; /* Add this for absolute child positioning */
  margin-bottom: 50px; /* Space for the Lucida text */
  text-align: center; 
  margin-top: 10px;
  z-index: 30;
}
.font-photobooth {
  font-family: 'UoqMunThenKhung', serif;
  display: block;
  font-size: 1.9rem;
  position: relative;
  top: auto;
}
.font-lucida{
  font-family: 'Lucida Handwriting Std', cursive;
  font-size: 1.7rem;
  font-weight: 100;
  display: block;
  color: red;
  text-transform: none;
  position: relative;
  top: 30%; /* ✅ push slightly further below Photobooth */
  left: 50%;
  transform: translate(-50%, -30px) rotate(-10deg); /* ✅ more vertical space */
  transform-origin: center;
  line-height: 1;
  white-space: nowrap;
}
.font-lucida .first-letter {
  font-size: 2.4rem;
  font-weight: 100;
  display: inline;
  letter-spacing: -2px;  
  transform: translateY(10px);
}
.all-options {
  position: absolute;
  top: 57%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50vmin; /* Responsive square based on viewport */
  max-width: 250px;
  z-index: 20;
}
.all-options ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 3px; /* No gap for seamless grid */
  padding: 0;
  margin: 0;
  list-style: none;
  height: 100%;
  aspect-ratio: 1/1; /* Perfect square container */
}
.all-options li {
  overflow: hidden; /* Ensures images don't bleed outside */
  transition: all 0.3s ease;
  position: relative; /* For pseudo-element */
}
.all-options li:hover {
  transform: scale(1.02);
  z-index: 25; /* Bring hovered item above others */
}
/* Optional: Add overlay effect on hover */
.layout-link:hover::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
}
.layout-link {
  display: block;
  width: 100%;
  height: 100%;
  border: none; /* Remove any default borders */
}

.layout-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Fill containers without distortion */
  display: block;
}
.under-construction {
  position: absolute;
  top: 50%; /* Adjust as needed */
  left: 50%; /* Adjust as needed */
  transform: translate(-50%, -50%); /* Centers the text */
  background-color: rgb(220, 220, 220, 0.1);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: bold;
  z-index: 10; /* Ensures the text is on top of the image */
}
/* Mobile adjustments */
@media (max-width: 768px) {
  .container {
    background-size: contain;
  }
  .font-image { /* The logo brand */
    width: min(30vw, 60px);
    /* Adjust positioning for mobile container changes */
    top: calc(43% - min(45vh, 45vw) + 4%);
    left: calc(62% - min(45vh, 45vw) + 4%);
  }
  .all-options {
    width: 85vmin;
    max-width: 250px;
    top: 55%;
    gap: 0.8rem;
  }
   .all-options li {
    transition: none; /* Remove transitions that might cause scaling */
  }
  
  .all-options li:hover {
    transform: none; /* Explicitly disable any hover scaling */
  }
}
@media (max-width: 480px) {
  .container {
    width: 100vw;
    height: 100vh;
    max-width: none;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .font-image {
    /* Consistent dynamic sizing */
    width: min(30vw, 60px);
    /* Positioning for fullscreen mobile */
    top: calc(22% - min(40vh, 40vw) + 5%);
    left: calc(43% - min(40vh, 40vw) + 3%);
  }
   .all-options {
    width: 80vmin;
  }
   .all-options li {
    transition: none; /* Remove transitions that might cause scaling */
  }
  
  .all-options li:hover {
    transform: none; /* Explicitly disable any hover scaling */
  }
}
