.footer-normal-wrapper {
    background-color: var(--text-color);
    color: var(--background-color);
}

.footer-normal {
    opacity: 0;
}

.footer-normal-inner {
    display: flex;
    padding: max(68px, calc(4.72vw * var(--scale))) 0 max(78px, calc(5.42vw * var(--scale))) 0;
    gap: calc(100% / 6);
}

.footer-normal.ready {
    opacity: 1;
}

.footer-normal ul {
    list-style: none;
}

.footer-normal-content {
    display: flex;
    flex-direction: column;
    width: calc(100% / 3);
    padding: 0 max(24px, 1.67vw);
}

.footer-logo {
    width: fit-content;
    margin-bottom: max(16px, calc(1.11vw * var(--scale)));
}

.footer-content-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: max(24px, calc(1.67vw * var(--scale)));
}

.footer-normal-links {
    width: 50%;
    display: flex;
    flex-wrap: wrap;
    row-gap: max(68px, calc(4.72vw * var(--scale)));
}

.footer-nav,
.footer-links-group {
    display: flex;
    flex-direction: column;
    gap: max(7px, calc(0.49vw * var(--scale)));
}

.footer-links-group {
    padding: max(12px, 0.83vw) max(24px, 1.67vw);
    width: calc(100% / 3);
    gap: max(12px, calc(0.83vw * var(--scale)));
}

.footer-nav li,
.footer-normal-bottom .bottom-item p  {
    width: fit-content;
}

.footer-nav a,
.footer-normal-bottom .bottom-item p {
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.footer-nav a:hover,
.footer-normal-bottom .bottom-item p:hover {
    opacity: 1;
}

.footer-normal-bottom {
    padding: max(18px, 1.25vw) 0;
    gap: 0;
    min-height: auto !important;
}

.footer-normal-bottom::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--background-color);
    opacity: var(--lines-opacity);
}

html[data-lines="false"] .footer-normal-bottom::after {
    content: none;
}

.footer-normal-bottom .bottom-item p a {
    opacity: 1;
}

.footer-normal-bottom .bottom-item {
    padding: 0 max(24px, 1.67vw);
    flex: unset;
}

.footer-normal-bottom .bottom-item:nth-of-type(1) {
    width: 50%;
}

.footer-normal-bottom .bottom-item:nth-of-type(2) {
    width: calc(100% / 3);
}

.footer-normal-bottom .bottom-item:nth-of-type(3) {
    width: calc(100% / 6);
}

.footer-logo-image {
    height: max(calc(32px * var(--logo-scale)), calc(2.22vw * var(--scale) * var(--logo-scale)));
    width: auto;
}

@media screen and (max-width: 1080px) {
    .footer-normal-inner {
        flex-direction: column;
        padding-bottom: 92px;
    }

    .footer-normal-content {
        width: 100%;
        max-width: 620px;
    }

    .footer-normal-links {
        width: 100%;
        margin-top: 78px;
    }

    .footer-links-group {
        width: 50%;
    }

    .footer-nav a:hover,
    .footer-normal-bottom .bottom-item p:hover {
        opacity: 0.6;
    }

    .footer-normal-bottom .bottom-item:nth-of-type(2),
    .footer-normal-bottom .bottom-item:nth-of-type(3)  {
        width: 50%;
        display: flex;
        max-width: 100%;
    }

    .footer-normal-bottom .bottom-item:nth-of-type(1) {
        display: none;
    }
}

@media screen and (max-width: 767px) {
    .footer-normal-inner {
        padding: 54px 0 82px 0;
    }

    .footer-normal-content {
        padding: 0 18px;
    }

    .footer-content-inner {
        gap: 20px;
    }

    .footer-normal-links {
        row-gap: 54px;
    }

    .footer-links-group {
        padding: max(12px, 0.83vw) 18px;
    }

    .footer-logo-image {
        height: calc(26px * var(--logo-scale));
    }

    .footer-normal-bottom .bottom-item {
        width: auto !important;
        padding: 0 18px;
    }

    .footer-normal-bottom .bottom-item:nth-of-type(3) {
        margin-left: auto;
    }
}
/* Homepage footer alignment: keep the bottom row position unchanged while aligning Back to top with the homepage header action margin. */
.footer-normal-bottom {
    justify-content: space-between;
}

.footer-normal-bottom .bottom-item:nth-of-type(2) {
    margin-left: auto;
    width: fit-content;
}

/* Footer background image hook. Set from Ghost theme settings, falling back to /assets/images/footer-bg.png */
.footer-normal-wrapper {
    background-image: var(--footer-bg-image);
    background-size: auto 100%;
    background-position: center right;
    background-repeat: no-repeat;
}

.footer-normal-wrapper .footer-normal {
    background-color: transparent;
}

/* Footer background image support */
.footer-normal-wrapper,
.footer-wrapper {
    background-size: auto 100%;
    background-position: center right;
    background-repeat: no-repeat;
}

.footer-normal-wrapper .footer-normal,
.footer-wrapper .creative-footer {
    background-color: transparent;
}
