html { scroll-behavior: smooth; }
body { font-family: 'Plus Jakarta Sans', sans-serif; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease-out; }
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

.admin-bar .celebfeet-header { top: 32px; }
.admin-bar .celebfeet-filters { top: calc(4rem + 32px); }
@media (max-width: 782px) {
    .admin-bar .celebfeet-header { top: 46px; }
    .admin-bar .celebfeet-filters { top: calc(4rem + 46px); }
}

.custom-logo { max-height: 44px; width: auto; }
.celebfeet-nav-menu ul { display: flex; align-items: center; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.celebfeet-nav-menu li { margin: 0; }
.celebfeet-nav-menu a {
    display: inline-flex;
    padding: .625rem 1.25rem;
    border-radius: 9999px;
    font-size: .875rem;
    font-weight: 500;
    color: #6b7280;
    transition: all .2s ease;
}
.celebfeet-nav-menu a:hover { color: #111827; background: rgba(255,255,255,.55); }
.celebfeet-nav-menu .current-menu-item > a,
.celebfeet-nav-menu .current_page_item > a { background: #fff; color: #111827; box-shadow: 0 1px 2px rgba(0,0,0,.08); }

.celebfeet-footer-menu ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .625rem; }
.celebfeet-footer-menu a { color: #6b7280; transition: color .2s ease; }
.celebfeet-footer-menu a:hover { color: #EC4899; }

.cf-favorite-active { background: #EC4899 !important; color: #fff !important; }
.cf-favorite-active i { color: #fff !important; }

.celebfeet-single-content p { margin-bottom: 1rem; color: #4b5563; line-height: 1.8; }
.celebfeet-single-content a { color: #EC4899; font-weight: 600; }
.celebfeet-single-content h2, .celebfeet-single-content h3 { font-weight: 800; color: #111827; margin: 1.5rem 0 .75rem; }
.celebfeet-single-content ul, .celebfeet-single-content ol { margin: 1rem 0 1rem 1.25rem; color: #4b5563; }
.celebfeet-single-content li { margin: .35rem 0; }

.celebfeet-image-grid img { background: #F8F9FA; }
.celebfeet-lightbox { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; background: rgba(17,24,39,.92); padding: 1rem; }
.celebfeet-lightbox.is-open { display: flex; }
.celebfeet-lightbox img { max-width: min(100%, 1100px); max-height: 88vh; border-radius: 1rem; box-shadow: 0 30px 90px rgba(0,0,0,.45); }
.celebfeet-lightbox button { position: absolute; top: 1rem; right: 1rem; width: 2.75rem; height: 2.75rem; border-radius: 9999px; background: rgba(255,255,255,.95); color: #111827; display: flex; align-items: center; justify-content: center; }

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

@media (max-width: 640px) {
    .celebfeet-nav-menu ul { display: grid; gap: .5rem; }
    .celebfeet-nav-menu a { width: 100%; justify-content: center; background: #F8F9FA; }
}

/* CelebFeet custom palette helpers and fallback utilities. */
:root {
    --cf-accent: #EC4899;
    --cf-accent-light: #FDF2F8;
    --cf-accent-hover: #DB2777;
    --cf-surface: #F8F9FA;
    --cf-border: #E9ECEF;
}

.bg-accent { background-color: var(--cf-accent) !important; }
.bg-accent-light { background-color: var(--cf-accent-light) !important; }
.bg-accent-hover { background-color: var(--cf-accent-hover) !important; }
.bg-surface { background-color: var(--cf-surface) !important; }
.text-accent { color: var(--cf-accent) !important; }
.text-accent-hover { color: var(--cf-accent-hover) !important; }
.border-border { border-color: var(--cf-border) !important; }
.border-accent { border-color: var(--cf-accent) !important; }
.hover\:text-accent:hover, .group:hover .group-hover\:text-accent { color: var(--cf-accent) !important; }
.hover\:bg-accent-hover:hover { background-color: var(--cf-accent-hover) !important; }
.hover\:bg-accent-light:hover { background-color: var(--cf-accent-light) !important; }
.hover\:border-accent\/30:hover { border-color: rgba(236, 72, 153, .3) !important; }
.from-accent { --tw-gradient-from: var(--cf-accent) var(--tw-gradient-from-position) !important; --tw-gradient-to: rgb(236 72 153 / 0) var(--tw-gradient-to-position) !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important; }
.from-accent-light { --tw-gradient-from: var(--cf-accent-light) var(--tw-gradient-from-position) !important; --tw-gradient-to: rgb(253 242 248 / 0) var(--tw-gradient-to-position) !important; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important; }
.to-accent-hover { --tw-gradient-to: var(--cf-accent-hover) var(--tw-gradient-to-position) !important; }

/* Hard fallback for gradients in case the CDN config is not applied. */
.bg-gradient-to-br.from-accent-light.via-white.to-white {
    background-image: linear-gradient(to bottom right, var(--cf-accent-light), #fff, #fff) !important;
}
.bg-gradient-to-r.from-accent.to-accent-hover {
    background-image: linear-gradient(to right, var(--cf-accent), var(--cf-accent-hover)) !important;
}

/* Hard fallback for the automatic gallery in single posts. */
.celebfeet-image-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.celebfeet-image-grid figure {
    margin: 0;
    background: var(--cf-surface);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.celebfeet-image-grid img {
    display: block !important;
    width: 100% !important;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}
@media (min-width: 640px) {
    .celebfeet-image-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .celebfeet-image-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Clickable single-gallery images and lightbox. This only reads the already-rendered img src. */
.celebfeet-native-post-content img.celebfeet-lightbox-trigger {
    cursor: zoom-in;
    transition: transform .25s ease, box-shadow .25s ease;
}
.celebfeet-native-post-content img.celebfeet-lightbox-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(17, 24, 39, .14);
}
.celebfeet-lightbox-lock { overflow: hidden; }
.celebfeet-lightbox-v2 {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(17, 24, 39, .94);
    padding: 1rem;
}
.celebfeet-lightbox-v2.is-open { display: flex; }
.celebfeet-lightbox-figure {
    margin: 0;
    width: min(100%, 1100px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
}
.celebfeet-lightbox-figure img {
    display: block;
    max-width: 100%;
    max-height: 86vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 1rem;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .45);
    background: #111827;
}
.celebfeet-lightbox-figure figcaption {
    color: rgba(255, 255, 255, .85);
    font-size: .875rem;
    font-weight: 700;
}
.celebfeet-lightbox-v2 button {
    position: absolute;
    border: 0;
    cursor: pointer;
    width: 2.875rem;
    height: 2.875rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, .95);
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .25);
    transition: transform .2s ease, background .2s ease;
}
.celebfeet-lightbox-v2 button:hover {
    transform: scale(1.06);
    background: #fff;
}
.celebfeet-lightbox-close { top: 1rem; right: 1rem; }
.celebfeet-lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.celebfeet-lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.celebfeet-lightbox-prev:hover,
.celebfeet-lightbox-next:hover { transform: translateY(-50%) scale(1.06) !important; }
@media (max-width: 640px) {
    .celebfeet-lightbox-v2 { padding: .75rem; }
    .celebfeet-lightbox-figure img { max-height: 80vh; border-radius: .75rem; }
    .celebfeet-lightbox-v2 button { width: 2.5rem; height: 2.5rem; }
    .celebfeet-lightbox-prev { left: .5rem; }
    .celebfeet-lightbox-next { right: .5rem; }
}



/* Compact AI profile strip integrated inside the single post hero. */
.celebfeet-ai-profile-hero {
    width: min(100%, 58rem);
    margin-top: 1.15rem;
    padding: .95rem 1rem;
    border: 1px solid rgba(236, 72, 153, .16);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 12px 34px rgba(17, 24, 39, .05);
    backdrop-filter: blur(14px);
}
.celebfeet-ai-profile-hero__head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .6rem .75rem;
}
.celebfeet-ai-profile-hero__label,
.celebfeet-ai-profile-hero__chips span {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border-radius: 9999px;
    font-size: .78rem;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
}
.celebfeet-ai-profile-hero__label {
    padding: .55rem .75rem;
    color: var(--cf-accent, #EC4899);
    background: var(--cf-accent-light, #FDF2F8);
    text-transform: uppercase;
    letter-spacing: .075em;
}
.celebfeet-ai-profile-hero__chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
}
.celebfeet-ai-profile-hero__chips span {
    padding: .55rem .75rem;
    color: #374151;
    background: #fff;
    border: 1px solid var(--cf-border, #E9ECEF);
    box-shadow: 0 1px 2px rgba(17, 24, 39, .04);
}
.celebfeet-ai-profile-hero__label i,
.celebfeet-ai-profile-hero__chips i,
.celebfeet-ai-profile-hero__note i {
    color: var(--cf-accent, #EC4899);
}
.celebfeet-ai-profile-hero__body {
    margin-top: .75rem;
    display: grid;
    gap: .38rem;
    color: #4b5563;
    font-size: .92rem;
    line-height: 1.65;
}
.celebfeet-ai-profile-hero__body p {
    margin: 0;
}
.celebfeet-ai-profile-hero__body strong {
    color: #111827;
    font-weight: 850;
}
.celebfeet-ai-profile-hero__known {
    color: #6b7280;
}
.celebfeet-ai-profile-hero__note {
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    margin-top: .65rem;
    color: #9ca3af;
    font-size: .72rem;
    font-weight: 800;
}
@media (max-width: 640px) {
    .celebfeet-ai-profile-hero {
        margin-top: 1rem;
        padding: .85rem;
        border-radius: 1rem;
    }
    .celebfeet-ai-profile-hero__body {
        font-size: .86rem;
    }
}

/* Single post 300x250 ad slots. */
.celebfeet-single-ads {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin: 2.5rem 0 3.5rem;
}
.celebfeet-ad-slot,
.celebfeet-ad-placeholder {
    width: 300px;
    height: 250px;
}
.celebfeet-ad-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 1rem;
    background: #F8F9FA;
}
.celebfeet-ad-slot iframe,
.celebfeet-ad-slot img,
.celebfeet-ad-slot ins {
    max-width: 300px !important;
    max-height: 250px !important;
}
.celebfeet-ad-placeholder {
    border: 1px dashed #E9ECEF;
    color: #9ca3af;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.celebfeet-ad-placeholder strong {
    color: #6b7280;
    font-size: 1.25rem;
    letter-spacing: 0;
    margin-top: .25rem;
}

/* Friend links above footer. */
.celebfeet-friend-links { flex: 1; }
.celebfeet-friend-links ul {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem .75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.celebfeet-friend-links a {
    display: inline-flex;
    align-items: center;
    padding: .4rem .7rem;
    border: 1px solid #E9ECEF;
    border-radius: 9999px;
    background: #F8F9FA;
    color: #6b7280;
    font-size: .8rem;
    font-weight: 700;
    transition: all .2s ease;
}
.celebfeet-friend-links a:hover {
    color: #EC4899;
    border-color: rgba(236, 72, 153, .25);
    background: #FDF2F8;
}

/* Random page + disabled submit popup. */
.celebfeet-submit-lock { overflow: hidden; }
.celebfeet-submit-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.celebfeet-submit-modal.is-open { display: flex; }
.celebfeet-submit-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, .72);
    backdrop-filter: blur(10px);
}
.celebfeet-submit-modal__panel {
    position: relative;
    width: min(100%, 520px);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    background: #fff;
    border: 1px solid #E9ECEF;
    border-radius: 1.75rem;
    padding: 2rem;
    box-shadow: 0 30px 90px rgba(17, 24, 39, .28);
    animation: cfSubmitPop .22s ease-out;
}
@keyframes cfSubmitPop {
    from { opacity: 0; transform: translateY(12px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.celebfeet-submit-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 9999px;
    background: #F8F9FA;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s ease;
}
.celebfeet-submit-modal__close:hover {
    background: #FDF2F8;
    color: #EC4899;
}
.celebfeet-submit-modal__icon {
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 1.35rem;
    background: linear-gradient(135deg, #EC4899, #DB2777);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    margin-bottom: 1rem;
    box-shadow: 0 16px 35px rgba(236, 72, 153, .28);
}
.celebfeet-submit-modal__badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .75rem;
    border-radius: 9999px;
    background: #FDF2F8;
    color: #EC4899;
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 1rem;
}
.celebfeet-submit-modal__panel h2 {
    font-size: clamp(1.8rem, 5vw, 2.45rem);
    line-height: 1.05;
    font-weight: 900;
    color: #111827;
    margin: 0 0 .85rem;
    letter-spacing: -.04em;
}
.celebfeet-submit-modal__text {
    color: #6b7280;
    line-height: 1.7;
    margin: 0 0 1.25rem;
}
.celebfeet-submit-mock-form {
    border: 1px solid #E9ECEF;
    background: #F8F9FA;
    border-radius: 1.35rem;
    padding: 1rem;
    display: grid;
    gap: .85rem;
    opacity: .78;
    margin-bottom: 1.25rem;
}
.celebfeet-submit-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #fff;
    border: 1px solid #E9ECEF;
    border-radius: 1rem;
    padding: .9rem 1rem;
    color: #6b7280;
    font-size: .875rem;
    font-weight: 700;
}
.celebfeet-submit-field strong {
    color: #9ca3af;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.celebfeet-submit-dropzone {
    min-height: 9rem;
    border: 1px dashed #d1d5db;
    border-radius: 1rem;
    background: #fff;
    color: #9ca3af;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: .55rem;
    font-size: .875rem;
    font-weight: 800;
}
.celebfeet-submit-dropzone i {
    font-size: 2rem;
    color: #EC4899;
    opacity: .55;
}
.celebfeet-submit-mock-form button[disabled] {
    border: 0;
    border-radius: 9999px;
    background: #e5e7eb;
    color: #9ca3af;
    padding: .85rem 1rem;
    font-size: .875rem;
    font-weight: 900;
    cursor: not-allowed;
}
.celebfeet-submit-modal__contact {
    border-top: 1px solid #E9ECEF;
    padding-top: 1.25rem;
}
.celebfeet-submit-modal__contact p {
    color: #6b7280;
    font-size: .9rem;
    margin: 0 0 .8rem;
}
.celebfeet-submit-modal__contact a {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    max-width: 100%;
    background: #111827;
    color: #fff;
    border-radius: 9999px;
    padding: .9rem 1.15rem;
    font-size: .9rem;
    font-weight: 800;
    text-decoration: none;
    word-break: break-word;
    transition: all .2s ease;
}
.celebfeet-submit-modal__contact a:hover {
    background: #EC4899;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(236, 72, 153, .25);
}
@media (max-width: 640px) {
    .celebfeet-submit-modal__panel { padding: 1.35rem; border-radius: 1.35rem; }
    .celebfeet-submit-modal__icon { width: 3.5rem; height: 3.5rem; font-size: 1.3rem; }
    .celebfeet-submit-modal__contact a { width: 100%; justify-content: center; }
}

/* Plans and FAQ pages. */
.celebfeet-faq-item summary::-webkit-details-marker { display: none; }
.celebfeet-faq-item summary::marker { content: ''; }
.celebfeet-faq-item summary i { transition: transform .2s ease; }
.celebfeet-faq-item[open] summary i { transform: rotate(180deg); }





/* OLD HTML GALLERY FIX - CelebFeets */
body.single-post .entry-content div:has(> img.attachment-large),
body.single-post .cf-single-content div:has(> img.attachment-large),
body.single-post .celebfeet-single-content div:has(> img.attachment-large),
body.single-post .single-content div:has(> img.attachment-large) {
    width: min(1216px, calc(100vw - 32px)) !important;
    max-width: min(1216px, calc(100vw - 32px)) !important;
    min-width: 0 !important;

    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px !important;

    margin-top: 28px !important;
    margin-bottom: 28px !important;
    margin-left: 50% !important;
    margin-right: 0 !important;

    transform: translateX(-50%) !important;

    padding: 0 !important;
    box-sizing: border-box !important;
    text-align: left !important;
    float: none !important;
    clear: both !important;
}

/* Images inside old gallery */
body.single-post .entry-content div:has(> img.attachment-large) > img.attachment-large,
body.single-post .cf-single-content div:has(> img.attachment-large) > img.attachment-large,
body.single-post .celebfeet-single-content div:has(> img.attachment-large) > img.attachment-large,
body.single-post .single-content div:has(> img.attachment-large) > img.attachment-large {
    width: 100% !important;
    max-width: 100% !important;
    height: 280px !important;

    display: block !important;
    object-fit: cover !important;
    object-position: center center !important;

    margin: 0 !important;
    padding: 0 !important;

    border-radius: 18px !important;
    background: #f8f9fa !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08) !important;
    cursor: zoom-in !important;
    box-sizing: border-box !important;
}

/* Clean old imported junk */
body.single-post p:empty,
body.single-post .entry-header:empty {
    display: none !important;
}

/* Tablet */
@media (max-width: 1024px) {
    body.single-post .entry-content div:has(> img.attachment-large),
    body.single-post .cf-single-content div:has(> img.attachment-large),
    body.single-post .celebfeet-single-content div:has(> img.attachment-large),
    body.single-post .single-content div:has(> img.attachment-large) {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 14px !important;
        width: min(100%, calc(100vw - 28px)) !important;
        max-width: min(100%, calc(100vw - 28px)) !important;
    }

    body.single-post .entry-content div:has(> img.attachment-large) > img.attachment-large,
    body.single-post .cf-single-content div:has(> img.attachment-large) > img.attachment-large,
    body.single-post .celebfeet-single-content div:has(> img.attachment-large) > img.attachment-large,
    body.single-post .single-content div:has(> img.attachment-large) > img.attachment-large {
        height: 240px !important;
    }
}

/* Mobile */
@media (max-width: 640px) {
    body.single-post .entry-content div:has(> img.attachment-large),
    body.single-post .cf-single-content div:has(> img.attachment-large),
    body.single-post .celebfeet-single-content div:has(> img.attachment-large),
    body.single-post .single-content div:has(> img.attachment-large) {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
    }

    body.single-post .entry-content div:has(> img.attachment-large) > img.attachment-large,
    body.single-post .cf-single-content div:has(> img.attachment-large) > img.attachment-large,
    body.single-post .celebfeet-single-content div:has(> img.attachment-large) > img.attachment-large,
    body.single-post .single-content div:has(> img.attachment-large) > img.attachment-large {
        height: 190px !important;
        border-radius: 14px !important;
    }
}



/* Old gallery: keep full width but center visually */
body.single-post .entry-content div:has(> img.attachment-large),
body.single-post .cf-single-content div:has(> img.attachment-large),
body.single-post .celebfeet-single-content div:has(> img.attachment-large),
body.single-post .single-content div:has(> img.attachment-large) {
    width: min(1216px, calc(100vw - 48px)) !important;
    max-width: min(1216px, calc(100vw - 48px)) !important;

    margin-left: calc(50% + 70px) !important;
    margin-right: 0 !important;
    transform: translateX(-50%) !important;
}

/* Taller images */
body.single-post .entry-content div:has(> img.attachment-large) > img.attachment-large,
body.single-post .cf-single-content div:has(> img.attachment-large) > img.attachment-large,
body.single-post .celebfeet-single-content div:has(> img.attachment-large) > img.attachment-large,
body.single-post .single-content div:has(> img.attachment-large) > img.attachment-large {
    height: 340px !important;
}

@media (max-width: 1024px) {
    body.single-post .entry-content div:has(> img.attachment-large),
    body.single-post .cf-single-content div:has(> img.attachment-large),
    body.single-post .celebfeet-single-content div:has(> img.attachment-large),
    body.single-post .single-content div:has(> img.attachment-large) {
        margin-left: 50% !important;
        width: calc(100vw - 28px) !important;
        max-width: calc(100vw - 28px) !important;
    }

    body.single-post .entry-content div:has(> img.attachment-large) > img.attachment-large,
    body.single-post .cf-single-content div:has(> img.attachment-large) > img.attachment-large,
    body.single-post .celebfeet-single-content div:has(> img.attachment-large) > img.attachment-large,
    body.single-post .single-content div:has(> img.attachment-large) > img.attachment-large {
        height: 280px !important;
    }
}

@media (max-width: 640px) {
    body.single-post .entry-content div:has(> img.attachment-large),
    body.single-post .cf-single-content div:has(> img.attachment-large),
    body.single-post .celebfeet-single-content div:has(> img.attachment-large),
    body.single-post .single-content div:has(> img.attachment-large) {
        margin-left: 50% !important;
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.single-post .entry-content div:has(> img.attachment-large) > img.attachment-large,
    body.single-post .cf-single-content div:has(> img.attachment-large) > img.attachment-large,
    body.single-post .celebfeet-single-content div:has(> img.attachment-large) > img.attachment-large,
    body.single-post .single-content div:has(> img.attachment-large) > img.attachment-large {
        height: 230px !important;
    }
}
	
	
/* Final alignment for old imported galleries */
body.single-post .entry-content div:has(> img.attachment-large),
body.single-post .cf-single-content div:has(> img.attachment-large),
body.single-post .celebfeet-single-content div:has(> img.attachment-large),
body.single-post .single-content div:has(> img.attachment-large) {
    width: min(1216px, calc(100vw - 48px)) !important;
    max-width: min(1216px, calc(100vw - 48px)) !important;

    margin-left: calc(50% - min(608px, calc(50vw - 24px))) !important;
    margin-right: 0 !important;
    transform: none !important;

    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px !important;
}

/* Taller images, closer to the new gallery look */
body.single-post .entry-content div:has(> img.attachment-large) > img.attachment-large,
body.single-post .cf-single-content div:has(> img.attachment-large) > img.attachment-large,
body.single-post .celebfeet-single-content div:has(> img.attachment-large) > img.attachment-large,
body.single-post .single-content div:has(> img.attachment-large) > img.attachment-large {
    height: 380px !important;
    object-fit: cover !important;
    border-radius: 18px !important;
}

/* Tablet */
@media (max-width: 1024px) {
    body.single-post .entry-content div:has(> img.attachment-large),
    body.single-post .cf-single-content div:has(> img.attachment-large),
    body.single-post .celebfeet-single-content div:has(> img.attachment-large),
    body.single-post .single-content div:has(> img.attachment-large) {
        width: calc(100vw - 28px) !important;
        max-width: calc(100vw - 28px) !important;
        margin-left: calc(50% - 50vw + 14px) !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }

    body.single-post .entry-content div:has(> img.attachment-large) > img.attachment-large,
    body.single-post .cf-single-content div:has(> img.attachment-large) > img.attachment-large,
    body.single-post .celebfeet-single-content div:has(> img.attachment-large) > img.attachment-large,
    body.single-post .single-content div:has(> img.attachment-large) > img.attachment-large {
        height: 300px !important;
    }
}

/* Mobile */
@media (max-width: 640px) {
    body.single-post .entry-content div:has(> img.attachment-large),
    body.single-post .cf-single-content div:has(> img.attachment-large),
    body.single-post .celebfeet-single-content div:has(> img.attachment-large),
    body.single-post .single-content div:has(> img.attachment-large) {
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        margin-left: calc(50% - 50vw + 12px) !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    body.single-post .entry-content div:has(> img.attachment-large) > img.attachment-large,
    body.single-post .cf-single-content div:has(> img.attachment-large) > img.attachment-large,
    body.single-post .celebfeet-single-content div:has(> img.attachment-large) > img.attachment-large,
    body.single-post .single-content div:has(> img.attachment-large) > img.attachment-large {
        height: 240px !important;
        border-radius: 14px !important;
    }
}
	
	
/* Desktop only: align old imported gallery */
@media (min-width: 1025px) {
    body.single-post .entry-content div:has(> img.attachment-large),
    body.single-post .cf-single-content div:has(> img.attachment-large),
    body.single-post .celebfeet-single-content div:has(> img.attachment-large),
    body.single-post .single-content div:has(> img.attachment-large) {
        margin-left: calc(50% - min(608px, calc(50vw - 24px)) + 150px) !important;
        margin-right: 0 !important;
        transform: none !important;
    }
}

/* MOBILE FINAL FIX - old imported galleries */
@media (max-width: 1024px) {
    html,
    body {
        overflow-x: hidden !important;
    }

    body.single-post .entry-content div:has(> img.attachment-large),
    body.single-post .cf-single-content div:has(> img.attachment-large),
    body.single-post .celebfeet-single-content div:has(> img.attachment-large),
    body.single-post .single-content div:has(> img.attachment-large) {
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        min-width: 0 !important;

        position: relative !important;
        left: 50% !important;
        right: auto !important;
        margin-left: -50vw !important;
        margin-right: 0 !important;
        transform: translateX(12px) !important;

        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;

        padding: 0 !important;
        box-sizing: border-box !important;
        float: none !important;
        clear: both !important;
    }

    body.single-post .entry-content div:has(> img.attachment-large) > img.attachment-large,
    body.single-post .cf-single-content div:has(> img.attachment-large) > img.attachment-large,
    body.single-post .celebfeet-single-content div:has(> img.attachment-large) > img.attachment-large,
    body.single-post .single-content div:has(> img.attachment-large) > img.attachment-large {
        width: 100% !important;
        max-width: 100% !important;
        height: 230px !important;
        object-fit: cover !important;
        border-radius: 14px !important;
        margin: 0 !important;
        display: block !important;
    }
}

@media (max-width: 420px) {
    body.single-post .entry-content div:has(> img.attachment-large),
    body.single-post .cf-single-content div:has(> img.attachment-large),
    body.single-post .celebfeet-single-content div:has(> img.attachment-large),
    body.single-post .single-content div:has(> img.attachment-large) {
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        transform: translateX(10px) !important;
        gap: 10px !important;
    }

    body.single-post .entry-content div:has(> img.attachment-large) > img.attachment-large,
    body.single-post .cf-single-content div:has(> img.attachment-large) > img.attachment-large,
    body.single-post .celebfeet-single-content div:has(> img.attachment-large) > img.attachment-large,
    body.single-post .single-content div:has(> img.attachment-large) > img.attachment-large {
        height: 210px !important;
    }
}
	
/* Mobile: taller old imported gallery images */
@media (max-width: 640px) {
    body.single-post .entry-content div:has(> img.attachment-large) > img.attachment-large,
    body.single-post .cf-single-content div:has(> img.attachment-large) > img.attachment-large,
    body.single-post .celebfeet-single-content div:has(> img.attachment-large) > img.attachment-large,
    body.single-post .single-content div:has(> img.attachment-large) > img.attachment-large {
        height: 260px !important;
    }
}	