/*
 * Travel Secret ("راز سفر") — Figma card + archive/single shells.
 * Enqueued by tourbin_enqueue_secret_card_styles() in
 * template-parts/travel-secret/helpers.php.
 */

.tourbin-secret-card,
.tourbin-secret-row,
.tourbin-secret-archive,
.tourbin-secret-single {
    font-family: "Vazirmatn", var(--tourbin-font, system-ui, sans-serif);
}

/* ---------------------------------------------------------------------- */
/* Card — Figma «secret travel» frame (429 × 634)                         */
/* ---------------------------------------------------------------------- */

.tourbin-secret-card {
    position: relative;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    max-width: 429px;
    height: 634px;
    min-height: 634px;
    padding: 12px 12px 20px;
    background: #f9fafb;
    border-radius: 20px;
    overflow: visible;
    isolation: isolate;
    direction: rtl;
}

.tourbin-secret-card__hit {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 20px;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.tourbin-secret-card__hit:focus-visible {
    outline: 2px solid #1c2fff;
    outline-offset: 4px;
}

.tourbin-secret-card__media {
    display: block;
    position: relative;
    z-index: 0;
    flex-shrink: 0;
    width: 405px;
    max-width: 100%;
    height: 289px;
    margin-inline: auto;
    border-radius: 15px;
    overflow: hidden;
    background: #e8e8e8;
    pointer-events: none;
}

.tourbin-secret-card__image,
.tourbin-secret-card__media-placeholder,
.tourbin-secret-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tourbin-secret-card__media-placeholder {
    background-image: repeating-linear-gradient(
        45deg,
        #eaeaea,
        #eaeaea 10px,
        #f4f4f4 10px,
        #f4f4f4 20px
    );
}

.tourbin-secret-card__panel {
    position: relative;
    z-index: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    flex: 0 0 auto;
    width: 374px;
    max-width: calc(100% - 14px);
    height: 292px;
    margin: -48px auto 0;
    padding: 33px 39px 26px 53px;
    background: #ffffff;
    box-shadow: inset 0 3px 3px rgba(255, 207, 1, 0.21);
    border-radius: 15px;
    overflow: visible;
    pointer-events: none;
}

.tourbin-secret-card__panel-tail {
    display: none;
}

.tourbin-secret-card__title {
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    margin: 0;
    font-family: "Liana-soft-FD", "Liana", var(--tourbin-font, sans-serif);
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: #000000;
    text-align: right;
}

.tourbin-secret-card__excerpt {
    width: 100%;
    max-width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    margin: 10px 0 0;
    font-family: "Vazirmatn", var(--tourbin-font, sans-serif);
    font-weight: 400;
    font-size: 13px;
    line-height: 23px;
    color: #0f172a;
    text-align: right;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tourbin-secret-card__links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    min-height: 61px;
    margin-top: auto;
    margin-bottom: -18px;
    padding-top: 8px;
    flex-shrink: 0;
}

.tourbin-secret-card__hashtag {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 61px;
    min-height: 61px;
    padding: 0 8px;
    font-family: "Vazirmatn", var(--tourbin-font, sans-serif);
    font-weight: 700;
    font-size: 12px;
    line-height: 19px;
    color: #1c2fff;
    text-decoration: underline;
    white-space: nowrap;
}

/* Figma Polygon 1 — white plate behind #راز_سفر */
.tourbin-secret-card__hashtag::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 61px;
    height: 61px;
    margin: 0;
    background: #ffffff;
    border-radius: 5px;
    transform: translate(-50%, -50%) scaleY(-1);
    z-index: -1;
    pointer-events: none;
}

.tourbin-secret-card__discover {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: "Vazirmatn FD", "Vazirmatn", var(--tourbin-font, sans-serif);
    font-weight: 700;
    font-size: 12px;
    line-height: 19px;
    color: #ffcf01;
    text-decoration: none;
    white-space: nowrap;
}

.tourbin-secret-card__discover:hover {
    color: #e6b800;
}

.tourbin-secret-card__discover-arrow {
    display: block;
    flex-shrink: 0;
}

.tourbin-secret-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    margin-top: 24px;
    padding: 0 32px 0 32px;
    position: relative;
    z-index: 2;
    direction: ltr;
    width: 100%;
    box-sizing: border-box;
}

.tourbin-secret-card__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid rgba(255, 207, 1, 0.2);
    border-radius: 50px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.tourbin-secret-card__avatar-image,
.tourbin-secret-card__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 18%;
}

/* Figma share chip — two white tiles (36 + 95) on gray card */
.tourbin-secret-card__share {
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-shrink: 0;
    width: 131px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    font: inherit;
    direction: ltr;
    overflow: visible;
    appearance: none;
    -webkit-appearance: none;
}

.tourbin-secret-card__share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    background: #ffffff;
    border-radius: 6px 0 0 6px;
}

.tourbin-secret-card__share-icon svg {
    display: block;
    width: 12px;
    height: 12px;
}

.tourbin-secret-card__share .tourbin-share-trigger__divider {
    position: absolute;
    top: 9px;
    left: 35.5px;
    width: 0;
    height: 18px;
    border: 0;
    border-inline-start: 0.5px solid #f0f0f0;
    pointer-events: none;
    z-index: 2;
}

.tourbin-secret-card__share-label {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    box-sizing: border-box;
    width: 95px;
    height: 36px;
    padding: 0 14px;
    background: #ffffff;
    border: none;
    border-radius: 0 6px 6px 0;
    font-family: "Vazirmatn FD", "Vazirmatn", var(--tourbin-font, sans-serif);
    font-style: normal;
    font-weight: 700;
    font-size: 12px;
    line-height: 19px;
    text-align: right;
    color: #000000;
    white-space: nowrap;
    direction: rtl;
}

.tourbin-secret-card__share:focus-visible {
    outline: 2px solid #007aff;
    outline-offset: 2px;
}

.tourbin-secret-card__share.is-loading {
    cursor: wait;
    pointer-events: none;
}

.tourbin-secret-card__share.is-loading .tourbin-secret-card__share-icon svg {
    opacity: 0;
}

.tourbin-secret-card__share.is-loading .tourbin-secret-card__share-icon::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0, 122, 255, 0.2);
    border-top-color: #007aff;
    border-radius: 50%;
    animation: tourbin-share-spin 0.7s linear infinite;
}

@keyframes tourbin-share-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .tourbin-secret-card__share.is-loading
        .tourbin-secret-card__share-icon::after {
        animation: none;
        border-top-color: #007aff;
        opacity: 0.7;
    }
}

/* ---------------------------------------------------------------------- */
/* Row (related-secrets section)                                          */
/* ---------------------------------------------------------------------- */

.tourbin-secret-row {
    margin-block: 2rem;
}

.tourbin-secret-row__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.tourbin-secret-row__title {
    margin: 0;
    font-family: "Liana-soft-FD", "Liana", var(--tourbin-font, sans-serif);
    font-size: 1.3rem;
    font-weight: 700;
}

.tourbin-secret-row__view-all {
    font-size: 0.85rem;
    color: #333;
    text-decoration: underline;
    white-space: nowrap;
}

.tourbin-secret-row__track {
    display: flex;
    align-items: stretch;
    gap: 1.25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding-block: 0.25rem 0.75rem;
}

.tourbin-secret-row__track .tourbin-secret-card {
    flex: 0 0 429px;
    width: 429px;
    max-width: min(429px, 85vw);
    scroll-snap-align: start;
}

.tourbin-secret-row__empty {
    margin: 0;
    color: #777;
    font-size: 0.9rem;
}

/* ---------------------------------------------------------------------- */
/* Archive — reuses tour-archive shell; grid keeps secret card sizing       */
/* ---------------------------------------------------------------------- */

.tourbin-secret-archive-page {
    padding-block-end: 0;
}

.tourbin-secret-archive-page .tourbin-secret-archive__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 31px;
    justify-items: center;
}

.tourbin-secret-archive__item {
    display: flex;
    width: 100%;
    min-width: 0;
    justify-content: center;
}

.tourbin-secret-archive-page
    .tourbin-tour-archive__item.tourbin-secret-archive__item {
    max-width: none;
}

.tourbin-secret-archive__grid .tourbin-secret-card {
    height: 634px;
    min-height: 634px;
    max-width: 429px;
    margin-inline: auto;
}

/* ---------------------------------------------------------------------- */
/* Single — scaled Figma secret card (panel overlap + speech bubble)        */
/* ---------------------------------------------------------------------- */

.tourbin-secret-single-page {
    --secret-page-bg: #f3f4f6;
    --secret-shell-bg: #f9fafb;
    --secret-panel-bg: #ffffff;
    --secret-panel-glow: rgba(255, 207, 1, 0.21);
    --secret-hashtag: #1c2fff;
    --secret-discover: #ffcf01;
    padding-block-end: 0;
}

.tourbin-secret-single-page .tourbin-hero--single .tourbin-hero__cards:empty {
    display: none;
}

.tourbin-secret-single__shell {
    position: relative;
    z-index: 12;
    width: 100%;
    max-width: 1083px;
    margin-inline: auto;
    padding-inline: 16px;
    padding-block: 0 clamp(2.5rem, 5vw, 3.5rem);
    pointer-events: none;
}

.tourbin-secret-single__layout {
    display: grid;
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
    gap: clamp(20px, 3vw, 32px);
    align-items: start;
    pointer-events: auto;
}

/* Stage — giant secret card */

.tourbin-secret-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 12px 12px 20px;
    border-radius: 24px;
    background: var(--secret-shell-bg);
    isolation: isolate;
}

.tourbin-secret-stage__media {
    position: relative;
    z-index: 0;
    flex-shrink: 0;
    width: 100%;
    aspect-ratio: 722 / 358;
    border-radius: 18px;
    overflow: hidden;
    background: #e8e8e8;
}

.tourbin-secret-stage__image,
.tourbin-secret-stage__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tourbin-secret-stage__media-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 45%,
        rgba(0, 0, 0, 0.35) 100%
    );
    pointer-events: none;
}

.tourbin-secret-stage__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: clamp(1.25rem, 2.5vw, 1.75rem);
    box-sizing: border-box;
    width: min(100%, calc(100% - 14px));
    margin-inline: auto;
    margin-top: 0;
    padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.25rem, 3vw, 2.5rem)
        clamp(1.25rem, 2.5vw, 1.75rem);
    background: var(--secret-panel-bg);
    border-radius: 18px;
    box-shadow:
        inset 0 3px 3px var(--secret-panel-glow),
        0 18px 40px rgba(15, 15, 15, 0.07);
}

.tourbin-secret-stage--has-media .tourbin-secret-stage__panel {
    margin-top: -3rem;
}

.tourbin-secret-stage__head {
    text-align: right;
}

.tourbin-secret-stage__speech {
    width: min(220px, 72vw);
    margin-bottom: 0.35rem;
    margin-inline-start: auto;
    margin: 0;
}

.tourbin-secret-stage__speech-shape {
    position: relative;
    width: 100%;
    aspect-ratio: 206 / 63.1;
    container-type: inline-size;
    filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.08));
}

.tourbin-secret-stage__speech-svg {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.tourbin-secret-stage__speech-label {
    position: absolute;
    top: 18%;
    left: 10%;
    z-index: 1;
    width: 80%;
    height: 48%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Liana-soft-FD", "Liana", var(--tourbin-font, sans-serif);
    font-weight: 700;
    font-size: clamp(13px, 2.8cqi, 17px);
    line-height: 1.35;
    color: #000;
    text-align: center;
    white-space: nowrap;
}

.tourbin-secret-stage__destinations {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    margin: 0.5rem 0 0.85rem;
    padding: 0;
    list-style: none;
}

.tourbin-secret-stage__destination-link,
.tourbin-secret-stage__destination-label {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fafafa;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--tourbin-text-muted, #6b6b6b);
    text-decoration: none;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.tourbin-secret-stage__destination-link:hover {
    border-color: rgba(255, 207, 1, 0.65);
    background: var(--tourbin-yellow-soft, #fffbcf);
    color: var(--tourbin-black, #131313);
}

.tourbin-secret-stage__title {
    margin: 0 0 14px;
    font-family: "Liana-soft-FD", "Liana", var(--tourbin-font, sans-serif);
    font-size: clamp(1.35rem, 2.2vw, 1.9rem);
    line-height: 1.55;
    font-weight: 700;
    color: var(--tourbin-black, #131313);
}

.tourbin-secret-stage__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    margin-bottom: 14px;
}

.tourbin-secret-stage__hashtag {
    font-family: "Vazirmatn", var(--tourbin-font, sans-serif);
    font-weight: 700;
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--secret-hashtag);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tourbin-secret-stage__hashtag:hover {
    color: #0f1fcc;
}

.tourbin-secret-stage__date {
    font-size: 0.78rem;
    color: var(--tourbin-text-muted, #6b6b6b);
    white-space: nowrap;
}

.tourbin-secret-stage__lead {
    margin: 0;
    padding: 14px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fafafa 0%, #f3f4f6 100%);
    font-size: 0.92rem;
    line-height: 1.85;
    color: var(--tourbin-text, #1f1f1f);
    text-align: justify;
}

.tourbin-secret-stage__answer-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 4px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.tourbin-secret-stage__answer-label {
    margin: 0;
    font-family: "Liana-soft-FD", "Liana", var(--tourbin-font, sans-serif);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--tourbin-text-muted, #6b6b6b);
    text-align: right;
}

.tourbin-secret-stage__answer {
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--tourbin-text, #1f1f1f);
    text-align: justify;
}

.tourbin-secret-stage__answer > * + * {
    margin-top: 1.1em;
}

.tourbin-secret-stage__answer :is(h2, h3, h4, h5, h6, .wp-block-heading) {
    font-family: "Liana-soft-FD", "Liana", var(--tourbin-font, sans-serif);
    font-weight: 700;
    margin: 1.75em 0 0.65em;
    text-align: right;
    color: var(--tourbin-black, #131313);
    line-height: 1.5;
}

.tourbin-secret-stage__answer :is(p, .wp-block-paragraph) {
    margin: 0 0 1em;
    text-align: justify;
}

.tourbin-secret-stage__answer :is(ul, ol, .wp-block-list) {
    padding-inline-start: 1.4em;
    margin: 0 0 1em;
}

.tourbin-secret-stage__answer li + li {
    margin-top: 0.35em;
}

.tourbin-secret-stage__answer :is(a, .wp-block-button__link) {
    color: var(--tourbin-teal-dark, var(--tourbin-teal, #0e7d72));
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tourbin-secret-stage__answer :is(img, .wp-block-image img) {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.25em 0;
    border-radius: 14px;
    box-shadow: var(--tourbin-shadow-card);
}

.tourbin-secret-stage__answer :is(blockquote, .wp-block-quote) {
    margin: 1.5em 0;
    padding: 16px 22px;
    border-inline-end: 4px solid var(--tourbin-yellow, #fff428);
    background: #f7f7f7;
    border-radius: 4px 16px 16px 4px;
    color: var(--tourbin-text-muted, #6b6b6b);
    font-style: normal;
}

.tourbin-secret-stage__answer
    :is(.wp-block-pullquote, .wp-block-pullquote blockquote) {
    margin: 1.75em 0;
    padding: 24px;
    border: none;
    border-radius: 18px;
    background: var(--tourbin-yellow-soft, #fffbcf);
    text-align: center;
}

.tourbin-secret-stage__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 20px;
    margin-top: 0.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.tourbin-secret-stage__author {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    min-width: 0;
}

.tourbin-secret-stage__author-avatar.tourbin-secret-card__avatar {
    width: 45px;
    height: 45px;
}

.tourbin-secret-stage__author-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    text-align: right;
}

.tourbin-secret-stage__author-eyebrow {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--tourbin-text-muted, #6b6b6b);
}

.tourbin-secret-stage__author-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--tourbin-black, #131313);
}

.tourbin-secret-stage__archive {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-inline-start: auto;
    font-family: "Vazirmatn FD", "Vazirmatn", var(--tourbin-font, sans-serif);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--secret-discover);
    text-decoration: none;
    white-space: nowrap;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.tourbin-secret-stage__archive:hover {
    color: #e6b800;
    transform: translateX(-2px);
}

[dir="rtl"] .tourbin-secret-stage__archive:hover {
    transform: translateX(2px);
}

.tourbin-secret-stage__archive-arrow {
    display: block;
    flex-shrink: 0;
}

.tourbin-secret-single__empty {
    padding: 3rem 0;
    text-align: center;
    color: var(--tourbin-text-muted, #6b6b6b);
}

.tourbin-secret-single-page .tourbin-secrets-row--singular {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

@media (prefers-reduced-motion: no-preference) {
    .tourbin-secret-stage--has-media .tourbin-secret-stage__panel {
        animation: tourbin-secret-panel-rise 0.65s
            cubic-bezier(0.22, 1, 0.36, 1) both;
    }
}

@keyframes tourbin-secret-panel-rise {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sidebar — shared post shell (tourbin-sidebar--post) */

.tourbin-secret-single-page .tourbin-sidebar {
    width: 100%;
    max-width: none;
}

.tourbin-secret-single-page .tourbin-sidebar--post .tourbin-sidebar__chip {
    justify-content: flex-start;
}

.tourbin-secret-single-page .tourbin-sidebar--post .tourbin-sidebar__chip-text {
    text-align: right;
}

.tourbin-secret-single-page .tourbin-sidebar--post .tourbin-sidebar__features {
    text-align: right;
}

.tourbin-secret-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tourbin-secret-social-icon svg {
    display: block;
}

@media (max-width: 900px) {
    .tourbin-secret-single__layout {
        grid-template-columns: 1fr;
    }

    .tourbin-secret-single-page .tourbin-sidebar__sticky {
        position: static;
    }

    .tourbin-secret-stage--has-media .tourbin-secret-stage__panel {
        margin-top: -2rem;
    }

    .tourbin-secret-stage__media {
        aspect-ratio: 16 / 10;
        border-radius: 16px;
    }
}

@media (max-width: 640px) {
    .tourbin-secret-single__shell {
        padding-block-end: 2rem;
    }

    .tourbin-secret-stage {
        padding: 10px 10px 16px;
        border-radius: 20px;
    }

    .tourbin-secret-stage__panel {
        width: calc(100% - 8px);
        padding: 1.25rem 1rem 1.1rem;
        border-radius: 16px;
    }

    .tourbin-secret-stage--has-media .tourbin-secret-stage__panel {
        margin-top: -1.5rem;
    }

    .tourbin-secret-stage__lead {
        padding: 12px 14px;
        font-size: 0.88rem;
    }

    .tourbin-secret-stage__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .tourbin-secret-stage__archive {
        justify-content: center;
        margin-inline-start: 0;
    }
}

@media (max-width: 900px) {
    .tourbin-secret-archive-page .tourbin-secret-archive__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .tourbin-secret-archive-page .tourbin-secret-archive__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
}

@media (max-width: 720px) {
    .tourbin-secret-card,
    .tourbin-secret-archive__grid .tourbin-secret-card {
        height: auto;
        min-height: 0;
    }

    .tourbin-secrets-row__item .tourbin-secret-card {
        width: 100%;
        max-width: 429px;
        margin-inline: auto;
    }

    .tourbin-secret-card__media,
    .tourbin-secrets-row__item .tourbin-secret-card__media {
        width: 100%;
        height: auto;
        aspect-ratio: 405 / 289;
    }

    .tourbin-secret-card__panel,
    .tourbin-secrets-row__item .tourbin-secret-card__panel {
        width: calc(100% - 14px);
        height: auto;
        min-height: 0;
        padding: 24px 20px 18px 28px;
    }

    .tourbin-secret-card__footer {
        margin-top: 16px;
        padding: 0 20px 0 16px;
    }

    .tourbin-secret-row__track .tourbin-secret-card {
        flex: 0 0 min(300px, 88vw);
        width: auto;
        max-width: min(429px, 88vw);
    }

    .tourbin-secret-card__excerpt {
        min-height: 0;
        -webkit-line-clamp: 5;
    }
}
