

    .portfolios-row {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      justify-content: center;
    }

    .portfolio {
      flex: 1 1 calc(30% - 20px);
      max-width: 400px;
      border-radius: 10px;
      overflow: hidden;
      position: relative;
      border: none;
      box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.75);
    }

    .port-viewer {
      position: relative;
      overflow: hidden;
      height: 300px;
      cursor: zoom-in;
    }

    .port-group {
      width: 100%;
      height: 100%;
      position: relative;
    }

    .port {
      width: 100%;
      height: 100%;
      display: none;
      position: absolute;
    }

    .port:first-child { display: block; }

    /* DOT BUTTONS */
    .port-buttons {
      position: absolute;
      left: 15px;
      z-index: 10;
    }

    .port-btn {
      border: none;
      background: none;
      color: white;
      opacity: 0.6;
      font-size: 36px;
      padding: 0px;
    }

    .port-btn.active, .port-btn:hover {
      color: #002587;
      opacity: 1;
      cursor: pointer;
    }

    .port img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 5px;
    }

    /* HOVER CAPTION */
    .caption {
      position: absolute;
      bottom: 0;
      width: 100%;
      padding: 10px;
      text-align: center;
      background: rgba(0, 0, 0, 0.6);
      color: white;
      font-size: 20px;
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .port-viewer:hover .caption {
      opacity: 1;
    }

    /* LIGHTBOX */
    .lightbox {
      display: none;
      position: fixed;
      z-index: 9999;
      left: 0; top: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.9);
      justify-content: center;
      align-items: center;
    }

    .lightbox-img {
      max-width: 90%;
      max-height: 90%;
      border-radius: 10px;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }

    .lightbox-close {
      position: absolute;
      top: 20px; right: 30px;
      font-size: 40px;
      color: white;
      cursor: pointer;
    }

    .lb-arrow {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      font-size: 50px;
      color: white;
      cursor: pointer;
      padding: 10px;
      z-index: 2;
    }

    .lb-prev { left: 40px; }
    .lb-next { right: 40px; }

    @media(max-width: 1000px) { .portfolio { flex: 1 1 calc(30% - 20px); max-width: 30%; } }
    @media(max-width: 700px) { .portfolio { flex: 1 1 calc(50% - 20px); max-width: 47%; } }
    @media(max-width: 500px) { .portfolio { flex: 1 1 100%; max-width: 90%; } }