
/* Custom Archive Layout */

/* Main archive layout */
.wm-archive-replacement {
    width: 100%;
    margin: 0 0 24px;
    background: #fff;
}

/* Top banner */
.wm-archive-banner {
    position: relative;
    width: 100%;
    height: 360px;
    overflow: hidden;
    background: #e7e7e9;
}

.wm-archive-banner-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    image-rendering: auto;
}

.wm-archive-banner--empty {
    background: linear-gradient(135deg, #e8e8e8, #cfcfd2);
}

/* Brand tag filters */
.wm-archive-tags {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
    min-width: 0;
}

.wm-archive-tags-label {
    flex: 0 0 auto;
    font-size: 29px;
    line-height: 1;
    color: #111;
    transform: rotate(180deg);
}

.wm-archive-tags-track {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    min-width: 0;
}

.wm-archive-tags-track::-webkit-scrollbar {
    display: none;
}

.wm-archive-tag {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 15px;
    background: #eee;
    color: #222;
    text-decoration: none;
    font-size: 17px;
    line-height: 1.2;
    flex: 0 0 auto;
}

.wm-archive-tag:hover,
.wm-archive-tag:focus,
.wm-archive-tag:active,
.wm-archive-tag.is-active {
    background: #b51219;
    color: #fff;
}

.wm-archive-tag:focus-visible {
    outline: 2px solid #b51219;
    outline-offset: 2px;
}

/* Archive post list */
.wm-archive-post-list {
    width: 100%;
}

/* Card height and spacing controls */
.wm-archive-post {
    --wm-card-height: 130px;
    --wm-card-gap: 0px;
    --wm-card-padding-top: 15px;
    --wm-card-padding-bottom: 15px;
    --wm-card-image-size: 110px;

    display: flex;
    align-items: center;
    gap: var(--wm-card-gap);

    height: var(--wm-card-height);
    min-height: var(--wm-card-height);
    max-height: var(--wm-card-height);

    box-sizing: border-box;
    padding-top: var(--wm-card-padding-top);
    padding-bottom: var(--wm-card-padding-bottom);
    padding-left: 0;
    padding-right: 0;

    border-bottom: 1px solid #e6e6e6;
    color: #222;
    text-decoration: none;
    background: #fff;
    overflow: hidden;
}

.wm-archive-post:hover {
    background: #fafafa;
    color: #222;
}

/* Image container */
.wm-archive-post-image {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 var(--wm-card-image-size);
    width: var(--wm-card-image-size);
    height: 100%;
    min-height: 0;

    box-sizing: border-box;
    overflow: hidden;
    border-radius: 9px;
    background: #fff;
}

.wm-archive-post-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wm-archive-post-image-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: #fff;
}

/* Title is vertically centered */
.wm-archive-post-title {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    align-self: center;
    margin: 0;
    font-size: 27px;
    line-height: 1.25;
    font-weight: 700;
}

/* Hide original GeneratePress archive loop */
body.archive .site-main > article,
body.archive .site-main > .type-post {
    display: none !important;
}

/* Tablet: 768px–1023px */
@media (min-width: 768px) and (max-width: 1023px) {

    .wm-archive-banner {
        height: 300px;
    }

    .wm-archive-post {
        --wm-card-height: 120px;
        --wm-card-gap: 0px;
        --wm-card-padding-top: 15px;
        --wm-card-padding-bottom: 15px;
        --wm-card-image-size: 110px;
    }

    .wm-archive-post-title {
        font-size: 20px;
    }
}

/* Mobile: 0px–767px */
@media (max-width: 767px) {

    .wm-archive-banner {
        height: 250px;
    }

    .wm-archive-tags {
        gap: 14px;
        padding: 14px 16px;
    }

    .wm-archive-tag {
        height: 38px;
        padding: 0 10px;
        font-size: 16px;
    }

    .wm-archive-post {
        --wm-card-height: 120px;
        --wm-card-gap: 0px;
        --wm-card-padding-top: 10px;
        --wm-card-padding-bottom: 10px;
        --wm-card-image-size: 100px;
    }

    .wm-archive-post-title {
        font-size: 15px;
    }
}



