/* Home horizontal competition tiles — flush image gutters, 740×555 aspect */

.event-home-tile-h.card {
    border: 1px solid #94a3b8;
}

.event-home-tile-h {
    overflow: hidden;
}

.event-home-tile-h__inner {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.event-home-tile-h__media.card-img-actions {
    margin: 0 !important;
    float: none !important;
    position: relative;
    flex-shrink: 0;
    line-height: 0;
}

.event-home-tile-h__media .card-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 740 / 555;
    margin: 0;
    border-radius: 0;
    vertical-align: top;
}

.event-home-tile-h__media .card-img-actions-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-home-tile-h__main {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
}

.event-home-tile-h__content {
    padding: 0.75rem 1rem 0.35rem;
    flex: 1 1 auto;
    min-width: 0;
}

/* Desktop: action buttons bottom-right of text area */
.event-home-tile-h__actions {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 0.35rem;
    padding: 0 1rem 0.5rem;
    margin-top: auto;
}

.event-home-tile-h__actions .event-home-tile__btn {
    flex: 0 1 auto;
    min-width: 4.25rem;
    max-width: none;
    padding: 0.32rem 0.5rem;
    font-size: 0.65rem;
}

/* Mobile: full width image, then content, then 4 buttons in a row at bottom */
@media (max-width: 575.98px) {
    .event-home-tile-h__media.card-img-actions {
        width: 100% !important;
        max-width: none !important;
    }

    .event-home-tile-h__content {
        padding-bottom: 0.35rem;
    }

    .event-home-tile-h__actions {
        width: 100%;
        justify-content: stretch;
        gap: 0.35rem;
        padding: 0.5rem 0.45rem;
        margin-top: 0;
        background: #fff;
    }

    .event-home-tile-h__actions .event-home-tile__btn {
        flex: 1 1 0;
        min-width: 0;
        font-size: 0.6rem;
        padding: 0.32rem 0.12rem;
    }
}

/* Desktop (sm+): image left, flush top / left; full 740×555 frame (no crop) */
@media (min-width: 576px) {
    .event-home-tile-h__inner {
        flex-direction: row;
        align-items: flex-start;
    }

    .event-home-tile-h.blog-horizontal .card-img-actions,
    .event-home-tile-h__media.card-img-actions {
        width: 35%;
        max-width: 12.5rem;
        float: none !important;
        align-self: stretch;
    }

    .event-home-tile-h__main {
        align-self: stretch;
        min-height: 100%;
    }
}
