.wm-collection-section {
    width: 100%;
    padding: 40px 0;
    box-sizing: border-box;
}

.wm-collection-section *,
.wm-collection-section *::before,
.wm-collection-section *::after {
    box-sizing: border-box;
}

.wm-collection-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 28px;
}

.wm-collection-header h2 {
    margin: 0 0 10px;
    color: #111;
    font-size: clamp(30px, 4vw, 38px);
    line-height: 1;
    font-weight: 800;
}

.wm-collection-header p {
    max-width: 420px;
    margin: 0;
    color: #555;
    font-size: 16px;
    line-height: 1.6;
}

.wm-collection-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.wm-filter-btn {
    border: 0;
    border-radius: 999px;
    padding: 9px 18px;
    background: #f1e2ff;
    color: #111;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.wm-filter-btn:nth-child(2) {
    background: #c9f5be;
}

.wm-filter-btn:nth-child(3) {
    background: #ffd7c9;
}

.wm-filter-btn.active {
    outline: 2px solid #111;
}

.wm-collection-grid {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    align-items: stretch;
    transition: opacity 0.2s ease;
}

.wm-collection-grid.loading {
    opacity: 0.45;
    pointer-events: none;
}

.wm-collection-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #111;
    min-width: 0;
    height: 330px;
}

.wm-card-large {
    grid-column: span 6;
    height: 330px;
}

.wm-card-small {
    grid-column: span 4;
    height: 330px;
}

.wm-card-half {
    grid-column: span 5;
    height: 260px;
}

.wm-card-full {
    grid-column: 1 / -1;
    height: 340px;
}

.wm-collection-card a {
    display: block;
    width: 100%;
    height: 100%;
    color: #fff;
    text-decoration: none;
}

.wm-collection-card img {
    width: 100%;
    height: 100%!important;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.wm-collection-card:hover img {
    transform: scale(1.06);
}

.wm-collection-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.05) 65%);
}

.wm-card-overlay {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 20px;
    z-index: 2;
    color: #fff;
}

.wm-card-overlay span {
    display: block;
    margin-bottom: 7px;
    font-size: 10px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
}

.wm-card-overlay h3 {
    margin: 0;
    color: #fff;
    font-size: clamp(20px, 2vw, 24px);
    line-height: 1.1;
    font-weight: 800;
}

.wm-card-overlay p {
    max-width: 430px;
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    line-height: 1.4;
}

.wm-no-items {
    grid-column: 1 / -1;
}

/* Single page */
.wm-single-collection {
    padding: 50px 0;
}

.wm-single-hero {
    overflow: hidden;
    border-radius: 24px;
    margin-bottom: 32px;
}

.wm-single-hero img {
    width: 100%;
    max-height: 620px;
    object-fit: cover;
    display: block;
}

.wm-single-content {
    max-width: 850px;
    margin-bottom: 40px;
}

.wm-single-type {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
}

.wm-single-content h1 {
    margin-bottom: 20px;
    font-size: clamp(34px, 5vw, 48px);
    line-height: 1.1;
}

.wm-single-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.wm-gallery-item {
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 16 / 10;
}

.wm-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Tablet */
@media (max-width: 991px) {
    .wm-collection-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wm-card-large,
    .wm-card-small,
    .wm-card-half {
        grid-column: span 1;
        height: 250px;
    }

    .wm-card-full {
        grid-column: 1 / -1;
        height: 290px;
    }

    .wm-card-overlay {
        left: 18px;
        right: 18px;
        bottom: 18px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .wm-collection-header {
        flex-direction: column;
        gap: 16px;
    }

    .wm-collection-filters {
        justify-content: flex-start;
    }

    .wm-collection-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .wm-card-large,
    .wm-card-small,
    .wm-card-half,
    .wm-card-full {
        grid-column: 1 / -1;
        height: 260px;
    }

    .wm-single-gallery {
        grid-template-columns: 1fr;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .wm-collection-section {
        padding: 30px 0;
    }

    .wm-filter-btn {
        padding: 7px 13px;
        font-size: 11px;
    }

    .wm-card-large,
    .wm-card-small,
    .wm-card-half,
    .wm-card-full {
        height: 230px;
    }

    .wm-card-overlay {
        left: 14px;
        right: 14px;
        bottom: 14px;
    }

    .wm-card-overlay p {
        display: none;
    }
}