/* =========================================================
   GALLERY PAGES
   Shared filter UI used on factory-gallery.html,
   company-events.html and legal-documents.html, plus the
   gallery grid/card + lightbox used on factory-gallery.html
   and company-events.html.
========================================================= */


/* ---------- Shared Filter UI ---------- */

.filter-section {
      padding: 40px 20px 20px;
      background-color: #f8f9fa;
    }

.filter-container {
      max-width: 1200px;
      margin: 0 auto;
    }

.filter-title {
      text-align: center;
      font-size: 1.5rem;
      color: var(--primary);
      margin-bottom: 25px;
    }

.filter-buttons {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 12px;
    }

.filter-btn {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 12px 20px;
      background: white;
      border: 1.5px solid #d1d5ff;
      border-radius: 8px;
      cursor: pointer;
      font-size: 14px;
      font-weight: 500;
      color: #34495e;
      transition: all 0.3s ease;
      font-family: inherit;
    }

.filter-btn:hover {
      border-color: rgba(255, 165, 0, 0.6);
      background: rgba(255, 165, 0, 0.1);
    }

.filter-btn.active {
      background: rgba(255, 165, 0, 0.2);
      border-color: #ffa600;
      color: var(--primary);
    }

.filter-btn svg {
      width: 20px;
      height: 20px;
      flex-shrink: 0;
    }


/* ---------- factory-gallery.html ---------- */

.factory-gallery {
      padding: 60px 40px;
      background: #f8f9fa;
    }

.gallery-container {
      max-width: 1200px;
      margin: 0 auto;
    }

.gallery-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 25px;
    }

.gallery-item {
      background: #ffffff;
      border-radius: 16px;
      overflow: hidden;
      border: 1.5px solid #d1d5ff;
      box-shadow: var(--card-shadow);
      transition: all 0.35s ease;
      cursor: pointer;
    }

.gallery-item:hover {
      transform: translateY(-8px);
      box-shadow: var(--card-shadow-hover);
      border-color: rgba(255, 165, 0, 0.6);
    }

.gallery-item img {
      width: 100%;
      height: 320px;
      object-fit: cover;
      display: block;
    }

.gallery-item .item-info {
      padding: 18px;
      text-align: center;
    }

.gallery-item .item-info h4 {
      font-size: 16px;
      color: var(--primary);
      font-weight: 600;
    }

.gallery-item .item-info span {
      font-size: 13px;
      color: var(--primary-light);
    }

.no-results {
      text-align: center;
      padding: 60px 20px;
      color: #64748b;
      font-size: 16px;
      display: none;
    }

.no-results.visible {
      display: block;
    }

.lightbox {
      display: flex;
      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;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 0.3s ease, visibility 0.3s ease;
    }

.lightbox.active {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
    }

.lightbox img {
      max-width: 90%;
      max-height: 85%;
      border-radius: 12px;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
      transform: scale(0.96);
      transition: transform 0.3s ease;
    }

.lightbox.active img {
      transform: scale(1);
    }

.lightbox-close {
      position: absolute;
      top: 30px;
      right: 30px;
      font-size: 40px;
      color: white;
      cursor: pointer;
      transition: transform 0.3s, color 0.3s;
      line-height: 1;
      z-index: 1001;
    }

.lightbox-close:hover {
      transform: scale(1.15);
      color: #ffa600;
    }


/* ---------- company-events.html : page banner ---------- */
.hero {
      background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
      color: white;
      text-align: center;
      padding: 60px 20px;
      margin-top: 20px;
    }

.hero h1 {
      font-size: var(--h1-size);
      margin-bottom: 1rem;
      position: relative;
      display: inline-block;
      padding-bottom: 18px;
    }

.hero h1::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 70px;
      height: 4px;
      border-radius: 2px;
      background: linear-gradient(90deg, var(--accent), #ffd089);
    }

.hero p {
      font-size: 1.1rem;
      opacity: 0.9;
    }

/* ---------- company-events.html ---------- */

.gallery-section {
      padding: 40px 40px 60px;
      background-color: #f8f9fa;
    }

.gallery-item-info {
      padding: 15px;
      text-align: center;
    }

.gallery-item-info h4 {
      color: var(--primary);
      font-size: 1rem;
      margin-bottom: 5px;
    }

.gallery-item-info p {
      color: #666;
      font-size: 0.85rem;
    }