@import url("utility_resource.css");
@import url("main.css");

* {
    box-sizing: border-box;
}

body.media-page {
    min-height: 100vh;
    margin: 0;
    color: var(--color-white);
    background:
        linear-gradient(rgba(12, 24, 28, 0.24), rgba(4, 10, 13, 0.36)),
        url("../images/media_background.png") center / cover fixed no-repeat,
        #182426;
    overflow-x: hidden;
}

.media-page .user-site-header {
    position: relative;
    z-index: 2;
    min-height: 112px;
    padding: 32px clamp(22px, 4vw, 48px) 22px;
}

.media-page .user-nav {
    gap: clamp(26px, 4vw, 64px);
}

.media-page-main {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    width: 100%;
    min-height: calc(100vh - 112px);
    padding: 12px 24px 72px;
}

.media-post-panel {
    width: min(990px, 100%);
    min-height: min(650px, calc(100vh - 170px));
    padding: clamp(36px, 5vw, 58px) clamp(44px, 5.5vw, 68px) 34px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: linear-gradient(rgba(10, 10, 10, 0.68), rgba(10, 10, 10, 0.72));
    box-shadow:
        inset 0 0 42px 24px rgba(0, 0, 0, 0.42),
        0 20px 44px rgba(0, 0, 0, 0.36);
}

.media-post-card {
    display: flow-root;
    padding: 0 0 32px;
    color: var(--color-white);
}

.media-post-card + .media-post-card {
    margin-top: 32px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.34);
}

.media-image {
    float: right;
    width: min(340px, 44%);
    aspect-ratio: 16 / 9;
    margin: 0 0 20px 34px;
    object-fit: cover;
    border-radius: 0;
}

.post-date {
    margin: 124px 0 3px;
    color: rgba(255, 255, 255, 0.74);
    font-family: var(--font-montaga);
    font-size: 12px;
    line-height: 1.1;
}

.media-post-card:first-child .post-date {
    margin-top: 112px;
}

.media-post-card:not(:has(.media-image)) .post-date,
.media-empty-card .post-date {
    margin-top: 0;
}

.media-post-card h1 {
    margin: 0 0 16px;
    color: var(--color-white);
    font-family: var(--font-montaga) !important;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: 0;
}

.post-content {
    max-width: 100%;
}

.post-content p,
.media-empty-card p {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.82);
    font-family: var(--font-montaga);
    font-size: 13px;
    line-height: 1.42;
}

.post-content p:last-child,
.media-empty-card p:last-child {
    margin-bottom: 0;
}

.media-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
    color: var(--color-white);
    font-family: var(--font-montaga);
    font-size: 13px;
}

.media-pagination a {
    color: rgba(255, 255, 255, 0.74);
    text-decoration: none;
}

.media-pagination a:hover,
.media-pagination a:focus-visible,
.media-pagination a.active {
    color: var(--color-white);
    text-decoration: underline;
    text-underline-offset: 4px;
    outline: none;
}

@media (max-width: 900px) {
    body.media-page {
        background-attachment: scroll;
    }

    .media-page-main {
        min-height: calc(100vh - 88px);
        padding: 8px 18px 48px;
    }

    .media-post-panel {
        padding: 32px 28px;
    }

    .post-date,
    .media-post-card:first-child .post-date {
        margin-top: 68px;
    }
}

@media (max-width: 640px) {
    .media-page-main {
        min-height: auto;
        padding: 8px 14px 34px;
    }

    .media-post-panel {
        padding: 24px 18px;
        border-radius: 10px;
    }

    .media-image {
        float: none;
        width: 100%;
        margin: 0 0 18px;
    }

    .post-date,
    .media-post-card:first-child .post-date {
        margin-top: 0;
    }

    .media-post-card + .media-post-card {
        margin-top: 24px;
        padding-top: 28px;
    }
}
