body.modal-open {
  overflow: hidden;
}

.portfolio-nav ul {
    padding: 20px;
    list-style: none;
    display: flex;
    justify-content: center;
}

.portfolio-nav a {
    display: block;
    padding: 15px 25px;
    text-decoration: none;
    color: #b0b0b0;
    font-weight: bold;
    transition: all 0.3s;
    text-transform: uppercase;
}

.portfolio-nav a:hover,
.portfolio-nav a.active {
    background-color: var(--accentuation-color);
    color: white;
}

.portfolio {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(calc(20%), 1fr));
    gap: 24px;
}

.card {
    overflow: hidden;
    background: rgb(27, 27, 27);
    cursor: pointer;
    transition: outline 0.1s ease;
}

.card:hover {
    outline: 2px solid var(--accentuation-color);
}

.card img {
    width: 100%;
    height: 230px;
}

.card-content {
    padding: 18px;
}


.card h3 {
    margin-bottom: 8px;
    font-size: 1rem;
    font-family: "Poppins", sans-serif;
    text-transform: uppercase;
}

.card p {
    color: var(--secondary-color);
    line-height: 1.5;
}

.card.hidden {
    display: none;
}

.overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
    background: rgba(31, 31, 31, 0.72);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}

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

.portfolio-details {
    position: relative;
    width: 80%;
    height: 80%;
    padding:10px;
    background: rgb(17, 17, 17);
    border: 1px solid #333;
    transform: scale(0.9);
    transition: transform 0.1s ease;
    display: flex;
}

.overlay.active .portfolio-details {
    transform: scale(1);
}

.portfolio-details img {
    width: 100%;
    max-height: 320px;
    border: 1px solid #333;
    transition: border-color 0.1s;
}

.portfolio-details img:hover {
    border-color: var(--accentuation-color);
    cursor: pointer;
}

.portfolio-details h3 {
    font-size: 1.2rem;
    font-family: "Poppins", sans-serif;
    text-transform: uppercase;
}

.portfolio-details h3::after {
    content: "";
    display: inline-block;
    width: 120px;
    height: 1px;
    background-color: var(--accentuation-color);
    margin: 4px 10px;
}

.portfolio-details p {
    color: var(--secondary-color);
    line-height: 1.7;
    height: auto;
}

@media (max-width: 600px) {
    body {
        padding: 25px 15px;
    }

    .portfolio-details {
        padding: 20px;
    }

    .portfolio-details h2 {
        font-size: 1.5rem;
    }
}

.portfolio-details-gallery {
    width: 900px;
    background: #1f1f1f;
    overflow-y: scroll;
    height: auto;
    padding: 10px;
}

.portfolio-details-content {
    width: 100%;
    padding:20px;
    display: flex;
    flex-flow: column;
}

.portfolio-details-description {
    flex: 1;
    margin:20px;
}

.portfolio-details-description ul {
    margin:20px;
}

.portfolio-details-downloads-content {
    display: flex;
    gap: 20px;
}

.portfolio-details-download {
    background-color: #2a2a2a;
    text-decoration: none;
    color: #e0e0e0;
    padding: 10px 15px;
    text-align: center;
    font-size: 0.9rem;
    border: 1px solid #333;
    transition: border-color 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-details-download:hover {
    border-color: var(--accentuation-color);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
    background: rgba(0, 0, 0, 0.9);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}

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

.lightbox img {
    max-height: 90%;
    /* max-height: fit-content; */
}