@import url("https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Open+Sans:wght@300;400;500;700&display=swap");

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 75%;
    margin: 0 auto;
    font-family: "Open Sans", sans-serif;
}

main {
    flex: 1;
    text-align: center;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#hero {
    display: flex;
    align-items: center;
}

h1 {
    font-size: 2rem;
}

p {
    line-height: 0.8cm;
    text-align: left;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

h1 a {
    color: #000;
    text-decoration: none;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 2.5rem;
}

footer {
    font-size: 0.8rem;
}

#devendra-img {
    height: 13rem;
    width: 13rem;
    border-radius: 50%;
    object-fit: cover;
    margin: 4.5rem;
}

#work-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.work-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    border: 1px solid #e5e5e5;
    border-radius: 0.75rem;
    padding: 0.75rem;
    box-shadow: 0 2px 8px rgb(0 0 0 / 6%);
}

.work-item-data{
    text-align: left;
    flex: 1;
}

.work-item-data h2,
.work-item-data p {
    margin: 0;
}

.work-item-data h2 {
    margin-bottom: 0.5rem;
}

.work-tags {
    display: flex;
    list-style-type: none;
    padding: 0;
    justify-content: flex-start;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin: 0.75rem 0;
}

.work-tags li {
    border: 1px solid #ddd;
    border-radius: 999px;
    padding: 0.18rem 0.5rem;
    font-size: 0.74rem;
}

.work-links {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    line-height: normal;
}

.archive-link,
.archive-intro {
    text-align: center;
}

.archive-link {
    margin: 1.5rem 0;
}

.work-image {
    width: min(100%, 28rem);
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
    overflow: hidden;
}

.work-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-preview {
    cursor: zoom-in;
}

#image-preview {
    max-width: 95vw;
    max-height: 95vh;
    border: 0;
    border-radius: 0.75rem;
    padding: 1rem;
}

#image-preview img {
    display: block;
    max-width: 100%;
    max-height: 85vh;
}

#image-preview button {
    display: block;
    margin: 0 0 0.75rem auto;
}

#image-preview::backdrop {
    background: rgb(0 0 0 / 70%);
}

@media (max-width: 700px) {
    body {
        max-width: 90%;
    }

    .work-item {
        flex-direction: column;
        align-items: stretch;
    }

    .work-image,
    .work-item-data {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .work-item {
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
    }

    .work-image {
        width: 30%;
        max-width: 30%;
    }
}
