main {
    justify-content: space-around;
    min-height: 100vh;
    
}
.controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 1.5rem;
    justify-content: space-between;
    width: 100vw;
    min-height: 3rem;
    background-color: #dbeeff;
}
.sort {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.sort .chevron {
    position: absolute;
    right: 10px;
    pointer-events: none;
    color: #2a6496;
}
#sort-select {
    appearance: none;
    border: 1px solid #a0c4e8;
    border-radius: 8px;
    padding: 6px 32px 6px 12px;
    background: white;
    cursor: pointer;
    font-size: 0.85rem;
}
.filters {
    display: flex;
    align-items: center;

    gap: 0.5rem;
    flex-wrap: wrap; 
}
.filter-btn {
    border: 1px solid #a0c4e8;
    border-radius: 999px;
    background: transparent;
    padding: 6px 16px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.15s;
}
.filter-btn:hover {
    background: #a0c4e8;
}
.filter-btn.active {
    background: #2a6496;
    color: white;
    border-color: #2a6496;
}

.grid-layout {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
}

.item img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    box-shadow: 0 0 1px black;
}
.item {
    box-shadow: inset 0 0 5px black;
    padding: 1rem;
    margin: 1rem;
}
.item a {
    text-decoration: none;
    color: black;
}

@media  screen and (max-width: 480px) {

    main {
        display: flex;
        flex-direction: column;
    }
    .grid-layout {
        display: grid;
        width: 100vw;
        grid-template-columns: 1fr;
    }
    .controls {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
    }

    .filters {
        flex-wrap: wrap;
        gap: 0.4rem;
    }

}