/* Premium Image Gallery Styles */
.premium-image-gallery {
  position: relative;
  min-height: 400px;
  /* background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%); */
  /* border-radius: 24px; */
  overflow: hidden;
  padding: 2rem;
  /* margin: 2rem 0; */
  min-height: 100vh;

}

/* Full height variants */
.premium-image-gallery.pig-full-height {
  min-height: 100vh;
  height: 100vh;
  margin: 0;
  border-radius: 0;
  padding: 1rem;
}

.premium-image-gallery.pig-full-height .pig-container {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.premium-image-gallery.pig-full-height .pig-slider-wrapper,
.premium-image-gallery.pig-full-height .pig-grid-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.premium-image-gallery.pig-full-height .pig-slider-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.premium-image-gallery.pig-full-height .pig-slider-track {
  flex: 1;
  align-items: center;
}

.premium-image-gallery.pig-full-height .pig-slide {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.premium-image-gallery.pig-full-height .pig-image-container {
  height: 100%;
  max-height: 100%;
}

/* Responsive height variants */
.premium-image-gallery.pig-height-75 {
  min-height: 75vh;
  height: 75vh;
}

.premium-image-gallery.pig-height-50 {
  min-height: 50vh;
  height: 50vh;
}

.premium-image-gallery.pig-height-25 {
  min-height: 25vh;
  height: 25vh;
}

/* Mobile adjustments for full height */
@media (max-width: 768px) {
  .premium-image-gallery.pig-full-height {
    padding: 0.5rem;
  }
  
  .premium-image-gallery.pig-full-height .pig-search-container {
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .premium-image-gallery.pig-full-height {
    padding: 0.25rem;
  }
}

/* Layout-specific styles */
.premium-image-gallery-grid .pig-grid-wrapper,
.premium-image-gallery-masonry .pig-grid-wrapper {
  width: 100%;
}

.premium-image-gallery-carousel .pig-slider-wrapper {
  width: 100%;
}

/* Grid Layout */
.pig-grid {
  display: grid;
  gap: 16px;
  width: 100%;
}

.pig-grid-columns-1 { grid-template-columns: repeat(1, 1fr); }
.pig-grid-columns-2 { grid-template-columns: repeat(2, 1fr); }
.pig-grid-columns-3 { grid-template-columns: repeat(3, 1fr); }
.pig-grid-columns-4 { grid-template-columns: repeat(4, 1fr); }
.pig-grid-columns-5 { grid-template-columns: repeat(5, 1fr); }
.pig-grid-columns-6 { grid-template-columns: repeat(6, 1fr); }

/* Masonry Layout */
.pig-grid-masonry {
  columns: 3;
  column-gap: 16px;
}

.pig-grid-masonry .pig-grid-item {
  break-inside: avoid;
  margin-bottom: 16px;
  display: block;
}

/* Grid Item */
.pig-grid-item {
  position: relative;
}

/* Responsive Grid */
@media (max-width: 1024px) {
  .pig-grid-columns-4,
  .pig-grid-columns-5,
  .pig-grid-columns-6 {
    grid-template-columns: repeat(3, 1fr);
  }
  .pig-grid-masonry {
    columns: 3;
  }
}

@media (max-width: 768px) {
  .pig-grid-columns-3,
  .pig-grid-columns-4,
  .pig-grid-columns-5,
  .pig-grid-columns-6 {
    grid-template-columns: repeat(2, 1fr);
  }
  .pig-grid-masonry {
    columns: 2;
  }
}

@media (max-width: 640px) {
  .pig-grid-columns-2,
  .pig-grid-columns-3,
  .pig-grid-columns-4,
  .pig-grid-columns-5,
  .pig-grid-columns-6 {
    grid-template-columns: repeat(1, 1fr);
  }
  .pig-grid-masonry {
    columns: 1;
  }
}

/* Animated Background Elements */
.pig-background-elements {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.pig-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: float 6s ease-in-out infinite;
}

.pig-bg-orb-1 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(219, 39, 119, 0.3));
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.pig-bg-orb-2 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(16, 185, 129, 0.3));
  bottom: -100px;
  left: -100px;
  animation-delay: 2s;
}

.pig-bg-orb-3 {
  width: 240px;
  height: 240px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.2));
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* Container */
.pig-container {
  position: relative;
  z-index: 10;
  max-width: 1400px;
  margin: 0 auto;
}

/* Search and Tag Filtering Interface */
.pig-search-container {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  display: none;
}

.pig-search-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pig-search-input-group {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.pig-search-input {
  flex: 1;
  padding: 16px 20px;
  border: 2px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  color: #374151;
}

.pig-search-input:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
  background: rgba(255, 255, 255, 0.95);
}

.pig-search-input::placeholder {
  color: #9ca3af;
}

.pig-search-btn {
  padding: 16px 20px;
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
  border: none;
  border-radius: 12px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
}

.pig-search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.pig-search-btn:active {
  transform: translateY(0);
}

.pig-tag-filters {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pig-popular-tags,
.pig-active-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pig-tag-label,
.pig-filter-label {
  font-weight: 600;
  color: #374151;
  font-size: 14px;
  white-space: nowrap;
}

.pig-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pig-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: #8b5cf6;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.pig-tag:hover {
  background: rgba(139, 92, 246, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.pig-tag.active {
  background: #8b5cf6;
  color: white;
  border-color: #8b5cf6;
}

.pig-tag .count {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
}

.pig-active-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pig-active-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #8b5cf6;
  border: 1px solid #8b5cf6;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pig-active-tag:hover {
  background: #7c3aed;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.pig-active-tag .remove {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.pig-active-tag:hover .remove {
  background: rgba(255, 255, 255, 0.3);
}

.pig-clear-filters {
  padding: 6px 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #ef4444;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pig-clear-filters:hover {
  background: rgba(239, 68, 68, 0.2);
  transform: translateY(-1px);
}

.pig-search-results {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(139, 92, 246, 0.1);
}

.pig-results-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #6b7280;
}

.pig-results-count {
  font-weight: 600;
  color: #374151;
}

/* Responsive Search Interface */
@media (max-width: 768px) {
  .pig-search-container {
    padding: 16px;
    margin-bottom: 24px;
  }
  
  .pig-search-input-group {
    flex-direction: column;
    align-items: stretch;
  }
  
  .pig-search-btn {
    width: 100%;
    justify-content: center;
  }
  
  .pig-popular-tags,
  .pig-active-filters {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .pig-tag-list,
  .pig-active-tags {
    width: 100%;
  }
  
  .pig-search-results {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .pig-search-container {
    padding: 12px;
  }
  
  .pig-search-input {
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .pig-search-btn {
    padding: 12px 16px;
  }
  
  .pig-tag {
    padding: 4px 8px;
    font-size: 11px;
  }
  
  .pig-active-tag {
    padding: 4px 8px;
    font-size: 11px;
  }
}

/* Slider Wrapper */
.pig-slider-wrapper {
  position: relative;
}

/* Navigation Buttons */
.pig-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #374151;
}

.pig-nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.pig-nav-prev {
  left: -80px;
}

.pig-nav-next {
  right: -80px;
}

/* Play/Pause Button */
.pig-play-pause-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 20;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #374151;
}

.pig-play-pause-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Slider Container */
.pig-slider-container {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.pig-slider-track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  gap: 16px;
}

/* Slides */
.pig-slide {
  flex: 0 0 auto;
  width: calc(33.333% - 11px);
}

@media (max-width: 1024px) {
  .pig-slide {
    width: calc(50% - 8px);
  }
}

@media (max-width: 640px) {
  .pig-slide {
    width: 100%;
  }
}

/* Image Container */
.pig-image-container {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  margin: 0;
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: 24px;
  overflow: hidden;
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.7s ease;
}

.pig-image-container:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Image Loading */
.pig-image-loading {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Image */
.pig-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: all 0.7s ease;
}

.pig-image-container:hover .pig-image {
  transform: scale(1.1);
  filter: brightness(1.1);
}

/* Image Overlay */
.pig-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.pig-image-container:hover .pig-image-overlay {
  opacity: 1;
}

/* Zoom Icon */
.pig-zoom-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  padding: 12px;
  color: white;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.5s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pig-image-container:hover .pig-zoom-icon {
  opacity: 1;
  transform: translateY(0);
}

/* Dots Container */
.pig-dots-container {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.pig-dot {
  width: 12px;
  height: 12px;
  /* border-radius: 50%; */
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pig-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.pig-dot.active {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

/* Progress Bar */
.pig-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 0 0 24px 24px;
  overflow: hidden;
  display: none;
}

.pig-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  width: 0%;
  transition: width 0.1s ease;
}

/* Enhanced Modal */
.pig-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pig-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

.pig-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.pig-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 30;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  transition: all 0.3s ease;
}

.pig-modal-close:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

.pig-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  transition: all 0.3s ease;
}

.pig-modal-nav:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.1);
}

.pig-modal-prev {
  left: 16px;
}

.pig-modal-next {
  right: 16px;
}

.pig-modal-prev:hover svg {
  transform: translateX(-2px);
}

.pig-modal-next:hover svg {
  transform: translateX(2px);
}

.pig-modal-image-container {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
}

.pig-modal-image {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  transition: all 0.3s ease;
}

.pig-modal-counter {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

/* Enhanced Lightbox Controls */
.pig-modal-controls {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  z-index: 30;
}

.pig-modal-controls button {
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  transition: all 0.3s ease;
}

.pig-modal-controls button:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

.pig-modal-controls button.active {
  background: rgba(59, 130, 246, 0.8);
}

/* Zoom functionality */
.pig-modal-image.zoomed {
  transform: scale(1.5);
  cursor: grab;
}

.pig-modal-image.zoomed:active {
  cursor: grabbing;
}

/* Fullscreen styles */
.pig-modal.fullscreen {
  background: black;
}

.pig-modal.fullscreen .pig-modal-content {
  max-width: 100vw;
  max-height: 100vh;
  border-radius: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .premium-image-gallery {
    padding: 1rem;
  }
  
  .pig-nav-btn {
    width: 48px;
    height: 48px;
  }
  
  .pig-nav-prev {
    left: 16px;
  }
  
  .pig-nav-next {
    right: 16px;
  }
  
  .pig-play-pause-btn {
    top: 16px;
    right: 16px;
  }
  
  .pig-slider-container {
    padding: 16px;
  }
  
  .pig-modal-nav {
    width: 48px;
    height: 48px;
  }
  
  .pig-modal-image-container {
    max-height: 70vh;
  }
  
  .pig-modal-controls {
    bottom: 8px;
    right: 8px;
  }
  
  .pig-modal-controls button {
    width: 36px;
    height: 36px;
  }
}

/* Loading states */
.pig-loading {
  opacity: 0.7;
  pointer-events: none;
}

.pig-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Like Button */
.pig-like-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 8px 12px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-8px);
  z-index: 10;
}

.pig-image-container:hover .pig-like-btn {
  opacity: 1;
  transform: translateY(0);
}

.pig-like-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.pig-like-btn.liked {
  background: rgba(239, 68, 68, 0.8);
  border-color: rgba(239, 68, 68, 0.8);
}

.pig-like-btn.liked svg {
  fill: white;
  animation: heartBeat 0.3s ease;
}

@keyframes heartBeat {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.pig-like-count {
  font-size: 11px;
  font-weight: 600;
}

/* Social Share Buttons */
.pig-share-group {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: flex;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 10;
}
.pig-image-container:hover .pig-share-group {
  opacity: 1;
  pointer-events: auto;
}
.pig-share-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  font-size: 15px;
}
.pig-share-btn:hover {
  background: #fff;
  color: #2563eb;
  transform: scale(1.1);
}
.pig-share-facebook:hover { color: #1877f3; }
.pig-share-twitter:hover { color: #1da1f2; }
.pig-share-pinterest:hover { color: #e60023; }
.pig-share-whatsapp:hover { color: #25d366; }

/* Download Button */
.pig-download-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: none;
  align-items: center;
  justify-content: center;
  color: #374151;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  font-size: 15px;
  margin-left: 4px;
}
.pig-download-btn:hover {
  background: #fff;
  color: #059669;
  transform: scale(1.1);
}
.pig-image-container:hover .pig-download-btn {
  opacity: 1;
  pointer-events: auto;
}

/* Analytics Page Styles */
.pig-analytics-filters {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
}

.pig-analytics-filters label {
    font-weight: 600;
    margin-right: 8px;
}

.pig-analytics-filters select {
    margin-right: 20px;
    min-width: 150px;
}

.pig-analytics-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.pig-stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.2s ease;
}

.pig-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.pig-stat-card h3 {
    margin: 0 0 10px 0;
    color: #23282d;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pig-stat-number {
    font-size: 2em;
    font-weight: bold;
    line-height: 1;
}

.pig-analytics-section {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pig-analytics-section h2 {
    margin-top: 0;
    color: #23282d;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.pig-analytics-section table {
    margin-top: 15px;
}

.pig-analytics-section th {
    font-weight: 600;
    color: #23282d;
}

.pig-analytics-section td img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 10px;
    vertical-align: middle;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pig-analytics-overview {
        grid-template-columns: 1fr;
    }
    
    .pig-analytics-filters select {
        display: block;
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .pig-stat-number {
        font-size: 1.5em;
    }
}

/* Export/Import Page Styles */
.pig-export-import-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.pig-export-section,
.pig-import-section {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pig-export-section h2,
.pig-import-section h2 {
    margin-top: 0;
    color: #23282d;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.pig-export-section p,
.pig-import-section p {
    color: #666;
    margin-bottom: 20px;
}

.pig-history-section {
    background: #fff;
    padding: 25px;
    margin-top: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pig-history-section h2 {
    margin-top: 0;
    color: #23282d;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.pig-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.pig-status-success {
    background: #d4edda;
    color: #155724;
}

.pig-status-error {
    background: #f8d7da;
    color: #721c24;
}

.pig-status-warning {
    background: #fff3cd;
    color: #856404;
}

/* Export/Import Form Styles */
.pig-export-import-container label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #23282d;
}

.pig-export-import-container select,
.pig-export-import-container input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
}

.pig-export-import-container input[type="checkbox"],
.pig-export-import-container input[type="radio"] {
    margin-right: 8px;
}

.pig-export-import-container .checkbox-group,
.pig-export-import-container .radio-group {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.pig-export-import-container .checkbox-group label,
.pig-export-import-container .radio-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: normal;
}

.pig-export-import-container .checkbox-group label:first-child {
    font-weight: 600;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

/* Responsive adjustments for export/import */
@media (max-width: 768px) {
    .pig-export-import-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pig-export-section,
    .pig-import-section {
        padding: 20px;
    }
}

/* Watermarking Page Styles */
.pig-watermarking-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.pig-watermark-section,
.pig-processing-section {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pig-watermark-section h2,
.pig-processing-section h2 {
    margin-top: 0;
    color: #23282d;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.pig-gallery-processing {
    background: #fff;
    padding: 25px;
    margin-top: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pig-gallery-processing h2 {
    margin-top: 0;
    color: #23282d;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

/* Watermarking Form Styles */
.pig-watermarking-container label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #23282d;
}

.pig-watermarking-container input[type="text"],
.pig-watermarking-container input[type="number"],
.pig-watermarking-container input[type="file"],
.pig-watermarking-container input[type="color"],
.pig-watermarking-container select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
}

.pig-watermarking-container input[type="range"] {
    width: 100%;
    margin-bottom: 5px;
}

.pig-watermarking-container input[type="checkbox"] {
    margin-right: 8px;
}

/* Progress Bar Styles */
#processing-progress {
    margin-top: 20px;
}

#progress-bar {
    background: linear-gradient(90deg, #0073aa 0%, #005a87 100%);
    height: 20px;
    border-radius: 4px;
    transition: width 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

#progress-text {
    margin-top: 10px;
    text-align: center;
    font-weight: 600;
    color: #23282d;
}

/* Gallery Selection Styles */
.gallery-checkbox {
    margin-right: 8px;
}

#select-all-galleries {
    font-weight: 600;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

/* Watermark Preview Styles */
.watermark-preview {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
}

.watermark-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Responsive adjustments for watermarking */
@media (max-width: 768px) {
    .pig-watermarking-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pig-watermark-section,
    .pig-processing-section {
        padding: 20px;
    }
    
    .pig-watermarking-container input[type="range"] {
        margin-bottom: 10px;
    }
}

/* Tag Suggestions Dropdown */
.pig-tag-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
  margin-top: 4px;
}

.pig-tag-suggestion {
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
  font-size: 14px;
  color: #374151;
}

.pig-tag-suggestion:last-child {
  border-bottom: none;
}

.pig-tag-suggestion:hover {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.pig-tag-suggestion:first-child {
  border-radius: 12px 12px 0 0;
}

.pig-tag-suggestion:last-child {
  border-radius: 0 0 12px 12px;
}

/* Search Input Group Positioning */
.pig-search-input-group {
  position: relative;
}

/* Responsive Tag Suggestions */
@media (max-width: 768px) {
  .pig-tag-suggestions {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 16px 16px 0 0;
    max-height: 50vh;
    margin-top: 0;
  }
  
  .pig-tag-suggestion {
    padding: 16px 20px;
    font-size: 16px;
  }
}

/* Full height support for grid layouts */
.premium-image-gallery.pig-full-height .pig-grid {
  height: 100%;
  overflow-y: auto;
}

.premium-image-gallery.pig-full-height .pig-grid-item {
  height: auto;
  min-height: 200px;
}

/* Full height support for masonry layouts */
.premium-image-gallery.pig-full-height .pig-grid-masonry {
  height: 100%;
  overflow-y: auto;
}

/* Ensure grid rows fill available height in full height mode */
.premium-image-gallery.pig-full-height .pig-grid {
  height: 100%;
  grid-auto-rows: 1fr;
}

.premium-image-gallery.pig-full-height .pig-grid-item {
  height: 100%;
  min-height: 0;
}

.premium-image-gallery.pig-full-height .pig-image-container {
  height: 100%;
  aspect-ratio: 5 / 4;
}