.roof-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.roof-gallery figure {
  margin: 0;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.roof-gallery figure:hover {
  transform: scale(1.02);
}

.roof-gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.roof-gallery figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 0.9em;
  color: #555;
}

/* Lightbox styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  cursor: pointer;
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.lightbox-close:hover {
  color: #f1f1f1;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .roof-gallery {
    grid-template-columns: 1fr;
  }
  
  .roof-gallery img {
    height: 200px;
  }
}