/* =============== */
/* SGDG Gallery CSS */
/* =============== */

/* 1. Container grid */
.sgdg-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 2. Item wrapper */
.sgdg-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* 3. Thumbnail (image/video) */
.sgdg-item img,
.sgdg-item video {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
  cursor: pointer;
}

/* 4. Hover zoom */
.sgdg-item:hover img,
.sgdg-item:hover video {
  transform: scale(1.05);
}

/* 5. Optional caption overlay */
.sgdg-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px;
  background: rgba(0,0,0,0.6);
  color: #ffffff;
  font-size: 14px;
  text-align: center;
}

/* 6. Mobile adjustments */
@media (max-width: 600px) {
  .sgdg-container {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
  }
  .sgdg-item {
    border-radius: 4px;
  }
  .sgdg-caption {
    font-size: 12px;
    padding: 6px;
  }
}
