/* Gallery Modal and Interactive Styles */
body {
  margin: 0;
  padding: 0;
}

/* Hero Carousel Styles */
.hero-slide {
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-dot {
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot.active {
  background: white !important;
  transform: scale(1.5);
}

/* Category Filter Buttons */
.category-btn {
  transition: all 0.3s ease;
}

.category-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Modal Overlay */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

/* Modal Content */
.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.modal-info {
  position: absolute;
  bottom: -100px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  padding: 20px;
  text-align: center;
  border-radius: 8px;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
  background: none;
  border: none;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 10000;
}

.modal-close:hover {
  transform: scale(1.2);
  color: #f59e0b;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  backdrop-filter: blur(5px);
}

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

.modal-nav.prev {
  left: 20px;
}

.modal-nav.next {
  right: 20px;
}

/* Gallery Item Hover Effect */
.gallery-item {
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Loading Spinner */
.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: #f59e0b;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Award Badge */
.award-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 8px;
}

/* Price Tag */
.price-tag {
  display: inline-block;
  background: #1f2937;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 10px;
}

/* Buy Button */
.buy-button {
  display: inline-block;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.buy-button:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

.buy-button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

/* Responsive Modal */
@media (max-width: 768px) {
  .modal-nav {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
  
  .modal-close {
    top: 10px;
    right: 10px;
    font-size: 30px;
  }
  
  .modal-info {
    bottom: -120px;
    font-size: 14px;
  }
}

/* CSS Watermark Protection */
.gallery-item::after {
  content: '© Kayley Smith';
  position: absolute;
  bottom: 10px;
  right: 10px;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
  z-index: 10;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(2px);
}

/* Watermark on modal images */
.modal-image {
  position: relative;
}

.modal-content::after {
  content: '© Kayley Smith - All Rights Reserved';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  color: rgba(255, 255, 255, 0.15);
  font-size: 48px;
  font-weight: bold;
  pointer-events: none;
  z-index: 100;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

/* Prevent right-click on images */
.gallery-item img,
.modal-image {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  pointer-events: auto;
}

/* Disable image dragging */
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
}
