/* PASSION AUTO 85 - Styles galerie */

.galerie-item {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  animation: galerieFadeIn 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: var(--fade-delay, 0s);
}
@keyframes galerieFadeIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 20, 40, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 8px 40px #1e90ff88, 0 0 32px #00bfff44 inset;
  animation: lightboxZoomIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: #111;
}
@keyframes lightboxZoomIn {
  from {
    transform: scale(0.85);
    opacity: 0.2;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.lightbox-close {
  position: absolute;
  top: 2vw;
  right: 3vw;
  font-size: 2.5rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10001;
  filter: drop-shadow(0 2px 8px #1e90ff);
  transition: color 0.2s;
}
.lightbox-close:hover {
  color: #1e90ff;
}
.galerie-section {
  margin-bottom: 4rem;
}
.galerie-section-1 {
  position: sticky;
  padding: 3rem 0 0 0;
  z-index: 5;
}
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  padding: 2rem 0 0 0;
  justify-items: center;
}
.galerie-item {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 16px;
  box-shadow: 0 4px 24px #1e90ff44, 0 0 8px #00bfff22 inset;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  max-width: 400px;
  width: 100%;
  text-align: center;
  border: 2px solid #1e90ff;
  display: flex;
  flex-direction: column;
  height: 100%;
  align-items: stretch;
}
.galerie-item:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 32px #1e90ff88, 0 0 16px #00bfff44 inset;
  border-color: #00bfff;
}
.galerie-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #1e90ff44;
  background: #111;
}

.galerie-caption {
  font-family: var(--font-primary);
  font-size: 1.15em;
  color: #fff;
  padding: 1rem 0.5rem 0.5rem 0.5rem;
  background: linear-gradient(135deg, #1e90ff 0%, #16213e 100%);
  border-radius: 0 0 0 0;
  letter-spacing: 0.5px;
  font-weight: bold;
  box-shadow: 0 2px 8px #1e90ff22 inset;
  text-shadow: 0 2px 8px #16213e88;
}

.galerie-caption-top {
  align-self: flex-start;
  margin-bottom: 0;
  margin-top: 0;
  text-align: center;
  width: 100%;
  padding-top: 1rem;
  padding-bottom: 0.5rem;
}

.galerie-description {
  font-family: var(--font-primary);
  font-size: 1em;
  color: #eaf6ff;
  background: linear-gradient(135deg, #16213e 60%, #1e90ff 100%);
  border-radius: 0 0 16px 16px;
  margin-top: 0;
  box-shadow: 0 2px 8px #1e90ff22 inset;
  min-height: 56px;
  text-align: center;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-grow: 1;
  padding: 0;
}
.galerie-description span {
  display: block;
  width: 100%;
  padding: 0.7em 1em 1.1em 1em;
  box-sizing: border-box;
}
.galerie-description span {
  display: block;
  width: 100%;
  padding: 0.7em 1em 1.1em 1em;
  box-sizing: border-box;
}
