* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.sono-font {
    font-family: "Sono", monospace;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    font-variation-settings:
            "MONO" 1;
}

body {
    background: ghostwhite;
    padding: 2rem;
}

.container {
    margin: 0 auto;
}

h1 {
    color: cornflowerblue;
    margin-bottom: 3rem;
    font-family: "Ranchers", sans-serif;
    font-weight: 400;
    text-align: center;
    font-style: normal;
    font-size: 5rem;
    line-height: 4rem;
    text-shadow: 0 5px 5px antiquewhite;
    -webkit-text-stroke: 2px #5f8ee3;
}


.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
    justify-content: center;
}

input[type="text"], select {
    border: 10px double transparent;
    border-radius: 100%;
    font-size: 1rem;
    min-width: 12rem;
    padding: 0.5rem;
    text-align: center;
    background-color: antiquewhite;
    color: darksalmon;
    box-shadow: 0 5px 10px cornflowerblue;
    transition: border-bottom-color 1s,
                border-top-color 1s,
                border-left-color 1s,
                border-right-color 1s,
                box-shadow 1s;
}

::placeholder {
    color: darksalmon;
}

input[type="text"]:focus, select:focus {
    border-color: rgba(240, 128, 128, 30%);
    box-shadow: 0 10px 15px cornflowerblue;
    outline: none;
}

.cards-grid {
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
}

.card {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: end;
    max-width: 12.5rem;
}

.card:hover {
    transform: translateY(-4px);
}

.card-image {
    border-radius: 4px;
    object-fit: cover;
    width: 100%;
}

.card-year {
    font-size: 0.75rem;
    color: darkseagreen;

    .year {
        font-size: 1rem;
    }
}

.card-tags-and-year {
    display: flex;
    justify-content: space-between;
}

.card-from {
    color: darksalmon;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.card-tags {
    display: flex;
    gap: 1rem;
}

.no-results {
    color: #666;
    padding: 3rem;
    text-align: center;
}

.modal {
    background: rgba(0, 0, 0, 0.8);
    bottom: 0;
    display: none;
    left: 0;
    overflow-y: auto;
    padding: 2rem;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1000;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: start;
}

.modal-content {
    background: white;
    border-radius: 8px;
    max-width: 1000px;
    padding: 2rem;
    position: relative;
    width: 100%;
}

.modal-close {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.modal-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.modal-image {
    border-radius: 4px;
    width: 100%;
}

.modal-image-label {
    color: #555;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
}