:root{
  /* Festive palette: Christmas greens, reds and warm gold accents */
  --bg:#0b2012;
  --fg:#fff;
  --accent:#e6e6e6;
  --nav-bg: rgba(0,0,0,0.35);
  --light-colors: #ff4d4d, #ffd24d, #4dff7a, #4dd0ff, #d84dff;

  /* layered background visuals (used by html,body background)
     Added warm gold highlights with subtle evergreen-to-red gradient for a seasonal feel */
  --bg-image: radial-gradient(1200px 600px at 12% 12%, rgba(255,210,77,0.06), transparent 8%),
               radial-gradient(1000px 500px at 88% 78%, rgba(255,77,77,0.05), transparent 10%),
               linear-gradient(180deg, rgba(6,52,28,1) 0%, rgba(10,30,18,0.92) 50%, rgba(40,8,12,0.85) 100%),
               repeating-radial-gradient(circle at 20% 10%, rgba(255,255,255,0.02) 0 2px, transparent 2px 12px);
  /* slightly brighter snow layer for contrast on colored background */
  --snow-overlay: linear-gradient(rgba(255,255,255,0.04), rgba(255,255,255,0.00));

  /* festive bokeh with red, gold and green tints */
  --bokeh: radial-gradient(circle at 18% 18%, rgba(255,210,77,0.10), transparent 12%),
          radial-gradient(circle at 80% 60%, rgba(255,77,77,0.08), transparent 10%),
          radial-gradient(circle at 60% 22%, rgba(77,208,122,0.06), transparent 10%);
}
*{box-sizing:border-box}
html,body{height:100%;margin:0;background:var(--bg-image), var(--bokeh), var(--snow-overlay);background-blend-mode:normal,screen,screen;color:var(--fg);font-family:system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial}
.hero{
  /* collapsed hero to eliminate large top gap so images sit right under instructions */
  height:8vh;
  min-height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:6px;
  gap:6px;
  background:linear-gradient( to bottom, rgba(0,0,0,0.05), rgba(0,0,0,0.08) );
  position:relative;
}

/* Christmas lights title — placed in normal flow above photos so it does not cover them */
.title-lights{
  position:relative;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
  margin:6px auto;
  max-width:96%;
  pointer-events:auto;
  padding:6px 8px;
  border-radius:10px;
  background:linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.06));
  box-shadow:0 8px 22px rgba(0,0,0,0.45);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index:10; /* keep above background but below interactive elements */
}

/* each word looks like a bulb */
.title-lights .word{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 14px;
  height:72px;
  border-radius:10px;
  font-weight:900;
  font-size:34px;
  color:#ffd24d; /* bright yellow text for title words */
  letter-spacing:2px;
  transform:translateZ(0);
  box-shadow: 0 6px 18px rgba(0,0,0,0.55);
  background: radial-gradient(circle at 30% 25%, #fff 0%, rgba(255,255,255,0.9) 6%, rgba(255,255,255,0.0) 40%), linear-gradient(180deg,#222,#111);
  transition:filter 180ms ease, transform 180ms ease;
  position:relative;
  margin:0 6px;
}

/* visible glow around each lit bulb via pseudo element */
.title-lights .word::after{
  content:'';
  position:absolute;
  inset:0;
  border-radius:6px;
  filter: blur(8px) saturate(1.1);
  opacity:0.85;
  z-index:-1;
}

/* alternate bulb colors for festive effect */
.title-lights .word:nth-child(odd)::after{ background: radial-gradient(circle at 50% 40%, rgba(255,77,77,0.95) 0%, rgba(255,77,77,0.12) 30%, transparent 60%); }
.title-lights .word:nth-child(3n+2)::after{ background: radial-gradient(circle at 50% 40%, rgba(255,210,77,0.95) 0%, rgba(255,210,77,0.12) 30%, transparent 60%); }
.title-lights .word:nth-child(3n+3)::after{ background: radial-gradient(circle at 50% 40%, rgba(77,255,122,0.95) 0%, rgba(77,255,122,0.12) 30%, transparent 60%); }
.title-lights .word:nth-child(5n+4)::after{ background: radial-gradient(circle at 50% 40%, rgba(77,208,255,0.95) 0%, rgba(77,208,255,0.12) 30%, transparent 60%); }

/* subtle pulsation on hover/tap */
.title-lights .word:hover,
.title-lights .word:active{
  transform:translateY(-4px) scale(1.03);
  filter:brightness(1.05) saturate(1.1);
}

/* ensure title scales on smaller screens */
@media (max-width:880px){
  .title-lights{ top:12px; padding:6px; gap:5px; }
  .title-lights .word{ height:34px; font-size:18px; padding:0 8px; }
}
@media (max-width:520px){
  .title-lights{ top:10px; padding:6px; gap:4px; max-width:94%; left:50%; transform:translateX(-50%); }
  .title-lights .word{ height:30px; font-size:15px; padding:0 6px; margin:0 4px; }
}

/* Carousel{...} and other rules remain unchanged */
/* ... existing code ... */

/* prominent instruction below intro paragraph */
.big-instruction{
  max-width:96%;
  margin:6px auto 4px;
  padding:8px 12px;
  text-align:center;
  font-weight:900;
  letter-spacing:2px;
  color:#ffefc6;
  background: linear-gradient(180deg, rgba(255,210,77,0.06), rgba(255,210,77,0.02));
  border-radius:10px;
  font-size: clamp(14px, 4vw, 30px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.36);
  text-transform:uppercase;
  -webkit-user-select:none;
  user-select:none;
}

/* Prominent large heading for the group description */
.group-title{
  display:block;
  width:100%;
  text-align:center;
  color:#fff7e6;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:2px;
  margin:8px 0 12px;
  font-size: clamp(22px, 6.5vw, 48px);
  line-height:1.01;
  padding:6px 10px;
  background: linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.06));
  border-radius:10px;
  box-shadow: 0 8px 26px rgba(0,0,0,0.45);
}

@media (max-width:520px){
  .group-title{ font-size: clamp(18px, 8.5vw, 32px); padding:8px; margin:6px 0 10px; }
}

/* small tweak for very narrow screens so it never overflows */
@media (max-width:420px){
  .big-instruction{ font-size:18px; padding:8px 10px; }
}

.carousel{
  position:relative;
  width:100%;
  max-width:1200px;
  /* keep a large square area while preserving responsive limits */
  aspect-ratio: 1 / 1;
  height: auto;
  max-height:62vh;
  overflow:hidden;
  border-radius:10px;
  box-shadow:0 8px 30px rgba(0,0,0,0.6);
  background:#111;
}
.slides{
  display:flex;
  height:100%;
  align-items:stretch;
  transition:transform 450ms cubic-bezier(.2,.9,.3,1);
  will-change:transform;
}
.slide{
  flex:0 0 100%;
  /* force each image to be square using aspect-ratio so all photos render as squares */
  aspect-ratio: 1 / 1;
  width:100%;
  height:auto;
  object-fit:cover;
  display:block;
  -webkit-user-drag:none;
  user-select:none;
}
.nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:48px;
  height:48px;
  border-radius:999px;
  border:0;
  background:var(--nav-bg);
  color:var(--fg);
  font-size:26px;
  line-height:48px;
  text-align:center;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  backdrop-filter: blur(6px);
}
.nav:active{transform:translateY(-50%) scale(0.98)}
.prev{left:12px}
.next{right:12px}

.dots{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  bottom:12px;
  display:flex;
  gap:8px;
  align-items:center;
}
.dot{
  width:10px;
  height:10px;
  border-radius:999px;
  background:rgba(255,255,255,0.35);
  cursor:pointer;
}
.dot[aria-selected="true"]{
  background:var(--fg);
  box-shadow:0 2px 8px rgba(0,0,0,0.5);
}

/* Grid of all photos shown together */
.photo-grid{
  width:100%;
  max-width:1200px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
  border-radius:10px;
  overflow:visible;
  box-shadow:0 8px 30px rgba(0,0,0,0.6);
  background:linear-gradient(180deg,#0b0c0d, #111);
  padding:8px;
  position:relative;
  z-index:20; /* ensure grid is beneath the title overlay */
}
/* flip card container */
.photo-item{
  position:relative;
  aspect-ratio: 1 / 1;
  overflow:visible;
  border-radius:8px;
  background:#222;
  perspective: 1000px; /* enable 3D space for flip */
}
.card{
  width:100%;
  height:100%;
  position:relative;
  transform-style: preserve-3d;
  transition: transform 500ms cubic-bezier(.2,.9,.3,1);
  border-radius:8px;
}
.photo-item.flipped .card{
  transform: rotateY(180deg);
}
/* front and back faces */
.card-front, .card-back{
  position:absolute;
  inset:0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius:8px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.card-front img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  -webkit-user-drag:none;
}
.card-front figcaption{
  position:absolute;
  top:8px;
  left:8px;
  background:rgba(0,0,0,0.55);
  color:var(--fg);
  padding:6px 8px;
  border-radius:999px;
  font-weight:600;
  font-size:14px;
  min-width:34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 3px 10px rgba(0,0,0,0.6);
}

/* back face styling shows keywords */
.card-back{
  transform: rotateY(180deg);
  background: linear-gradient(180deg,#ffd24d,#ffefc6);
  padding:18px;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.15);
  color:#000;
  text-transform:uppercase;
  font-weight:800;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:clamp(12px,2.6vw,16px);
  text-align:center;
  padding-left:14px;
  padding-right:14px;
}

/* Larger caption badge for recently added photos */
.photo-item.recent .card-front figcaption{
  font-size:18px;
  min-width:44px;
  height:44px;
  padding:8px 10px;
  top:10px;
  left:10px;
  box-shadow:0 6px 18px rgba(0,0,0,0.6);
}

/* Larger caption badge for recently added photos */
.photo-item.recent figcaption{
  font-size:18px;
  min-width:44px;
  height:44px;
  padding:8px 10px;
  top:10px;
  left:10px;
  box-shadow:0 6px 18px rgba(0,0,0,0.6);
}

/* Keep main content visible but not forcing scroll on common mobile heights */
.content{
  /* let the content flow naturally so the grid is followed by the questions */
  height:auto;
  min-height:80px;
  display:block;
  color:var(--accent);
  font-size:14px;
  padding:12px;
}

/* Touch-friendly hit targets */
button.nav{min-width:44px;min-height:44px}

/* Responsive tweaks */
@media (max-width:880px){
  .photo-grid{grid-template-columns: repeat(2, 1fr); padding:6px}
}
@media (max-width:520px){
  .hero{height:66vh;min-height:420px;padding:6px}
  .photo-grid{grid-template-columns: 1fr; gap:8px}
}

/* recently uploaded photos placed below grid as square thumbnails */
.top-photos{
  display:flex;
  gap:10px;
  justify-content:center;
  align-items:stretch;
  padding:10px;
  max-width:1200px;
  margin:12px auto;
}
.photo-item.small{
  width:120px;
  aspect-ratio:1/1;
  border-radius:8px;
  overflow:hidden;
  flex:0 0 auto;
  background:#222;
  box-shadow:0 6px 18px rgba(0,0,0,0.5);
}
.photo-item.small img{ width:100%; height:100%; object-fit:cover; display:block; }
@media (max-width:880px){
  .top-photos{ gap:8px; }
  .photo-item.small{ width:100px; }
}
@media (max-width:520px){
  .top-photos{ gap:8px; padding:6px; }
  .photo-item.small{ width:44vw; max-width:160px; }
}

/* Festive large Christmas-letter styling for the questions at the bottom */
.questions{
  width:100%;
  max-width:1200px;
  margin:16px auto 28px;
  padding:6px;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:25;
}
/* Enabled numbering and adjusted padding so numbers are visible */
.questions ol{
  list-style: decimal;
  padding-left:20px;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:14px;
  width:100%;
  align-items:center;
}
.questions li{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 22px;
  min-height:64px;
  border-radius:12px;
  font-weight:900;
  font-size:clamp(14px,3.2vw,28px); /* reduced responsive size for questions */
  color:#000; /* question text set to black */
  background: radial-gradient(circle at 30% 25%, #fff 0%, rgba(255,255,255,0.92) 6%, rgba(255,255,255,0) 40%), linear-gradient(180deg,#ffefc6,#ffd24d); /* warm bulb look */
  letter-spacing:2px;
  text-transform:uppercase;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45), 0 0 26px rgba(255,210,77,0.12);
  white-space:nowrap; /* prevent words from splitting across lines */
  transform:translateZ(0);
  transition:transform 160ms ease, filter 160ms ease;
  border:2px solid rgba(255,255,255,0.08);
  width:fit-content;
  padding-right:26px;
  padding-left:26px;
}

/* subtle glow pseudo element */
.questions li::after{
  content:'';
  position:absolute;
  display:block;
  height:100%;
  width:100%;
  border-radius:12px;
  filter:blur(12px) saturate(1.05);
  z-index:-1;
  pointer-events:none;
  opacity:0.8;
  background: linear-gradient(180deg, rgba(255,210,77,0.25), rgba(255,77,77,0.06));
}

/* hover / tap feedback */
.questions li:active,
.questions li:hover{
  transform:translateY(-4px) scale(1.02);
  filter:brightness(1.04) saturate(1.05);
}

/* ensure the numbers remain visible (preserve ol numbering) */
.questions li::marker{
  font-weight:900;
  font-size:0.85em;
  color:#000;
}

/* better spacing for narrow screens */
@media (max-width:880px){
  .questions li{ font-size:clamp(12px,4.2vw,24px); padding:10px 16px; min-height:48px; }
}
@media (max-width:520px){
  .questions{ margin:10px auto 18px; padding:4px; }
  .questions ol{ gap:10px; }
  .questions li{ font-size:clamp(11px,5.6vw,20px); padding:8px 12px; min-height:40px; }
}