.projects-container {
    box-sizing: border-box;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5.6vw 0 0 0;
}

.projects-container .mainnav{
    width: 46.7vw;
}

.projects-container footer{
    width: 46.7vw;
}


.projects {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-column-gap: 1rem;
    grid-row-gap: 3rem;
    list-style: none;
    padding: var(--big-gap-desktop) 4vw;
    margin: 0;
}

.projects figure {
    padding: 0;
    margin: 0;
}

.projects li {
    list-style: none;
}

.projects a {
    text-decoration: none;
}
.projects a:hover {
    color: var(--color-textcolor);
    text-decoration: underline;
    text-decoration-color: var(--color-highlight);
    text-decoration-skip-ink: none;
    text-decoration-thickness: 1em;
    text-underline-offset: -1em;
}

.projects img {
    width: 100%;
}


/* 미디어 쿼리 */

/* Mobile phones (portrait) */
@media (max-width: 480px) {
/* Styles for small phones */
.projects-container {
    width: 100vw;
    padding: 20px;
}

.projects-container .mainnav{
    width: 100%;
    padding: 0 20px;

}

.projects-container footer{
    width: 100%;
}

.projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 1rem;
    grid-row-gap: 3rem;
    list-style: none;
    padding: var(--big-gap-mobile) 0;
}

}


/* Mobile phones (landscape) and small tablets */
@media (min-width: 481px) and (max-width: 768px) {
/* Styles for larger phones in landscape */
}

/* Common mobile-first approach */
@media (min-width: 320px) {
/* Base mobile styles (smallest phones) */
}

@media (min-width: 375px) {
/* iPhone SE, iPhone 12/13/14 mini */
}

@media (min-width: 414px) {
/* iPhone 6/7/8 Plus, iPhone 11 Pro Max */
}

@media (min-width: 430px) {
/* iPhone 14 Pro Max and similar large phones */
}
