/* ==========================================================================
   DAFR Image Component - Shine Effect (Poprawka wystającego rogu)
   ========================================================================== */

/* Kontener obrazka z ukrywaniem elementów wystających */
.photoswipe-gallery a,
figure a {
  position: relative;
  display: block;
  overflow: hidden;
}

/* Warstwa błysku - schowana całkowicie poza lewą krawędzią */
.photoswipe-gallery a::before,
figure a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%; /* Cofnięte bardziej w lewo (-120% zamiast -75%) */
  width: 50%;
  height: 100%;

  /* Gradient od pełnej przeźroczystości do lekkiej bieli (30%) */
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 100%
  );

  transform: skewX(-25deg);
  z-index: 10;
  pointer-events: none;
}

/* Uruchomienie animacji po najechaniu myszką */
.photoswipe-gallery a:hover::before,
.photoswipe-gallery a:focus::before,
figure a:hover::before,
figure a:focus::before {
  animation: shine 0.85s ease-in-out;
}

/* Animacja przelotu z poprawnym startem z -120% */
@keyframes shine {
  0% {
    left: -120%;
  }
  100% {
    left: 125%;
  }
}