/* Paid placements share one label, link and image treatment on all screens. */
.gt-boost-card {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(5.25rem, 32%) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    align-self: start;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #c7490d;
    border-radius: .7rem;
    background: #fff;
    color: #202622;
    text-decoration: none;
}
.gt-boost-card:hover { border-color: #973609; }
.gt-boost-card:focus-visible { outline: 3px solid #973609; outline-offset: 3px; }
.gt-boost-card__label {
    grid-column: 1 / -1;
    padding: .14rem .6rem;
    background: #b34009;
    color: #fff;
    font-size: .69rem;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: .065em;
    text-transform: uppercase;
}
.gt-boost-card__photo {
    position: relative;
    display: block;
    overflow: hidden;
    align-self: stretch;
    min-height: 5rem;
    background: #f3f2ee;
}
.gt-boost-card__photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gt-boost-card__top {
    position: absolute;
    top: .35rem;
    left: .35rem;
    border-radius: .22rem;
    padding: .1rem .3rem;
    background: #202622;
    color: #fff;
    font-size: .63rem;
    font-weight: 750;
}
.gt-boost-card__details {
    display: grid;
    align-content: center;
    gap: .15rem;
    padding: .6rem .72rem;
    overflow-wrap: anywhere;
    line-height: 1.3;
}
.gt-boost-card__title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: .9rem;
}
.gt-boost-card__price { color: #a43b0a; font-size: .88rem; font-weight: 700; }
.gt-boost-card__place { color: #555d57; font-size: .77rem; }
.gt-boost-side { display: none; }
.gt-boost-feed { display: grid; grid-column: 1 / -1; min-width: 0; }
.gt-boost-feed > .gt-boost-card + .gt-boost-card { display: none; }
.gt-boost-fallback {
    display: grid;
    gap: .8rem;
    padding-block: 1rem;
}
.gt-boost-fallback > .gt-boost-card { width: 100%; max-width: 30rem; }

@media (min-width: 640px) {
    /* Each sponsored card takes a normal grid cell so no row has to break early. */
    .gt-boost-feed { display: contents; }
    .gt-boost-feed > .gt-boost-card + .gt-boost-card { display: grid; }
    .gt-boost-feed .gt-boost-card { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr; }
    .gt-boost-feed .gt-boost-card__photo { aspect-ratio: 4 / 3; }
    .gt-boost-fallback { grid-template-columns: repeat(2, minmax(0, 30rem)); justify-content: center; }
}

@media (min-width: 112.5rem) {
    /* The marketplace container is up to 84rem wide; keep both stacks in the gutters. */
    .gt-boost-side {
        position: fixed;
        inset-block-start: 7.5rem;
        z-index: 20;
        display: grid;
        align-content: start;
        gap: 1rem;
        width: clamp(10rem, calc((100% - 84rem) / 2 - 3rem), 14rem);
        max-height: calc(100vh - 13rem);
        max-height: calc(100dvh - 13rem);
        overflow-y: auto;
        scrollbar-width: thin;
        padding: .3rem;
    }
    .gt-boost-side--links { left: 1rem; }
    .gt-boost-side--rechts { right: 1rem; }
    .gt-boost-rotation { position: relative; min-width: 0; }
    .gt-boost-side .gt-boost-card { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr; }
    .gt-boost-side .gt-boost-card__photo { aspect-ratio: 4 / 3; }
    .gt-boost-side .gt-boost-card__details { padding: .48rem .62rem; }
    .gt-boost-side .gt-boost-card__title { font-size: .82rem; }
    .gt-boost-feed, .gt-boost-fallback { display: none; }
}

@media (max-height: 26rem) and (min-width: 112.5rem) {
    .gt-boost-side { inset-block-start: 4.5rem; max-height: calc(100vh - 5rem); }
}
@media print {
    .gt-boost-side, .gt-boost-feed, .gt-boost-fallback { display: none; }
}
