:root{
  --bg:#fff;
  --text:#222;
  --accent:#e85a4f;
  --maxw:980px;
  --radius:12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:linear-gradient(180deg,#fff,#fbfbfb);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.4;
}

.container{
  max-width:var(--maxw);
  margin:28px auto;
  padding:0 18px;
}

.title{
  font-size:1.6rem;
  margin:0 0 12px 0;
  text-align:center;
}

.caption{
  text-align:center;
  color:#555;
  margin-top:10px;
}

.hero{
  display:block;
  width:100%;
  max-width:720px;
  height:auto;
  margin: 10px auto;
  border-radius:var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  object-fit:cover;
}

.photo-link{
  text-decoration:none;
  display:block;
  width:100%;
  max-width:720px;
  margin: 0 auto;
}

.footer{
  text-align:center;
  color:#777;
  padding:18px 0 40px;
  font-size:0.9rem;
}

/* Galerie */
.gallery{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(160px,1fr));
  gap:14px;
  align-items:start;
  margin:18px auto;
}

.thumb img{
  width:100%;
  height:160px;
  object-fit:cover;
  border-radius:10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  display:block;
}

/* simple button */
.btn{
  display:inline-block;
  background:var(--accent);
  color:#fff;
  padding:10px 16px;
  border-radius:10px;
  text-decoration:none;
  font-weight:600;
  margin:10px auto;
  text-align:center;
}

/* small screens tweak */
@media (max-width:52px){
  .hero{ max-width:100%; border-radius:10px; }
  .thumb img{ height:120px; }
}
/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: zoom-out;
  z-index: 9999;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(0,0,0,0.4);
}

.hidden {
  display: none;
}

/* Images cliquables */
.lightboxable {
  cursor: zoom-in;
  transition: transform .2s ease;
}

.lightboxable:hover {
  transform: scale(1.03);
}
/* Galerie responsive en grille */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
}