#gallery {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 0;
    gap: 1rem;
    margin: 4rem;
    column-height: 100px;
}

h1 {
    text-align: center;
    font-size: 4rem;
    color: #722e37;
    margin-top: 125px;
}

.projectbox .projectname {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.projectbox:hover .projectname {
    opacity: 1;
    transition: opacity 0.3s ease;
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.75);
}

.projectbox {
    min-width: 0;
    overflow: hidden;
    border-radius: 15px;
    position: relative;
}

.projectimg {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: auto;
    display: block;
}

.projectname {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 10;
    color: black;
    font-size: 1.5rem;
    font-family: 'Josefin Sans';
    font-weight: 700;
    margin: .5rem;
    padding: .25rem;
}

/* Start of Case Study CSS*/
.casestudyhero {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding-top: 50px;
}

#hook-title {
    text-align: center;
    margin-top: 2.5rem;
    font-size: 5rem;
    font-weight: 800;
    color: #722e37;
}

#hook-image {
    width: 50vw;
    border-radius: 25px;
}

#hook-paragraph {
    text-align: center;
}

.stickyheader {
    position: sticky;
    top: 75px;
    font-size: 3rem;
    color: #722e37;
    margin-top: 0;
}

.sidebyside, .casestudyhero, #footer-placeholder {
    background-color: white;
    position: relative;
    z-index: 10;
}

.sidebyside {
    height: auto;
    align-items: start;
}

.sidebyside p {
    margin: 0 0.5rem 1rem 0.5rem;
}

.gapdiv {
    height: 300px;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.sample-images, .sample-images-2 {
    position: relative;
    background-color: white;
    z-index: 10;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.sample-images img {
    border-radius: 15px;
    width: 30%;
}

.sample-images-2 img {
    border-radius: 15px;
    width: 45vw;
}

@media screen and (max-width: 600px) {
    #gallery {
        margin: 2rem;
        grid-template-columns: 1fr 1fr;
    }

    h1 {
        margin-top: 85px;
    }
}
