main {
    position: relative;
    /* margin-top: 146px; */
}

section.section {
    position: static !important;
    padding: 0;
}

.blog {
    display: grid;
    grid-gap: 20px;
    padding-bottom: 40px;
}

.blog__main {
    background: var(--color-bg-primary);
    padding-bottom: 40px;
    position: relative;
}

.blog__related-product img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.blog__related-product {
    border: 1px solid #e4e4e4;
    display: flex;
    grid-template-rows: auto 1fr;
    flex-direction: column;
}

.blog__related-product-info {
    padding: 10px;
    display: flex;
    grid-gap: 8px;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
}

.blog__related-product-info h4 {
    font-size: 1rem;
    word-break: break-all;
}

.blog__related-product-image {
    aspect-ratio: 1/1;
}

.blog__author-wrapper {
    /* display: grid; */
    /* grid-gap: 10px; */
    /* grid-auto-flow: column; */
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid #e4e4e4;
    border-bottom: 1px solid #e4e4e4;
    margin-bottom: 20px;
}

.blog__author {
    font-size: 14px;
}

.blog__title {
    margin: auto;
    padding: 20px 0;
}

.blog__related-products-title {
    text-align: center;
    margin: 48px 0 28px;
    font-size: 32px;
    font-weight: 500;
}

.blog__related-products ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px 10px;
    padding-top: 20px;
}

.blog__image-wrapper {
    display: grid;
    position: relative;
    padding-bottom: 56.25vw;
    /* width: 100vw; */
    width: 100%;
    overflow: hidden;
    transition: height .2s ease;
}

.blog__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 56.25vw;
    object-fit: cover;
    object-position: center;
    z-index: 3;
    opacity: 1;
    visibility: visible;
}

.blog__content p {
    line-height: 1;
}

.blog__related > h3,
.blog__related-products > h3 {
    margin-bottom: 1rem;
}

.blog__related-image-wrapper {
    display: block;
    padding-bottom: 50%;
    position: relative;
}

.blog__related-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 4px;
}

.blog__related-post {
    position: relative;
    transition: all .3s ease;
    margin-bottom: 25px;
    border-radius: 4px;
    box-shadow: 0 2px 14px #c4c4c433;
}

.blog__related-post:hover {
    box-shadow: 0 2px 14px #1113;
    outline: 0;
    background: var(--color-bg-primary);
}

.blog__related-tags {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 10px;
}

.blog__author .tags {
    padding-bottom: .5rem;
}

.blog__related-tag {
    color: #000;
    background: #f3f3f3;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 10px;
    opacity: 0.9;
}

.blog__related-info {
    padding: 20px;
}

.blog__related-title {
    font-size: 1.125rem;
    line-height: 1.3;
}

.blog__related-products {
    margin-top: 40px;
}

.blog__related-date {
    font-size: 10px;
    margin-top: 12px;
    text-transform: capitalize;
    line-height: 1.4;
    letter-spacing: 1px;
    font-family: var(--font-caption-family);
}

.button--primary {
    opacity: 1;
    background: var(--color-bg-button-hover);
    padding: 10px;
    background: #222;
}

.blog__content {
    overflow: hidden;
}

.blog__content img {
    max-width: 100%;
    border-radius: 4px;
}

.blog__content ul, ol {
    list-style-position: inside;
}

.blog__content ul {
    list-style-type: disc;
}

.blog__content ol {
    list-style-type: decimal;
}

.blog__related-description {
    padding: 15px 0;
    font-size: 16px;
    line-height: 1.6;
    color: #444;
}

.blog li,
.blog ul {
    list-style: inherit;
}

@media(max-width:992px) {
    .blog__related-products-title {
        font-size: 24px;
    }
}

@media screen and (min-width: 1220px) {
    .blog {
        grid-template-columns: 2.5fr 1fr;
        grid-gap: 60px;
    }

    .blog__main {
        padding: 0 30px;
        border-left: 1px solid #e4e4e4;
        border-right: 1px solid #e4e4e4;
        padding-bottom: 60px;
    }

    .blog__image-wrapper,
    .blog__image {
        height: 800px;
        padding-bottom: 0;
    }

    .blog__related {
        min-width: 350px;
        padding-bottom: 40px;
    }

    .blog__related-products ul {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

ol {
    word-break: break-all;
    margin: 0;
    padding: 0;
    font-family: 'Courier New', monospace;
}

li {
    list-style-position: inside;
    padding: 0;
}

.blog__content li::before {
    content: "";
    width: 1rem;
    display: inline-block;
}

.blog__content ol li::before {
    content: "";
    width: 0.5rem;
    display: inline-block;
}

.close-btn {
    position: fixed;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
    color: #fff;
    font-size: 30px;
    /* Default size */
    z-index: 1001;
}

.close-btn:hover {
    color: #ddd;
}

/* Smaller screens */
@media (max-width: 768px) {
    .close-btn {
        font-size: 24px;
        /* Slightly smaller on small devices */
        top: 10px;
        right: 10px;
    }
}

/* Larger screens */
@media (min-width: 1200px) {
    .close-btn {
        font-size: 36px;
        /* Larger for high-resolution screens */
        top: 30px;
        right: 30px;
    }
}


.author-item {
    display: flex;
    align-items: center;

    /* Horizontally centers the content */
    width: 50%;
    /* 50% width for 2 items per row */
    padding-bottom: 0.5rem;
    /* Adjust the padding as needed */
    box-sizing: border-box;
}

.author-item img {
    border-radius: 50%;
    width: 2.5rem;
    /* Adjust the size as needed */
    height: 2.5rem;
    /* Adjust the size as needed */
    object-fit: cover;
    margin-right: 10px;
    /* Space between image and author name */
}

.author-item span {
    display: block;
    /* Make the name span its own block for alignment */
    text-align: center;
    /* Center the text if it wraps */
    font-size: 10px;
    /* Adjust the font size as needed */
    font-weight: normal;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.blog__related-authors {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.blog__related-author {
    display: flex;
    width: 50%;
    padding: 10px;
    box-sizing: border-box;
}

.blog__related-author img {
    border-radius: 50%;
    width: 35px;
    height: 35px;
    object-fit: cover;
    margin-right: 10px;
}

@media(max-width:1219px) {
    .blog__grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
}

@media(max-width:600px) {
    .blog__grid {
        grid-template-columns: 1fr;
    }
}