.portfolio {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    position: static;
    font-weight: 400;
    margin: .5rem 0 2rem 0;
    box-sizing: border-box;

    .flex-container {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items:initial;
        gap: .5rem 1rem;
        margin-top: 0;
        box-sizing: border-box;
    }

    .links {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      flex-direction: column;
        width: calc(33% - .5rem);
        max-width: calc(33% - .5rem);
        line-height: 1.5;
        box-sizing: border-box;
        gap: 0;
   }
    
      .links a:link, .links a:visited {
        display: flex;
        flex-direction: column;
        justify-content: center;
        box-sizing: border-box;
        font-size: .85rem;
        font-weight: 400;
        text-decoration: none!important;
        border-radius: 4px;
        text-align: left;
        padding: .2rem 0 .2rem .2rem!important;
        width: 100%;
        max-width: 100%;
        margin: .25rem 0;
        color: var(--foreground);
        background-color: var(--background);
        border: 1px solid var(--blue2);
        box-shadow: var(--brand-bg) 0 0 5px 1px;
      }
    
      .links a:hover {
        color: var(--dark)!important;
        background-color: var(--brand-alt1)!important;
        border: 1px solid var(--gray2)!important;
        box-shadow: var(--brand-alt1) 0 0 5px 1px!important;
        text-shadow: var(--light) 1px 1px 1px!important;
      }
       
      .links a:active {
        color: var(--light)!important;
        background-color: var(--red)!important;
        border: 1px solid var(--red)!important;
        box-shadow: var(--red) 0 0 5px 1px!important;
        text-shadow: none!important;
      }
    
      .links p:first-child {
        margin: 0 0 .75rem 0;
      }

      .links p {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex-direction: row;
        background-color: var(--blue1);
        width: 100%;
        max-width: 100%;
        border-radius: 4px;
        padding: .25rem!important;
        font-size: 1.2rem;
        text-align: left;
        font-weight: 400;
        color: var(--brand-alt1);
        border: 1px solid var(--background);
        box-shadow: var(--brand-alt1) 0 0 5px 1px;
        margin-bottom: 1rem!important;
        text-shadow: var(--background) 0 0 2px 2px;
        line-height: 1;
      }

      .links p::before {
        font-size: 1.5rem;
        content: '🌐';
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: row;
        width: 2rem;
        height: 2rem;
        max-width: 2rem;
        max-height: 2rem;
        background-color: transparent;
        padding: 0 .5rem 0 .25rem!important;
        margin: 0!important;
        line-height: 1;
    }

      .links p:not(:first-child) {
        margin-top: 1rem!important;
      }

}


@media screen and (max-width: 1100px) {

  .portfolio {
   .links {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      flex-direction: column;
        width: calc(100% - .5rem);
        max-width: calc(100% - .5rem);
        line-height: 1.5;
        box-sizing: border-box;
   }
  }
}