.collage-container {
    position: relative;
  }
  
  /* File name overlay (caption) */
.file-name-overlay {
    position: absolute;
    bottom: 0.5em;
    left: 0.5em;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 0.5em;
    font-size: 0.8em;
    border-radius: 0.3em;
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    line-height: 1.2;
  }

  .nsfw-lock-overlay {
    bottom: auto;
    top: 0.5em;
    left: 0.5em;
    right: auto;
  }
  
  /* Navigation arrow buttons */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 0.7em;
    cursor: pointer;
    font-size: 1em;
    border-radius: 50%;
    user-select: none;
 }
.nav-left {
    left: 0.5em;
}
.nav-right {
    right: 0.5em;
}
.techno-title{
  margin-bottom: 0.5em;
}
.photo-section {
  margin-bottom: 2em;
}


/*photo collage*/
.photo-collage {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    justify-content: center;
}
.collage-image {
    height: 20em;
    object-fit: cover;
    cursor: pointer; /* Makes the pointer appear as a clickable hand */
    max-width: 100%;
}
.collage-title {
    text-align: center;
    font-size: 2em;
    margin-bottom: 0.2em; 
}

/* status when verify button is disabled */
#verify-btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* screen-reader only text helper */
.sr-only {
  position: absolute !important;
  height: 1em; width: 1em;
  overflow: hidden;
  clip: rect(1em,1em,1em,1em);
  white-space: nowrap;
  border: 0; padding: 0; margin: -1em;
}


/* light gray boxed background for the latest-uploads section */
.photo-section.latest-uploads {
  background: #7f7f7f87;     /* subtle gray */
  margin-bottom: 1.5rem;   /* tighten spacing slightly */
  padding-bottom: 0.5em;
  padding-top: 0.5em;
}

/* keep the title readable on the gray background */
.photo-section.latest-uploads .techno-title {
  margin-top: 0;
}

/* a bit of breathing room between title and collage */
.photo-section.latest-uploads .photo-collage {
  margin-top: 0.75rem;
}

/* Floating Stats button and panel */
#stats-btn {
  position: fixed;
  top: 3.1rem; /* moved below Access Full Res button */
  right: 1rem;
  background: #111;
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 0.4rem;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  z-index: 1;
  box-shadow: 0 6px 18px rgba(0,0,0,0.32);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
#stats-panel {
  position: fixed;
  top: 5.5rem; /* sits below the Access + Stats buttons */
  right: 1rem;
  max-width: calc(100vw - 2rem);
  display: none; /* hidden by default; shown when aria-hidden="false" */
  flex-direction: column;
  max-height: calc(100vh - 4rem);
  padding: .6rem;
  border: 1px solid rgba(255,255,255,0.06);
  background: #0f0f10;
  color: #eaeaea;
  box-shadow: 0 12px 36px rgba(0,0,0,0.14);
  border-radius: 0.4rem;
  z-index: 1;
  overflow: auto;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

/* show panel when explicitly opened */
#stats-panel[aria-hidden="false"] {
  display: flex;
}
#stats-panel h3 { margin: 0 0 0.25rem 0; font-size: 1rem; }
#stats-panel ul { margin: 0.25rem 0 0 1.1rem; padding: 0; }
#stats-panel p { margin: 0.25rem 0; }
#stats-panel li { margin: 0.15rem 0; }
#stats-panel .subcats { margin-left: 0.6rem; margin-top: 0.15rem; padding-left: 0.6rem; }
#stats-panel .subcats li { margin: 0.08rem 0; font-size: 0.95em; }


/* Theme: dark is the default for the site controls */
#stats-btn {
  background: #111; /* deep dark button */
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.32);
}
#stats-panel {
  background: #0f0f10; /* dark panel */
  color: #eaeaea;
  border-color: rgba(255,255,255,0.06);
}

/* Light theme overrides when user prefers light mode */
@media (prefers-color-scheme: light) {
  #stats-btn {
    background: #fff;
    color: #222;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  #stats-panel {
    background: #fff;
    color: #222;
    border-color: #ddd;
    box-shadow: 0 12px 36px rgba(0,0,0,0.14);
  }
}

/* Access Full Res button: fixed near the stats button */
#access-fullres-btn {
  position: fixed;
  top: 0.6rem; /* appear above the stats button */
  right: 1rem; /* align with stats button */
  background: #111;
  color: #fff;
  padding: 0.35rem 0.6rem;
  border-radius: 0.4rem;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  z-index: 3; /* sit above the stats control */
  box-shadow: 0 6px 18px rgba(0,0,0,0.32);
}


@media (prefers-color-scheme: light) {
  #access-fullres-btn { background: #fff; color: #222; border: 1px solid #ddd; }
}


/* Access-code dialog */
#access-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
}
#access-dialog {
  position: relative;
  width: 92%;
  max-width: 560px;
  padding: 1rem;
  border-radius: 8px;
  background: #0f0f10;
}
#access-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}
#access-dialog .access-dialog-heading { 
  margin: 0 0 0.5rem; font-weight: 600; 
}
#access-dialog .access-code-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
#access-code { 
  flex: 1; 
  padding: 0.4rem; 
}
#access-dialog .access-admin-link { 
  margin-top: 0.5rem; 
  font-size: 0.7em; 
  color: #818181; 
}
#access-dialog .access-admin-link a { 
  color: inherit; 
}
#access-error { 
  color: #900; 
  margin-top: 0.5rem; 
}
#access-error-inline { 
  color: #900; 
  margin-top: 0.5rem; 
}
#contact-request { 
  max-width: 560px; 
  margin: 0.5rem auto; 
}
#contact-request label { 
  display: block; 
  margin: 0.25rem 0; 
}
#contact-request label span:first-child { 
  font-weight: 600; 
}
#contact-request input, #contact-request textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 0.4rem;
  margin: 0.2rem 0;
}
#contact-request .contact-actions { 
  display: flex; 
  gap: 0.5rem; 
  align-items: center; 
}
#contact-request .contact-status { 
  margin-left: 0.5rem; 
}
#contact-request .contact-request-heading { 
  margin: 0.25rem 0 1rem; 
}
#contact-request.contact-request-divider {
  margin: 0.5rem 0 0;
  padding-top: 0.5rem;
  border-top: 0.15em solid rgba(255,255,255,0.05);
}
#contact-request.contact-request-divider label { 
  font-weight: 600; 
}
#contact-request.contact-request-divider label span {
  font-weight: 400;
  font-size: 0.85em;
  color: rgb(207, 207, 207);
  margin-left: 0.4rem;
}
@media (prefers-color-scheme: light) {
  #access-modal {
    background: rgba(255, 255, 255, 0.6);
  }
  #access-dialog {
    background: #fff;
  }
  #contact-request.contact-request-divider {
    margin: 0.5rem 0 0;
    padding-top: 0.5rem;
    border-top: 0.15em solid rgba(0, 0, 0, 0.05);
  }
}