h1 {
    margin-bottom: 1rem;
}

.event-container {
    border: 1px solid rgb(240,240,240);
    background-color: rgb(240,240,240);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.date-row p {
    margin-bottom: 0;
}

.date-row i {
    margin-right: 6px;
}

.date-row i:not(:first-child) {
    margin-left: 12px;
}

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

.gallery {
    display: flex;
    cursor: pointer;
    margin-top: 10px;
    margin-bottom: 10px;
}

@media (min-width: 1400px) {
    .gallery {
        max-height: calc(2* (63px + 4px));
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: space-around;
        overflow-y: auto;
    }

    .gallery-image {
        width: 63px;
        height: 63px;
        cursor: pointer;
        margin-top: 2px;
        margin-bottom: 2px;
        object-fit: cover;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .gallery {
        max-height: calc(2* (54px + 4px));
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: space-around;
        overflow-y: auto;
    }

    .gallery-image {
        width: 54px;
        height: 54px;
        cursor: pointer;
        margin-top: 2px;
        margin-bottom: 2px;
        object-fit: cover;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .gallery {
        max-height: calc(2* (58px + 4px));
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: space-evenly;
        overflow-y: auto;
    }

    .gallery-image {
        width: 58px;
        height: 58px;
        cursor: pointer;
        margin-top: 2px;
        margin-bottom: 2px;
        object-fit: cover;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .gallery {
        max-height: 100px;
        flex-wrap: nowrap;
        align-items: flex-start;
        justify-content: flex-start;
        overflow-x: auto;
    }

    .gallery-image {
        width: 90px!important;
        height: 90px!important;
        cursor: pointer;
        margin-top: 2px;
        margin-bottom: 2px;
        object-fit: cover;
    }

    .gallery-image:not(:first-child) {
        margin-left: 2px;
    }

    .gallery-image:not(:last-child) {
        margin-right: 2px;
    }
}

@media (max-width: 767px) {
    .gallery {
        max-height: 100px;
        flex-wrap: nowrap;
        align-items: flex-start;
        justify-content: flex-start;
        overflow-x: auto;
    }

    .gallery-image {
        width: 90px;
        height: 90px;
        cursor: pointer;
        margin-top: 2px;
        margin-bottom: 2px;
        object-fit: cover;
    }

    .gallery-image:not(:first-child) {
        margin-left: 2px;
    }

    .gallery-image:not(:last-child) {
        margin-right: 2px;
    }
}


.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;
}
