body {
    display: grid;
    grid-template-columns: 35% 1fr;
    column-gap: 2.5%;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    background-color: #ffffff;
    font-family: Inter, sans-serif;
}

.top_imgs {
    position: relative;
    width: 100%;
    height: 245px;
}

#background_img {
    display: block;
    width: 108%;
    height: 288px;
    object-fit: cover;
    background-color: #918585;
    opacity: 0;
    transition: opacity 280ms ease;
}

#avatar_img {
    position: absolute;
    left: 45px;
    bottom: -78px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #ffffff;
    transform: scale(0.96);
    transition: transform 320ms ease;
}

#background_img.is-loaded,
#avatar_img.is-loaded {
    opacity: 1;
}

#avatar_img.is-loaded {
    transform: scale(1);
}

.topic_sections {
    width: 108%;
    align-self: start;
}

.topic_sections ul {
    margin: -70px 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid #dddddd;
}

.topic_sections li {
    border-bottom: 1px solid #dddddd;
}

.topic_sections a {
    display: block;
    padding: 8px 20px;
    color: #1f1f1f;
    font-size: 18px;
    line-height: 1.15;
    text-decoration: none;
}

.works {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
    padding: 4% 4%;
    box-sizing: border-box;
    height: 100vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #b5b5b5 transparent;
}

.works::-webkit-scrollbar {
    width: 8px;
}

.works::-webkit-scrollbar-track {
    background: transparent;
}

.works::-webkit-scrollbar-track-piece {
    margin: 12px 0;
}

.works::-webkit-scrollbar-thumb {
    background: #b5b5b5;
    border-radius: 999px;
}

.works-list {
    display: grid;
    grid-template-columns: repeat(2, 45%);
    column-gap: 6%;
    row-gap: 3%;
    margin-top: 1%;
    padding: 0;
    list-style: none;
    justify-content: center;
}

.works-list li {
    min-width: 0;
}

.works-list a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.works-list figure {
    margin: 0;
}

.works-list img {
    display: block;
    width: 100%;
    aspect-ratio: 1.62 / 1;
    object-fit: cover;
    background-color: #d9d9d9;
}

.work-media {
    position: relative;
}

.work-image {
    opacity: 0;
    transition: opacity 220ms ease;
}

.work-image.is-loaded {
    opacity: 1;
}

.work-image-skeleton {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-color: #ececec;
    animation: skeleton-pulse 1.4s ease-in-out infinite;
    transition: opacity 220ms ease;
}

.work-image-skeleton.is-hidden {
    opacity: 0;
    animation: none;
}

.works-list figcaption {
    margin-top: 12px;
    text-align: center;
}

.works-list h5,
.works-list p {
    margin: 0;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.2;
    color: #7f7f7f;
}

.works-list h5 {
    color: #000000;
    font-weight: 700;
}

.works-list span {
    display: block;
    width: fit-content;
    margin: 12px auto 0;
    padding: 8px 36px;
    background-color: #5A5A5A;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.2;
}

.work-item {
    opacity: 0;
    transform: translateY(18px);
    animation: work-card-enter 420ms ease forwards;
}

.skeleton-card {
    display: block;
}

.skeleton-card figure {
    margin: 0;
}

.skeleton-block {
    position: relative;
    overflow: hidden;
    background: #ececec;
}

.skeleton-block::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
    animation: skeleton-shimmer 1.2s ease-in-out infinite;
}

.skeleton-image {
    width: 100%;
    aspect-ratio: 1.62 / 1;
}

.skeleton-card figcaption {
    margin-top: 12px;
}

.skeleton-title {
    width: 68%;
    height: 16px;
    margin: 0 auto;
}

.skeleton-text {
    width: 86%;
    height: 14px;
    margin: 8px auto 0;
}

.skeleton-button {
    width: 132px;
    height: 36px;
    margin: 12px auto 0;
    background: #d8d8d8;
}

@keyframes skeleton-shimmer {
    100% {
        transform: translateX(100%);
    }
}

@keyframes skeleton-pulse {
    0%,
    100% {
        background-color: #e9e9e9;
    }
    50% {
        background-color: #f3f3f3;
    }
}

@keyframes work-card-enter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
