.post-card {
    min-width: 288px;
    cursor: pointer;
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 12px;
    background-color: var(--background-color); 
    border: 1px solid var(--border-color);
    border-radius: 12px;
    height: 100%;
    transition: border 0.3s ease;
}

.post-card:hover {
    border: 1px solid var(--text-color);
}

.post-card img {
    transition: transform 0.6s ease;
    will-change: transform;
    transform: scale(1);
}

.post-card:hover img {
   transform: scale(1.05);
}

.slider .post-card {
    width: 288px;
    margin-right: 24px;
    height: auto;
}

.post-image-wrapper img,
.post-image-wrapper .placeholder {
    width: 100%;
    border-radius: 6px;
    aspect-ratio: 3/2;
}

.post-image-wrapper {
    border-radius: 6px;
    overflow: hidden;
}

.post-card-content {
    display: flex;
    flex-flow: column;
    gap: 16px;
    align-items: flex-start;
    width: 100%;
}

.post-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: auto;
}

.slider,
.slider-section {
    position: relative;
}

.slider-buttons {
    position: absolute;
    top: -32px;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transform: translateY(-100%);
}

.slider-button {
    width: 32px;
    height: 32px;
    border: 1px solid var(--text-color);
    border-radius: 100%;
    color: var(--text-color);
    cursor: pointer;
}

.slider-button:hover {
    background-color: var(--text-color);
    color: var(--background-color);
}

.slider-button:disabled {
    opacity: 0.4;
    background-color: var(--background-color) !important;
    color: var(--text-color) !important;
}

.slider-arrow-inner {
    width: 16px;
    height: auto;
}

.slider-arrow-inner.rotated {
    transform: rotate(180deg);
}

.slider-section.offset-section h2,
.offset-section h2,
.offset-section .subtitle,
.slider-section.offset-section .subtitle {
    color: var(--background-color);
}

.offset-section .subtitle-circle,
.slider-section.offset-section .subtitle-circle,
.slider-section.offset-section .subtitle-line,
.offset-section .subtitle-line {
    background-color: var(--background-color);
}

.slider-section.offset-section .slider-button {
    color: var(--background-color);
    background-color: transparent;
    border: 1px solid var(--background-color);
}

.slider-section.offset-section .slider-button:hover {
    color: var(--text-color);
    background-color: var(--background-color);
}

.slider-section.offset-section .slider-button:disabled {
    color: var(--background-color) !important;
    background-color: transparent !important;
}

.post-card-big {
    gap: 24px;
}

.post-card-big .post-image-wrapper img,
.post-card-big .post-image-wrapper .placeholder {
    height: 420px;
    aspect-ratio: unset;
}

.post-card-horizontal .post-image-wrapper img,
.post-card-horizontal .post-image-wrapper,
.post-card-horizontal .post-image-wrapper .placeholder {
    height: 180px;
    width: 220px;
    min-width: 220px;
    aspect-ratio: unset;
}

.post-card-big .big-text,
.post-card-horizontal .big-text {
    text-transform: uppercase;
}

.post-card-horizontal .post-card-bottom,
.post-card-big .post-card-bottom  {
    margin-top: 0px;
}

.post-card-tag-and-time {
    gap: 8px;
}

.post-card-horizontal {
    flex-direction: row;
}

.post-card-featured {
    min-width: unset;
}

.post-card-featured .post-card-content {
    flex-direction: row;
    gap: 8px;
}

.post-card-featured .featured-post-card-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.post-card-huge {
    border: none !important;
    cursor: auto;
    pointer-events: none;
}

.post-card-huge img {
    transform: scale(1.03);
}

.post-card-huge .post-image-wrapper {
     border: 1px solid var(--border-color);
     pointer-events: none;
}

.post-card-huge .post-card-content {
    position: relative;
    z-index: 2;
    text-align: center;
    align-items: center;
    gap: 24px;
    margin-top: -90px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    background: var(--background-color);
    box-shadow: rgba(0, 0, 0, 0.08) 0px 1px 3px 0px;
    border-radius: 6px;
    cursor: pointer;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color);
    text-decoration: none;
    pointer-events: all;
    border: 1px solid var(--border-color);
    padding-top: 56px;
}

.post-card-huge .post-card-content:hover ~ .post-image-wrapper img {
    transform: scale(1.03);
}

.post-card-huge .big-text {
    font-size: 24px;
    line-height: 30px;
}

.post-card-huge .post-card-bottom {
    width: fit-content;
    gap: 24px;
}

.post-card-horizontal-big .post-image-wrapper img,
.post-card-horizontal-big .post-image-wrapper .placeholder {
    height: 420px;
    width: 100%;
}

.post-card-horizontal-big .post-image-wrapper {
    width: 50%;
    min-width: 50%;
    height: 420px;
}

.post-card-horizontal-big {
    gap: 24px;
}

.post-card-horizontal-big .post-card-content {
    gap: 32px;
}

.post-card-horizontal.smaller .post-image-wrapper img, 
.post-card-horizontal.smaller .post-image-wrapper, 
.post-card-horizontal.smaller .post-image-wrapper .placeholder {
    height: 150px;
    width: 150px;
    min-width: 150px;
}

.post-card-horizontal.smaller .big-text {
    text-transform: none;
    width: 80%;
}

#library-grid {
    margin-top: 48px;
}

@media (max-width: 991px) { 
    .post-card-featured {
        flex-direction: row;
    }

    .post-card-featured img,
    .post-card-featured .placeholder,
    .post-card-featured .post-image-wrapper {
        aspect-ratio: 1/1;
        min-width: 80px;
        width: 80px;
        height: 80px;
    }

    .post-card:hover {
        border: 1px solid var(--border-color);
    }

    .post-card img {
        will-change: unset;
        transform: scale(1);
    }

    .post-card:hover img {
        transform: scale(1);
    }

    .post-card-huge .post-card-content {
        max-width: 90%;
    }

    .post-card-huge .big-text {
        font-size: 18px;
        line-height: 26px;
    }

    #library-grid {
        margin-top: 32px;
    }

    .library-main .medium-container {
        max-width: 100%;
    }
}

@media (max-width: 767px) { 
    .post-card,
    .slider .post-card {
        min-width: 180px;
    }

    .slider .post-card {
        width: 180px;
    }

    .slider .post-card {
        margin-right: 16px;
    }

    .post-card-content {
        gap: 8px;
    }

    .slider-buttons {
        top: -26px;
    }

    .post-card-big .post-image-wrapper img, .post-card-big .post-image-wrapper .placeholder {
        height: 220px;
    }

    .post-card-horizontal .post-image-wrapper img, .post-card-horizontal .post-image-wrapper, .post-card-horizontal .post-image-wrapper .placeholder {
        height: 80px;
        width: 80px;
        min-width: 80px;
    }

    .post-card-big .big-text {
        font-size: 16px;
        line-height: 24px;
    }

    .post-card-horizontal .big-text {
        font-size: 12px;
        line-height: 16px;
    }

    .post-card-huge .post-card-content {
        padding: 16px;
        padding-top: 24px;
        gap: 18px;
        margin-top: -60px;
    }

    .post-card-huge .big-text {
        font-size: 14px;
        line-height: 20px;
    }

    .post-card-horizontal.smaller {
        flex-direction: column;
    }

    .post-card-horizontal.smaller .post-image-wrapper img, 
    .post-card-horizontal.smaller .post-image-wrapper, 
    .post-card-horizontal.smaller .post-image-wrapper .placeholder {
        height: auto;
        width: 100%;
        min-width: 100%;
        aspect-ratio: 3/2;
    }

    .post-card-horizontal.smaller .big-text {
        font-size: 16px;
        line-height: 24px;
        width: 100%;
    }
}