.blogentry p
{
	text-align: justify;
}

.blog-gallery-left
{
    float: left;
    margin: 0 20px 15px 0;
	margin-top: 0px;
}

.blog-gallery-right
{
    float: right;
    margin: 0 0 15px 20px;
	margin-top: 0px;
}

.blog-gallery-left img,
.blog-gallery-right img
{
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}

.blog-gallery-item {
    display: block;
    cursor: zoom-in;
}

.blog-widget-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    border-radius: 1px;
}

#blog-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.94);
    align-items: center;
    justify-content: center;
}

#blog-lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    text-align: center;
}

.lightbox-content img {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: auto;
}

.lightbox-counter {
    color: #ccc;
    font-size: 14px;
    margin-top: 12px;
}

#blog-lightbox button {
    position: absolute;
    border: 0;
    background: transparent;
    color: white;
    cursor: pointer;
    font-size: 32px;
    padding: 10px;
}

.lightbox-close {
    top: 15px;
    right: 25px;
}

.lightbox-prev {
    left: 15px;
}

.lightbox-next {
    right: 15px;
}

.lightbox-caption
{
    color: #fff;
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
}

.blog-gallery
{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}

.blog-gallery-inline
{
    box-sizing: border-box;
    flex: 0 0 calc((100% - 30px) / 4);
    max-width: calc((100% - 30px) / 4);
}

.blog-gallery-inline img
{
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin: 0;
}

.blog-gallery-item:not(.blog-gallery-inline):not(.blog-gallery-left):not(.blog-gallery-right)
{
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 15px auto;
}

.blog-disc-widget
{
    margin: 20px 0;
}

@media (max-width: 900px)
{
    .blog-gallery-inline
    {
        flex-basis: calc((100% - 20px) / 3);
        max-width: calc((100% - 20px) / 3);
    }
}

@media (max-width: 600px)
{
    .blog-gallery-left,
    .blog-gallery-right
    {
        float: none;
        display: block;
        width: 100% !important;
        margin: 15px 0;
    }
    .blog-gallery-inline
    {
        flex-basis: calc((100% - 10px) / 2);
        max-width: calc((100% - 10px) / 2);
    }
}

.movielink
{
    color: #9A09FF;
    text-decoration: underline;
    text-decoration-style: dotted;
    cursor: pointer;
}

#movielink-tooltip
{
    display: none;
    position: absolute;
    z-index: 9999;
    width: 340px;
    max-width: calc(100vw - 24px);
    background: #222;
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,.4);
    padding: 12px;
}

#movielink-tooltip.visible
{
    display: block;
}

.movielink-tooltip-content
{
    display: flex;
    gap: 12px;
}

a.movielink,
a.movielink:visited
{
    color: #FAC40E;
    text-decoration: underline dotted;
    cursor: url("gfx/icon/paw.svg") 16 16, pointer;
}

.movielink-tooltip-image
{
    display: none;
    width: 95px;
    height: auto;
    max-height: 145px;
    object-fit: cover;
    border-radius: 6px;
}

.movielink-tooltip-image.visible
{
    display: block;
}

.movielink-tooltip-info
{
    flex: 1;
    min-width: 0;
}

.movielink-tooltip-title
{
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 4px;
}

.movielink-tooltip-subtitle
{
    font-size: 12px;
    color: #aaa;
    margin-bottom: 8px;
}

.movielink-tooltip-overview
{
    font-size: 13px;
    line-height: 1.4;
}

.movielink-tooltip-url
{
    position: relative;
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    color: #FAC40E;
}

.movielink-tooltip-url .globe
{
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.movielink-tooltip-url .external
{
    position: absolute;
    top: 0;
    right: -2px;
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    background: #222;
    border-radius: 50%;
}

.movielink-tooltip-url:hover
{
    background: #FAC40E;
    color: #222;
}

.movielink-tooltip-content
{
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.movielink-tooltip-info
{
    min-width: 0;
    flex: 1;
}

#movielink-tooltip
{
    display: none;
    position: fixed;
    width: max-content;
    max-width: min(420px, calc(100vw - 20px));
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    box-sizing: border-box;
    z-index: 9999;
}

#movielink-tooltip.visible
{
    display: block;
}

