h1 {
    margin-bottom: 1rem;
}

.ratio {
    max-height: 450px;
}

.ratio a {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 450px;
}

.ratio img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.post-container {
    border: 1px solid var(--bs-secondary-bg-subtle);
    background-color: var(--bs-secondary-bg-subtle);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.indicator-col {
    display: none;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    overflow-y: auto;
    cursor: pointer;
    margin: 10px 0;
}

.gallery-image-col {
    cursor: pointer;
    padding: 0;
}

.gallery-image-col a {
    width: 100%;
    height: 100%;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    padding: 0;
}


@media (min-width: 1400px) {
    .gallery {
        max-height: calc(2 * (61px + 3.773px));
    }

    .gallery-image-col {
        width: 61px;
        height: 61px;
        margin-bottom: 3.773px;
        margin-right: 3.773px;
    }

    .gallery-image-col:first-child,
    .gallery-image-col:nth-child(5n) {
        margin-left: 0;
    }

    .gallery-image-col:last-child,
    .gallery-image-col:nth-child(4n) {
        margin-right: 0;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .gallery {
        max-height: calc(2 * (51px + 3.773px));
    }

    .gallery-image-col {
        width: 51px;
        height: 51px;
        margin-bottom: 3.773px;
        margin-right: 3.773px;
    }

    .gallery-image-col:first-child,
    .gallery-image-col:nth-child(5n) {
        margin-left: 0;
    }

    .gallery-image-col:last-child,
    .gallery-image-col:nth-child(4n) {
        margin-right: 0;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .gallery {
        max-height: calc(2 * (56px + 3.664px));
    }

    .gallery-image-col {
        width: 56px;
        height: 56px;
        margin-bottom: 3.664px;
        margin-right: 3.664px;
    }

    .gallery-image-col:first-child,
    .gallery-image-col:nth-child(3n+1) {
        margin-left: 0;
    }

    .gallery-image-col:last-child,
    .gallery-image-col:nth-child(3n) {
        margin-right: 0;
    }
}

@media (max-width: 991px) {
    .gallery {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        cursor: pointer;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }


    .gallery-image-col {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-left: 3px;
        margin-right: 3px;
        padding: 0;
    }

    .indicator-col {
        flex: 0 0 7%;
        max-width: 7%;
        padding: 0;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
    }

    .content-col {
        flex: 0 0 86%;
        max-width: 86%;
        margin: 0;
        padding: 0;
    }

    .indicator-col button {
        background-color: transparent;
        font-size: 1rem;
        border: none;
        cursor: pointer;
        border-radius: var(--bs-border-radius);
    }

    .indicator-col button:focus {
        outline: none;
    }

    .indicator-col button:hover {
        background-color: rgba(0,0,0,0.1);
    }

    .indicator-col button i {
        color: var(--foucault-blue);
    }


    .gallery, .gallery-image-col {
        box-sizing: border-box;
    }

    .content-col {
        overflow: visible;
    }

    .gallery-image-col:first-child {
        margin-left: 0;
    }

    .gallery-image-col:last-child {
        margin-right: 0;
    }

}

.scroll-indicator {
    display: none;
    justify-content: center;
    align-items: center;
    width: 30%;
    border-style: none;
}

.scroll-indicator.show {
    display: flex;
}

.scroll-indicator.show:hover {
    background-color: rgb(210,210,210);
}

.fslightbox-toolbar-button:first-child {
    display: none !important;
}

.fslightbox-slide-btn-container-previous {
    left: 0;
    padding-left: 12px !important;
}

.fslightbox-slide-btn-container-next {
    right: 0;
    padding-right: 12px !important;
}

.text-preview {
    position: relative;
    overflow: hidden;
}

.text-preview p {
    position: relative;
}

.text-preview p:last-of-type {
    margin-bottom: 31px !important;
}

.short-text {
    position: relative;
}

.short-text p:last-child::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, rgba(240,240,240, 0) 0%, rgba(240,240,240, 1) 100%);
    pointer-events: none;
}

.read-more {
    position: absolute;
    bottom: 0;
    right: 0;
}

.full-text {
    transition: opacity 0.3s ease;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}
