

.art-grid{
  display:grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap:1.5rem; 
  justify-items:center; 
  font-family: Arial, sans-serif; 
}

.art-card {
  width:240px;
  height:280px;
  background:#fff;
  border:1px solid #eee;
  border-radius:12px;
  padding:0.8rem;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  align-items:center;
  box-shadow:0 4px 10px rgba(0,0,0,0.06);
  transition:all 0.3s ease;
  position:relative;
  overflow:hidden;
  cursor:pointer;
}
.art-card:hover {
  transform:translateY(-6px);
  box-shadow:0 8px 18px rgba(0,0,0,0.12);
}
.art-card img {
  width:100%;
  height:180px;
  object-fit:contain;
  background:#fdfdfd;
  border-radius:8px;
  padding:0.5rem;
  transition:transform 0.3s ease;
}
.art-card p {
  margin-top:0.6rem;
  font-size:0.9rem;
  color:#444;
  text-align:center;
}
.art-card::before {
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:5px;
  background:linear-gradient(90deg, #4a90e2, #6fc3df);
  border-top-left-radius:12px;
  border-top-right-radius:12px;
}

/* Lightbox */
.gallery-lightbox {
  display:none;
  position:fixed;
  z-index:9999;
  top: 50%;
  left: 50%;
  width: 100%;
  max-width: 80%;
  height: 100%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.85);
  justify-content:center;
  align-items:center;
}
.gallery-lightbox.active {
  display:flex;
}
.gallery-lightbox img {
  max-width:90%;
  max-height:90%;
  border-radius:8px;
  box-shadow:0 8px 24px rgba(0,0,0,0.5);
}
.gallery-lightbox .close-btn,
.gallery-lightbox .prev-btn,
.gallery-lightbox .next-btn {
  position:absolute;
  color:#fff;
  font-size:2rem;
  cursor:pointer;
  user-select:none;
  padding:0.5rem 1rem;
  background:rgba(0,0,0,0.4);
  border-radius:6px;
  transition:0.3s;
}
.gallery-lightbox .close-btn:hover,
.gallery-lightbox .prev-btn:hover,
.gallery-lightbox .next-btn:hover {
  background:rgba(0,0,0,0.7);
}
.gallery-lightbox .close-btn { top:20px; right:30px; }
.gallery-lightbox .prev-btn { left:30px; top:50%; transform:translateY(-50%); }
.gallery-lightbox .next-btn { right:30px; top:50%; transform:translateY(-50%); }










