#gallery_wrapper {
  width: 100%;
  margin-top: 10px;
}

#img_box_container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 15px;
}

.gallery_single_row {
  width: 100px;
  height: 100px;
  position: relative;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #f9f9f9;
  cursor: move;
}

.gallery_single_row .image_container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery_single_row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-remove-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  border: 1px solid #ccc;
  color: #d63638;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 0;
  line-height: 1;
  z-index: 10;
}

.gallery-remove-btn .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-remove-btn:hover {
  background: #d63638;
  color: #fff;
  border-color: #d63638;
}


.gallery-add-button {
  width: 100px;
  height: 100px;
  border: 2px dashed #b4b9be;
  background: #f1f3f5;
  color: #646970;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease-in-out;
  text-align: center;
  margin-top: 10px;
}

.gallery-add-button .dashicons {
  font-size: 24px;
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
}

.gallery-add-button .add-text {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
/* Event Gallery Block Styling */
.ew-event-block-gallery {
  display: grid;
  gap: 15px;
  margin: 20px 0;
}

.ew-event-block-gallery .gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.ew-event-block-gallery .gallery-item img:hover {
  transform: scale(1.03);
}

.ew-event-field {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.ew-event-field .dashicons {
  color: #2271b1;
}

.gallery-add-button:hover {
  border-color: #2271b1;
  color: #2271b1;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}




/* Lightbox Styles */
.post-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.gallery-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.03);
}
