.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-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-single {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 20px;
}

.dbw-flower-single__header {
    text-align: center;
    margin-bottom: 30px;
}

.dbw-flower-single__header h1 {
    margin: 0;
}

.dbw-flower-single__main-image {
    display: flex;
    justify-content: center;
    margin: 0 auto 30px;
}

.dbw-flower-single__main-image a {
    display: inline-block;
}

.dbw-flower-single__image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.dbw-flower-single__content {
    max-width: 800px;
    margin: 0 auto 35px;
}

.dbw-flower-gallery {
    margin-top: 30px;
}

.dbw-flower-gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 120px));
    justify-content: center;
    gap: 12px;
}

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

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

.dbw-flower-single__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;
}

.dbw-flower-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(0, 0, 0, 0.86);
}

.dbw-flower-lightbox.is-open {
    display: flex;
}

body.dbw-flower-lightbox-open {
    overflow: hidden;
}

.dbw-flower-lightbox__image {
    max-width: min(100%, 1200px);
    max-height: 90vh;
    width: auto;
    height: auto;
}

.dbw-flower-lightbox__close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 44px;
    height: 44px;
    border: 0;
    background: #fff;
    color: #000;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

@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;
    }
}
