.pi-shortcodes__event-row-wrapper {
    position: relative;
}

.pi-shortcodes__event-row {
    position: relative;
    display: flex;
    gap: 20px;
    width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
    padding: 8px 8px 16px 0;
    align-items: stretch;
    -webkit-mask-image: none;
    mask-image: none;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.pi-shortcodes__event-row-wrapper.pi-shortcodes__event-row-wrapper--scrollable .pi-shortcodes__event-row {
    overflow-x: auto;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 84px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 84px), transparent 100%);
}

.pi-shortcodes__event-row-wrapper.pi-shortcodes__event-row-wrapper--at-end .pi-shortcodes__event-row {
    -webkit-mask-image: none;
    mask-image: none;
}

.pi-shortcodes__event-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    min-width: 260px;
    flex: 0 0 260px;
    scroll-snap-align: start;
}

.pi-shortcodes__event-image {
    display: block;
    position: relative;
    width: 100%;
    margin: 0;
    overflow: hidden;
}

.pi-shortcodes__event-image-frame {
    display: block;
    position: relative;
    width: 100%;
    padding-top: 100%;
}

.pi-shortcodes__event-image-frame img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.pi-shortcodes__event-content {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.pi-shortcodes__event-datetime {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pi-shortcodes__event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 52px;
}

.pi-shortcodes__event-date-month {
    font-size: 12px;
    color: #6b7280;
    letter-spacing: 0.08em;
}

.pi-shortcodes__event-date-day {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    line-height: 1.1;
}

.pi-shortcodes__event-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.pi-shortcodes__event-time {
    font-size: 13px;
    color: #111111;
    font-weight: 600;
}

.pi-shortcodes__event-title {
    margin: 0;
    font-size: 17px;
    line-height: 1.35;
}

.pi-shortcodes__event-title a {
    color: #000000;
    text-decoration: none;
}

.pi-shortcodes__event-title a:hover,
.pi-shortcodes__event-title a:focus {
    text-decoration: underline;
}

.pi-shortcodes__event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pi-shortcodes__term-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pi-shortcodes__term-cloud .pi-shortcodes__event-chip {
    font-size: 18px;
}

.pi-shortcodes__event-chip {
    --pi-event-chip-background-color: #2d3748;
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 16px;
    background-color: var(--pi-event-chip-background-color);
    color: #ffffff;
    font-size: 12px;
    text-decoration: none;
    line-height: 1.2;
}

.tribe-common a.pi-shortcodes__event-chip,
.tribe-common a.pi-shortcodes__event-chip:active,
.tribe-common a.pi-shortcodes__event-chip:focus,
.tribe-common a.pi-shortcodes__event-chip:hover,
.tribe-common a.pi-shortcodes__event-chip:visited {
    background-color: var(--pi-event-chip-background-color);
    color: #ffffff;
    text-decoration: none;
}

.pi-shortcodes__event-chip--topic {
    --pi-event-chip-background-color: #76403e;
}

.pi-shortcodes__event-chip--category {
    --pi-event-chip-background-color: #2d3748;
}

.pi-shortcodes__event-chip--type {
    --pi-event-chip-background-color: #917c55;
}

.pi-shortcodes__event-chip:hover,
.pi-shortcodes__event-chip:focus {
    color: #ffffff;
    font-weight: 700;
}

.pi-shortcodes__event-chip--topic:hover,
.pi-shortcodes__event-chip--topic:focus {
    --pi-event-chip-background-color: #96504f;
}

.pi-shortcodes__event-chip--category:hover,
.pi-shortcodes__event-chip--category:focus {
    --pi-event-chip-background-color: #46526b;
}

.pi-shortcodes__event-chip--type:hover,
.pi-shortcodes__event-chip--type:focus {
    --pi-event-chip-background-color: #a18b61;
}

.pi-shortcodes__event-price {
    font-weight: 600;
    color: #6b7280;
    font-size: 12px;
}

.pi-shortcodes__event-card--placeholder {
    display: none;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    box-shadow: none;
}

.pi-shortcodes__event-card--placeholder .pi-shortcodes__event-image-frame,
.pi-shortcodes__event-card--placeholder .pi-shortcodes__event-placeholder-bar,
.pi-shortcodes__event-card--placeholder .pi-shortcodes__event-chip--placeholder,
.pi-shortcodes__event-card--placeholder .pi-shortcodes__event-time,
.pi-shortcodes__event-card--placeholder .pi-shortcodes__event-price,
.pi-shortcodes__event-card--placeholder .pi-shortcodes__event-date-month,
.pi-shortcodes__event-card--placeholder .pi-shortcodes__event-date-day {
    background: linear-gradient(90deg, #e5e7eb 0%, #f3f4f6 100%);
    color: transparent;
    border-radius: 8px;
}

.pi-shortcodes__event-card--placeholder .pi-shortcodes__event-image-frame {
    min-height: 200px;
}

.pi-shortcodes__event-placeholder-bar {
    display: block;
    width: 80%;
    height: 14px;
}

.pi-shortcodes__event-chip--placeholder {
    width: 60px;
    height: 18px;
}

.pi-shortcodes__event-card--placeholder .pi-shortcodes__event-datetime {
    align-items: flex-start;
}

.pi-shortcodes__event-card--placeholder .pi-shortcodes__event-date {
    align-items: flex-start;
}

.pi-shortcodes__event-card--placeholder .pi-shortcodes__event-date-month,
.pi-shortcodes__event-card--placeholder .pi-shortcodes__event-date-day,
.pi-shortcodes__event-card--placeholder .pi-shortcodes__event-time,
.pi-shortcodes__event-card--placeholder .pi-shortcodes__event-price {
    width: 60px;
    height: 14px;
}

@media (min-width: 1020px) {
    .pi-shortcodes__event-card--placeholder {
        display: flex;
    }
}

@media (max-width: 600px) {
    .pi-shortcodes__event-row {
        grid-template-columns: 1fr;
    }
}
