/* Pixel comparison pass for the lower viagogo-style homepage rows.
   Reference: current viagogo homepage + supplied full-page screenshot.
   The key correction is that lower event rows fill the same 1200px shell with five equal cards;
   they are not fixed 188px cards. */

.vg-content-section {
    margin-top: 30px;
}

.vg-heading-row {
    margin-bottom: 12px;
    min-height: 26px;
}

.vg-heading-row h2 {
    font-size: 20px;
    line-height: 26px;
    letter-spacing: -0.15px;
}

.vg-heading-row a {
    font-size: 12px;
}

/* Lower event rows on the reference site use five equal columns across the content shell. */
.vg-mini-card-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 22px;
    width: 100%;
    align-items: start;
}

.vg-mini-event {
    width: auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.vg-mini-media {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    margin-bottom: 7px;
}

.vg-mini-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vg-mini-heart {
    top: 7px;
    right: 8px;
    font-size: 20px;
}

.vg-mini-event strong {
    margin: 0 0 2px;
    font-size: 13px;
    line-height: 16px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vg-mini-event > span:not(.vg-mini-heart) {
    font-size: 11px;
    line-height: 14px;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vg-mini-event .vg-mini-price,
.vg-mini-event > span:last-child {
    color: #111;
}

/* Categories in the reference are also almost square and use the same five-column rhythm. */
.vg-category-track {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}

.vg-category-card {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    padding: 12px;
}

.vg-category-card span {
    font-size: 13px;
}

.vg-category-next {
    right: -14px;
    width: 30px;
    height: 30px;
}

.vg-list-section {
    margin-top: 34px;
}

.vg-discovery-banner {
    margin-top: 34px;
}

/* The live reference shows five cards across for recommendation/nearby/concert/theatre/comedy rows.
   Last-minute and sports may naturally contain fewer cards; those cards retain the same column width. */

@media (max-width: 900px) {
    .vg-mini-card-row,
    .vg-category-track {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .vg-mini-card-row,
    .vg-category-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .vg-mini-event,
    .vg-mini-media {
        width: 100%;
    }
}
