div#winecoza.archive.brand img {
    max-height: 380px;
    margin: 0px auto;
    width: auto;
}

.winecoza.archive.wine .item img {
    width: auto;
    max-height: 380px;
    margin: 0px auto;
}

.winecoza.archive .thumbnail a {
    width: 100%;
}

.winecoza.archive .brand-title h4 {
    margin-bottom: 0px;
}

.winecoza.archive .brand-title {
    padding-bottom: 1em;
}

.winecoza.archive .archive-description {
    padding-bottom: 4em;
}

.winecoza.archive.wine .item .thumbnail {
    margin: 0px auto;
    text-align: center;
}

.winecoza.archive .archive-container .page-header {
    text-align: center;
    margin-bottom: 2em;
}

.winecoza.archive .list {
    display: grid;
    gap: 2em;
}

.winecoza.archive .grid-2-template-columns {
    grid-template-columns: repeat(2, minmax(auto, 1fr));
}

.winecoza.archive .grid-3-template-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.winecoza.archive .grid-4-template-columns {
    grid-template-columns: repeat(4, minmax(auto, 1fr));
}

.winecoza.archive .grid-6-template-columns {
    grid-template-columns: repeat(6, minmax(auto, 1fr));
}

.winecoza.archive .archive-container .nav-links {
    /* display: flex; */
    justify-content: space-between;
    margin: 1em 0px;
}

.nav-links .nav-next {
    float: right;
}

.winecoza.archive .archive-container {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.winecoza.archive .item {
    width: auto;
    border: solid 1px rgba(117, 117, 117, 0.1);
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-between;
    transition: all .2s ease-in-out;
    border-radius: 3px;

}

.winecoza.archive .item:hover {
    background: #ffffff;
    box-shadow: 0 5px 30px -10px rgba(0, 0, 0, 0.1);
    border: 1px solid #fff;
}

.winecoza.archive .thumbnail {
    display: flex;
    margin: 0px auto;
    background: white;
    width: 100%;
    background: white;
    justify-content: space-evenly;
    max-width: 100%;
    padding: 1em;
}

.winecoza.archive .info {
    display: flex;
    align-content: stretch;
    padding: 1em;
    justify-content: space-between;
    flex-direction: column;
    height: 100%;
}

.winecoza.archive .dates {
    font-weight: bold;
    margin-bottom: .5em;
}
.winecoza.archive .publish-date, .winecoza.archive .brand-name, .winecoza.archive .start_date {
    font-size: 0.8em;
    margin-bottom: 0.7em;
    color: var(--global-palette1);
    text-decoration: none;
}


.winecoza.archive .title {
    margin-bottom: 0.7em;
    word-wrap: break-word;
}

.winecoza.archive .excerpt {
    flex-grow: 1;
}

.winecoza.archive .more-info .btn {
    text-align: center;
    display: inline-block;
    margin-top: 1em;
    padding: .4em 1.5em;
    border: 1px solid #000;
    text-decoration: none;
    color: #000;
    background-color: #fff;
    align-items: flex-end;
    transition: all .2s ease-in-out;
    font-size: 0.9em;
}
.winecoza.archive .more-info .btn:hover {
    border: 1px solid #000;
    color: #fff;
    background-color: #000;
}
.winecoza.archive .item img {
    width: 100%;
    max-width: 100%;
    display: block;
    height: auto;
}

.winecoza.archive.wine .item img,
.winecoza.archive.brand .item img {
    box-shadow: unset;
}

.winecoza.wine.archive .item img {
    max-width: 100%;
}

.winecoza.archive .thumbnail-container {
    display: grid;
    width: 100%;
    /* Desired width */
    overflow: hidden;
    /* Ensures the image doesn't overflow */
}

.winecoza.archive .thumbnail-container img {
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures the image covers the container */
}

@media(max-width:992px) {
    .winecoza.archive .archive-grid {
        grid-template-columns: repeat(2, minmax(auto, 1fr));
    }
}

@media(max-width:576px) {
    .winecoza.archive .archive-grid {
        grid-template-columns: repeat(1, minmax(auto, 1fr));
    }
}
