
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr) /*repeat(auto-fit, minmax(150px, 1fr)*/;
  gap: 20px;  
  max-width: 1200px;
  margin: 0.5rem auto;
  padding: 0 1.2rem;
  align-items: start;
}

.gallery-grid img {
  width: 100%;
  height: auto;  
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.gallery-item {
  display: flex;
  flex-direction: column;  
  text-align: left;
}
.gallery-item img {
  height: auto;
  max-height: 400px;
  object-fit: contain; /* Maintain aspect ratio */
  display: block;
  border-radius: 12px;
}

.artwork-info {
  padding: 0;
  margin-top: 0;
  font-size: 1.125rem;
}
.artwork-title-size {
  display: flex;
  flex-direction: column;  
  text-align: center;
  margin-top: 5px;
  margin-bottom: 2px;
}
.artwork-info h4 {
  margin: 0;
}
.artwork-info p {
  font-size: 0.825rem;
  margin: 0;
  color: #555;
}

/* Detailed View */
/* GLightbox styles */
.gslide-media .gslide-image {
  margin-bottom: 8vh;
  max-height: 88vh;
  max-width: 92vw;
}
.glightbox-mobile .glightbox-container .gslide-description {
  width: 100%;
  padding: 0 !important;
  margin-top: auto;
}

.gdesc-inner {  
  background: rgba(0, 0, 0, .92);
  color: #fff;  
  padding: 0.5rem !important;
  text-align: center;
  line-height: 1.4;
}

.gslide-title {
  display: none !important;
}



.gslide-desc h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  color: #fff;
}

.gslide-desc p {
  font-size: 0.9rem;
  margin: 0;
  color: #ddd;
}

/* Breakpoint adjustments */

@media (min-width: 768px) {
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr) /*repeat(auto-fit, minmax(150px, 1fr)*/;
    gap: 30px;  
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0 1.5rem;
    align-items: start;
  }
  
  .gallery-grid img:hover {
    transform: scale(1.05);
  }
  .artwork-info {
    font-size: 16px;
    margin-top: 0;
  }
  .artwork-info p {
    font-size: 14px;
  }
}

@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    align-items: stretch;
  }
  .gallery-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .gslide-image img {
    margin-bottom: 0;
    max-height: 88vh;
    max-width: 100vw;
  }
  
  
  .artwork-info {
    font-size: 1.25rem;
    margin-top: 5px;
  }
  .artwork-info p {
    font-size: 14px;
  }
}




