/* Alignment base styles */
.alignnone {
    margin: .5rem 0 1.5rem;
}

.aligncenter,
.aligncenter img {
    display: block;
    margin: .5rem auto 1.5rem;
}

.alignright {
    float: right;
    margin: .5rem 0 1.5rem 2rem;
}

.alignleft {
    float: left;
    margin: .5rem 2.5rem 1.5rem 0;
}

@media (max-width: 600px) {

    .alignleft,
    .alignright,
    .aligncenter {
        float: none;
        margin-left: auto;
        margin-right: auto;
    }
}

/* WP Caption styles */
.wp-caption {
    max-width: 100%;
    text-align: center;
}

.wp-caption img {
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0 none;
}

.wp-caption .wp-caption-text,
.gallery-item .gallery-caption {
    margin: 0;
    padding: 0 1rem;
    font-size: 1.5rem;
    color: var(--text-light);
}

/* Post Layout */
.entry-container {
    max-width: 80rem;
    margin: auto;
}

@media screen and (max-width: 860px) {
    .entry-container {
        margin: 0 5%;
    }
}

/* Additional styles for better readability */
.entry-content {
    max-width: 72rem;
    margin: auto;
    font-size: 1.75rem;
    line-height: 1.55;
}

.entry-content a {
    color: var(--accent-hover);
}

.page .entry-content {
    max-width: 100%;
}

.entry-content :is(p, blockquote) {
    margin: 2rem 0;
}

.entry-content :is(ul, ol) {
    margin: 2rem 0 2rem 3rem;
    list-style-position: outside;

    > li {
        margin-bottom: 0.5rem;
    }
}

.entry-content>p>iframe {
    aspect-ratio: 16/9;
    width: 100%;
    height: auto;
}

/* Hide empty last paragraph */
.entry-content p:last-child:empty {
    display: none;
}

.entry-header {
    text-align: center;
    margin-bottom: 5rem;
}

.entry-title {
    font-size: clamp(2rem, 1.4718rem + 2.2535vw, 3.5rem);
    margin: 2.2rem auto;
}

.page .entry-title {
    margin-top: 0;
}

.meta--single a {
    text-decoration: underline;
    text-underline-offset: .4rem;
    text-decoration-color: #04698e;
}

.meta--single a:hover {
    text-decoration-thickness: .2rem;
}

/* Reverted parallax effect styles */
.entry-figure-container {
    margin: 40px -150px;
    --ratio: 1/0.5;
}

.entry-figure {
    position: relative;
    overflow: hidden;
    padding-bottom: calc(100% / (var(--ratio)));
}

.entry-figure img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Share: lazy-load */
.share-buttons {
    opacity: 0;
    height: 3.6rem;
    overflow: hidden;
    transition: opacity .25s cubic-bezier(.6, -0.28, .74, .05);
}


/* Related */
.section-related h3 {
    margin-bottom: 2.5rem;
}