/* Gallery-specific styles */

/* Gallery Grid Layout */
.gallery-container {
  margin-top: 40px;
}

.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: var(--text);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 14px;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  color: #111;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255,74,26,0.3);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.gallery-item {
  background: linear-gradient(180deg, var(--card), #0f0f0f);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
  cursor: pointer;
  position: relative;
}

.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,74,26,0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.gallery-item:hover::before {
  opacity: 1;
}

.gallery-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,74,26,0.2);
  border-color: rgba(255,74,26,0.3);
}

.gallery-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.05);
}

.gallery-info {
  padding: 20px;
  position: relative;
  z-index: 2;
}

.gallery-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-title {
  color: var(--accent);
  transform: translateX(4px);
}

.gallery-description {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  margin: 0 0 12px;
  line-height: 1.5;
}

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

.gallery-tag {
  background: rgba(255,74,26,0.1);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(255,74,26,0.2);
}

/* Lightbox Modal */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
  animation: scaleIn 0.3s ease;
}

.lightbox-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: var(--accent);
  color: #111;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  background: var(--accent-2);
  transform: scale(1.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,74,26,0.8);
  color: #111;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.lightbox-nav:hover {
  background: var(--accent);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: -70px;
}

.lightbox-next {
  right: -70px;
}

.lightbox-info {
  position: absolute;
  bottom: -60px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--text);
}

.lightbox-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
}

.lightbox-description {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  margin: 0;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { 
    opacity: 0;
    transform: scale(0.8);
  }
  to { 
    opacity: 1;
    transform: scale(1);
  }
}

/* Loading skeleton */
.gallery-skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 75%);
  background-size: 200px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 12px;
  height: 350px;
}

/* Button link styling */
.btn-row a {
  text-decoration: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
  }
  
  .gallery-filters {
    gap: 10px;
    margin-bottom: 32px;
  }
  
  .filter-btn {
    padding: 6px 14px;
    font-size: 13px;
  }
  
  .gallery-item:hover {
    transform: translateY(-4px);
  }
  
  .lightbox-content {
    max-width: 95vw;
    max-height: 85vh;
  }
  
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .lightbox-prev {
    left: -50px;
  }
  
  .lightbox-next {
    right: -50px;
  }
  
  .lightbox-close {
    top: -35px;
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .gallery-item {
    margin: 0 auto;
    max-width: 100%;
  }
  
  .gallery-image {
    height: 200px;
  }
  
  .gallery-info {
    padding: 16px;
  }
  
  .gallery-title {
    font-size: 16px;
  }
  
  .gallery-description {
    font-size: 13px;
  }
  
  .gallery-filters {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  
  .filter-btn {
    padding: 8px 20px;
    width: 100%;
    max-width: 200px;
  }
  
  .lightbox-nav {
    position: fixed;
    top: 50%;
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
  
  .lightbox-prev {
    left: 15px;
  }
  
  .lightbox-next {
    right: 15px;
  }
  
  .lightbox-close {
    top: -30px;
    width: 30px;
    height: 30px;
    font-size: 16px;
  }
}
