.wcp-page-shell {
    background: var(--wcp-background, #fff);
    color: var(--wcp-text, #1d2327);
}

.wcp-page-shell,
.wcp-page-shell * {
    box-sizing: border-box;
}

.wcp-private-page {
    width: min(var(--wcp-max-width, 1120px), calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
    color: var(--wcp-text, #1d2327);
}

.wcp-hero {
    margin-bottom: 28px;
    padding: 32px;
    border-radius: var(--wcp-radius, 18px);
    background: linear-gradient(135deg, var(--wcp-accent-soft, #eef6fc), var(--wcp-card-bg, #fff));
    border: 1px solid color-mix(in srgb, var(--wcp-accent, #2271b1) 22%, transparent);
}

.wcp-kicker {
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 13px;
    font-weight: 700;
    color: var(--wcp-accent, #2271b1);
}

.wcp-hero h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.05;
    color: var(--wcp-text, #1d2327);
}

.wcp-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.wcp-meta-row span,
.wcp-lock-label {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    background: var(--wcp-accent-soft, #eef6fc);
    color: var(--wcp-accent, #2271b1);
    font-size: 14px;
    font-weight: 700;
}

.wcp-content-grid {
    display: grid;
    gap: 24px;
}

.wcp-card {
    padding: 28px;
    border-radius: var(--wcp-radius, 18px);
    border: 1px solid rgba(0, 0, 0, .08);
    background: var(--wcp-card-bg, #fff);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .045);
    color: var(--wcp-text, #1d2327);
}

.wcp-card h2 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: clamp(24px, 3vw, 34px);
    color: var(--wcp-text, #1d2327);
}

.wcp-card h3 {
    color: var(--wcp-text, #1d2327);
}

.wcp-entry-content > *:first-child,
.wcp-text-block > *:first-child {
    margin-top: 0;
}

.wcp-entry-content > *:last-child,
.wcp-text-block > *:last-child {
    margin-bottom: 0;
}

.wcp-week-date {
    display: block;
    margin-top: 6px;
    font-size: 16px;
    font-weight: 600;
    color: var(--wcp-muted, #646970);
}

.wcp-week-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.wcp-week-section {
    padding: 18px;
    border-radius: calc(var(--wcp-radius, 18px) * .8);
    background: var(--wcp-accent-soft, #eef6fc);
}

.wcp-week-section h3,
.wcp-week-gallery h3 {
    margin-top: 0;
}

.wcp-week-section-important {
    background: var(--wcp-alert-bg, #fff8e5);
}

.wcp-list {
    margin: 0;
    padding-left: 20px;
}

.wcp-list li + li {
    margin-top: 6px;
}

.wcp-week-gallery {
    margin-top: 22px;
}

.wcp-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--wcp-gallery-min, 180px), 1fr));
    gap: 12px;
}

.wcp-photo-link {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: calc(var(--wcp-radius, 18px) * .7);
    background: var(--wcp-accent-soft, #eef6fc);
    cursor: zoom-in;
}

.wcp-photo-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .18s ease;
}

.wcp-photo-link:hover img {
    transform: scale(1.04);
}

.wcp-password-form {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}

.wcp-password-row {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.wcp-password-row input {
    flex: 1;
    min-height: 46px;
    border-radius: 10px;
    border: 1px solid #c3c4c7;
    padding: 0 14px;
}

.wcp-password-row button {
    min-height: 46px;
    border: 0;
    border-radius: 10px;
    padding: 0 18px;
    background: var(--wcp-accent, #2271b1);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.wcp-pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
    width: min(var(--wcp-max-width, 1120px), 100%);
}

.wcp-page-card {
    padding: 22px;
    border-radius: var(--wcp-radius, 18px);
    border: 1px solid rgba(0, 0, 0, .08);
    background: var(--wcp-card-bg, #fff);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .04);
    color: var(--wcp-text, #1d2327);
}

.wcp-page-card h3 {
    margin-top: 0;
}

.wcp-page-card a {
    color: var(--wcp-accent, #2271b1);
}

.wcp-page-meta {
    color: var(--wcp-muted, #646970);
}

.wcp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(0, 0, 0, .88);
}

.wcp-lightbox.is-open {
    display: flex;
}

.wcp-lightbox__inner {
    position: relative;
    width: min(1200px, 100%);
    max-height: calc(100vh - 56px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.wcp-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 130px);
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
}

.wcp-lightbox__caption {
    min-height: 22px;
    margin-top: 12px;
    color: #fff;
    text-align: center;
}

.wcp-lightbox__close,
.wcp-lightbox__prev,
.wcp-lightbox__next {
    position: absolute;
    border: 0;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    cursor: pointer;
    transition: background .16s ease, transform .16s ease;
}

.wcp-lightbox__close:hover,
.wcp-lightbox__prev:hover,
.wcp-lightbox__next:hover {
    background: rgba(255, 255, 255, .28);
}

.wcp-lightbox__close {
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    font-size: 28px;
    line-height: 1;
}

.wcp-lightbox__prev,
.wcp-lightbox__next {
    top: 50%;
    width: 48px;
    height: 64px;
    margin-top: -32px;
    border-radius: 999px;
    font-size: 38px;
    line-height: 1;
}

.wcp-lightbox__prev {
    left: 0;
}

.wcp-lightbox__next {
    right: 0;
}

@media (max-width: 760px) {
    .wcp-private-page {
        width: min(100% - 20px, var(--wcp-max-width, 1120px));
        padding: 28px 0;
    }

    .wcp-hero,
    .wcp-card {
        padding: 20px;
    }

    .wcp-week-sections,
    .wcp-password-row {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .wcp-lightbox {
        padding: 12px;
    }

    .wcp-lightbox__close {
        top: -2px;
        right: -2px;
    }

    .wcp-lightbox__prev,
    .wcp-lightbox__next {
        width: 42px;
        height: 54px;
        font-size: 32px;
    }
}

html.wcp-lightbox-lock,
html.wcp-lightbox-lock body {
    overflow: hidden;
}
