.post-swipe-page {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 30px);
    padding: 24px 0 18px;
    width: min(1460px, calc(100% - 28px));
}

.post-swipe-header {
    align-items: flex-end;
    flex-shrink: 0;
    margin-bottom: 18px;
}

.post-swipe-title {
    min-width: 0;
}

.post-swipe-title p {
    color: #555;
    font-size: 15px;
    font-weight: 300;
    margin: 6px 0 0;
}

.post-swipe-title h1 {
    margin-bottom: 0;
}

.post-swipe-powered {
    align-items: flex-end;
    color: black;
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
    padding-bottom: 1px;
    text-decoration: none;
    white-space: nowrap;
}

.post-swipe-powered:hover {
    text-decoration: none;
}

.post-swipe-powered span {
    color: #667783;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.15;
    text-transform: lowercase;
}

.post-swipe-powered strong {
    color: black;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.1;
}

.post-swipe {
    --post-swipe-accent: #01579b;
    --post-swipe-drag-x: 0px;
    align-items: center;
    display: grid;
    gap: 14px;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    margin: 0 auto 54px;
    position: relative;
    touch-action: pan-y pinch-zoom;
}

.post-swipe-page > .post-swipe {
    flex: 1;
    margin-bottom: 16px;
    min-height: 0;
    width: 100%;
}

.post-swipe-stage {
    aspect-ratio: 1.72 / 1;
    min-height: 360px;
    overflow: hidden;
    position: relative;
    touch-action: pan-y pinch-zoom;
}

.post-swipe-page > .post-swipe .post-swipe-stage {
    aspect-ratio: auto;
    height: calc(100vh - 242px);
    max-height: 820px;
    min-height: 470px;
}

.post-swipe-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    inset: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    transform: translateX(calc(18% + var(--post-swipe-drag-x))) scale(0.88);
    transition: opacity 160ms ease, transform 180ms ease;
    width: 76%;
    left: 12%;
    touch-action: pan-y pinch-zoom;
}

.post-swipe-card.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(var(--post-swipe-drag-x)) scale(1);
    z-index: 2;
}

.post-swipe-card.previous,
.post-swipe-card.next {
    opacity: 0.45;
    pointer-events: auto;
    z-index: 1;
}

.post-swipe-card.previous {
    transform: translateX(calc(-84% + var(--post-swipe-drag-x))) scale(0.88);
}

.post-swipe-card.next {
    transform: translateX(calc(84% + var(--post-swipe-drag-x))) scale(0.88);
}

.post-swipe.dragging .post-swipe-card {
    transition: none;
}

.post-swipe-card.previous .post-swipe-overlay,
.post-swipe-card.next .post-swipe-overlay {
    opacity: 0.55;
}

.post-swipe-card.show-post .post-swipe-shot {
    transform: translateY(-36%);
}

.post-swipe-card.show-post .post-swipe-post {
    transform: translateY(0);
}

.post-swipe-shot {
    background: #f5f5f5;
    color: white;
    display: block;
    height: 100%;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    transition: transform 180ms ease;
    touch-action: pan-y pinch-zoom;
}

.post-swipe-shot:hover {
    text-decoration: none;
}

.post-swipe-shot img {
    display: block;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    width: 100%;
}

.post-swipe-overlay {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
    bottom: 0;
    left: 0;
    padding: 90px 32px 28px;
    position: absolute;
    right: 0;
}

.post-swipe-overlay span {
    display: block;
    font-size: 11pt;
    font-weight: 300;
    margin-bottom: 6px;
}

.post-swipe-overlay h2 {
    color: white;
    font-size: 34px;
    font-weight: 500;
    line-height: 1.12;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.42);
}

.post-swipe-post {
    background: white;
    border-top: 1px solid #e4e4e4;
    bottom: 0;
    max-height: 64%;
    overflow: auto;
    left: 0;
    padding: 20px 28px 24px;
    position: absolute;
    right: 0;
    transform: translateY(100%);
    transition: transform 180ms ease;
    z-index: 3;
}

.post-swipe-kicker {
    color: #777;
    font-size: 10pt;
    margin: 0 0 4px;
}

.post-swipe-post h3 {
    color: black;
    font-size: 23px;
    font-weight: 500;
    margin: 0 0 8px;
}

.post-swipe-post p {
    color: #333;
    font-size: 12pt;
    font-weight: 300;
    line-height: 1.55;
    margin: 0 0 14px;
}

.post-swipe-body {
    color: #333;
    font-size: 12pt;
    font-weight: 300;
    line-height: 1.55;
}

.post-swipe-body h1,
.post-swipe-body h2,
.post-swipe-body h3 {
    color: black;
    font-size: 18px;
    font-weight: 500;
    margin: 18px 0 8px;
}

.post-swipe-body p {
    margin: 0 0 12px;
}

.post-swipe-body img,
.post-swipe-body iframe {
    display: none;
}

.post-swipe-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.post-swipe-actions a {
    border: 1px solid #b8d0e2;
    border-radius: 999px;
    color: var(--post-swipe-accent);
    font-size: 11pt;
    padding: 7px 13px;
    text-decoration: none;
}

.post-swipe-actions a:hover,
.post-swipe-actions a:focus,
.post-swipe-actions a:active {
    background: #f4faff;
    color: #014f8c;
    text-decoration: none;
}

.post-swipe-arrow {
    align-items: center;
    background: white;
    border: 1px solid #ddd;
    border-radius: 50%;
    color: var(--post-swipe-accent);
    cursor: pointer;
    display: inline-flex;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.post-swipe-arrow:hover,
.post-swipe-arrow:focus,
.post-swipe-arrow:active,
.post-swipe-up:hover,
.post-swipe-up:focus,
.post-swipe-up:active {
    background: #f6fbff;
    border-color: #9ec5df;
    color: var(--post-swipe-accent);
    outline: none;
}

.post-swipe-arrow i {
    font-size: 30px;
}

.post-swipe-hint {
    bottom: -27px;
    color: #777;
    font-size: 10.5pt;
    font-weight: 300;
    left: 62px;
    margin: 0;
    position: absolute;
}

.post-swipe-up {
    align-items: center;
    background: white;
    border: 1px solid #ddd;
    border-radius: 50%;
    bottom: 18px;
    color: var(--post-swipe-accent);
    cursor: pointer;
    display: inline-flex;
    height: 44px;
    justify-content: center;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    width: 44px;
    z-index: 4;
}

.post-swipe-up i {
    font-size: 27px;
}

@media (max-width: 760px) {
    .post-swipe-page {
        min-height: calc(100vh - 30px);
        padding-top: 18px;
    }

    .post-swipe-header {
        gap: 14px;
        margin-bottom: 14px;
    }

    .post-swipe-title p {
        font-size: 13px;
    }

    .post-swipe-powered {
        align-items: flex-start;
        margin-left: 0;
        width: 100%;
    }

    .post-swipe {
        grid-template-columns: 1fr;
    }

    .post-swipe-arrow {
        display: none;
    }

    .post-swipe-stage {
        min-height: 420px;
    }

    .post-swipe-page > .post-swipe .post-swipe-stage {
        height: calc(100vh - 228px);
        min-height: 430px;
    }

    .post-swipe-card {
        left: 8%;
        width: 84%;
    }

    .post-swipe-card.previous {
        transform: translateX(calc(-92% + var(--post-swipe-drag-x))) scale(0.9);
    }

    .post-swipe-card.next {
        transform: translateX(calc(92% + var(--post-swipe-drag-x))) scale(0.9);
    }

    .post-swipe-overlay {
        padding: 76px 20px 22px;
    }

    .post-swipe-overlay h2 {
        font-size: 26px;
    }

    .post-swipe-post {
        padding: 18px 20px 22px;
    }

    .post-swipe-hint {
        left: 0;
    }
}

@media (min-width: 601px) and (max-width: 992px) {
    .post-swipe-page {
        width: min(100% - 24px, 900px);
    }

    .post-swipe-header {
        align-items: flex-end;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 16px;
    }

    .post-swipe-header .posts-brand img {
        width: 86px;
    }

    .post-swipe-title h1 {
        font-size: 48px;
    }

    .post-swipe-title p {
        font-size: 13px;
        white-space: nowrap;
    }

    .post-swipe-powered {
        align-items: flex-end;
        margin-left: 0;
        width: auto;
    }

    .post-swipe {
        grid-template-columns: 42px minmax(0, 1fr) 42px;
        gap: 10px;
    }

    .post-swipe-arrow {
        display: inline-flex;
        height: 42px;
        width: 42px;
    }

    .post-swipe-arrow i {
        font-size: 27px;
    }

    .post-swipe-page > .post-swipe .post-swipe-stage {
        height: calc(100vh - 220px);
        min-height: 430px;
    }

    .post-swipe-card {
        left: 7%;
        width: 86%;
    }

    .post-swipe-card.previous {
        transform: translateX(calc(-91% + var(--post-swipe-drag-x))) scale(0.9);
    }

    .post-swipe-card.next {
        transform: translateX(calc(91% + var(--post-swipe-drag-x))) scale(0.9);
    }

    .post-swipe-overlay h2 {
        font-size: 29px;
    }
}

@media (max-width: 520px) {
    .post-swipe-page {
        width: min(100% - 18px, 520px);
    }

    .post-swipe-header {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 10px;
    }

    .post-swipe-header .posts-brand img {
        width: 72px;
    }

    .post-swipe-title h1 {
        font-size: 42px;
    }

    .post-swipe-title p {
        font-size: 12px;
        white-space: nowrap;
    }

    .post-swipe-powered {
        align-items: flex-end;
        justify-self: end;
        width: auto;
    }

    .post-swipe-powered span {
        font-size: 10px;
    }

    .post-swipe-page > .post-swipe .post-swipe-stage {
        height: calc(100vh - 238px);
        min-height: 390px;
    }

    .post-swipe-card {
        left: 4%;
        width: 92%;
    }

    .post-swipe-powered strong {
        font-size: 15px;
    }
}
