.glass-card{
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.75rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 80px rgba(0,0,0,0.35);
}

.photo-page{
  width: 100%;
  padding: 10rem 6rem 6rem; /* laisse la place à ta navbar */
  background: var(--background);
}

/* Header */
.photo-head{
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.back-link{
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--near-white);
  text-decoration: none;
  opacity: .8;
  transition: var(--transition-300ms);
  margin-bottom: 2rem;
}
.back-link:hover{ opacity: 1; }

.back-icon{
  font-size: 1.1rem;
  line-height: 1;
}

.photo-title{
  color: var(--near-white);
  font-size: clamp(2.2rem, 4vw, 4rem);
  letter-spacing: -0.03em;
  margin: 0;
}

.photo-subtitle{
  margin-top: 1rem;
color: var(--near-white);
  max-width: 60ch;
}

/* Gallery wrapper */
.photo-section{
  max-width: 1200px;
  margin: 0 auto;
}

/* Masonry “simple” en CSS columns */
.photo-gallery{
  column-count: 3;
  column-gap: 1.5rem;
}

.photo-item{
  width: 100%;
  border: none;
  padding: 0;
  margin: 0 0 1.5rem;
  background: transparent;
  cursor: pointer;
  break-inside: avoid;
  border-radius: 1.5rem;
  overflow: hidden;
}

.photo-item img{
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1);
  transition: var(--transition-300ms);
}

.photo-item:hover img{
  transform: scale(1.03);
}

.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  z-index: 9999;

  display: none;
}

.lightbox.is-open{
  display: flex;
  align-items: center;
  justify-content: center;
}

/* image centrée */
.lightbox-inner{
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
}

#lightboxImg{
  max-width: 100%;
  max-height: 85vh;
  border-radius: 1.25rem;
  display: block;
}

/* croix */
.lightbox-close{
  position: fixed;       /* <- PAS absolute */
  top: 2rem;
  right: 2rem;
  font-size: 3rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10001;       /* <- AU DESSUS DE TOUT */
}

/* flèches */
.lightbox-arrow{
  position: fixed;      /* <- PAS absolute */
  top: 50%;
  transform: translateY(-50%);
  font-size: 4rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10001;
}

/* NEXT */
.next-project{
  margin-top: .5rem;
  padding: 2rem;
}
.next-project-link{
  display: block;
  text-decoration: none;
  color: var(--near-white);
}
.next-project-link span{ opacity: .7; }
.next-project-link h3{ margin: .35rem 0 0; }


.lightbox-arrow.left{ left: 2rem; }
.lightbox-arrow.right{ right: 2rem; }
/* Responsive */
@media (max-width: 1100px){
  .photo-page{ padding: 9rem 3rem 4rem; }
  .photo-gallery{ column-count: 2; }
}
@media (max-width: 650px){
  .photo-page{ padding: 8rem 1.25rem 3rem; }
  .photo-gallery{ column-count: 1; }
}