/* Container for the image grid */
.idl-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 15px;
  justify-content: center;
}

/* Individual image item container */
.idl-item {
  position: relative;
  width: 180px;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  border-radius: 10px;
  overflow: hidden;
}

.idl-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Image styling */
.idl-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* Delete button styling */
.idl-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: rgba(255, 0, 0, 0.8);
  color: white;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

.idl-item:hover .idl-delete {
  opacity: 1;
}

.idl-delete:hover {
  background-color: rgb(220, 0, 0);
}

/* Optional caption or title for images */
.idl-caption {
  padding: 8px;
  background-color: #f5f5f5;
  font-size: 14px;
  color: #333;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .idl-grid {
    gap: 15px;
    padding: 10px;
  }
  
  .idl-item {
    width: calc(50% - 10px);
  }
}

@media (max-width: 480px) {
  .idl-item {
    width: 100%;
  }
}