/* ─── Gallery Section ─── */
  .gallery-section {
    max-width: 1400px;
    margin: 0 auto;
    /*padding: 80px 40px;*/
  }

  .gallery-section .label {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #b8953e;
    margin-bottom: 12px;
  }

  .gallery-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 50px;
  }

  /* ─── Grid ─── */
  .project-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  @media (max-width: 1024px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 600px)  { .project-grid { grid-template-columns: 1fr; } }

  /* ─── Project Card ─── */
  .project-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  }

  .project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }

  .project-card:hover img {
    transform: scale(1.05);
  }

  .project-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
  }

  .project-card:hover .overlay { opacity: 1; }

  .overlay .project-name {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: #fff;
    margin-bottom: 4px;
  }

  .overlay .project-type {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  .overlay .view-hint {
    margin-top: 12px;
    font-size: 12px;
    color: #b8953e;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .view-hint svg { transition: transform 0.3s ease; }
  .project-card:hover .view-hint svg { transform: translateX(4px); }

  /* ─── Expanded Modal / Lightbox ─── */
  .modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    overflow-y: auto;
  }

  .modal-backdrop.active {
    opacity: 1 !important;
    visibility: visible !important;
  }

  .modal-contentx {
    max-width: 1200px !important;
    margin: 60px auto !important;
    padding: 0 40px 60px !important;
    transform: translateY(30px) !important;
    transition: transform 0.4s ease !important;
  }

  .modal-backdrop.active .modal-contentx {
    transform: translateY(0);
  }

  /* Modal header */
  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 30px;
  }

  .modal-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    color: #fff;
    font-weight: 400;
  }

  .modal-header .project-tag {
    font-size: 12px;
    color: #b8953e;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 6px;
  }

  .close-btn {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    background: rgba(255,255,255,0.05) !important;
    color: #fff !important;
    font-size: 24px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
  }

  .close-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
  }

  /* Hero image */
  .modal-hero {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
  }

  .modal-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease;
  }

  /* Thumbnail strip */
  .modal-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
  }

  .modal-thumb {
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease, transform 0.3s ease;
    position: relative;
  }

  .modal-thumb.active {
    border-color: #b8953e;
  }

  .modal-thumb:hover {
    transform: translateY(-3px);
  }

  .modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .modal-thumb .thumb-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    font-size: 11px;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  /* Navigation arrows */
  .nav-arrows {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    justify-content: center;
  }

  .nav-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }

  .nav-arrow:hover {
    background: rgba(255,255,255,0.15);
    border-color: #b8953e;
    color: #b8953e;
  }

  /* Image counter */
  .image-counter {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 1px;
  }