:root {
  --primary: #0056b3;
  --primary-dark: #003d7a;
  --primary-light: #e6f0ff;
  --accent: #106fe1;
  --text: #333;
  --text-light: #666;
  --gray-light: #f8f9fa;
  --border: #e0e3e7;
  --white: #ffffff;
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ===== Breadcrumb ===== */
.gallery-breadcrumb {
  background: var(--gray-light);
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}

.gallery-breadcrumb ol {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}

.gallery-breadcrumb li {
  display: flex;
  align-items: center;
}

.gallery-breadcrumb li:not(:first-child)::before {
  content: '/';
  margin: 0 10px;
  color: var(--text-light);
}

.gallery-breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

.gallery-breadcrumb a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Gallery Hero Section - Full Width */
.gallery-page-hero {
  background: linear-gradient(rgba(0, 86, 179, 0.9), rgba(0, 86, 179, 0.9)), 
              url('../assets/img/gallery-bg.jpg') center/cover no-repeat;
  padding: 100px 0;
  text-align: center;
  color: white;
}

.gallery-hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Container adjustments */
.gallery-container {
  width: 100%;
  max-width: 1140px;
  margin: 20px auto;
  padding: 0 15px;
}

.gallery-hero h1 {
  font-weight: 600;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.gallery-hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Filters */
.gallery-filters {
  text-align: center;
  margin-bottom: 30px;
}

.gallery-filters ul {
  list-style: none;
  padding: 0;
  display: inline-block;
  margin: 0;
}

.gallery-filters li {
  display: inline-block;
  background: rgba(78, 154, 241, 0.1);
  padding: 8px 15px;
  margin: 5px;
  border-radius: 20px;
  color: #4e9af1;
  font-weight: 500;
  font-size: 14px;
  border: 1px solid #4e9af1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-filters li:hover,
.gallery-filters .filter-active {
  background: #4e9af1;
  color: #fff;
}

/* Gallery Grid */
.gallery-grid {
  column-count: 4;
  column-gap: 1.5rem;
  padding-bottom: 60px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
  position: relative;
}

.gallery-card:hover {
  transform: scale(1.02);
}

.gallery-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* Overlay */
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 27, 51, 0.7);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.project-info {
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.gallery-card:hover .project-info {
  transform: translateY(0);
}

.project-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: white;
}

.project-info p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
}

/* View Button */
.view-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 4px;
  color: white;
  padding: 8px 15px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.view-btn:hover {
  background: #4e9af1;
  color: white;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 0;
  color: #999;
  display: none;
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 10px;
  color: #4e9af1;
}

.empty-state h4 {
  color: #0d1b33;
}

.empty-state p {
  color: #64748b;
}

/* Custom Modal */
.custom-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: auto;
  transition: opacity 0.3s;
}

.custom-modal-content {
  position: relative;
  margin: auto;
  padding: 20px;
  width: auto;
  max-width: 90%;
  max-height: 90vh;
  top: 50%;
  transform: translateY(-50%);
}

.custom-modal-close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.custom-modal-close:hover {
  color: #4e9af1;
}

.modal-image {
  display: block;
  margin: 0 auto;
  max-height: 80vh;
  max-width: 100%;
}

.modal-title {
  color: white;
  text-align: center;
  margin-top: 15px;
  font-size: 1.5rem;
}

/* Responsive */
@media (max-width: 1200px) {
  .gallery-grid {
    column-count: 3;
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    column-count: 2;
  }

  .gallery-hero h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    column-count: 1;
  }

  .gallery-filters ul {
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    justify-content: flex-start;
    padding-bottom: 10px;
  }
  
  .custom-modal-content {
    width: 95%;
  }
}