


.gallery-theme-soft {
    background: #f1f5f9;
}
.gallery-theme-soft .pub-section-title { color: #0f172a; }
.gallery-theme-soft .pub-gallery-item {
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.gallery-theme-mosaic .pub-gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 120px;
}
.gallery-theme-mosaic .pub-gallery-item:nth-child(5n+1) { grid-column: span 2; grid-row: span 2; }
.gallery-theme-mosaic .pub-gallery-item:nth-child(5n+3) { grid-row: span 2; }

.gallery-theme-polaroid {
    background: #f8fafc;
}
.gallery-theme-polaroid .pub-section-title { color: #0f172a; }
.gallery-theme-polaroid .pub-gallery-item {
    background: #fff;
    padding: 10px 10px 28px;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    transform: rotate(-1.5deg);
}
.gallery-theme-polaroid .pub-gallery-item:nth-child(even) { transform: rotate(1.8deg); }
.gallery-theme-polaroid .pub-gallery-item img { border-radius: 2px; }

.gallery-theme-cinema {
    background: #000;
}
.gallery-theme-cinema .pub-gallery-grid { gap: 10px; }
.gallery-theme-cinema .pub-gallery-item {
    aspect-ratio: 16 / 9;
    border-radius: 4px;
}
.gallery-theme-cinema .pub-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-theme-magazine .pub-gallery-grid {
    grid-template-columns: 2fr 1fr 1fr;
    grid-auto-rows: 160px;
}
.gallery-theme-magazine .pub-gallery-item:first-child {
    grid-row: span 2;
}

.gallery-theme-strip {
    background: #0b1020;
}
.gallery-theme-strip .pub-gallery-grid {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.gallery-theme-strip .pub-gallery-item {
    flex: 0 0 min(220px, 70vw);
    scroll-snap-align: start;
    aspect-ratio: 1;
}

.gallery-theme-neon .pub-gallery-item {
    border-radius: 14px;
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35), 0 0 24px rgba(56, 189, 248, 0.15);
}

.gallery-theme-collage .pub-gallery-grid { gap: 18px; }
.gallery-theme-collage .pub-gallery-item {
    border-radius: 18px;
    transform: translateY(0);
}
.gallery-theme-collage .pub-gallery-item:nth-child(odd) { transform: translateY(10px); }
.gallery-theme-collage .pub-gallery-item:nth-child(3n) { transform: translateY(-8px); }

.gallery-theme-clean {
    background: #fff;
}
.gallery-theme-clean .pub-section-title { color: #0f172a; }
.gallery-theme-clean .pub-gallery-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
}

.gallery-theme-brick .pub-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.gallery-theme-brick .pub-gallery-item { border-radius: 6px; }

.gallery-theme-spotlight .pub-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 920px;
    margin: 0 auto;
}
.gallery-theme-spotlight .pub-gallery-item { border-radius: 20px; }


.pub-testimonials[data-tst-mode="grid"] .pub-tst-viewport { overflow: visible; }
.pub-testimonials[data-tst-mode="grid"] .pub-tst-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    transform: none !important;
}
.pub-testimonials[data-tst-mode="grid"] .pub-tst-slide {
    min-width: 0;
    padding: 0;
}
.pub-testimonials[data-tst-mode="grid"] .pub-tst-dots { display: none; }

.testimonials-theme-soft-slider {
    background: #f8fafc;
}
.testimonials-theme-soft-slider .pub-section-title { color: #0f172a; }
.testimonials-theme-soft-slider .pub-tst-card {
    background: #fff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}
.testimonials-theme-soft-slider .pub-tst-role { color: #64748b; }

.testimonials-theme-cards,
.testimonials-theme-dark-grid,
.testimonials-theme-quotes,
.testimonials-theme-bubbles,
.testimonials-theme-glass,
.testimonials-theme-editorial,
.testimonials-theme-compact,
.testimonials-theme-spotlight,
.testimonials-theme-minimal,
.testimonials-theme-ribbon {
    background: #f8fafc;
}
.testimonials-theme-cards .pub-section-title,
.testimonials-theme-quotes .pub-section-title,
.testimonials-theme-bubbles .pub-section-title,
.testimonials-theme-glass .pub-section-title,
.testimonials-theme-editorial .pub-section-title,
.testimonials-theme-compact .pub-section-title,
.testimonials-theme-spotlight .pub-section-title,
.testimonials-theme-minimal .pub-section-title,
.testimonials-theme-ribbon .pub-section-title { color: #0f172a; }

.testimonials-theme-cards .pub-tst-card {
    background: #fff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    grid-template-columns: 1fr;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}
.testimonials-theme-cards .pub-tst-photo { order: -1; height: 160px; }
.testimonials-theme-cards .pub-tst-role { color: #64748b; }

.testimonials-theme-dark-grid {
    background: #0b1220;
}
.testimonials-theme-dark-grid .pub-section-title { color: #e2e8f0; }
.testimonials-theme-dark-grid .pub-tst-card {
    grid-template-columns: 1fr;
}

.testimonials-theme-quotes .pub-tst-card {
    background: transparent;
    box-shadow: none;
    grid-template-columns: 1fr;
    text-align: center;
    color: #0f172a;
    padding: 18px;
}
.testimonials-theme-quotes .pub-tst-photo { display: none; }
.testimonials-theme-quotes .pub-tst-quote {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
}

.testimonials-theme-bubbles .pub-tst-card {
    background: #eff6ff;
    color: #0f172a;
    border-radius: 22px 22px 22px 6px;
    grid-template-columns: 1fr;
    box-shadow: none;
    border: 1px solid #bfdbfe;
}
.testimonials-theme-bubbles .pub-tst-photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    order: 2;
    margin-top: 8px;
}

.testimonials-theme-glass .pub-tst-card {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px);
    color: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.7);
    grid-template-columns: 1fr;
}

.testimonials-theme-editorial .pub-tst-card {
    background: #fff;
    color: #0f172a;
    border-left: 4px solid var(--primary);
    border-radius: 4px 16px 16px 4px;
    grid-template-columns: 1fr;
    box-shadow: none;
}
.testimonials-theme-editorial .pub-tst-quote {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
}

.testimonials-theme-compact .pub-tst-track {
    grid-template-columns: repeat(2, 1fr);
}
.testimonials-theme-compact .pub-tst-card {
    background: #fff;
    color: #0f172a;
    padding: 18px;
    grid-template-columns: 1fr;
    border: 1px solid #e2e8f0;
}

.testimonials-theme-spotlight .pub-tst-card {
    background: linear-gradient(160deg, #1d4ed8, #312e81);
    color: #fff;
    grid-template-columns: 1fr;
}
.testimonials-theme-spotlight .pub-tst-photo { order: -1; height: 180px; }
.testimonials-theme-spotlight .pub-tst-role { color: rgba(255,255,255,.75); }

.testimonials-theme-minimal .pub-tst-card {
    background: transparent;
    box-shadow: none;
    border-top: 1px solid #e2e8f0;
    border-radius: 0;
    color: #0f172a;
    grid-template-columns: 1fr;
    padding: 16px 0;
}

.testimonials-theme-ribbon .pub-tst-card {
    background: #fff;
    color: #0f172a;
    grid-template-columns: 1fr;
    position: relative;
    overflow: hidden;
}
.testimonials-theme-ribbon .pub-tst-name {
    display: inline-block;
    background: #ef4444;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
}


.about-theme-circle .pub-team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 18px auto 0;
    object-fit: cover;
}
.about-theme-circle .pub-team-card { text-align: center; }
.about-theme-circle .pub-team-body { padding-top: 8px; }

.about-theme-split .pub-about-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 32px;
    align-items: start;
}
.about-theme-split .pub-about-intro { margin: 0; }

.about-theme-stacked .pub-team-grid { grid-template-columns: 1fr; gap: 14px; }
.about-theme-stacked .pub-team-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    overflow: hidden;
}
.about-theme-stacked .pub-team-photo { height: 100%; min-height: 110px; border-radius: 0; }

.about-theme-soft .pub-team-card {
    background: linear-gradient(180deg, #fff, #f8fafc);
    border: none;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.about-theme-dark .pub-team-card {
    background: #0f172a;
    border-color: #1e293b;
    color: #e2e8f0;
}
.about-theme-dark .pub-team-body h3 { color: #fff; }
.about-theme-dark .pub-team-body p { color: #94a3b8; }

.about-theme-minimal .pub-team-card {
    border: none;
    background: transparent;
    box-shadow: none;
    text-align: center;
}
.about-theme-minimal .pub-team-photo {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    margin: 0 auto;
    object-fit: cover;
}

.about-theme-featured .pub-team-card:first-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 280px 1fr;
}
.about-theme-featured .pub-team-card:first-child .pub-team-photo { height: 100%; min-height: 220px; }

.about-theme-glass .pub-team-card {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.about-theme-ribbon .pub-team-body p {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary);
    font-weight: 700;
    font-size: 12px;
}

.about-theme-magazine .pub-team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.about-theme-magazine .pub-team-card {
    display: grid;
    grid-template-columns: 140px 1fr;
}

.about-theme-board .pub-team-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.about-theme-board .pub-team-card { border-radius: 8px; }
.about-theme-board .pub-team-photo { height: 140px; }
.about-theme-board .pub-team-body { padding: 10px; }


.footer-theme-light {
    background: #f8fafc;
    color: #334155;
    border-top: 1px solid #e2e8f0;
}
.footer-theme-light h4,
.footer-theme-light .pub-footer-brand,
.footer-theme-light a { color: #0f172a; }
.footer-theme-light p,
.footer-theme-light .pub-footer-bottom { color: #64748b; }
.footer-theme-light .pub-social a {
    background: #e2e8f0;
    color: #0f172a;
}

.footer-theme-centered .pub-footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
}
.footer-theme-centered .pub-footer-brand { justify-content: center; }
.footer-theme-centered .pub-social { justify-content: center; }
.footer-theme-centered ul { text-align: center; }

.footer-theme-compact {
    padding-top: 28px;
    padding-bottom: 18px;
}
.footer-theme-compact .pub-footer-grid { gap: 18px; }

.footer-theme-band {
    background: #0f172a;
    box-shadow: inset 0 6px 0 0 var(--primary);
}

.footer-theme-soft {
    background: #e2e8f0;
    color: #334155;
}
.footer-theme-soft h4,
.footer-theme-soft .pub-footer-brand,
.footer-theme-soft a { color: #0f172a; }

.footer-theme-gradient {
    background: linear-gradient(135deg, #1d4ed8, #0f172a 55%);
}

.footer-theme-split {
    background: #0f172a;
    box-shadow: inset 8px 0 0 0 var(--secondary, #38bdf8);
}

.footer-theme-minimal {
    background: #f1f5f9;
    color: #475569;
    padding-top: 24px;
}
.footer-theme-minimal h4,
.footer-theme-minimal .pub-footer-brand,
.footer-theme-minimal a { color: #0f172a; }
.footer-theme-minimal .pub-footer-grid { gap: 16px; }

.footer-theme-mega .pub-footer-grid {
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
}
.footer-theme-mega .pub-footer-brand { font-size: 20px; }

.footer-theme-ink { background: #020617; }

.footer-theme-card .pub-container {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 28px 24px 18px;
    margin-bottom: 18px;
}

@media (max-width: 980px) {
    .gallery-theme-mosaic .pub-gallery-grid,
    .gallery-theme-magazine .pub-gallery-grid,
    .gallery-theme-brick .pub-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: minmax(120px, 28vw);
    }
    .gallery-theme-mosaic .pub-gallery-item:nth-child(5n+1),
    .gallery-theme-mosaic .pub-gallery-item:nth-child(5n+3),
    .gallery-theme-magazine .pub-gallery-item:first-child {
        grid-column: span 1;
        grid-row: span 1;
    }
    .gallery-theme-cinema .pub-gallery-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .gallery-theme-spotlight .pub-gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        max-width: none;
    }
    .gallery-theme-collage .pub-gallery-item,
    .gallery-theme-collage .pub-gallery-item:nth-child(odd),
    .gallery-theme-collage .pub-gallery-item:nth-child(3n),
    .gallery-theme-polaroid .pub-gallery-item,
    .gallery-theme-polaroid .pub-gallery-item:nth-child(even) {
        transform: none;
    }
    .gallery-theme-polaroid .pub-gallery-item { padding: 8px 8px 20px; }
    .gallery-theme-strip .pub-gallery-item {
        flex: 0 0 min(160px, 62vw);
    }

    .pub-testimonials[data-tst-mode="grid"] .pub-tst-track {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .pub-testimonials[data-tst-mode="grid"] .pub-tst-card {
        grid-template-columns: 1fr !important;
        padding: 18px;
    }
    .pub-testimonials[data-tst-mode="grid"] .pub-tst-photo {
        width: 100%;
        height: 150px;
        order: -1;
    }

    .about-theme-split .pub-about-layout { grid-template-columns: 1fr; gap: 20px; }
    .about-theme-featured .pub-team-card:first-child {
        grid-column: auto;
        grid-template-columns: 1fr;
    }
    .about-theme-board .pub-team-grid { grid-template-columns: repeat(3, 1fr); }
    .about-theme-magazine .pub-team-grid { grid-template-columns: 1fr; }
    .footer-theme-mega .pub-footer-grid,
    .footer-theme-centered .pub-footer-grid,
    .footer-theme-compact .pub-footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-theme-card .pub-container {
        padding: 20px 16px 14px;
        border-radius: 16px;
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 640px) {
    .pub-gallery {
        padding-left: 0;
        padding-right: 0;
    }
    .pub-gallery .pub-container {
        padding-left: 16px;
        padding-right: 16px;
    }
    .gallery-theme-mosaic .pub-gallery-grid,
    .gallery-theme-magazine .pub-gallery-grid,
    .gallery-theme-brick .pub-gallery-grid,
    .gallery-theme-soft .pub-gallery-grid,
    .gallery-theme-clean .pub-gallery-grid,
    .gallery-theme-neon .pub-gallery-grid,
    .gallery-theme-collage .pub-gallery-grid,
    .gallery-theme-polaroid .pub-gallery-grid,
    .gallery-theme-spotlight .pub-gallery-grid,
    .gallery-theme-cinema .pub-gallery-grid {
        grid-template-columns: 1fr 1fr !important;
        grid-auto-rows: auto !important;
        gap: 8px !important;
    }
    .gallery-theme-mosaic .pub-gallery-item,
    .gallery-theme-magazine .pub-gallery-item,
    .gallery-theme-mosaic .pub-gallery-item:nth-child(5n+1),
    .gallery-theme-mosaic .pub-gallery-item:nth-child(5n+3),
    .gallery-theme-magazine .pub-gallery-item:first-child {
        grid-column: auto !important;
        grid-row: auto !important;
    }
    .gallery-theme-cinema .pub-gallery-item {
        aspect-ratio: 16 / 10;
    }
    .gallery-theme-strip .pub-gallery-grid {
        margin: 0 -4px;
        padding: 0 4px 10px;
    }
    .gallery-theme-strip .pub-gallery-item {
        flex: 0 0 min(140px, 58vw);
    }
    .gallery-theme-polaroid .pub-gallery-item {
        padding: 6px 6px 16px;
    }

    .pub-testimonials {
        padding-left: 0;
        padding-right: 0;
    }
    .pub-testimonials .pub-container {
        padding-left: 16px;
        padding-right: 16px;
    }
    .pub-testimonials[data-tst-mode="grid"] .pub-tst-track,
    .testimonials-theme-compact .pub-tst-track {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    .pub-testimonials .pub-tst-card,
    .pub-testimonials[data-tst-mode="slider"] .pub-tst-card {
        grid-template-columns: 1fr !important;
        padding: 18px 16px;
        gap: 14px;
    }
    .pub-testimonials .pub-tst-photo {
        width: 100%;
        height: 160px;
        order: -1;
        border-radius: 12px;
    }
    .testimonials-theme-bubbles .pub-tst-photo {
        width: 52px;
        height: 52px;
        order: 2;
    }
    .testimonials-theme-quotes .pub-tst-quote { font-size: 17px; }
    .testimonials-theme-editorial .pub-tst-quote { font-size: 16px; }

    .about-theme-stacked .pub-team-card,
    .about-theme-magazine .pub-team-card,
    .about-theme-featured .pub-team-card:first-child {
        grid-template-columns: 1fr !important;
    }
    .about-theme-board .pub-team-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
    }
    .about-theme-board .pub-team-photo { height: 120px; }
    .about-theme-circle .pub-team-photo {
        width: 96px;
        height: 96px;
    }
    .about-theme-split .pub-about-intro {
        font-size: 14px;
        line-height: 1.6;
    }

    .footer-theme-mega .pub-footer-grid,
    .footer-theme-centered .pub-footer-grid,
    .footer-theme-compact .pub-footer-grid,
    .footer-theme-light .pub-footer-grid,
    .footer-theme-soft .pub-footer-grid,
    .footer-theme-minimal .pub-footer-grid,
    .footer-theme-band .pub-footer-grid,
    .footer-theme-gradient .pub-footer-grid,
    .footer-theme-split .pub-footer-grid,
    .footer-theme-ink .pub-footer-grid,
    .footer-theme-card .pub-footer-grid,
    .footer-theme-classic .pub-footer-grid {
        grid-template-columns: 1fr !important;
        gap: 22px;
        text-align: left;
    }
    .footer-theme-centered .pub-footer-grid {
        text-align: center;
        justify-items: center;
    }
    .footer-theme-card .pub-container {
        padding: 18px 14px 12px;
        border-radius: 14px;
    }
    .pub-footer-brand {
        flex-wrap: wrap;
        gap: 8px;
    }
    .pub-footer-brand img { max-height: 32px; }
    .pub-social { flex-wrap: wrap; }
}
