/* Gallery specific styles - spread floating gallery, no dark overlay */

.gallery-page {
  height: 100vh;
  overflow: hidden;
}

.gallery-page .content {
  min-height: 0;
  max-width: none;
  padding: 0;
  margin: 0;
}

.gallery {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  display: block;
  overflow: visible;
  background: transparent;
  padding: 0;
  margin: 0;
  z-index: 0;
}

.navbar {
  position: relative;
  z-index: 3;
}

.gallery-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  contain: layout paint;
}

.floating {
  position: absolute;
  left: 75%;
  top: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
  cursor: pointer;
  contain: paint;
  backface-visibility: hidden;
}

.floating img {
  display: block;
  width: auto;
  max-width: none;
  max-height: 40vh;
  height: auto;
  border-radius: 12px;
  box-shadow: none;
  border: none;
}

/* spread positions across the viewport */
.floating:nth-child(1) { left: 20%;  top: 27%; transform: translate(-50%, -50%) scale(0.95); }
.floating:nth-child(2) { left: 40%; top: 60%; transform: translate(-50%, -50%) scale(1.05); }
.floating:nth-child(3) { left: 55%; top: 30%; transform: translate(-50%, -50%) scale(1.0); }
.floating:nth-child(4) { left: 77%; top: 27%; transform: translate(-50%, -50%) scale(0.92); }
.floating:nth-child(5) { left: 15%; top: 75%; transform: translate(-50%, -50%) scale(0.9); }
.floating:nth-child(6) { left: 80%; top: 70%; transform: translate(-50%, -50%) scale(0.9); }

.gallery-note {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(0,0,0,0.7);
  font-size: 0.95rem;
  opacity: 0.95;
}

@media (max-width: 780px) {
  .floating img { max-height: 28vh; }
  .floating:nth-child(2) { left: 50%; top: 70%; }
  .floating:nth-child(5) { left: 25%; top: 84%; }
}

/* subtle entrance animation */
.floating { opacity: 0; transform-origin: center; transition: opacity 600ms ease, transform 600ms cubic-bezier(.2,.9,.2,1); }
.floating.show { opacity: 1; }

.gallery-info {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  width: min(92vw, 800px);
  text-align: center;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  z-index: 4;
  --animate-duration: 320ms;
}

.gallery-info.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gallery-info h3 {
  margin: 0 0 0.3rem 0;
  font-size: 1.05rem;
  line-height: 1.2;
  --animate-duration: 320ms;
}

.gallery-info p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.35;
  --animate-duration: 320ms;
}

/* small helper for accessible layout fallback */
.gallery-fallback {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: center;
  justify-items: center;
}

/* Added visual layer without replacing the existing gallery layout */
.floating img {
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  transition: transform 220ms ease, filter 220ms ease, box-shadow 220ms ease;
}

.floating:hover img,
.floating:focus-visible img {
  transform: scale(1.02);
  filter: saturate(1.08) brightness(1.03);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.22),
    0 0 26px rgba(255, 255, 255, 0.08);
}

.gallery-info {
  backdrop-filter: blur(10px) saturate(120%);
}

@media (max-width: 780px) {
  .gallery-info {
    width: min(94vw, 640px);
  }

  .floating img {
    max-height: 28vh;
  }
}

