/* For smaller, one-off styling needs that don't fit elsewhere */

.overflow-hidden {
    overflow: hidden;
}

html {
    overflow: auto;
}

body {
    background-color: var(--wp--preset--color--l-blue);
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4d5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c8TV1mAAAAG3RSTlNAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAvEOwtAAAFVklEQVR4XpWWB67c2BUFb3g557T/hRo9/WUMZHlgr4Bg8Z4qQgQJlHI4A8SzFVrapvmTF9O7dmYRFZ60YiBhJRCgh1FYhiLAmdvX0CzTOpNE77ME0Zty/nWWzchDtiqrmQDeuv3powQ5ta2eN0FY0InkqDD73lT9c9lEzwUNqgFHs9VQce3TVClFCQrSTfOiYkVJQBmpbq2L6iZavPnAPcoU0dSw0SUTqz/GtrGuXfbyyBniKykOWQWGqwwMA7QiYAxi+IlPdqo+hYHnUt5ZPfnsHJyNiDtnpJyayNBkF6cWoYGAMY92U2hXHF/C1M8uP/ZtYdiuj26UdAdQQSXQErwSOMzt/XWRWAz5GuSBIkwG1H3FabJ2OsUOUhGC6tK4EMtJO0ttC6IBD3kM0ve0tJwMdSfjZo+EEISaeTr9P3wYrGjXqyC1krcKdhMpxEnt5JetoulscpyzhXN5FRpuPHvbeQaKxFAEB6EN+cYN6xD7RYGpXpNndMmZgM5Dcs3YSNFDHUo2LGfZuukSWyUYirJAdYbF3MfqEKmjM+I2EfhA94iG3L7uKrR+GdWD73ydlIB+6hgref1QTlmgmbM3/LeX5GI1Ux1RWpgxpLuZ2+I+IjzZ8wqE4nilvQdkUdfhzI5QDWy+kw5Wgg2pGpeEVeCCA7b85BO3F9DzxB3cdqvBzWcmzbyMiqhzuYqtHRVG2y4x+KOlnyqla8AoWWpuBoYR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PfPDQdnt+4/wuqcXY47QILbgAAAABJRU5ErkJggg==);
    background-blend-mode: soft-light;
    position: relative;
    width: 100vw;
}

/* body.home {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
} */

#desktop-icons,
#mobile-icons {
    position: relative;
}

.icon-grid {
    position: fixed;
    min-width: 168vw !important;
    min-height: 125vh !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* grid-gap: var(--two-spacer) !important; */
}

#desktop-icons .icon-row > div {
    padding: 10px;
}

#desktop-icons .foreground > .icon-row > div,
#desktop-icons .background > .icon-row > div.exclude,
#mobile-icons .foreground > .icon-row > div > div,
#mobile-icons .background > .icon-row > div > div.exclude {
    opacity: 0;
}

#desktop-icons .foreground > .icon-row > .include,
#mobile-icons .foreground > .icon-row > div > .include {
    transform: scale(0.85);
}

.background {
    opacity: 0;
}


.icon-row svg {
    width: 100%;
    height: auto;
    overflow: visible;
    padding: var(--one-spacer);
}

.icon-row svg * {
    fill: transparent;
    stroke: #334652;
    stroke-width: 1.5px;
    vector-effect: non-scaling-stroke;
}

#sidebar-container {
    position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        min-width: 100%;
        height: 100dvh;
        margin: 0;
        overflow: hidden;
        scroll-snap-type: y proximity;
}
#sidebar {
    position: absolute;
    width: calc((14vw * 5) - 34vw - var(--two-spacer));
    height: 100%;
    transform: translateX(100%);
    border-width: 0 0 0 1.5px;
    border-style: solid;
}
@media screen and (max-width: 1079px) {
    #sidebar {
        width: 100%;
        bottom: 0;
        transform: translateY(100%);
        border-width: 1px 0 0 0;
        scroll-snap-align: start;
    }
    .icon-row svg * {
        stroke-width: 1px;
    }
}

.logo-container svg {
    width: 100%;
    height: auto;
}

.mce_inline_error {
    color: var(--wp--preset--color--off-white-always) !important;
    background-color: var(--wp--preset--color--red) !important;
    font-size: var(--wp--preset--font-size--small) !important;
    font-weight: 400 !important;
    margin: 0 !important;
    padding: var(--zero-point-five-spacer) !important;
}

/* Dynamic image height for smaller items on two-col. post rows */
@media screen and (min-width: 960px) {
    .dynamic-height img {
        height: calc((100vw - (2 * var(--global--spacing-horizontal))) * .33) !important;
    }
}
@media screen and (min-width: 1600px) {
    .dynamic-height img {
        height: calc((1600px - (2 * var(--global--spacing-horizontal))) * .33) !important;
    }
}

.hero-metadata {
    position: absolute;
    right: 0;
    top: calc(var(----responsive--alignwide-width)/2) !important;
    transform: translateY(-100%);
}

/* Invert */
/* — Black <—> White */
:root, body, #site-header {
    transition: color 0.2s ease;
    transition: background-color 0.2s ease;
}
:root.invert,
body.invert,
#site-header.invert {
    --wp--preset--color--off-white: #231F1F !important;
    --wp--preset--color--l-blue: #231F1F !important;
    --wp--preset--color--off-black: #E7E2D9 !important;
    --wp--preset--color--d-blue: #929C97 !important;
}
/* If already inverted at body-level, re-set the colors so the menu interaction still functions to invert the scheme */
:root.invert #site-header.invert,
body.invert #site-header.invert {
    --wp--preset--color--off-white: #E7E2D9 !important;
    --wp--preset--color--off-black: #231F1F !important;
}
/* 'Always' colors */
.has-off-black-color-always {
    color: #231F1F !important;
}
.has-off-black-background-color-always {
    background-color: #231F1F !important;
}
.has-off-white-color-always {
    color: #E7E2D9 !important;
}
.has-off-white-background-color-always {
    background-color: #E7E2D9 !important;
}
.has-l-blue-color-always {
    color: #929C97 !important;
}
.has-l-blue-background-color-always {
    background-color: #929C97 !important;
}

/* Carousel styles */
.swiper-slide figcaption {
    max-width: var(--responsive--alignwide-width);
    width: var(--responsive--alignwide-width);
    margin-left: auto;
    margin-right: auto;
}
.swiper-slide-active figcaption {
    transition: opacity 0.2s ease !important;
    opacity: 100% !important;
}
.swiper-button-prev,
.swiper-button-next {
    width: fit-content !important;
    height: fit-content !important;
    font-size: var(--wp--preset--font-size--small) !important;
    color: var(--wp--preset--color--off-black) !important;
    margin-top: 0 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    opacity: 0.6 !important;
}
.swiper-button-prev::after,
.swiper-button-next::after {
    content: none !important;
}
@media screen and (max-width: 699px) {
    .swiper-button-prev,
    .swiper-button-next {
        display: none !important;
    }
}
.swiper-pagination {
    left: 0 !important;
    bottom: 0 !important;
    text-align: left !important;
}
.swiper-pagination-bullet {
    width: var(--two-spacer) !important;
    height: var(--two-spacer) !important;
    background-color: var(--wp--preset--color--off-white) !important;
    opacity: 0.5 !important;
}
.swiper-pagination-bullet-active {
    opacity: 1 !important;
}

.box-decoration-break {
    -moz-box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.arrow-after-black,
.arrow-after-white,
.arrow-after-always-black,
.arrow-after-always-white {
    position: relative;
}
.arrow-after-black::after,
.arrow-after-white::after,
.arrow-after-always-black::after,
.arrow-after-always-white::after {
    content: '';
    background-size: 8px 8px;
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 3px;
    transform: translateY(-1px);
}
.arrow-after-black::after,
.arrow-after-always-black::after {
    background-image: url(../icons/top-right-arrow-black.svg);
}
.arrow-after-white::after,
.arrow-after-always-white::after {
    background-image: url(../icons/top-right-arrow-white.svg);
}
:root.invert .arrow-after-black::after,
body.invert .arrow-after-black::after {
    background-image: url(../icons/top-right-arrow-white.svg);
}
:root.invert .arrow-after-white::after,
body.invert .arrow-after-white::after {
    background-image: url(../icons/top-right-arrow-black.svg);
}
.arrow-after-always-black::after {
    background-image: url(../icons/top-right-arrow-black.svg);
}
.arrow-after-always-white::after {
    background-image: url(../icons/top-right-arrow-white.svg);
}

#latest-post a {
    transition: all 0.2s ease;
}

#latest-post + * {
    margin-top: 0;
}

@media screen and (max-width: 599px) {
    .post-card .image-wrapper {
        aspect-ratio: 1 !important;
    }
}
.post-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, margin 1s ease;
    &:hover {
        transform: translate(-2px, -2px);
        box-shadow: 2px 2px 0px 0px var(--wp--preset--color--off-black);
    }
    &.alt:hover {
        box-shadow: none !important;
    }
    &.alt-alt:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    iframe {
        height: 100% !important;
    }
}

.entry-content .wp-block-separator {
    border-color: var(--wp--preset--color--off-black);
}

.entry-content .wp-block-embed-youtube iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
}

#page-wrapper {
    transition: all 1s ease;
}

/* Making sure captions always have margins even if an image has 'alignfull' */
.wp-block-image.alignfull figcaption {
    margin-left: auto;
    margin-right: auto;
    width: 100% !important;
    max-width: var(--responsive--alignwide-width) !important;
}

/* Comments */
.wp-block-comments {
    display: flex !important;
    flex-direction: column !important;
    gap: var(--one-point-five-spacer) !important;
    max-width: var(--responsive--alignwide-width) !important;
    width: var(--responsive--alignwide-width) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: var(--four-spacer) !important;
    color: var(--wp--preset--color--off-white) !important;
    background-color: var(--wp--preset--color--off-black) !important;
    padding: var(--three-spacer) !important;
    border-radius: var(--zero-point-five-spacer) !important;
    .wp-block-column:has(.wp-block-avatar) {
        display: none !important;
    }
    .wp-block-comments-title {
        padding-bottom: var(--one-point-five-spacer) !important;
        border-bottom: 1px solid !important;
    }
    .wp-block-comment-template {
        display: flex !important;
        flex-direction: column !important;
        gap: var(--one-point-five-spacer) !important;
        .comment {
            display: flex !important;
            flex-direction: column !important;
            gap: var(--one-point-five-spacer) !important;
            padding-bottom: var(--one-point-five-spacer) !important;
            border-bottom: 1px solid !important;
            .wp-block-comment-author-name {
                font-family: var(--wp--preset--font-family--pressura-mono) !important;
                font-size: var(--wp--preset--font-size--small) !important;
                text-transform: uppercase !important;
                font-weight: bold !important;
                a {
                    font: inherit !important;
                    text-decoration: none !important;
                }
            }
            .comment {
                border-top: 1px solid !important;
                border-left: 1px solid !important;
                border-bottom: none !important;
                padding: var(--one-point-five-spacer) 0 0 var(--one-point-five-spacer) !important;
            }
            .wp-block-comment-date {
                font-family: var(--wp--preset--font-family--pressura-mono) !important;
                font-size: var(--wp--preset--font-size--small) !important;
                text-transform: uppercase !important;
                font-weight: normal !important;
                opacity: 0.7 !important;
                a {
                    font: inherit !important;
                    text-decoration: none !important;
                }
            }
            .wp-block-comment-content {
                margin-top: var(--one-point-five-spacer) !important;
            }
            .wp-block-comment-reply-link {
                margin-top: var(--one-point-five-spacer) !important;
                .comment-reply-link {
                    display: flex !important;
                    width: fit-content !important;
                    height: fit-content !important;
                    padding: var(--zero-point-five-spacer) !important;
                    border-radius: var(--zero-point-five-spacer) !important;
                    text-decoration: none !important;
                    /* Always black text */
                    color: #231F1F !important;
                    background-color: var(--wp--preset--color--orange) !important;
                    font-family: var(--wp--preset--font-family--pressura-mono) !important;
                    font-size: var(--wp--preset--font-size--small) !important;
                    text-transform: uppercase !important;
                    font-weight: 700 !important;
                    line-height: 1 !important;
                    border: none !important;
                }
            }
        }
    }
    form.comment-form {
        display: flex !important;
        flex-direction: column !important;
        gap: var(--one-point-five-spacer) !important;
        input,
        textarea {
            border: 1px solid var(--wp--preset--color--off-white) !important;
            border-radius: var(--zero-point-five-spacer) !important;
            padding: var(--zero-point-five-spacer) !important;
            color: var(--wp--preset--color--off-white) !important;
            background-color: transparent !important;
        }
        label {
            display: flex !important;
            font-family: var(--wp--preset--font-family--pressura-mono) !important;
            font-size: var(--wp--preset--font-size--small) !important;
            text-transform: uppercase !important;
            font-weight: 700 !important;
            line-height: 1 !important;
            margin-bottom: var(--zero-point-five-spacer) !important;
            &[for="wp-comment-cookies-consent"] {
                margin-bottom: 0 !important;
            }
        }
        .comment-form-cookies-consent {
            display: flex !important;
            align-items: center !important;
        }
        input[type="submit"] {
            display: flex !important;
            width: fit-content !important;
            height: fit-content !important;
            padding: var(--zero-point-five-spacer) !important;
            border-radius: var(--zero-point-five-spacer) !important;
            text-decoration: none !important;
            color: #231F1F !important;
            background-color: var(--wp--preset--color--orange) !important;
            font-family: var(--wp--preset--font-family--pressura-mono) !important;
            font-size: var(--wp--preset--font-size--small) !important;
            text-transform: uppercase !important;
            font-weight: 700 !important;
            line-height: 1 !important;
            border: none !important;
        }
    }
    #respond {
        margin-top: var(--one-point-five-spacer) !important;
    }
}

/* Contact form/ACF form */
.acf-form {
    display: flex !important;
    flex-direction: column !important;
    gap: var(--one-point-five-spacer) !important;
    .acf-fields {
        display: flex !important;
        flex-direction: column !important;
        gap: var(--one-point-five-spacer) !important;
        .acf-field {
            padding: 0 !important;
            border: none !important;
            .acf-label {
                margin-bottom: var(--zero-point-five-spacer) !important;
                * {
                    font-family: var(--wp--preset--font-family--pressura-mono) !important;
                    font-size: var(--wp--preset--font-size--small) !important;
                    text-transform: uppercase !important;
                    font-weight: 700 !important;
                }
            }
            .acf-input {
                input, textarea {
                    padding: var(--zero-point-five-spacer) !important;
                    background-color: transparent !important;
                    color: inherit !important;
                    font-family: var(--wp--preset--font-family--pressura) !important;
                }
                input {
                    border-width: 0 0 1px 0 !important;
                    border-radius: 0 !important;
                }
                textarea {
                    border-radius: var(--zero-point-five-spacer) !important;
                }
            }
        }
    }
    input[type="submit"],
    .submit-another {
        display: flex !important;
        width: fit-content !important;
        height: fit-content !important;
        padding: var(--zero-point-five-spacer) !important;
        border-radius: var(--zero-point-five-spacer) !important;
        text-decoration: none !important;
        color: #231F1F !important;
        background-color: var(--wp--preset--color--orange) !important;
        font-family: var(--wp--preset--font-family--pressura-mono) !important;
        font-size: var(--wp--preset--font-size--small) !important;
        text-transform: uppercase !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        border: none !important;
    }
}

.cursor-pointer {
    cursor: pointer;
}