.aboutGrid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 50px;
    max-width: calc(100vh* 4 / 3);
}

.about article h3 {
    color: #f8f7f2;
    font-size: 2.25rem;
}

.about article p {
    color: #f8f7f2;
    font-size: 1.2rem
}

.about aside:first-of-type {
    grid-column: 1 / 4;
    grid-row: 2 / 3; /* Span both rows */
    background-color: #353722fb;
    border: solid 3px #a69981;
    border-radius: 15px;
    min-width: 0;
    height: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.about article {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
    min-width: 0;
    height: 100%;
    background-color: #353722fb;
    border: solid 3px #a69981;
    border-radius: 15px;
}

.about aside:last-of-type {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
    min-width: 0;
    height: 100%;
    background-color: #353722fb;
    border: solid 3px #a69981;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ppFrame {
    width: 300px;
    height: 300px;
    border: solid 3px #a69981;
    border-radius: 50%;
    background-color: white;
    overflow: hidden; /* Ensures the image is clipped to the circle */
    display: flex;
    align-items: center;
    justify-content: center;
}

.polariodFrameDefault {
    width: 245px;
    height: 294px;
    background-color: #f8f7f2;
    display: flex;
    justify-content: center;
    border: solid 1px black;
}

.polariodFrame1.fade-in {
    transform: rotate(2deg);
    transition-delay: 0.5s;
}

.polariodFrame2.fade-in {
    transform: rotate(-2deg);
    transition-delay: 0.8s;
}

.polariodFrame3.fade-in {
    transform: rotate(3deg);
    transition-delay: 1.1s;
}

.pfpDefault {
    width: 200px;
    height: 200px;
    margin-top: 22.5px;
}

.pfp1 {
    background-image: url("/images/homePage/aboutSection/img1.jpg");
    background-size: cover;
    background-position: center;
}

.pfp2 {
    background-image: url("/images/homePage/aboutSection/img2.jpg");
    background-size: cover;
    background-position: center;
}

.pfp3 {
    background-image: url("/images/homePage/aboutSection/img3.jpg");
    background-size: cover;
    background-position: center;
}

.polariodFrameDefault:hover {
    transform: translateY(-15px) scale(1.04) rotate(0deg);
    box-shadow: 0 16px 40px rgba(0,0,0,0.25);
    transition: transform 0.3s cubic-bezier(.25,.8,.25,1), box-shadow 0.3s;
    z-index: 2;
}

.ppFrame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

@media (max-width: 1300px) {
    .aboutGrid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }

    .about article {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }

    .about aside:last-of-type {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        padding: 10px;
    }

    .about aside:first-of-type {
        grid-column: 1 / 3;
        grid-row: 2 / 3;
    }
}

@media (max-width: 830px) {
    .aboutGrid {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 2fr 3fr;
    }

    .about article {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
    }

    .about aside:last-of-type {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }

    .about aside:first-of-type {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
    }

    .polariodStack {
        flex-flow: column;
    }

    .polariodFrame1 {align-self: flex-start; margin-left: 100px;}
    .polariodFrame2 {align-self: flex-end; margin-right: 100px;}
    .polariodFrame3 {align-self: flex-start; margin-left: 90px;}
}