body.sloch-photo-album-page {
    --sloch-album-paper:#f6f1e8;
    --sloch-album-ink:#2b2520;
    --sloch-album-muted:#6b6259;
    --sloch-album-accent:#a9522d;
    --sloch-album-line:#d7cec2;
}

body.sloch-photo-album-page .wp-block-post-title,
body.sloch-photo-album-page .wp-block-post-featured-image {
    display:none !important;
}

body.sloch-photo-album-page .wp-block-post-content {
    max-width:none !important;
    width:100% !important;
}

.sloch-photo-album {
    width:min(1240px, calc(100% - 32px));
    max-width:1240px !important;
    margin:0 auto 72px;
    color:var(--sloch-album-ink);
}

.sloch-album-hero {
    max-width:860px;
    margin:0 auto 34px;
    padding:34px 34px 30px;
    background:var(--sloch-album-paper);
    border:1px solid var(--sloch-album-line);
}

.sloch-album-eyebrow {
    margin-bottom:10px;
    color:var(--sloch-album-accent);
    font:700 12px/1.3 Arial, sans-serif;
    letter-spacing:.12em;
}

.sloch-album-hero h1 {
    margin:0;
    color:var(--sloch-album-ink);
    font-family:Georgia, 'Times New Roman', serif;
    font-size:clamp(38px, 6vw, 72px);
    line-height:1.02;
    letter-spacing:-.025em;
}

.sloch-album-intro {
    max-width:760px;
    margin:20px 0 0;
    color:#4f4841;
    font-family:Georgia, 'Times New Roman', serif;
    font-size:18px;
    line-height:1.7;
}

.sloch-album-count {
    margin-top:18px;
    color:var(--sloch-album-muted);
    font:700 12px/1.3 Arial, sans-serif;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.sloch-album-section {
    margin:0 0 54px;
}

.sloch-album-section-title {
    margin:0 0 18px;
    padding-bottom:11px;
    border-bottom:1px solid var(--sloch-album-line);
    color:var(--sloch-album-ink);
    font:600 clamp(25px, 3vw, 34px)/1.15 Georgia, 'Times New Roman', serif;
}

.sloch-album-grid {
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:14px;
}

.sloch-album-thumb {
    position:relative;
    display:block;
    width:100%;
    padding:0;
    overflow:hidden;
    border:0;
    border-radius:2px;
    background:#1e1c1a;
    cursor:zoom-in;
    box-shadow:0 0 0 1px rgba(43,37,32,.12);
}

.sloch-album-thumb:focus-visible {
    outline:3px solid var(--sloch-album-accent);
    outline-offset:3px;
}

.sloch-album-thumb-image {
    display:block;
    width:100%;
    height:auto;
    aspect-ratio:4 / 3;
    object-fit:contain;
    background:#1e1c1a;
    transition:transform .22s ease, opacity .22s ease;
}

.sloch-album-thumb-title {
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    padding:26px 12px 10px;
    color:#fff;
    background:linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,0));
    font:600 14px/1.3 Arial, sans-serif;
    text-align:left;
    text-shadow:0 1px 2px rgba(0,0,0,.5);
}

@media (hover:hover) and (pointer:fine) {
    .sloch-album-thumb:hover .sloch-album-thumb-image {
        transform:scale(1.025);
        opacity:.94;
    }
}

.sloch-album-dialog {
    width:min(96vw, 1500px);
    height:min(94vh, 1050px);
    max-width:none;
    max-height:none;
    margin:auto;
    padding:0;
    overflow:hidden;
    border:0;
    border-radius:4px;
    background:#0c0c0c;
    color:#fff;
    box-shadow:0 24px 80px rgba(0,0,0,.48);
}

.sloch-album-dialog::backdrop {
    background:rgba(0,0,0,.88);
}

.sloch-album-viewer {
    display:grid;
    grid-template-rows:auto minmax(0, 1fr) auto;
    width:100%;
    height:100%;
    min-height:0;
    background:#0c0c0c;
}

.sloch-album-toolbar {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    min-height:54px;
    padding:7px 10px 7px 18px;
    border-bottom:1px solid rgba(255,255,255,.12);
    background:#111;
}

.sloch-album-position {
    color:#d9d9d9;
    font:600 13px/1.2 Arial, sans-serif;
    letter-spacing:.04em;
}

.sloch-album-toolbar-actions {
    display:flex;
    align-items:center;
    gap:6px;
}

.sloch-album-expand,
.sloch-album-close,
.sloch-album-prev,
.sloch-album-next {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:44px;
    min-height:44px;
    margin:0;
    padding:0 12px;
    border:0;
    border-radius:3px;
    background:transparent;
    color:#fff;
    cursor:pointer;
}

.sloch-album-expand {
    gap:7px;
    font:600 13px/1 Arial, sans-serif;
}

.sloch-album-expand:hover,
.sloch-album-close:hover,
.sloch-album-prev:hover,
.sloch-album-next:hover,
.sloch-album-expand:focus-visible,
.sloch-album-close:focus-visible,
.sloch-album-prev:focus-visible,
.sloch-album-next:focus-visible {
    background:rgba(255,255,255,.12);
    outline:none;
}

.sloch-album-close {
    font:300 34px/1 Arial, sans-serif;
}

.sloch-album-stage {
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:0;
    min-height:0;
    overflow:hidden;
    padding:12px 64px;
    background:#050505;
    touch-action:pan-y;
}

.sloch-album-full-image {
    display:block;
    max-width:100%;
    max-height:100%;
    width:auto;
    height:auto;
    object-fit:contain;
    user-select:none;
    -webkit-user-drag:none;
}

.sloch-album-prev,
.sloch-album-next {
    position:absolute;
    top:50%;
    z-index:2;
    width:50px;
    height:72px;
    transform:translateY(-50%);
    background:rgba(0,0,0,.34);
    font:300 48px/1 Arial, sans-serif;
}

.sloch-album-prev { left:7px; }
.sloch-album-next { right:7px; }

.sloch-album-lightbox-copy {
    padding:13px 20px 16px;
    border-top:1px solid rgba(255,255,255,.12);
    background:#111;
}

.sloch-album-lightbox-title {
    color:#fff;
    font:700 15px/1.4 Arial, sans-serif;
}

.sloch-album-lightbox-caption {
    margin-top:4px;
    color:#d1d1d1;
    font:400 14px/1.5 Arial, sans-serif;
}

.sloch-album-dialog.sloch-album-expanded {
    width:100vw;
    height:100vh;
    border-radius:0;
}

.sloch-album-dialog:fullscreen {
    width:100vw;
    height:100vh;
    border-radius:0;
}

@media (max-width:900px) {
    .sloch-album-grid {
        grid-template-columns:repeat(3, minmax(0, 1fr));
    }
}

@media (max-width:640px) {
    .sloch-photo-album {
        width:min(100% - 20px, 1240px);
        margin-bottom:42px;
    }
    .sloch-album-hero {
        margin-bottom:20px;
        padding:24px 20px 22px;
    }
    .sloch-album-intro {
        font-size:17px;
        line-height:1.62;
    }
    .sloch-album-grid {
        grid-template-columns:repeat(2, minmax(0, 1fr));
        gap:8px;
    }
    .sloch-album-section {
        margin-bottom:34px;
    }
    .sloch-album-stage {
        padding:8px 42px;
    }
    .sloch-album-prev,
    .sloch-album-next {
        width:38px;
        min-width:38px;
        height:64px;
        padding:0;
        font-size:40px;
    }
    .sloch-album-prev { left:2px; }
    .sloch-album-next { right:2px; }
    .sloch-album-expand-label {
        display:none;
    }
    .sloch-album-toolbar {
        padding-left:12px;
    }
    .sloch-album-lightbox-copy {
        padding:10px 14px 12px;
    }
}

@media (prefers-reduced-motion:reduce) {
    .sloch-album-thumb-image {
        transition:none;
    }
}

/* Moderated community comments for imported Photo Albums. */
body.sloch-photo-album-page .sloch-story-comments {
    width:min(1240px, calc(100% - 32px));
    max-width:1240px;
    margin:0 auto 72px;
    border-top:1px solid var(--sloch-album-line);
    background:#fffaf2;
    color:var(--sloch-album-ink);
    font-family:Georgia,'Times New Roman',serif;
}
body.sloch-photo-album-page .sloch-story-comments-inner {
    width:100%;
    max-width:1240px;
    margin:0 auto;
    padding:54px 36px 64px;
}
body.sloch-photo-album-page .sloch-story-comments-heading { margin-bottom:34px; }
body.sloch-photo-album-page .sloch-story-comments-kicker {
    margin-bottom:10px;
    color:var(--sloch-album-accent);
    font:700 11px/1.3 Arial,sans-serif;
    letter-spacing:.18em;
}
body.sloch-photo-album-page .sloch-story-comments h2,
body.sloch-photo-album-page .sloch-story-comments h3 {
    color:var(--sloch-album-ink);
    font-family:Georgia,'Times New Roman',serif;
}
body.sloch-photo-album-page .sloch-story-comments h2 {
    margin:0 0 12px;
    font-size:36px;
    line-height:1.15;
    font-weight:500;
}
body.sloch-photo-album-page .sloch-story-comments-heading > p {
    margin:0;
    color:var(--sloch-album-muted);
    font-size:18px;
    line-height:1.65;
}
body.sloch-photo-album-page .sloch-story-comment-list {
    margin:0 0 38px;
    padding:0;
    list-style:none;
}
body.sloch-photo-album-page .sloch-story-comment-list .comment {
    margin:0 0 18px;
    padding:22px 24px;
    border:1px solid var(--sloch-album-line);
    border-radius:4px;
    background:#fff;
    list-style:none;
}
body.sloch-photo-album-page .sloch-story-comment-list .children {
    margin:18px 0 0 28px;
    padding:0;
    list-style:none;
}
body.sloch-photo-album-page .sloch-story-comment-list .comment-author {
    display:flex;
    align-items:center;
    gap:10px;
    font:400 14px/1.4 Arial,sans-serif;
}
body.sloch-photo-album-page .sloch-story-comment-list .avatar { border-radius:50%; }
body.sloch-photo-album-page .sloch-story-comment-list .comment-meta {
    margin:5px 0 14px 54px;
    font:400 12px/1.4 Arial,sans-serif;
}
body.sloch-photo-album-page .sloch-story-comment-list .comment-meta a {
    color:var(--sloch-album-muted);
    text-decoration:none;
}
body.sloch-photo-album-page .sloch-story-comment-list .comment-body > p {
    margin:10px 0 0;
    font-size:17px;
    line-height:1.65;
}
body.sloch-photo-album-page .sloch-story-comment-list .reply {
    margin-top:12px;
    font:400 13px/1.4 Arial,sans-serif;
}
body.sloch-photo-album-page .sloch-story-no-comments,
body.sloch-photo-album-page .sloch-story-comment-note,
body.sloch-photo-album-page .logged-in-as {
    color:var(--sloch-album-muted);
    font-size:15px;
    line-height:1.55;
}
body.sloch-photo-album-page .sloch-story-comment-form-wrap,
body.sloch-photo-album-page .sloch-story-comment-login {
    box-sizing:border-box;
    width:min(1120px, calc(100vw - 64px)) !important;
    max-width:none !important;
    margin:30px 0 0 50% !important;
    transform:translateX(-50%);
    padding:26px 28px;
    border:1px solid var(--sloch-album-line);
    border-radius:4px;
    background:var(--sloch-album-paper);
}
body.sloch-photo-album-page .sloch-story-comment-form-title,
body.sloch-photo-album-page .sloch-story-comment-login h3 {
    margin:0 0 10px;
    font-size:26px;
    line-height:1.2;
    font-weight:500;
}
body.sloch-photo-album-page .sloch-story-comment-login p {
    margin:0;
    color:var(--sloch-album-muted);
    font-size:16px;
    line-height:1.6;
}
body.sloch-photo-album-page .comment-form-comment label {
    display:block;
    margin-bottom:8px;
    font:700 13px/1.4 Arial,sans-serif;
}
body.sloch-photo-album-page .comment-respond,
body.sloch-photo-album-page .comment-form,
body.sloch-photo-album-page .comment-form-comment {
    width:100% !important;
    max-width:none !important;
}
body.sloch-photo-album-page .comment-form-comment textarea {
    display:block;
    box-sizing:border-box;
    width:100% !important;
    max-width:none !important;
    min-height:150px;
    padding:14px;
    border:1px solid #b9aea2;
    border-radius:3px;
    background:#fff;
    color:var(--sloch-album-ink);
    font:16px/1.55 Georgia,'Times New Roman',serif;
}
body.sloch-photo-album-page .sloch-story-comment-actions {
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:20px;
}
body.sloch-photo-album-page .sloch-story-comment-primary,
body.sloch-photo-album-page .sloch-story-comment-secondary,
body.sloch-photo-album-page .sloch-story-comment-submit {
    display:inline-block;
    padding:11px 18px;
    border-radius:3px;
    font:700 14px/1.2 Arial,sans-serif;
    text-decoration:none;
    cursor:pointer;
}
body.sloch-photo-album-page .sloch-story-comment-primary,
body.sloch-photo-album-page .sloch-story-comment-submit {
    border:1px solid #8d4827;
    background:#8d4827;
    color:#fff;
}
body.sloch-photo-album-page .sloch-story-comment-secondary {
    border:1px solid #8d4827;
    background:transparent;
    color:#8d4827;
}

@media (max-width:640px) {
    body.sloch-photo-album-page .sloch-story-comments {
        width:min(100% - 20px, 1240px);
        margin-bottom:42px;
    }
    body.sloch-photo-album-page .sloch-story-comments-inner { padding:42px 20px 52px; }
    body.sloch-photo-album-page .sloch-story-comment-form-wrap,
    body.sloch-photo-album-page .sloch-story-comment-login { padding:22px 20px; }
}

@media (max-width:640px) {
    body.sloch-photo-album-page .sloch-story-comment-form-wrap,
    body.sloch-photo-album-page .sloch-story-comment-login {
        width:100% !important;
        margin:30px 0 0 !important;
        transform:none;
    }
}
