.dbw-flowers-archive {
    max-width: 1500px;
    margin: 0 auto;
    padding: 50px 20px;
}

.dbw-flowers-archive__header {
    text-align: center;
    margin-bottom: 35px;
}

.dbw-flowers-archive__header h1 {
    margin: 0 0 22px;
}

.dbw-flowers-archive__description {
    max-width: 820px;
    margin: 0 auto 24px;
}

.dbw-flower-filter-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.dbw-flower-filter {
    width: min(100%, 360px);
    padding: 12px 14px;
    border: 1px solid currentColor;
    border-radius: 0;
    background: #fff;
}

.dbw-flowers-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px;
}

.dbw-flower-card[hidden] {
    display: none;
}

.dbw-flower-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.dbw-flower-card__media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f3f3f3;
}

.dbw-flower-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dbw-flower-card__overlay,
.dbw-flower-card__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 18px;
    font-weight: 700;
}

.dbw-flower-card__overlay {
    color: #fff;
    background: rgba(0, 0, 0, 0.48);
    opacity: 0;
    transition: opacity 180ms ease-in-out;
}

.dbw-flower-card__link:hover .dbw-flower-card__overlay,
.dbw-flower-card__link:focus-visible .dbw-flower-card__overlay {
    opacity: 1;
}

.dbw-flower-card__placeholder {
    color: #222;
    background: #f3f3f3;
}

.dbw-flowers-empty {
    text-align: center;
}

.dbw-flower-taxonomy-back {
    text-align: center;
    margin-top: 35px;
}

.dbw-flower-button {
    display: inline-block;
    padding: 12px 22px;
    border: 1px solid currentColor;
    color: inherit;
    text-decoration: none;
    line-height: 1.2;
}

.dbw-flower-button:hover,
.dbw-flower-button:focus-visible {
    text-decoration: underline;
}

@media (max-width: 1200px) {
    .dbw-flowers-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .dbw-flowers-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .dbw-flowers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 420px) {
    .dbw-flowers-grid {
        grid-template-columns: 1fr;
    }
}
