/* Magnifier Variants CSS */

/* Variant 1: Default (current implementation) */
.magnifier-variant-1 .grid__item-magnifier {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 32px;
  height: 32px;
  opacity: 0;
  pointer-events: auto;
  cursor: pointer;
  transition: opacity 0.3s ease;
  color: #000;
  background-color: rgba(255, 255, 255, 0.3);
  padding: 5px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Variant 2: Left bottom position, glassy bg, rounded borders, smaller */
.magnifier-variant-2 .grid__item-magnifier {
  position: absolute;
  left: 5px;
  bottom: 5px;
  width: 35px;
  height: 35px;
  opacity: 0;
  pointer-events: auto;
  cursor: pointer;
  transition: opacity 0.3s ease;
  color: #000;
  background-color: transparent;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 5px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Variant 3: Right position, white bg, dashed border, fully rounded */
.magnifier-variant-3 .grid__item-magnifier {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 35px;
  height: 35px;
  opacity: 0;
  pointer-events: auto;
  cursor: pointer;
  transition: opacity 0.3s ease;
  color: #000;
  background-color: white;
  padding: 9px;
  border: 1px dashed black;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Variant 4: Bottom left corner, semi-transparent white bg, square, dashed border */
.magnifier-variant-4 .grid__item-magnifier {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 35px;
  height: 35px;
  opacity: 0;
  pointer-events: auto;
  cursor: pointer;
  transition: opacity 0.3s ease;
  color: #000;
  background-color: rgba(255, 255, 255, 0.5);
  padding: 9px;
  border: 1px dashed black;
  border-radius: 0; /* Square shape - no rounded corners */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Common styles for all variants */
.grid__item-magnifier svg {
  width: 22px;
  height: 22px;
}

/* Smaller SVG for variant 2 */
.magnifier-variant-2 .grid__item-magnifier svg {
  width: 18px;
  height: 18px;
}

.grid__item:hover .grid__item-magnifier {
  opacity: 1;
  animation: magnifierBlink 0.8s linear infinite;
}

/* Disable backdrop filter for variant 4 only */
.magnifier-variant-4 .grid__item-magnifier {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Magnifier blinking animation */
@keyframes magnifierBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
