/* ========================================
   PAGE
======================================== */

.post-page {
    width: 100%;

    padding: 34px 40px 100px;
}


/* ========================================
   HERO
======================================== */

.post-hero {
    width: 100%;
    max-width: 1480px;

    margin: 0 auto;

    display: grid;
    grid-template-columns:
        minmax(0, 0.7fr)
        minmax(380px, 0.7fr);

    gap: 64px;

    align-items: start;
}


/* ========================================
   SHOWCASE
======================================== */

.post-showcase {
    position: relative;

    min-width: 0;
}


/* ========================================
   GALLERY
======================================== */

.post-gallery {
    width: 100%;

    display: flex;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    background: #f3f3f1;

    border-radius: 18px;

    scrollbar-width: none;

    -webkit-overflow-scrolling: touch;
}

.post-gallery::-webkit-scrollbar {
    display: none;
}


/* ========================================
   SLIDE
======================================== */

.post-gallery__slide {
    position: relative;

    width: 100%;
    min-width: 100%;

    flex: 0 0 100%;

    margin: 0;

    aspect-ratio: 4 / 5;

    overflow: hidden;

    scroll-snap-align: start;
    scroll-snap-stop: always;

    background: #f3f3f1;
}

.post-gallery__slide img,
.post-gallery__slide video {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.post-gallery__slide img {
    user-select: none;

    -webkit-user-drag: none;
}


/* ========================================
   GALLERY CONTROLS
======================================== */

.post-gallery__controls {
    position: absolute;

    right: 18px;
    bottom: 18px;
    left: 18px;

    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    pointer-events: none;
}

.post-gallery__arrows {
    display: flex;
    align-items: center;

    gap: 8px;

    pointer-events: auto;
}


/* ========================================
   BUTTONS
======================================== */

.post-gallery__button {
    width: 44px;
    height: 44px;

    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.9);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    color: #111;

    font-size: 18px;
    font-weight: 400;

    cursor: pointer;

    transition:
        background-color 180ms ease,
        transform 180ms ease,
        opacity 180ms ease;
}

.post-gallery__button:hover {
    background: #fff;

    transform: scale(1.04);
}

.post-gallery__button:active {
    transform: scale(0.94);
}


/* ========================================
   COUNTER
======================================== */

.post-gallery__counter {
    min-width: 62px;
    height: 38px;

    padding: 0 14px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 5px;

    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.9);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    color: #222;

    font-size: 12px;
    font-weight: 500;

    pointer-events: auto;
}


/* ========================================
   INFO
======================================== */

.post-info {
    min-width: 0;
}

.post-info__inner {
    position: sticky;

    top: 110px;

    padding: 18px 0 12px;
}


/* ========================================
   TYPE
======================================== */

.post-type {
    display: inline-flex;
    align-items: center;

    margin-bottom: 22px;

    color: #999;

    font-size: 11px;
    font-weight: 600;

    line-height: 1;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


/* ========================================
   TITLE
======================================== */

.post-title {
    max-width: 620px;

    margin: 0;

    color: #111;

    font-size: clamp(42px, 4.2vw, 68px);
    font-weight: 500;

    line-height: 0.98;

    letter-spacing: -0.045em;

    text-wrap: balance;
}


/* ========================================
   USER
======================================== */

.post-user {
    margin-top: 34px;

    display: flex;
    align-items: center;

    gap: 12px;
}

.post-user img {
    width: 46px;
    height: 46px;

    flex-shrink: 0;

    display: block;

    border-radius: 50%;

    background: #f1f1f1;

    object-fit: cover;
}

.post-user__content {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 3px;
}

.post-user__label {
    color: #999;

    font-size: 10px;
    font-weight: 600;

    line-height: 1.2;

    letter-spacing: 0.06em;

    text-transform: uppercase;
}

.post-user__content strong {
    overflow: hidden;

    color: #171717;

    font-size: 14px;
    font-weight: 600;

    line-height: 1.35;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ========================================
   META
======================================== */

.post-meta {
    margin-top: 42px;

    padding: 8px 22px;

    background: #f5f5f3;

    border-radius: 18px;
}

.post-meta__item {
    min-height: 62px;

    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    align-items: center;

    gap: 18px;
}

.post-meta__label {
    color: #999;

    font-size: 10px;
    font-weight: 600;

    line-height: 1.2;

    letter-spacing: 0.07em;

    text-transform: uppercase;
}

.post-meta__item strong {
    color: #171717;

    font-size: 14px;
    font-weight: 500;

    line-height: 1.45;
}


/* ========================================
   TAGGED PRODUCTS
======================================== */

.post-products {
    margin-top: 18px;

    padding: 20px;

    display: flex;
    align-items: center;

    gap: 14px;

    background: #111;

    border-radius: 18px;

    color: #fff;
}

.post-products__icon {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.12);

    font-size: 22px;
    font-weight: 300;
}

.post-products > div:last-child {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 3px;
}

.post-products span {
    color: rgba(255, 255, 255, 0.58);

    font-size: 10px;
    font-weight: 600;

    line-height: 1.2;

    letter-spacing: 0.07em;

    text-transform: uppercase;
}

.post-products strong {
    color: #fff;

    font-size: 13px;
    font-weight: 500;

    line-height: 1.4;
}


/* ========================================
   SMALL DESKTOP
======================================== */

@media (max-width: 1100px) {

    .post-page {
        padding:
            28px
            24px
            80px;
    }

    .post-hero {
        grid-template-columns:
            minmax(0, 0.7fr)
            minmax(330px, 0.7fr);

        gap: 38px;
    }

    .post-title {
        font-size: clamp(38px, 4.5vw, 54px);
    }

}


/* ========================================
   TABLET
======================================== */

@media (max-width: 820px) {

    .post-page {
        padding:
            18px
            16px
            70px;
    }

    .post-hero {
        display: block;
    }

    .post-info {
        margin-top: 42px;
    }

    .post-info__inner {
        position: static;

        padding: 0 6px;
    }

    .post-title {
        max-width: 680px;

        font-size: clamp(38px, 9vw, 58px);

        line-height: 1;
    }

}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 560px) {

    .post-page {
        padding:
            12px
            12px
            58px;
    }

    .post-gallery {
        border-radius: 18px;
    }

    .post-gallery__slide {
        aspect-ratio: 4 / 5;
    }

    .post-gallery__controls {
        right: 12px;
        bottom: 12px;
        left: 12px;
    }

    .post-gallery__button {
        width: 40px;
        height: 40px;

        font-size: 16px;
    }

    .post-gallery__counter {
        height: 36px;

        padding: 0 12px;
    }

    .post-info {
        margin-top: 36px;
    }

    .post-info__inner {
        padding: 0 4px;
    }

    .post-type {
        margin-bottom: 18px;
    }

    .post-title {
        font-size: clamp(36px, 11vw, 48px);
    }

    .post-user {
        margin-top: 26px;
    }

    .post-user img {
        width: 42px;
        height: 42px;
    }

    .post-meta {
        margin-top: 34px;

        padding: 6px 18px;

        border-radius: 18px;
    }

    .post-meta__item {
        min-height: 60px;

        grid-template-columns: 90px minmax(0, 1fr);

        gap: 12px;
    }

    .post-products {
        padding: 18px;

        border-radius: 18px;
    }

}
