body {
    padding: 16px;
    object-fit: cover;
    transition: opacity 0.3s ease;
    padding-bottom: 350px;
}
#background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 110vh;
    overflow: hidden;
    z-index: -1;
    margin:0;
}


#background-svg {

    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    margin:0;

}
body.is-loaded .block {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.block:not(.loaded) img {
    opacity: 0;
}

.block:not(.loaded)::before {
    content: '';
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1; /* fallback square while image loads */
    border-radius: 4px;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.06) 25%,
        rgba(255,255,255,0.12) 50%,
        rgba(255,255,255,0.06) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.block {
    width: calc(33.33333333% - 37.3px);
    margin-bottom: 16px;
    background-color: rgb(30, 17, 9);
    backdrop-filter: unset;
    -webkit-backdrop-filter: unset;
    padding-bottom: 10px;
}


.block img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    transition: opacity 0.3s ease;
}

.skills {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin: 0;
    flex-grow: 1;
    align-items:flex-end;
    align-self: flex-start;
}

.skill {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 4px 6px;
    border-color: rgba(255, 255, 255, 0.1);
    border-style: solid;
    border-width: 1px;
    align-content: center;
    opacity: .5;

}

.endcap {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    min-width: 100%;
    max-height: 70px;
    justify-content: flex-end;
    font-size: x-small;
}

.endcap p {
    margin: 0;
    opacity: .3;
    align-content: center;

}

.block.wide {
    width: calc(66.666% - 54px);
}


@media (max-width: 1300px) {
    .block {
        width: calc(50% - 46px);
    }
    .block.wide {
    width: calc(100% - 72px);
}
}

@media (max-width: 800px) {
    .block {
        width: calc(100% - 72px);
    }
}