* {
  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;
}

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(0, 0, 0, 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;
  }
}