section nav[role="tablist"] {
    margin: 1rem auto;
}

nav[role="tablist"] {
    display: flex;

    justify-content: center;

    gap: 3rem;
}

nav[role="tablist"] button {
    width: 18%;
    height: 3rem;
    border-radius: 2rem;

    font-size: medium;
    color: var(--text-navigation-unselected);

    background-color: var(--background-navigation);
    border-color: var(--background-navigation);
    border-width: 0;
}

nav[role="tablist"] button:hover {
    cursor: pointer;
}

#portfolio {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30%, 1fr));
    gap: 20px;
    padding: 20px;
}

#portfolio img {
    height: 300px;
}

.pill-active {
    color: var(--text-navigation-selected);
}

#personal-work-text {
    text-align: center;
}

#personal-work-contact {
    color: var(--background-navigation);
}

.hide {
    display: none;
}

.test {
    display: flex;
    justify-content: space-around; /* centres items horizontally */
    gap: 0.5rem;
}

.test2 {
    display: flex;

    flex: 1;

    flex-direction: column;

    gap: 0.5rem;
}

.test3 {
    display: flex;
    justify-content: space-around; /* centres items horizontally */
    gap: 0.5rem;

}

.test4 {
    display: flex;

    flex: 1;

    flex-direction: column;

    gap: 0.5rem;

}

.newSection {
    width: 91%;
}

.jim {
    width: 99%;
    margin: 0 auto;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-image-container {
    max-width: 90%;
    max-height: 90%;

    display: flex;

    object-fit: contain;

    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}



.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-information-and-actions {
    position: absolute;
    top: 1rem;
    right: 1.5rem;

    display: flex;
    gap: 1rem;

}

#lightbox-counter {
    color: var(--background-navigation);

    font-size: 1.5rem;
}

#lightbox-fullscreen {
    color: var(--background-navigation);

    font-size: 2rem;

    background: none;
    border: none;

    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.lightbox-close {
    color: var(--background-navigation);

    font-size: 2rem;

    background: none;
    border: none;

    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.lightbox-close:hover {
    opacity: 1;
}

.test2 img {
    width: 100%;

    border-radius: 1rem;

    object-fit: cover;
}
