body{
    max-width: 100%;
    margin:0;
    margin-bottom: 64px;
    width:auto;
    font-family: Figtree;
}

body a {
    color: #1580eb;
    text-decoration: none;

}

.hide-on-desktop{
    display: none;
}

.portfolio-grid{
    width: 100%;
}

.portfolio-section {
    width: 45%;
    margin:auto;
    text-align: left;
    border-color: black;
    line-height:1.4rem;
}

#head {
    text-align: center !important;
}

.portfolio-section img{
    width: 100%;
}

.portfolio-interstitial{
    width: 100%;
    text-align: center;
    .small{
        max-width: 48px;
    }
    .extra-small{
        max-width: 32px;
    }
    .medium {
        max-width: 64px;
    }
    .low-medium {
        max-width: 56px;
    }
    .large {
        max-width:96px;
    }
    .extra-large{
        max-width:128px;
    }
    .unbounded{
        max-width: 100%;
    }
}

.large-text {
    margin-bottom:0;
    margin:0; 
    padding-top:0;
}

.large-text{
    font-size: large;
}

.design-sample-images{
    display: table;
    table-layout: fixed;
    width: 100%;
    img {
        aspect-ratio: 16/9;
        object-fit: scale-down;
    }
}

.image-column {
display: table-cell;
padding-left: 5px;
padding-right: 5px;
}

.image-column img{
    aspect-ratio: 16/9;
    object-fit: scale-down;
}

.gallery-column {
    width: 20%;
    padding: 10px;
    img{
        transition: transform ease-in-out .3s;
    }
  }


  
  /* Style the images inside the grid */
  .gallery-column img {
    opacity: 0.8;
    cursor: pointer;
  }
  
  .gallery-column img:hover {
    opacity: 1;
    transform: scale(1.25);
  }
  
  .gallery-row{
    display: inline-flex;
    justify-content: space-evenly;
    width: 100%;
  }

  /* Clear floats after the columns */
  .gallery-row:after {
    content: "";
    display: table;
    clear: both;
  }


  /* The expanding image container (positioning is needed to position the close button and the text) */
  #gallery-large {
    position: relative;
    display: none;
  }

  #expanded-image{
    transition: transform 0.6s cubic-bezier(0.5, 1, 0.89, 1);
  }
  
  /* Expanding image text */
  #imgtext {
    position: absolute;
    bottom: 15px;
    left: 15px;
    color: white;
    font-size: 20px;
  }
  
  /* Closable button inside the image */
  .leftbtn {
    position: absolute;
    top: 50%;
    left: 15px;
    color: white;
    font-size: 35px;
    cursor: pointer;
  }

  .rightbtn {
    position: absolute;
    top: 50%;
    right: 15px;
    color: white;
    font-size: 35px;
    cursor: pointer;
  }

#return-to-top-button{
    display: none;
    position: fixed;
    bottom: 64px;
    left: 32px;
    z-index: 99;
    border:none;
    outline:none;
    background-color: #1580eb;
    color: white;
    cursor: pointer;
    padding: 15px;
    font-size: 18px;
}

#return-to-top-button:hover{
    background-color: #116ac2;
}

@media screen and (max-device-width: 500px){
    .portfolio-section {
        width:90%;
        margin:auto;
        text-align: left;
        line-height: 2.6rem;
    }

    #return-to-top-button{
        display: none !important;
    }

    .hide-on-desktop{
        display:contents;
    }
    .hide-on-mobile{
        display:hide;
    }

    body{
        font-size:x-large;
        margin-bottom: 144px;
    }

    .large-text{
        font-size:x-large;
    }

    .design-sample-images{
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
    }

    .image-column{
        img{
            width:100%;
            aspect-ratio: 16/9;
            height: 56.25%;
        }
    }
    
    .portfolio-interstitial{
        width: 100%;
        text-align: center;
        .small{
            max-width: 192px;
        }
        .extra-small{
            max-width: 128px;
        }
        .medium {
            max-width: 256px;
        }
        .low-medium {
            max-width: 224px;
        }
        .large {
            max-width:384px;
        }
        .extra-large{
            max-width:492px;
        }
        .unbounded{
            max-width: 100%;
        }
    }

    .leftbtn{
        font-size:64px;
    }
    .rightbtn{
        font-size:64px;
    }
}