/* The original UniteGallery image tiles retain their dimensions and click behavior.
   Controls sit in the existing vertical gap between absolutely positioned rows. */
#gallery > .rdf-like-slot {
  position: absolute !important;
  height: 28px !important;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  pointer-events: auto;
}
#gallery .rdf-like-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 54px;
  height: 28px;
  padding: 0 10px;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 3px;
  box-shadow: none;
  color: #555;
  font-weight: 500;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.3;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  transition: color .15s ease;
}
#gallery .rdf-like-button:hover,
#gallery .rdf-like-button.is-liked { color: #df1f29; }
#gallery .rdf-like-button.is-liked .rdf-like-heart { fill: currentColor; }
#gallery .rdf-like-button:focus-visible { outline: 2px solid #df1f29; outline-offset: 2px; }
#gallery .rdf-like-button:disabled { opacity: .6; cursor: progress; }
#gallery .rdf-like-count { font-variant-numeric: tabular-nums; }
#gallery .rdf-like-heart { flex: none; }
#gallery .ug-tiles-wrapper { overflow: visible !important; }
#gallery { position: relative !important; overflow: visible !important; padding-bottom: 25px; }

#gallery .rdf-like-slot.rdf-has-error .rdf-like-button { color: #bc2029; }
#gallery .rdf-like-slot.rdf-has-error .rdf-like-count { font-size: 11px; }
