.winecoza.archive.winelist .item img,
.winecoza.archive.brandpage .item img {
    width: auto;
    max-height: 380px;
    margin: 0px auto;
}
.winecoza.archive .item img {
   width: 100%;
    max-width: 100%;
    display: block;
    height: auto;
}

.winecoza.archive .brand-title h4 {
    margin-bottom: 0px;
}

.winecoza.archive .brand-title {
    padding-bottom: 1em;
}

.winecoza.archive .archive-description {
    padding-bottom: 4em;
        text-align: center;
}
.winecoza.archive .page-header
 {
    text-align: center;
    margin-bottom: 2em;
}
.winecoza.archive .thumbnail {
    margin: 0px auto;
    text-align: center;
    width: auto;
    object-fit: cover;
}

.winecoza.archive .archive-container .page-header {
    text-align: center;
    margin-bottom: 2em;
}

.winecoza.archive .list {
    display: grid;
    gap: 1.5em;
}

.winecoza.archive .grid-2-template-columns {
    grid-template-columns: repeat(2, minmax(auto, 1fr));
}

.winecoza.archive .grid-3-template-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Creates 3 equal columns */
}

.winecoza.archive .grid-4-template-columns {
    grid-template-columns: repeat(4, minmax(auto, 1fr));
}
.winecoza.archive .grid-5-template-columns {
    grid-template-columns: repeat(5, 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: 20px;
}

.winecoza.archive .info {
    display: flex;
    align-content: stretch;
    padding: 10px 20px;
    justify-content: space-between;
    flex-direction: column;
    height: 100%;
}
.winecoza.archive.agentlist .info {
    height: unset;
}
.winecoza.archive.agentlist .contact-info {
    padding-top: 5px;
}

.winecoza.archive .dates {
    font-weight: bold;
    margin-bottom: .5em;
}
.winecoza.archive .publish-date, .winecoza.archive .brand-name, .winecoza.archive .start_date, .winecoza.archive .area, .winecoza.archive .country-name {
    font-size: 0.85em;
    margin-bottom: 0.7em;
    color: var(--global-palette1);
    text-decoration: none;
}

.winecoza.archive .title {
    margin-top: 0;
    margin-bottom: 0.5em;
    word-wrap: break-word;
}

.winecoza.archive .excerpt {
    flex-grow: 1;
    text-align:left;
}

.winecoza.archive .more-info .btn {
    text-align: center;
    display: inline-block;
    margin: 1em 0;
    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;
}
.winecoza.archive .more-info .btn:hover {
    border: 1px solid #000;
    color: #fff;
    background-color: #000;
}


.winecoza.archive.winelist .item img,
.winecoza.archive.brand .item img {
    box-shadow: unset;
}

/*.winecoza.winelist.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));
    }
}