/* HC Galeri · Bütün standart sayfalarda global sabit footer v3 */

:root {
    --hc-fixed-footer-height: 54px;
    --hc-global-footer-height: 54px;
}

html.hc-fixed-footer-ready {
    scroll-padding-bottom: var(--hc-global-footer-height);
}

html.hc-fixed-footer-ready body {
    padding-bottom: var(--hc-global-footer-height) !important;
}

html.hc-no-fixed-footer body {
    padding-bottom: 0 !important;
}

.site-footer.hc-global-fixed-footer,
html.hc-fixed-footer-ready .site-footer {
    position: fixed !important;
    z-index: 205 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    flex: none !important;
    border-top: 1px solid
        color-mix(in srgb, var(--border) 86%, transparent) !important;
    background:
        color-mix(in srgb, var(--surface) 92%, transparent) !important;
    box-shadow:
        0 -8px 28px color-mix(in srgb, #000 8%, transparent) !important;
    backdrop-filter: blur(18px) saturate(145%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(145%) !important;
    overflow: visible !important;
    padding-bottom: max(5px, env(safe-area-inset-bottom)) !important;
}

.site-footer.hc-global-fixed-footer .footer-inner,
html.hc-fixed-footer-ready .site-footer .footer-inner {
    min-height: 43px !important;
}

html.is-lightbox-open .site-footer,
body.is-lightbox-open .site-footer,
html[data-hc-hide-fixed-footer="1"] .site-footer,
body[data-hc-hide-fixed-footer="1"] .site-footer {
    display: none !important;
}

.footer-history-panel {
    max-height: min(
        500px,
        calc(
            100dvh
            - var(--header-height)
            - var(--hc-global-footer-height)
            - 28px
        )
    ) !important;
}

@media (max-width: 620px) {
    :root {
        --hc-fixed-footer-height: 50px;
        --hc-global-footer-height: 50px;
    }

    .site-footer.hc-global-fixed-footer,
    html.hc-fixed-footer-ready .site-footer {
        padding-top: 3px !important;
        padding-bottom: max(3px, env(safe-area-inset-bottom)) !important;
    }
}

@media print {
    html.hc-fixed-footer-ready body,
    html.hc-no-fixed-footer body {
        padding-bottom: 0 !important;
    }

    .site-footer.hc-global-fixed-footer,
    html.hc-fixed-footer-ready .site-footer {
        position: static !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}
