/* Categories CSS for Presskit */

.category {
  margin-bottom: 2rem;
}

.category__title {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #333;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.gallery__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery__item img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}

.loading-message {
  text-align: center;
  padding: 2rem;
  color: #666;
}

/* Image category sections */
.image-category-section {
  margin-bottom: 3rem;
}

.category-header {
  margin-bottom: 1.5rem;
}

.category-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.4em;
  font-weight: bold;
  color: #333;
  margin-bottom: 0.5rem;
}

.category-icon {
  font-size: 1.2em;
}

.category-count {
  font-size: 0.8em;
  color: #666;
  font-weight: normal;
}

.category-description {
  color: #666;
  font-style: italic;
  margin: 0;
}

.category-gallery {
  margin-top: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem;
  }
  
  .category-title {
    font-size: 1.2em;
  }
}

@media (max-width: 480px) {
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

/* Overlay styles for gif previews */
.show-overlay {
  position: relative;
  display: inline-block;
}

.show-overlay::after {
  content: "▶";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  pointer-events: none;
}