/* Gallery - Grid layout & responsive */
.gallery-album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}
.gallery-album-grid .album-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.gallery-album-grid .album-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.gallery-album-grid .album-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}
.gallery-album-grid .album-card .album-cover {
  position: relative;
  width: 100%;
  padding-bottom: 75%;
  overflow: hidden;
  background: #f5f5f5;
}
.gallery-album-grid .album-card .album-cover img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-album-grid .album-card .album-info {
  padding: 1rem;
  text-align: center;
}
.gallery-album-grid .album-card .album-info .album-title {
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
}
.gallery-album-grid .album-card .album-info .album-count {
  font-size: 0.875rem;
  color: #666;
}

/* Detail album - foto grid + lightbox */
.gallery-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}
.gallery-photo-grid .photo-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.gallery-photo-grid .photo-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.gallery-photo-grid .photo-item .photo-link {
  display: block;
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  overflow: hidden;
  background: #f5f5f5;
}
.gallery-photo-grid .photo-item .photo-link img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-photo-grid .photo-item .photo-title {
  padding: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  margin: 0;
}

@media (max-width: 768px) {
  .gallery-album-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }
  .gallery-photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .gallery-album-grid {
    grid-template-columns: 1fr;
  }
  .gallery-photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
