/* ============================================================
   Easy CMS — Published page stylesheet
   ============================================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    min-height: 100%;
    font-family: 'DM Sans', sans-serif;
    background: #f0f2f5;
    color: #2c3e50;
    font-size: 16px;
    line-height: 1.6;
}

/* ─── Scroll lock when nav open ──────────────────────────────── */

body.nav-open {
    overflow: hidden;
}

/* ─── Topbar ─────────────────────────────────────────────────── */

.pub-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 300;
    height: 70px;
    background: #1e252e;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.pub-topbar-left {
    display: flex;
    align-items: center;
}

.pub-topbar-left img {
    width: 100px;
    height: auto;
    display: block;
}

@media (max-width: 365px) {
.pub-topbar-left img {
    width: 80px;
    height: auto;
    display: block;
    }
}

.pub-topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pub-logout-btn {
    padding: 7px 16px;
    background: #c0392b;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pub-logout-btn:hover {
    background: #a93226;
}

.pub-hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    transition: background 0.2s;
}

.pub-hamburger:hover { background: rgba(255,255,255,0.1); }

.hb-line {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.pub-hamburger.open .hb-line-1 {
    transform: translateY(7px) rotate(45deg);
}

.pub-hamburger.open .hb-line-2 {
    opacity: 0;
}

.pub-hamburger.open .hb-line-3 {
    transform: translateY(-7px) rotate(-45deg);
}

.pub-dark-toggle {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.1rem;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

.pub-dark-toggle:hover {
    background: rgba(255,255,255,0.12);
}

/* ─── Mobile second row (dark toggle + logout) ───────────────── */

.pub-topbar-row2 {
    display: none;
}

/* ─── Dark mode ──────────────────────────────────────────────── */

body.pub-dark {
    background: #111418;
    color: #dde3ea;
}

body.pub-dark .pub-topbar,
body.pub-dark .pub-sidebar {
    background: #1a1f27;
}

body.pub-dark .pub-nav-link { color: #6a8aaa; }
body.pub-dark .pub-nav-link:hover { background: rgba(255,255,255,0.06); color: #ffffff; }
body.pub-dark .pub-nav-link.active { background: rgba(74,158,255,0.15); color: #ffffff; border-left-color: #4a9eff; }

body.pub-dark .pub-page-title,
body.pub-dark .pub-section-heading { color: #e8eef5; }
body.pub-dark .pub-section-text    { color: #dde3ea; }
body.pub-dark .pub-intro           { color: #7a8fa0; }
body.pub-dark .pub-image-caption   { color: #7a8fa0; }
body.pub-dark .pub-empty           { color: #7a8fa0; }
body.pub-dark .pub-image           { box-shadow: 0 2px 12px rgba(0,0,0,0.55); }

body.pub-dark .pub-footer {
    border-top-color: #22282f;
    color: #7a8fa0;
}

body.pub-dark .pub-footer-copy a,
body.pub-dark .pub-footer-links a  { color: #7a8fa0; }
body.pub-dark .pub-footer-copy a:hover,
body.pub-dark .pub-footer-links a:hover { color: #4a9eff; }

body.pub-dark .pub-privacy-disclaimer {
    background: #1e2530;
    border-left-color: #f59e0b;
}

/* ─── Sidebar ────────────────────────────────────────────────── */

.pub-sidebar {
    position: fixed;
    top: 70px;
    left: 0;
    width: 240px;
    height: calc(100vh - 70px);
    background: #1e252e;
    z-index: 400;
    transform: translateX(-240px);
    transition: transform 0.25s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: #3a4a5a #1e252e;
}

.pub-sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 20px rgba(0,0,0,0.3);
}

.pub-nav-link {
    display: block;
    padding: 10px 20px;
    color: #a8bfcf;
    text-decoration: none;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.pub-nav-link:hover {
    background: rgba(255,255,255,0.06);
    color: #ffffff;
}

.pub-nav-link.active {
    background: rgba(45,137,239,0.15);
    color: #ffffff;
    border-left-color: #2d89ef;
    font-weight: 500;
}

/* ─── Overlay ────────────────────────────────────────────────── */

.pub-overlay {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 350;
}

.pub-overlay.visible {
    display: block;
}

/* ─── Main content ───────────────────────────────────────────── */

.pub-main {
    max-width: 860px;
    margin: 0 auto;
    padding: 98px 24px 48px;
}

.pub-page-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #1e252e;
    margin-bottom: 12px;
}

.pub-intro {
    font-size: 1.15rem;
    font-weight: 400;
    color: #5a6a7a;
    margin-bottom: 32px;
    line-height: 1.7;
    font-style: italic;
}

.pub-empty {
    color: #5a6a7a;
    font-style: italic;
}

/* ─── Sections ───────────────────────────────────────────────── */

.pub-section {
    margin-bottom: 35px;
}

.pub-section-heading {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1e252e;
    margin-bottom: 10px;
}

.pub-section-text {
    font-size: 0.975rem;
    color: #2c3e50;
    line-height: 1.75;
    margin-bottom: 16px;
}

.pub-images {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 35px 0;
    justify-content: flex-start;
}

.pub-image-wrap {
    width: calc(33.333% - 11px);
    min-width: 160px;
}

.pub-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: block;
    cursor: pointer;
}

.pub-image-caption {
    font-size: 0.8rem;
    color: #5a6a7a;
    text-align: center;
    margin-top: 6px;
    line-height: 1.4;
}

.pub-images-stacked .pub-image-wrap {
    width: 100%;
    min-width: 0;
}

.pub-images-stacked .pub-image {
    height: auto;
    max-width: 100%;
}

/* ─── Footer ─────────────────────────────────────────────────── */

.pub-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 860px;
    margin: 0 auto;
    padding: 20px 24px 32px;
    border-top: 1px solid #dde3ea;
    font-size: 0.82rem;
    color: #5a6a7a;
}

.pub-footer-copy a {
    color: #5a6a7a;
    text-decoration: none;
}

.pub-footer-copy a:hover { color: #2d89ef; }

.pub-footer-links {
    display: flex;
    gap: 16px;
}

.pub-footer-links a {
    color: #5a6a7a;
    text-decoration: none;
}

.pub-footer-links a:hover { color: #2d89ef; }

/* ─── Lightbox ───────────────────────────────────────────────── */

.lb-overlay {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.93);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lb-overlay.open {
    opacity: 1;
    pointer-events: all;
}

body.lb-open {
    overflow: hidden;
}

.lb-img-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 70px 60px 10px;
    overflow: hidden;
}

.lb-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    display: block;
    user-select: none;
    transition: opacity 0.2s ease;
}

.lb-img-wrap img.lb-fading {
    opacity: 0;
}

.lb-bar {
    width: 100%;
    padding: 10px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: opacity 0.2s ease;
}

.lb-bar.lb-fading {
    opacity: 0;
}

.lb-counter {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.05em;
}

.lb-caption {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
    text-align: center;
    max-width: 700px;
    line-height: 1.5;
    min-height: 1.4em;
}

.lb-close,
.lb-fullscreen {
    position: absolute;
    top: 16px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 1.1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}

.lb-close     { right: 16px; }
.lb-fullscreen { right: 64px; }

.lb-close:hover,
.lb-fullscreen:hover {
    background: rgba(255,255,255,0.22);
}

.lb-prev,
.lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 1.2rem;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}

.lb-prev { left: 16px; }
.lb-next { right: 16px; }

.lb-prev:hover,
.lb-next:hover {
    background: rgba(255,255,255,0.22);
}

/* ── Video Players ───────────────────────────────────────────────── */
.pub-videos            { display:flex; flex-direction:column; gap:24px; margin-top:20px; }
.pub-video-wrap        { width:100%; }
.pub-video-label       { font-weight:600; margin-bottom:8px; }
.pub-video-responsive  { position:relative; width:100%; padding-top:56.25%; background:#000; border-radius:6px; overflow:hidden; }
.pub-video-iframe      { position:absolute; top:0; left:0; width:100%; height:100%; border:0; }

/* Auto-linked emails, phones and URLs */
.pub-intro a,
.pub-section-text a {
    color: #2d89ef;
    text-decoration: none;
    border-bottom: 1px solid rgba(45,137,239,0.35);
    transition: color 0.15s, border-color 0.15s;
}

.pub-intro a:hover,
.pub-section-text a:hover {
    color: #1b6fd3;
    border-bottom-color: #1b6fd3;
}

.pub-icon-btn {
    color: #ffffff;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    margin-right: -10px;
}

.pub-icon-btn:hover,
.pub-icon-btn--active {
    background: rgba(255,255,255,0.15);
    color: #ffffff;
}

.pub-price-pill {
    display: inline-block;
    background: #2d89ef;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 4px 18px;
    border-radius: 999px;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.pub-privacy-notice {
    margin-top: 2rem;
}

.pub-privacy-notice p {
    margin: 0 0 0.75rem;
    line-height: 1.7;
}

.pub-privacy-notice p:last-child {
    margin-bottom: 0;
}

.pub-privacy-disclaimer {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background: #fff8e1;
    border-left: 4px solid #f59e0b;
    border-radius: 4px;
}

.pub-privacy-disclaimer p {
    margin: 0 0 0.5rem;
}

.pub-privacy-disclaimer p:last-child {
    margin-bottom: 0;
}

/* ─── Pricelist photo grid ───────────────────────────────────── */

.pub-pricelist-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 35px 0;
    justify-content: flex-start;
}

.pub-pricelist-image-wrap {
    width: calc(33.333% - 11px);
    min-width: 160px;
}

.pub-pricelist-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: block;
    cursor: pointer;
}

/* ─── Social bar ─────────────────────────────────────────────── */

.pub-social-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 16px 24px 0;
    max-width: 860px;
    margin: 0 auto -40px;
    transform: translateY(-72px);
}

.pub-social-link {
    color: #8a9ab5;
    font-size: 1.2rem;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pub-social-link:hover { color: #2d89ef; }

/* ─── Responsive ─────────────────────────────────────────────── */

@media (max-width: 400px) {
    .pub-image-wrap,
    .pub-pricelist-image-wrap {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .lb-img-wrap {
        padding: 60px 10px 10px;
    }

    .pub-topbar {
        position: relative;
        height: auto;
        flex-wrap: wrap;
        align-items: stretch;
        padding: 0 16px;
    }

    .pub-topbar-left,
    .pub-topbar-right {
        height: 74px;
        padding: 5px 0;
    }

/*    .pub-topbar-right .pub-logout-btn,
    .pub-topbar-right .pub-dark-toggle {
        display: none;
    }*/

    .pub-topbar-row2 {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        width: 100%;
        padding: 17px 0 11px;
        border-top: 1px solid rgba(255,255,255,0.15);
    }

    .pub-sidebar {
        top: 74px;
        height: 100vh;
    }

    .pub-overlay {
        top: 0;
    }

    .pub-main {
        padding: 24px 16px 32px;
    }

    .pub-page-title {
        font-size: 1.9rem;
    }

    .pub-footer {
        padding: 16px 16px 24px;
    }

    .pub-topbar-right {
        gap: 4px;
    }

    .pub-icon-btn {
        margin-right: -6px;
    }
}

.pub-price-pill {
    display: inline-block;
    background: #2d89ef;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 4px 18px;
    border-radius: 999px;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

body.pub-dark .pub-footer {
    background: #1a1f27;
}

body.pub-dark {
    min-height: 100vh;
}

/* Paragraph spacing */

.pub-section-text {
    font-size: 0.975rem;
    color: #2c3e50;
    line-height: 1.75;
    margin-bottom: 16px;
}
.pub-section-text p {
    margin: 0 0 0.75rem;
}
.pub-section-text p:last-child {
    margin-bottom: 0;
}

.pub-album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin: 1.25rem 0;
}
.pub-album-thumb {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    background: #f0f2f5;
    cursor: pointer;
}
.pub-album-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.pub-album-thumb:hover img {
    transform: scale(1.04);
}
.pub-album-thumb .pub-thumb-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    color: #fff;
    font-size: 0.72rem;
    padding: 18px 8px 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pub-album-thumb .pub-thumb-caption:empty {
    display: none;
}
.pub-price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    margin: 1.5rem 0;
}
.pub-price-card {
    border: 1px solid #e5e9f0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
}
.pub-price-card-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}
.pub-price-card-img-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c0cad8;
    font-size: 2.5rem;
}
.pub-price-card-body {
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.pub-price-card-name {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.4rem;
    color: #1a2535;
}
.pub-price-card-desc {
    font-size: 0.855rem;
    color: #5a6478;
    margin: 0;
    line-height: 1.6;
    flex: 1;
}
.pub-price-card-footer {
    padding: 0.75rem 1.1rem 1rem;
    border-top: 1px solid #f0f2f5;
}
.pub-price-card-pill {
    display: inline-block;
    padding: 5px 16px;
    background: #2d89ef;
    color: #fff;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
}
body.pub-dark .pub-price-card {
    background: #1a1f27;
    border-color: #2a303c;
}
body.pub-dark .pub-price-card-name  { color: #e8eef5; }
body.pub-dark .pub-price-card-desc  { color: #8a9ab5; }
body.pub-dark .pub-price-card-footer { border-top-color: #2a303c; }
body.pub-dark .pub-price-card-img-placeholder { background: #22282f; color: #3a4555; }
body.pub-dark .pub-album-thumb { background: #22282f; }
@media (max-width: 480px) {
    .pub-album-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 7px;
    }
    .pub-price-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}
@media (max-width: 340px) {
    .pub-price-grid { grid-template-columns: 1fr; }
}