:root {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #000;
  color: #f5f5f5;
}

a {
  color: #f5f5f5;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: none; /* Remove underline globally */
}

/* Global page fade-in */
.fade-in-page {
  opacity: 0;
  animation: pageFadeIn 0.6s ease-out forwards;
}

@keyframes pageFadeIn {
  to {
    opacity: 1;
  }
}

/* Slower fade-in just for the splash page */
@keyframes splashFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Per-theme full-screen background (applies to all screen sizes) */

.theme-main {
  flex: 1;
  /* header + footer height so the main area fills the screen */
  /* min-height: calc(100vh - 95px); */

  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  /* Center the theme panel in the available space */
  display: flex;
  justify-content: center;   /* horizontal centering */
  align-items: center;       /* vertical centering */

  padding: 3rem 1.5rem 3rem;

  position: relative;
  overflow: hidden;
}

/* Soft gradient at the bottom of theme pages */
.theme-main::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40px;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.0),
    rgba(0, 0, 0, 0.35)
  );
  pointer-events: none;
}

/* Theme heading */
.theme-main .page-heading {
  text-align: center;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 2rem 0;      /* space under heading */
}

.theme-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}

.theme-table td {
  border: none;
  padding: 0.4rem 0.75rem 0.4rem 0;
  vertical-align: top;
}

.theme-name {
  font-weight: 600;
  white-space: nowrap;
  padding-right: 1.5rem;
}

.theme-name a {
  color: #b0b0b0;          /* medium gray */
  text-decoration: none;
  transition: color 0.2s ease;
}

.theme-name a:hover,
.theme-name a:focus {
  color: #e0e0e0;          /* lighter gray on hover */
}

.theme-description {
  max-width: 48rem; /* optional: prevents super-long lines */
}






/* Full-page centering for intro slide (quote/poem card) */
.intro-page-main {
  flex: 1;
  min-height: calc(100vh - 95px);  /* header + footer allowance */
  display: flex;
  align-items: center;             /* vertical center */
  justify-content: center;         /* horizontal center */
  padding: 0;                      /* no side padding pushing it off-center */
}

/* --- Layout shell ------------------------------------------------------- */

html,
body {
  height: 100%;
}

.site-main {
  padding: 1.5rem 1.25rem 2.5rem;
  max-width: 96vw;
  margin: 0 auto;
}

/* Theme pages: background should span the full viewport width */
.theme-main {
  max-width: 100vw;   /* override .site-main */
  width: 100vw;
  margin: 0;          /* no centering on the main; the inner content will be centered */
}

.theme-main-inner {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;

  /* Center the heading + thumb grid inside the background */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 140px); /* Revert to previous height */
}

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 2.5rem; /* Add padding to prevent content overlap with the fixed footer */
}

/* Header + footer chrome */
.site-header,
.site-footer {
  padding: 0.9rem 1.5rem;      /* slightly taller bar */
  border-bottom: none;         /* we’ll give each its own rim line */

  /* fade-in animation for header & footer */
  opacity: 0;
  animation: pageFadeIn 0.8s ease-out forwards;
}

/* Top black bar with title, nav, and camera icon */
.site-header {
  background: #000;
  color: #f5f5f5;
  font-size: 0.9rem;
  position: relative;          /* anchor for camera button */

  /* bright rim + soft shadow */
  border-bottom: 2px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.7);
}


/* Site title on the first line */
.site-title {
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin: 0;
  color: #aaaaaa; /* Medium-light gray */
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.site-title a:hover,
.site-title a:focus {
  color: #ffffff; /* Bright white on hover */
  text-decoration: none;
}








/* Top navigation bar under the site title */
.site-nav {
  display: flex;               /* horizontal row */
  align-items: center;         /* vertically center items */
  justify-content: flex-start; /* keep links left-aligned */
  margin-top: 0.4rem;
  font-size: 0.9rem;
}

/* Base nav links: medium gray by default */
.site-nav a {
  margin-right: 0.75rem;
  color: #aaaaaa;              /* medium gray */
  text-decoration: none;
  opacity: 0.8;                /* a bit softer than pure gray */
  transition:
    color 0.2s ease,
    opacity 0.2s ease,
    transform 0.15s ease;      /* tiny lift on hover */
}

/* Hover / focus on normal links */
.site-nav a:hover,
.site-nav a:focus {
  color: #f5f5f5;              /* brighten on hover */
  opacity: 1;
  transform: translateY(-1px); /* very subtle lift */
}

/* The active page (About / Themes / Gallery / Contact) */
.site-nav a.active {
  color: #ffffff;              /* brightest white for current page */
  opacity: 1;
  cursor: default;
  pointer-events: none;        /* don’t “re-click” the page you’re on */
}

/* Optional: don’t lift the active item on hover */
.site-nav a.active:hover,
.site-nav a.active:focus {
  transform: none;
}







/* 404 page styling --------------------------------------- */
/* 404 page styling */
.error-page {
  max-width: 640px;
  margin: 4rem auto 6rem auto;
  text-align: center;
  color: #dddddd;
}

.error-text {
  margin: 0.5rem 0;
  color: #cccccc;   /* light gray */
}

/* Camera link + image */
.error-camera-link {
  display: inline-block;
  margin-top: 2rem;
}

.error-camera-link img {
  max-width: 260px;      /* adjust to taste */
  height: auto;
  display: block;
  margin: 0 auto;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.35);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.error-camera-link:hover img,
.error-camera-link:focus img {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.6);
  opacity: 0.95;
}

/* Line under the camera */
.error-note {
  margin-top: 1.5rem;
  color: #aaaaaa;   /* medium gray */
  font-size: 0.95rem;
}










/* Theme name link shown on single-photo pages */
.photo-theme-link {
  position: absolute;          /* Position the theme name independently */
  left: 50%;                   /* Move it to the center horizontally */
  transform: translateX(-50%); /* Center it exactly */
  text-align: center;          /* Center the text within its container */
}

.photo-theme-link a {
  color: #aaaaaa;              /* Match the nav link color */
  text-decoration: none;
}







.photo-theme-link a:hover,
.photo-theme-link a:focus {
  color: #dddddd;               /* lighter gray on hover */
}




.site-footer {
  position: fixed; /* Keep footer fixed at the bottom */
  bottom: 0;
  left: 0;
  width: 100%;
  background: #000; /* Ensure footer has a black background */
  z-index: 1000; /* Ensure it stays above other content */

  border-top: 2px solid rgba(255, 255, 255, 0.22);  /* brighter rim */
  border-bottom: none;
  margin-top: auto;
  font-size: 0.8rem;
  opacity: 0.7;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.7);       /* soft shadow above footer */
  color: #888888
}

/* Main content area stays centered and below the header */
.site-main {
  padding: 1.5rem 1.25rem 2.5rem;
  max-width: 96vw;
  margin: 0 auto;
}

/* Small Agfa camera icon in the top-right of the header */
.header-camera-link {
  position: absolute;
  right: 2rem;                 /* move further left from the edge */
  top: 0.85rem;                /* nudge slightly down to stay centered */
  display: block;
  text-align: center; /* Center the camera photo */
}

.header-camera-link img {
  width: 60px;                /* larger – roughly 3/4 of the header height */
  height: auto;
  display: block;
  margin: auto; /* Center the photo horizontally */
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.75));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.header-camera-link:hover img,
.header-camera-link:focus img {
  transform: none; /* Prevent image movement */
  text-decoration: none !important; /* Force removal of underline */
}






/* --- Splash page -------------------------------------------------------- */

.splash-body {
  background: #000;
  color: #f5f5f5;
  margin: 0;

  /* fade in slowly */
  opacity: 0;
  animation: splashFadeIn 3s ease-out forwards;
}

/* Full-page clickable link */
.splash-link {
  display: block;
  min-height: 100vh;
  color: inherit;
  cursor: pointer;  /* Pointer to indicate clickability */
}

.splash {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.splash-image-wrap {
  width: 100%;
  max-width: 1200px;
  height: fit-content;        /* Shrinks to image + padding height, fixing vertical extension (changed from max-height: 100vh) */
  padding: 10px;              /* 10px space between image and border (match photo; set to 0 if no gap) */
  border: 1px solid #505050;  /* Thin medium gray border base (#808080; adjust hex) */
  background: #000;           /* Black fill for padded area */
  border-radius: 4px;         /* Optional rounding (match photo) */
  box-sizing: border-box;     /* Includes padding/border in size */
  transition: border-color 0.3s ease; /* Smooth hover change */
}

.splash-image-wrap:hover {
  border-color: #CCCCCC;      /* Turns to light gray on hover (#CCCCCC; adjust) */
}

.splash-image-wrap img {
  display: block;
  width: 100%;
  height: auto;               /* Proportional scaling, no forced 100vh stretch (changed to auto for fit-content height) */
  object-fit: contain;        /* Keep proportions, scale down if needed */
  border: none;               /* No border on image */
}

.splash-text h1 {
  margin: 0 0 0.5rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.splash-text p {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  opacity: 0.8;
}

.splash-enter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #f5f5f5;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

.splash-enter-arrow {
  font-size: 1.1rem;
}

/*-----------------------------------------------------------------------------------*/
/*--------------------------- OPTIONAL: Fade-in animation ---------------------------*/
/* You can delete this entire block if you ever decide you don't want the fade-in.   */
/*-----------------------------------------------------------------------------------*/
@keyframes fadeInSoft {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}











/* Subtle fade-up for panels (About / Contact) */
.fade-up {
  opacity: 0;
  transform: translateY(8px);
  animation: fadeUp 0.7s ease-out forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}




/* Global page fade-in helper */
.fade-in-page {
  opacity: 0;
  animation: pageFadeIn 0.8s ease-out forwards;
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}


/* Fade in theme cards on gallery page */
/*.theme-card {
  animation: fadeInSoft 0.6s ease-out both;
}
*/

/*-----------------------------------------------------------------------------------*/
/*--------------------------- END OPTIONAL: Fade-in animation -----------------------*/
/*-----------------------------------------------------------------------------------*/










/* --- Gallery: theme cards + About/Contact row -------------------------- */

.gallery-main {
  flex: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 4rem 1.5rem 2.5rem;
}

.gallery-inner {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
}




/* Container for all theme rows on the Gallery page */
.theme-grid {
  display: flex;
  flex-direction: column;   /* stack rows vertically */
  align-items: center;      /* center each row */
  gap: 2.5rem;              /* vertical space between rows */
}

/* One row of theme cards (up to MAX_THEMES_PER_ROW per row) */
.theme-row {
  display: flex;
  justify-content: center;
  gap: 2rem;                /* horizontal spacing between cards */
}

/* Each theme card: fixed width; child elements use full width */
.theme-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  width: 200px;    /* matches thumb width */
  padding: 0.4rem; /* slightly larger hit area, feels more “premium” */

  /* fade-in for gallery cards */
  animation: fadeInSoft 0.6s ease-out both;

  /* smooth hover transitions */
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}



/* Thumbnail with drop shadow */
.theme-thumb {
  width: 100%;
  height: 200px;
  overflow: hidden;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6);  /* shadow behind thumb */
}

.theme-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover: lift the card's image slightly and deepen the shadow */
.theme-card:hover .theme-thumb img {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.7);
}

/* White 60% transparent strip for theme title */
.theme-title-box {
  width: 100%;
  margin-top: 0.5rem;        /* gap under thumbnail */
  background: rgba(200,200,200, 0.4);  /* 40% gray */
  color: #000;
  text-align: center;
  padding: 0.35rem 0.5rem;
}

.theme-title {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}






.page-link-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.page-card {
  border: 1px solid #444;
  border-radius: 999px;
  padding: 0.4rem 1.2rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}




/* --- Theme thumbnails (inside a theme) --------------------------------- */

.page-heading {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}


/* Gallery main heading: center it above the theme grid */
.gallery-main .page-heading {
  text-align: center;
  margin: 0 0 2rem 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}


/* Grid of thumbnails for photos in a theme */
.thumb-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;               /* your chosen spacing */
  margin-top: 1rem;

  /* NEW: cap at 5 thumbnails per row on wide screens */
  max-width: calc(5 * 120px + 4 * 2rem); /* use the width below! */
  margin-left: auto;
  margin-right: auto;
}

/* Thumbnails inside theme pages */
.thumb {
  display: inline-block;
  width: 120px;              /* or whatever size you want */
  height: 120px;
  overflow: hidden;
  opacity: 0;                /* start hidden */
  transform: translateY(10px);
  animation: thumbFadeIn 0.5s ease-out forwards;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover lift + shadow on theme-page thumbnails */
.thumb:hover img {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
}

/* Staggered delays so thumbs don't all pop in at once */
.thumb:nth-child(1)  { animation-delay: 0.05s; }
.thumb:nth-child(2)  { animation-delay: 0.10s; }
.thumb:nth-child(3)  { animation-delay: 0.15s; }
.thumb:nth-child(4)  { animation-delay: 0.20s; }
.thumb:nth-child(5)  { animation-delay: 0.25s; }
.thumb:nth-child(6)  { animation-delay: 0.30s; }
.thumb:nth-child(7)  { animation-delay: 0.35s; }
.thumb:nth-child(8)  { animation-delay: 0.40s; }
.thumb:nth-child(9)  { animation-delay: 0.45s; }
.thumb:nth-child(10) { animation-delay: 0.50s; }
.thumb:nth-child(11) { animation-delay: 0.55s; }
.thumb:nth-child(12) { animation-delay: 0.60s; }

@keyframes thumbFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}









/* ------------------------------------------------------------------------ */
/* --- Single photo page -------------------------------------------------- */

.photo-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;    
  align-items: center;  
  gap: 0;
  padding: 0 6rem;
  min-height: auto; 
  overflow: hidden;
}
















.photo-nav.photo-nav-left {
  position: absolute;         /* Positions arrow on left edge */
  left: 1rem;                 /* Positions inside left padding, outside bordered box (adjust to 0.5rem for tighter) */
  top: 50%;
  transform: translateY(-50%); /* Exact centering */
  /* Your existing arrow styles, e.g., font-size, color */
}

.photo-nav.photo-nav-right {
  position: absolute;         /* Positions arrow on right edge */
  right: 1rem;                /* Positions inside right padding, outside bordered box (adjust to 0.5rem for tighter) */
  top: 50%;                   /* Vertical center */
  transform: translateY(-50%); /* Exact centering */
  /* Your existing arrow styles */
}

.photo-image {
  display: block;             /* Block for natural fit, no inline gaps */
  max-width: calc(70vw + 20px); /* Matches image 70vw cap + 10px left/right padding, preventing extension */
  height: fit-content;        /* Keeps vertical tight to image + padding */
  padding: 10px;              /* Equal space on all sides */
  border: 1px solid #444444;  /* Thin med gray border */
  background: #000;           /* Black fill for padded area */
  border-radius: 4px;         /* Optional rounding */
  margin: 0 auto;             /* Centers the frame */
  box-sizing: border-box;     /* Includes padding/border in max-width calc */
  transition: border-color 0.3s ease; /* Smooth color change on hover */
}

.photo-image:hover {
  border-color: #999999;      /* Light gray on hover (adjust hex, e.g., #A9A9A9 for subtler shift) */
  cursor: pointer;            /* Changes cursor to hand, reinforcing clickability */
}


.photo-image img {
  display: block;             /* Tight fit */
  width: 100%;                /* Fills the wrapper's calculated max-width */
  max-width: 100%;            /* Ensures no overflow */
  max-height: 70vh;           /* Your height cap */
  height: auto;               /* Preserves aspect ratio */
  border: none;               /* No border on image */
  object-fit: contain;        /* Fits without cropping */
  
  /* Fade-in effect */ 
  opacity: 0;
  transition: opacity 0.5s ease;
}

.photo-nav {
  width: 6rem;               /* was 3.5rem – wider side columns pushes arrows out */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Loaded state for fade-in completion */
.photo-image img.loaded {
  opacity: 1;
}

/* Ensure footer remains stationary and photo size is constrained */
/*
.photo-main {
  height: calc(100vh - 140px);
  display: flex;
  flex-direction: column;
  justify-content: center;  
  align-items: center;    
  margin: 0;
  padding: 0;
}
*/
.photo-main {
  min-height: calc(100vh - 140px);
  display: flex;
  flex-direction: column;
  justify-content: center;   /* center vertically */
  align-items: center;       /* center horizontally */
}

/* ------------------------------------------------------------ */




/* Circular prev/next arrows used on photo pages and intro slide */
.triangle-button {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(70, 70, 70, 0.9);  /* softer gray */
  background: rgba(0, 0, 0, 0.75);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #666;                               /* muted gray icon */
  text-decoration: none;
  font-size: 1.2rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

.triangle-button:hover,
.triangle-button:focus {
  background: #f5f5f5;
  color: #111;                                  /* dark triangle on white */
  border-color: #f5f5f5;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.95);
}




/* Metadata block */
.photo-caption {
  margin-top: 1.5rem;    /* closer to the image */
  text-align: center;
  color: #a0a0a0;
  font-size: 1rem;
  display: block;
}

.photo-title {
  font-size: 1.15rem;
  margin-bottom: 1.0rem;
  color: #d0d0d0;  /* light gray */
}

.photo-meta-line {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  color: #a0a0a0;  /* medium gray */
}

.photo-meta-line.small {
  font-size: 0.9rem;
  color: #a0a0a0;
}

/* Extra information line: same style, but with extra top margin */
.photo-meta-line.info-extra {
  font-size: 0.9rem;
  color: #a0a0a0;
  margin-top: 1.0rem;   /* "blank line" before */
}

/* Photographer line: last line under the photo */
.photo-meta-line.photographer-line {
  margin-top: 0.75rem;   /* a bit of space above the name */
  color: #777777;        /* darker gray than the other meta lines */
  font-style: normal;    /* Remove italics */
}

/* --- About page: full-screen photo + translucent white box ------------- */

.about-main {
  position: relative;
  min-height: calc(100vh - 120px); /* header + footer allowance */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 2rem 1.5rem;
}

.about-panel {
  max-width: 700px;
  width: 100%;
  background: rgba(255, 255, 255, 0.6); /* 80% opaque white */
  color: #000;                           /* black text */
  padding: 1.75rem 2.0rem;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.about-panel h1 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1.0rem;
}



.about-panel p {
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
  font-size: 0.95rem;
}


/* About panel links: normal + visited should look the same */
.about-panel a,
.about-panel a:visited {
  color: #111111;             /* same as body text */
  text-decoration: none;
  border-bottom: 1px dotted rgba(0, 0, 0, 0.25);
  padding-bottom: 1px;
}

/* Hover / focus state */
.about-panel a:hover,
.about-panel a:focus,
.about-panel a:visited:hover,
.about-panel a:visited:focus {
  color: #222222;
  border-bottom-style: solid;
  border-bottom-color: rgba(0, 0, 0, 0.4);
}





/* --- Text pages (About / Contact) -------------------------------------- */

.page-body {
  max-width: 700px;
  line-height: 1.6;
  font-size: 0.95rem;
}


/* Hide honeypot field */
.hidden {
  display: none;
}


/* Contact form */

.contact-form {
  margin-top: 1.25rem;
  max-width: 500px;
}

.contact-form label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.4rem 0.5rem;
  margin-top: 0.3rem;
  border-radius: 4px;
  border: 1px solid #444;
  background: #050505;
  color: #f5f5f5;
}

.contact-form button {
  margin-top: 0.75rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid #000000; /* black outline */
  background: transparent;
  color: #000000;             /* black text */
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.contact-form button:hover,
.contact-form button:focus {
  background: #000000;
  color: #ffffff;
  transform: translateY(-1px);                  /* subtle lift */
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);   /* soft shadow */
}

.contact-message {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #a0a0a0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-message.visible {
  opacity: 1;
}

/* ===== THEME INTRO SLIDE (poem panel) =============================== */

.photo-intro {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem;
  min-height: min(70vh, 800px);
  overflow: visible;   /* don't clip the glow */
}

/* Light intro card with soft gray / white glow */
.photo-intro-panel {
  width: min(60vw, 720px);
  max-width: 720px;

  background: #e3e3e3;  /* light card */
  border-radius: 18px;
  padding: 2.5rem 3rem;

  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),        /* thin dark edge */
    0 0 30px rgba(255, 255, 255, 0.85);   /* visible white/gray glow */
}

/* Smooth glow change on hover */
.photo-intro-panel {
  transition: box-shadow 0.35s ease;
}

.photo-intro-panel:hover {
    box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),        /* thin dark edge */
    0 0 35px rgba(255, 255, 255, 1.0);   /* visible white/gray glow */
}



/* Center intro slide vertically and horizontally between header/footer */
.photo-intro-page .site-main {
  /* min-height: calc(100vh - 130px); */   /* header + footer estimate */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Intro text styling */
.photo-intro-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #111111;      /* was #f0f0f0 */
  text-align: center;
}

/* Optional fade-up animation */
.fade-up {
  opacity: 0;
  transform: translateY(8px);
  animation: fadeUpSoft 0.6s ease-out forwards;
}

@keyframes fadeUpSoft {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Responsive adjustments -------------------------------------------- */

@media (max-width: 720px) {
  .site-main {
    padding: 1.25rem 1rem 2rem;
  }




  /* Single photo layout stacks vertically on small screens */
  .photo-wrapper {
    flex-direction: column;
  }

  .photo-nav {
    order: -1;
  }

  .gallery-main {
    padding: 1.5rem 1rem;
  }




  .theme-card {
    width: 140px;           /* smaller cards on phones */
  }

  /* Smaller theme cards in gallery */
  .theme-thumb {
    height: 140px;
  }

  /* Smaller thumbs inside a theme: 100x100 */
  .thumb {
    width: 100px;
    height: 100px;
  }

  .theme-grid {
    gap: 1.5rem;
  }

  .thumb-grid {
    gap: 1.2rem;
  }

.about-main {
    padding: 1.5rem 1rem;
  }

  .about-panel {
    padding: 1.25rem 1.4rem;
  }

}






















/* -------------------- LIGHTBOX (CSS-only, no JS) -------------------- */

.lightbox-overlay {
  position: fixed;
  inset: 0;                               /* cover entire viewport */
  background: rgba(0, 0, 0, 0.9);
  display: none;                          /* shown only when :target */
  align-items: center;                    /* vertical centering */
  justify-content: center;                /* horizontal centering */
  z-index: 9999;

  /* allow scrolling if image+glow is taller than viewport */
  overflow-y: auto;

  /* subtle blur behind overlay */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.lightbox-overlay:target {
  display: flex;
}

/* Base lightbox container: centers the image stack */
.lightbox-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;                    /* center image + optional caption */
  justify-content: center;
  margin: 0 auto;
  max-width: 100vw;
  max-height: 100vh;
}

/* Wrap image + any caption as a vertical stack */
.lightbox-image-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

/* The actual full-screen image element */
.lightbox-image {
  display: block;

  /* Let the browser choose the largest size that fits
     within BOTH constraints, leaving room for the glow. */
  max-width: calc(95vw - 40px);
  max-height: calc(95vh - 40px);
  width: auto;
  height: auto;
  object-fit: contain;

  box-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
  margin: 0 auto;
}

/* Hide the tiny white "x" text from the old close link,
   but keep the new circle close button working */
.lightbox-close {
  font-size: 0;
  color: transparent;
}

/* Agfa icon lightbox: smaller, more contained layout */
#lightbox-agfa .lightbox-inner {
  max-width: 640px;   /* or 600–700px to taste */
  max-height: none;   /* let content define height */
}

#lightbox-agfa .lightbox-image {
  max-width: 100%;    /* fit within the 640px container */
  max-height: 60vh;   /* don’t get too tall on small screens */
}

/* On very short viewports, align to top with padding so user can scroll */
@media (max-height: 700px) {
  .lightbox-overlay {
    align-items: flex-start;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .lightbox-inner {
    margin: 0 auto;
  }
}






















/* ------------------------------------------------------------------ */
/* Intro slide (optional text-as-first-photo)                         */
/* ------------------------------------------------------------------ */

.intro-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  overflow: visible;
}

.intro-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 3.5rem;       /* space between left arrow, card, right arrow */
  overflow: visible;
}




.intro-card {
  max-width: 640px;
  background: #e3e3e3;   /* light panel */
  border-radius: 24px;
  padding: 3rem 3.25rem;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.25),        /* subtle dark outline */
    0 0 70px rgba(255, 255, 255, 0.70);   /* strong white/gray halo */
}



/* Multiple intro variants: only the "active" one is shown */
.intro-variant {
  display: none;
}

.intro-variant.is-active {
  display: block;
}



.intro-card .intro-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #111111;      /* was #f0f0f0 */
  text-align: center;
}

/* Headings inside intro markdown */
.intro-card h1,
.intro-card h2,
.intro-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Paragraph + lists */
.intro-card p {
  margin: 0.4rem 0;
}

.intro-card ul {
  margin: 0.7rem 0 0;
  padding-left: 1.2rem;
  text-align: left;
}

/* --- Layout safety: keep footer visible on all pages --- */

/* Make the whole page a flex column: header, main, footer */
.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Ensure footer remains visible and fix layout issues */
.site-main,
.theme-main {
  flex: 1;
  min-height: 0; /* Ensure consistent overrides */
  overflow: auto; /* Prevent content clipping */
}

.theme-main-inner {
  min-height: unset; /* Remove conflicting height constraints */
}

.lightbox-caption {
  margin-top: 2rem; /* Move the caption further down below the image */
  text-align: center; /* Center the text */
  color: #a0a0a0; /* Medium gray */
  font-size: 1rem; /* Adjust font size */
  display: block; /* Ensure it behaves as a block element */
  border: none; /* Remove debug border */
  background: none; /* Remove debug background */
  margin-top: unset; /* Reset unnecessary margin adjustments */
  position: static; /* Revert positioning to default */
}

.lightbox-caption-container {
    margin-top: 40px; /* Add spacing below the camera image */
    text-align: center; /* Center the container */
    position: relative; /* Ensure independent positioning */
    padding-left: 20px; /* Add padding to the left */
    padding-right: 20px; /* Add padding to the right */
}

.lightbox-close-circle {
    position: absolute;
    top: 10px; /* Position 10px from the top */
    right: 10px; /* Position 10px to the right of the photo */
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 999px;
    border: 1px solid #666666;
    background: rgba(0, 0, 0, 0.30);
    color: #777777;
    font-size: 1.5rem;
    line-height: 2.3rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    z-index: 10;
}

.lightbox-close-circle:hover {
    color: #dddddd;
    border-color: #dddddd;
}

}





/* Re-assert photo page height so content can be vertically centered */
/*
.site-main.photo-main {
  min-height: calc(100vh - 140px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;    
}
*/