@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slide-up {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
.animate-fade-in {
  animation: fade-in 1s ease-out forwards;
}
.animate-slide-up {
  animation: slide-up 0.8s ease-out forwards;
}
.animate-float {
  animation: float 3s ease-in-out infinite;
}
/* Custom gradient classes mapped to Tailwind utilities */
.bg-gradient-hero {
  background: linear-gradient(to right, #3b82f6, #10b981);
}
.bg-gradient-subtle {
  background: linear-gradient(to bottom right, #eff6ff, #ffffff);
}
.bg-gradient-accent {
  background: linear-gradient(to right, #3b82f6, #2563eb);
}
/* Custom shadow classes */
.shadow-medical {
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.1),
    0 2px 4px -1px rgba(59, 130, 246, 0.06);
}
.shadow-elevated {
  box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.1),
    0 4px 6px -2px rgba(59, 130, 246, 0.05);
}
.shadow-gold {
  box-shadow: 0 4px 6px -1px rgba(234, 179, 8, 0.1),
    0 2px 4px -1px rgba(234, 179, 8, 0.06);
}

/* gallery css */
/* Lightbox Container */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  overflow: auto;
  backdrop-filter: blur(8px);
}

.lightbox.active {
  display: flex;
}

/* Lightbox Media (Image or Video) */
.lightbox img,
.lightbox video {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  transition: transform 0.3s ease;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  background: black; /* Prevent white bars for videos */
}

/* Zoom effect */
.lightbox.zoomed img,
.lightbox.zoomed video {
  transform: scale(1.5);
  cursor: zoom-out;
}

/* Optional: Hide native video controls unless hovered */
.lightbox video {
  outline: none;
}
.lightbox video::-webkit-media-controls {
  display: none !important;
}
.lightbox video:hover::-webkit-media-controls {
  display: flex !important;
}

/* Controls */
.lightbox-controls {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  pointer-events: none;
  z-index: 1002;
}

.lightbox img,
.lightbox video {
  z-index: 1001; /* so media sits below buttons */
  position: relative;
}

.lightbox-button {
  touch-action: manipulation;
}

.lightbox-button {
  pointer-events: auto;
  background: linear-gradient(135deg, #2a4365, #3182ce);
  color: #ffffff;
  border: none;
  padding: 14px;
  cursor: pointer;
  font-size: 22px;
  border-radius: 12px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}

.lightbox-button:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  background: linear-gradient(135deg, #3182ce, #2a4365);
}

.lightbox-button:active {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
}

.lightbox-zoom {
  position: absolute;
  top: 20px;
  right: 92px;
}

.lightbox-download {
  position: absolute;
  top: 20px;
  right: 164px;
}

.lightbox-counter {
  position: absolute;
  top: 20px;
  left: 20px;
  color: #ffffff;
  font-size: 16px;
  background: linear-gradient(135deg, #2a4365, #3182ce);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 500;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .lightbox img,
  .lightbox video {
    max-height: 70vh;
  }
  .lightbox-button {
    font-size: 18px;
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }
  .lightbox-counter {
    font-size: 14px;
    padding: 6px 12px;
  }
  .lightbox-prev,
  .lightbox-next {
    top: 50%;
    transform: translateY(-50%);
  }
  .lightbox-prev {
    left: 15px;
  }
  .lightbox-next {
    right: 15px;
  }
  .lightbox-close {
    top: 15px;
    right: 15px;
  }
  .lightbox-zoom {
    top: 15px;
    right: 75px;
  }
  .lightbox-download {
    top: 15px;
    right: 135px;
  }
}
