* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Helvetica Neue', sans-serif;
  background: linear-gradient(160deg, #fdfcfb 0%, #e2e1e0 100%);
  color: #333;
  padding: 2rem;
  max-width: 1600px;
  margin: 0 auto;

  transition: background 0.6s ease, color 0.6s ease;
}

body * {
  transition: background 0.6s ease, color 0.6s ease, border-color 0.6s ease;
}

header {
  text-align: center;
  margin-bottom: 3rem;
}

header h1 {
  font-size: 2.5rem;
  letter-spacing: 0.05em;
  font-weight: 300;
  color: rgb(19, 128, 201);
}

.subtitle {
  font-size: 1.1rem;
  color: #888;
  margin-top: 0.5rem;
}

.gallery-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.batch {
  padding-left: 1rem;
  border-left: 4px solid rgba(19, 128, 201, 0.384);
  margin-bottom: 2rem;
}

.batch h2 {
  color: rgb(19, 128, 201);
  font-weight: 400;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
}

.image-grid img {
  height: 220px;
  width: auto;
  max-width: 100%;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

.image-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 30px rgba(255, 0, 234, 0.1);
}

/* Fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to   { opacity: 1; transform: scale(1); }
}

/* Lightbox container */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: flex; /* always flex, hide with .hidden */
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.85);
  z-index: 999999 !important; /* 🌟 make it queen of the stack */
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease-in-out;
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 0.5rem;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.lightbox-content figcaption {
  color: #ccc;
  font-size: 0.9rem;
  text-align: center;
}

/* Close button */
.lightbox #close {
  position: absolute;
  top: 1rem;
  right: 2rem;
  font-size: 2.2rem;
  color: #fff;
  cursor: pointer;
  z-index: 1001;
}

/* Hidden by default */
.hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.show {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* Soft fade-in */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive grid adjustments */
@media (min-width: 1600px) {
  .image-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }

  .image-grid img {
    max-height: 320px;
  }
}

@media (max-width: 768px) {
  .image-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }

  .image-grid img {
    max-height: 180px;
  }
}

.image-grid img:hover {
  transform: scale(1.035);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  filter: brightness(1.05);
  transition: all 0.3s ease;
}

footer {
  text-align: center;
  font-size: 0.95rem;
  color: #666;
  background: #e2e1e0;
  padding: 2rem;
  margin-top: 5rem;
  border-top: 1px solid #ddd;
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 #eee;
}

footer p {
  margin: 0;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.blue-heart {
  color: rgb(19, 128, 201);
  font-size: 1.2em;
  margin: 0 0.2em;
}

.lightbox-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  opacity: 0.7;
  padding: 0 1rem;
  user-select: none;
}

#prev-arrow {
  left: 2%;
}

#next-arrow {
  right: 2%;
}

.lightbox-arrow:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.05);
}

body::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 400px;
  background-image: url("/files/images/logo/Logo2/LF.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.15;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}


body.darkmode::before {
  background-image: url("/files/images/logo/Logo2/LF_lens_white.png");
  opacity: 0.04;
}

.image-grid img {
  transition: transform 0.2s ease, box-shadow 0.1s ease;
}

.image-grid img:hover {
  transform: scale(1.08);
}

/* New styles for LensFlow Gallery 2.0 */

.batch-desc {
  font-size: 1rem;
  color: #666;
  margin: 0.5rem 0 1rem 0;
  font-weight: 300;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  background: rgba(19, 128, 201, 0.15);
  color: #137fc9;
  font-size: 0.85rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-weight: 500;
  user-select: none;
}

.tag:hover {
  filter: brightness(1.2) saturate(1.1);
  transform: scale(1.05);
  transition: all 0.3s ease;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.expand-btn {
  background: rgba(19, 128, 201, 0.12);
  border: none;
  color: #137fc9;
  font-size: 1rem;
  padding: 0.6rem 1.2rem;
  margin-top: 1rem;
  border-radius: 1.5rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.expand-btn:hover {
  background: rgba(19, 128, 201, 0.25);
  transform: scale(1.05);
}

.hidden-image {
  display: none;
}

/* Keeping previous styles */

/* Fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to   { opacity: 1; transform: scale(1); }
}

/* Other styles remain unchanged */

/* 🌸 Fade-in effect for expanded images */
.fade-in {
  opacity: 0;
  transform: scale(0.98);
  animation: fadeInExpanded 0.6s ease forwards;
  animation-delay: var(--fade-delay, 0s);
}

@keyframes fadeInExpanded {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 🌸 Fade-out animation for Expand Gallery Button */
.fade-out {
  animation: fadeOutButton 0.5s ease forwards;
}

@keyframes fadeOutButton {
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}


/* 🌸 Signature Section Heading */
.signature-section {
  text-align: center;
  margin-bottom: 2rem;
  margin-top: 4rem;
}

.signature-title {
  font-size: 2.2rem;
  font-weight: 300;
  color: rgb(19, 128, 201);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.signature-subtitle {
  font-size: 1.1rem;
  color: #666;
  font-weight: 300;
  letter-spacing: 0.02em;
}


/* 🌸 Signature Carousel */
.signature-carousel {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 3rem auto;
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.carousel-track {
  display: flex;
  transition: transform 0.8s ease;
  will-change: transform;
}

.carousel-track img {
  min-width: 100%;
  height: 500px; /* or 400px if you want even softer */
  object-fit: cover;
  object-position: center;
  border-radius: 1.5rem;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(19, 128, 201, 0.2);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 2rem;
  color: #137fc9;
  z-index: 2;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.carousel-button:hover {
  background: rgba(19, 128, 201, 0.4);
  opacity: 1;
}

.carousel-button.prev {
  left: 1rem;
}

.carousel-button.next {
  right: 1rem;
}



/* 🌸 Gear Section */
.gear-section {
  text-align: center;
  margin: 6rem auto 3rem auto;
  padding: 0 1rem;
  max-width: 1400px;
}

.gear-title {
  font-size: 2.2rem;
  font-weight: 300;
  color: rgb(19, 128, 201);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.gear-subtitle {
  font-size: 1.1rem;
  color: #666;
  font-weight: 300;
  margin-bottom: 3rem;
  letter-spacing: 0.02em;
}

.gear-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
}

.gear-item {
  width: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.95rem;
  color: #555;
}

.gear-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease;
}

.gear-item img:hover {
  transform: scale(1.1);
}



.spider-spoiler {
  width: 100%;
  height: 300px;
  background: linear-gradient(145deg, #333, #555);
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
  text-align: center;
  padding: 1rem;
}

.spider-spoiler:hover {
  background: linear-gradient(145deg, #444, #666);
}

/* 🌸 Spider Spoiler Blurred Preview */
.spider-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  cursor: pointer;
  width: 100%;
  height: 222x;
  background: #eee;
}

.blurred-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* ❌ Remove blur filter! We don't need it anymore! */
}

.overlay-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(0, 0, 0); /* 🌸 Darker semi-transparent background */
  color: white;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  text-align: center;
  pointer-events: none;
  border-radius: 1rem;
}

#loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.75);
  color: #137fc9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 500;
  border-radius: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1002; /* above the lightbox image */
}

#loading-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.loading-lens {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.glow-ring {
  width: 100px;
  height: 100px;
  border: 3px solid rgba(19, 128, 201, 0.5);
  border-radius: 50%;
  animation: pulseRing 2.5s ease-in-out infinite;
}

.lensflow-text {
  margin-top: 1rem;
  font-size: 1.5rem;
  color: #137fc9;
  font-weight: 300;
  opacity: 0.7;
  animation: fadeText 2.5s ease-in-out infinite;
}

/* Soft breathing pulse for the ring */
@keyframes pulseRing {
  0%, 100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

/* Gentle fading for LensFlow text */
@keyframes fadeText {
  0%, 100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

/* 🌸 Series Navigation Panel */
.series-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 2rem 0 3rem 0;
  padding: 1rem 1.5rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.nav-tag {
  font-size: 0.85rem;
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: 999px;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-tag:hover {
  transform: scale(1.06);
  filter: brightness(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* 🚫 Prevent scroll when lightbox is open */
body.lock-scroll {
  overflow: hidden;
}

/* ✨ Floating Buttons Container */
.floating-buttons {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  z-index: 10000;
}

/* 🌸 Shared button style */
.floating-buttons button {
  background: #137fc9;
  color: white;
  border: none;
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.floating-buttons button:hover {
  background: #0f6eb5;
  transform: scale(1.08);
}

/* ✨ Show buttons when ready */
.floating-buttons.show button {
  opacity: 1;
  pointer-events: auto;
}

/* 🌸 Radial Navigation */
.radial-nav {
  position: fixed;
  bottom: 3rem;
  right: 3rem;
  width: 0;
  height: 0;
  z-index: 10001;
  pointer-events: none;
}

.radial-button {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #bbb;
  color: #fff;
  border: none;
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0;
  transform: scale(0);
  pointer-events: auto;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.radial-button.show {
  opacity: 1;
  transform: scale(1);
}

.exif-info {
  font-size: 0.8rem;
  color: #888;
  text-align: center;
  margin-top: 0.3rem;
  font-style: italic;
  opacity: 0;
  animation: fadeExif 0.6s ease forwards;
  animation-delay: 0.3s;
  background: rgba(255, 255, 255, 0.3);
  padding: 0.3rem;
  border-radius: 0.4rem;
}

@keyframes fadeExif {
  to {
    opacity: 0.85;
  }
}

.exif-overlay {
  position: absolute;
  bottom: 4rem;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  background: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1003;
  flex-wrap: nowrap; /* overridden on mobile */

}

.exif-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.exif-pill {
  background: rgba(0, 0, 0, 0.75); /* increased opacity */
  color: #000000;
  font-size: 1.6rem;
  font-style: italic;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
  transition: transform 0.3s ease;
}


.exif-pill.aperture {
  background: rgba(125, 190, 255, 0.75); /* soft blue */
}

.exif-pill.shutter {
  background: rgba(255, 210, 130, 0.75); /* warm soft amber */
}

.exif-pill.iso {
  background: rgba(250, 130, 140, 0.75); /* soft magenta-red */
}

.exif-pill.focal {
  background: rgba(160, 230, 160, 0.75); /* fresh green */
}

.exif-pill.manual {
  background: rgba(200, 160, 255, 0.75); /* soft lavender */
}

.exif-pill.fallback {
  background: rgba(255, 255, 255, 0.75);
  font-style: italic;
}

.exif-pill.camera {
  background: rgba(255, 255, 255, 0.75);
}

.exif-pill:hover {
  transform: scale(1.1);
}

.hidden {
  display: none !important;
}

.mode-fade {
  position: fixed;
  inset: 0;
  background: white; /* default */
  opacity: 0;
  z-index: 9999999;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.mode-fade.dark {
  background: black;
}

.mode-fade.show {
  opacity: 0.25;
}

@media (max-width: 880px) {
  .exif-overlay {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
  }

  .exif-pill {
    font-size: 0.7em;
    padding: 0.3em 0.6em;
  }
}



/* 🌸 Mobile Navigation Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 20, 0.85);
  z-index: 10000;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  backdrop-filter: blur(4px);
  overflow-y: auto;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.hidden {
  display: none;
}

.mobile-nav-header {
  position: absolute;          /* ✅ pin it */
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  padding: 1.2rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-weight: 500;
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15,15,20,0.85); /* 🧼 matches background */
}

.mobile-nav-header span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-style: italic;
  font-size: 1.05rem;
  opacity: 0.9;
}

.mobile-nav-header button {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.mobile-nav-header button:hover {
  opacity: 1;
}

.mobile-nav-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: 360px;
  width: 100%;
  max-height: 80vh;            /* 🌀 limit height */
  overflow-y: auto;            /* ✅ scroll inside */
  padding-top: 1rem;
}

.mobile-nav-pill {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 2rem;
  color: white;
  background-color: #aaa;
  cursor: pointer;
  transition: transform 0.2s ease;
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.mobile-nav-pill:hover {
  transform: scale(1.05);
}




.img-number-overlay {
  position: absolute;
  bottom: 8px;
  left: 8px; /* 🍃 align left */
  background: rgba(19, 128, 201, 0.75); /* LensFlow soft blue */
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 0.4rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
  backdrop-filter: blur(2px); /* ✨ optional for softness */
}

.hover-labeled:hover ~ .img-number-overlay {
  opacity: 1;
}

#lightbox-caption {
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(19, 128, 201, 0.08);
  color: #249beb;
  font-size: 1.05rem; /* ⬆ sanft vergrößert */
  font-weight: 500;
  font-style: italic;
  padding: 0.5rem 1.4rem; /* ⬆ mehr Platz innen */
  border-radius: 1.5rem;
  pointer-events: none;
  z-index: 1002;
  text-align: center;
  backdrop-filter: blur(3px);
  max-width: 90%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.95;
  transition: opacity 0.3s ease;

  /* 💫 Soft glowing border effect */
  box-shadow:
    0 0 6px rgba(19, 128, 201, 0.35),
    0 0 12px rgba(19, 128, 201, 0.2),
    0 0 16px rgba(19, 128, 201, 0.1);
}

.image-grid .img-wrapper img.hover-labeled:hover {
  box-shadow:
    0 0 8px rgba(19, 128, 201, 0.3),
    0 0 16px rgba(19, 128, 201, 0.2),
    0 0 24px rgba(19, 128, 201, 0.1),
    0 0 32px rgba(19, 128, 201, 0.08);
  border: 1px solid rgba(19, 128, 201, 0.4);
  transition: box-shadow 0.3s ease, border 0.3s ease;
}
