.gallery-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }


  .gallery-content, #gallery-content {
    max-width: 900px;
    margin: 60px auto;
    text-align: center;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .gallery-content h2, #gallery-content h2 {
    margin-bottom: 10px;
  }

  .theme-line {
    width: 60px;
    height: 2px;
    background: #c5a059;
    margin: 5px auto;
  }

  .gallery-content p, #gallery-content p {
    color: #777;
    line-height: 1.6;
    padding-top: 5px;
  }


  .gallery-grid {
    margin: 60px auto 100px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 10px;
    grid-auto-flow: dense;
  }

  .gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: 0.4s ease;
  }

  .gallery-grid img:nth-child(6n + 1) {
    grid-column: span 2;
    grid-row: span 2;
  }

  .gallery-grid img:nth-child(6n + 4) {
    grid-column: span 2;
  }

  .gallery-grid img:nth-child(6n + 6) {
    grid-row: span 2;
  }


  /* MODERN MODAL */

  .full-gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
  }

  .full-gallery-modal.active {
    opacity: 1;
    pointer-events: auto;
  }

  .modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
  }

  .modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
  }

  #modalFullImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    transition: opacity 0.4s ease, transform 0.4s ease;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  }

  .modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 35px;
    cursor: pointer;
    z-index: 100;
    transition: 0.3s;
    opacity: 0.7;
  }

  .modal-close:hover {
    opacity: 1;
    transform: rotate(90deg);
  }

  .modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 100;
    padding: 20px;
    opacity: 0.5;
    transition: 0.3s;
    user-select: none;
  }

  .modal-nav:hover {
    opacity: 1;
  }

  .modal-nav.prev { left: -60px; }
  .modal-nav.next { right: -60px; }

  .modal-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    letter-spacing: 2px;
    opacity: 0.6;
    z-index: 10;
  }

  .modal-loader {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.1);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
  }

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

  @media (max-width: 768px) {
    .modal-nav {
        font-size: 25px;
        padding: 10px;
    }
    .modal-nav.prev { left: 0; }
    .modal-nav.next { right: 0; }
    .modal-content { height: 60vh; width: 95%; }
  }