.top p {
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 1rem;
}


/* Section Layout */

section {
    margin-bottom: 40px;
}

section h2 {
    color: var(--primary-color);
    display: block;
    flex-basis: 100%;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

section p {
    margin-top: 0.75rem;
}

section p:nth-child(1) {
    margin-top: 0;
}

section ul {
    list-style-type: disc;
    padding-left: 20px;
}


/* Project Information */

.project-images {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    position: relative;
}

.project-images h2 {
    margin-bottom: 10px;
    width: 100%;
}

.project-images figure {
    margin: 0 0 2rem 0;
    max-width: 60%;
    text-align: center;
    transform: translate(0, 0) scale(1);
    transform-origin: center center;
    transition: transform 0.3s ease-in-out;
}

.project-images figure label {
    display: flex;
    flex-direction: column;
}

.project-images figure img {
    background-color: var(--bg-color);
    border: solid var(--bg-color) 0.125rem;
    border-radius: 0.5rem;
    cursor: zoom-in;
    height: auto;
    position: relative;
    width: 100%;
}

.project-images figure img.with-transparency {
    background-color: transparent;
    border: transparent 0.25rem;
}

.project-images figure figcaption {
    background-color: var(--bg-color);
    border-radius: 0.5rem;
    display: flex;
    font-size: 0.9rem;
    margin: 0.5rem auto;
    padding: 0 0.5rem;
    text-align: center;
}

.project-images figure.scaled {
    transform: translate(var(--image-translate-x), var(--image-translate-y)) scale(var(--image-scale));
}

.project-images figure.scaled img {
    cursor: zoom-out;
}

.project-images figure.top-image {
    z-index: 1002;
}


/* Image Zooming */

.project-images .zoom-lens {
    border: 1px solid var(--bg-color);
    border-radius: 5%;
    height: 200px;
    position: absolute;
    transform: scale(var(--zoom-scale));
    width: 200px;
    z-index: 1003;
}
