html {
      scroll-behavior: smooth;
    }
    body {
      font-family: 'Roboto', sans-serif;
      margin-top: 75px;
      background: #fafafa;
      color: #000000;
    }

    /* Header & Titles */
    .gallery-header {
      text-align: center;
      padding: 30px 15px 15px;
    }
    .gallery-header-title {
      font-family: 'Oswald', sans-serif;
      font-size: 2.2rem;
      font-weight: 700;
      margin-bottom: 8px;
      color: #1a2547;
      letter-spacing: 1px;
    }
    .gallery-header-subtitle {
      font-size: 1.1rem;
      color: #555;
      max-width: 600px;
      margin: 0 auto;
      font-weight: 400;
      line-height: 1.5;
    }

    /* Gallery layout */
    .gallery-section {
      max-width: 1100px;
      margin: auto;
      padding: 12px 4vw 45px;
    }
    .gallery-flex {
      display: flex;
      flex-wrap: wrap;
      gap: 13px;
      justify-content: center;
    }
    .gallery-item {
      flex: 0 1 190px;
      max-width: 190px;
      background: #fff;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 3px 12px rgba(0,0,0,0.07);
      transition: transform 0.2s, box-shadow 0.2s;
      cursor: pointer;
    }
    .gallery-item:focus {
      outline: 2.5px solid #007bff;
    }
    .gallery-item:hover {
      transform: translateY(-3px) scale(1.04);
      box-shadow: 0 8px 24px rgba(0,0,0,0.13);
    }
    .gallery-img {
      width: 100%;
      height: 150px;
      object-fit: cover;
      display: block;
      background: #ececec;
      user-select: none;
      opacity: 0;
      transition: opacity 0.6s;
    }
    .gallery-img.fade-in {
      opacity: 1;
    }

    /* Pagination */
    #pagination {
      text-align: center;
      margin-top: 22px;
      user-select: none;
    }
    #pagination button {
      margin: 0 4px;
      padding: 8px 11px;
      font-size: 16px;
      border: 1px solid #ddd;
      border-radius: 5px;
      background: white;
      cursor: pointer;
      transition: background 0.3s, color 0.3s;
      min-width: 37px;
    }
    #pagination button.active,
    #pagination button:hover:not(:disabled) {
      background: #007bff;
      color: white;
      border-color: #007bff;
    }
    #pagination button:disabled {
      opacity: 0.48;
      cursor: default;
    }

    /* Modal */
    #modalZoom {
      display: none;
      position: fixed;
      z-index: 10000;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background-color: rgba(0, 0, 0, 0.9);
      backdrop-filter: blur(6px);
      align-items: center;
      justify-content: center;
      padding-right: 10px;
    }
    #modalZoom.active {
      display: flex;
    }
    #modalZoom .modal-content {
      position: relative;
      max-width: 94vw;
      max-height: 92vh;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
    }
    #modalZoom img {
      max-width: 92vw;
      max-height: 85vh;
      border-radius: 12px;
      box-shadow: 0 0 20px rgb(0 0 0 / 0.7);
      transition: transform 0.3s;
      user-select: none;
      background: #e8e8e8;
      outline: none;
      display: block;
    }
    #modalCloseBtn {
      position: absolute;
      top: 6px;
      right: 12px;
      background: transparent;
      border: none;
      color: #fff;
      font-size: 2.1rem;
      cursor: pointer;
      z-index: 1001;
      user-select: none;
      line-height: 1;
      border-radius: 4px;
      padding: 3px 7px;
      transition: color 0.18s, background 0.18s;
    }
    #modalCloseBtn:hover,
    #modalCloseBtn:focus {
      color: #ffcece;
      background: rgba(80, 80, 80, 0.22);
      outline: none;
    }

    /* RESPONSIVE: Tablet & below */
    @media (max-width: 800px) {
      .gallery-section {
        max-width: 100vw;
      }
      .gallery-header-title {
        font-size: 1.4rem;
      }
      .gallery-header-subtitle {
        font-size: 0.98rem;
      }
      .gallery-item,
      .gallery-item:focus {
        max-width: 38vw;
        flex-basis: 38vw;
      }
      .gallery-img {
        height: 22vw;
        min-height: 110px;
      }
    }

    /* RESPONSIVE: Mobile */
    @media (max-width: 500px) {
      .gallery-header {
        padding: 15px 6px 10px;
      }
      .gallery-header-title {
        font-size: 1.01rem;
      }
      .gallery-header-subtitle {
        font-size: 0.88rem;
      }
      .gallery-section {
        padding: 7px 2vw 30px;
      }
      .gallery-flex {
        gap: 9px;
      }
      .gallery-item,
      .gallery-item:focus {
        max-width: 99vw;
        flex-basis: 99vw;
      }
      .gallery-img {
        width: 100%;
        height: auto;
        min-height: unset !important;
        max-width: 100vw;
        display: block;
        object-fit: contain;
      }
      #modalZoom img {
        max-width: 96vw;
        max-height: 65vh;
        box-shadow: none;
      }
      #modalZoom .modal-content {
        max-width: 99vw;
      }
      #modalCloseBtn {
        font-size: 2.35rem;
        top: 0px;
        right: 3px;
      }
      #pagination button {
        font-size: 14px;
        min-width: 28px;
        padding: 6px 6px;
      }
    }