/* File: assets/css/gallery.css */
/* Admin thumb list */
.wtt-gallery-wrap .wtt-gallery-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
  padding: 0;
  list-style: none;
}
.wtt-gallery-wrap .wtt-gallery-item {
  position: relative;
  width: 90px;
  height: 90px;
  border: 1px solid #ddd;
  background: #fafafa;
  overflow: hidden;
  border-radius: 4px;
  cursor: move;
}
.wtt-gallery-wrap .wtt-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wtt-gallery-wrap .wtt-gallery-item .wtt-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  border: 0;
  background: #cc0000;
  color: #fff;
  width: 20px;
  height: 20px;
  line-height: 18px;
  border-radius: 50%;
  text-align: center;
  cursor: pointer;
}

/* Frontend grid */
.wtt-gallery {
  display: grid;
  gap: 12px;
}
.wtt-gallery .wtt-gallery-item {
  margin: 0;
}
.wtt-gallery .wtt-gallery-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.wtt-gallery .wtt-caption {
  font-size: 0.9rem;
  color: #666;
  margin-top: 6px;
}

/* Responsive columns */
.wtt-cols-1 { grid-template-columns: 1fr; }
.wtt-cols-2 { grid-template-columns: repeat(2, 1fr); }
.wtt-cols-3 { grid-template-columns: repeat(3, 1fr); }
.wtt-cols-4 { grid-template-columns: repeat(4, 1fr); }
.wtt-cols-5 { grid-template-columns: repeat(5, 1fr); }
.wtt-cols-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 768px) {
  .wtt-cols-6, .wtt-cols-5, .wtt-cols-4 { grid-template-columns: repeat(3, 1fr); }
  .wtt-cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .wtt-cols-3, .wtt-cols-2 { grid-template-columns: 1fr; }
}
