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

/* One type scale for the teacher page and every service page. Use these, not new pixel sizes. */
:root {
    --public-text-display: 34px;
    --public-text-title: 26px;
    --public-text-subtitle: 22px;
    --public-text-price: 28px;
    --public-text-body: 16px;
    --public-text-small: 14px;
    --public-text-label: 12px;
}

@media (max-width: 768px) {
    :root {
        --public-text-display: 28px;
        --public-text-title: 24px;
    }
}

body {
    font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: var(--public-text-body);
    background: #f4fafe;
    color: #0f172a
}

/* Top header: EasyYogi logo on white - same on provider and event pages */
.public-header {
    background: #fff;
    width: 100%;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08)
}

.public-header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 16px
}

.public-header-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: inherit;
    text-decoration: none
}

.public-header-avatar {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 999px;
    object-fit: cover;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px #e2e8f0
}

.public-header-avatar--initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0f2fe;
    color: #0369a1;
    font-size: var(--public-text-body);
    font-weight: 600
}

.public-header-identity-text {
    display: flex;
    flex-direction: column;
    min-width: 0
}

.public-header-name {
    margin: 0;
    font-family: 'Fraunces', serif;
    font-size: var(--public-text-subtitle);
    font-weight: 700;
    line-height: 1.2;
    color: #0f172a;
    overflow-wrap: anywhere
}

.public-header-tagline {
    font-size: var(--public-text-small);
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

a.public-header-identity:hover .public-header-name {
    color: #0369a1
}

.public-header-identity + .public-header-logo-link {
    margin-left: auto
}

.public-header-identity + .public-header-logo-link .public-header-logo {
    height: 26px
}

@media (max-width: 639px) {
    .public-header-avatar {
        width: 40px;
        height: 40px
    }

    .public-header-identity + .public-header-logo-link .public-header-logo {
        height: 22px
    }
}

.public-header-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none
}

.public-header-logo {
    height: 32px;
    width: auto;
    display: block
}

/* Logo on white: keep dark purple (no invert) */
.public-header .public-header-logo {
    filter: none
}

/* ----- Fixed left share bar (Facebook, X, LinkedIn, WhatsApp) ----- */
.share-bar {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    background: #fff;
    border-radius: 0 12px 12px 0;
    box-shadow: 2px 2px 12px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-left: 0
}

.share-bar-links {
    display: flex;
    flex-direction: column;
    gap: 6px
}

.share-bar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: #0f172a;
    background: #f0f9ff;
    transition: background 0.2s, color 0.2s, transform 0.15s
}

.share-bar-btn:hover {
    background: #e0f2fe;
    color: #075985;
    transform: scale(1.05)
}

.share-bar-btn:focus-visible {
    outline: 2px solid #0369a1;
    outline-offset: 2px
}

.share-bar-icon {
    width: 20px;
    height: 20px
}

@media (max-width: 768px) {
    .share-bar {
        left: 0;
        top: auto;
        bottom: 20px;
        transform: none;
        flex-direction: row;
        padding: 8px 12px;
        border-radius: 12px;
        border: 1px solid rgba(15, 23, 42, 0.06)
    }

    .share-bar-links {
        flex-direction: row;
        gap: 4px
    }
}

/* Allarga il main del layout pubblico per la pagina evento (non .page-body teacher) */
main[role="main"] {
    max-width: none;
    width: 100%;
    padding: 0;
    margin: 0
}

main[role="main"]>div:not(.page-body) {
    max-width: none;
    width: 100%;
    padding: 0;
    margin: 0
}

.badge {
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px
}

.stat {
    text-align: center
}

/* ----- Page body (provider page content below hero) ----- */
.page-body {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px 56px
}

/* Same width as .public-header-inner, so the content lines up with the navbar. */
.page-body--wide {
    max-width: 1180px;
    padding-top: 32px;
}

/* Teacher profile above the catalog: bio, disciplines, social links. */
.provider-intro {
    margin-bottom: 48px;
}

.provider-intro .section-title-lg {
    margin-bottom: 12px;
}

.provider-intro--compact {
    margin-bottom: 32px;
}

/* One text block with preserved line breaks, so the line clamp counts every paragraph. */
.provider-intro-bio-text {
    font-size: var(--public-text-body);
    line-height: 1.65;
    color: #4b5563;
    white-space: pre-line;
}

.provider-intro-bio-text.is-clamped {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
}

.provider-intro-read-more {
    margin-top: 6px;
    padding: 0;
    background: none;
    border: 0;
    font-family: inherit;
    font-size: var(--public-text-body);
    font-weight: 600;
    color: #0369a1;
    cursor: pointer;
}

.provider-intro-read-more:hover {
    text-decoration: underline;
}

.provider-intro-read-more:focus-visible {
    outline: 2px solid #0369a1;
    outline-offset: 2px;
    border-radius: 4px;
}

.provider-intro-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin-top: 18px;
}

.provider-intro--compact .provider-intro-strip {
    margin-top: 0;
}

.provider-intro-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.provider-intro-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.provider-intro-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fff;
    color: #111827;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.07);
    transition: color 0.15s ease, background 0.15s ease;
}

.provider-intro-social-link:hover {
    color: #0369a1;
    background: #f0f9ff;
}

.provider-intro-social-link:focus-visible {
    outline: 2px solid #0369a1;
    outline-offset: 2px;
}

.provider-intro-social-link svg {
    width: 22px;
    height: 22px;
}

.provider-profile-chip {
    display: inline-flex;
    align-items: center;
    font-size: var(--public-text-label);
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f0f9ff;
    color: #075985;
    border: 1px solid rgba(3, 105, 161, 0.15);
}

.section-list {
    margin: 0px 0px 48px 0px;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-title-lg {
    font-family: 'Fraunces', serif;
    font-size: var(--public-text-title);
    line-height: 1.25;
    color: #0f172a
}

.specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

/* No cover: the service color texture used in the app (.service-cover-placeholder in core/components.css,
   which this separate stylesheet does not load). */
.service-cover-placeholder {
    position: relative;
    display: block;
    overflow: hidden;
    background-color: var(--service-bg, #e0f2fe);
    background-image:
        radial-gradient(ellipse 90% 70% at 0% 0%, color-mix(in oklab, white 55%, transparent), transparent 58%),
        radial-gradient(ellipse 80% 90% at 100% 100%, color-mix(in oklab, var(--service-accent, #0ea5e9) 34%, transparent), transparent 62%);
}

.service-cover-placeholder::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.28;
    background-image: repeating-linear-gradient(
        -18deg,
        transparent 0 9px,
        color-mix(in oklab, var(--service-fg, #075985) 16%, transparent) 9px 10px
    );
}

.event-title-link {
    text-decoration: none;
    color: inherit
}

.event-title-link:hover {
    text-decoration: underline
}

.event-price {
    font-size: var(--public-text-price);
    font-weight: 700;
    color: #0369a1;
    font-family: 'Fraunces', serif
}

/* The one main button on the public site: catalog cards, the booking card, and the footer. */
.btn-event,
.event-ticket-button,
.btn-footer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0369a1;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: var(--public-text-body);
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(3, 105, 161, 0.25);
    text-decoration: none;
    transition: background 0.2s
}

.btn-event:hover,
.event-ticket-button:hover,
.btn-footer:hover {
    background: #075985
}

.btn-event:focus-visible,
.event-ticket-button:focus-visible,
.btn-footer:focus-visible {
    outline: 2px solid #0369a1;
    outline-offset: 2px
}

/* Teacher catalog: two cards per row on desktop, one on a phone. */
.catalog-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}

@media (min-width: 768px) {
    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.catalog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 2px 14px rgba(15, 23, 42, 0.09);
    padding: 16px;
}

/* Teachers often put text in their images: show the whole image, never crop or stretch it. */
.catalog-card-media {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    background: #f1f5f9;
}

.catalog-card-media img {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.catalog-card-media .service-cover-placeholder {
    position: absolute;
    inset: 0;
}

.catalog-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding-top: 16px;
}

.catalog-card-meta {
    margin-bottom: 6px;
    font-size: var(--public-text-small);
    font-weight: 500;
    color: #64748b;
}

.catalog-card-member {
    margin-top: 4px;
    font-size: var(--public-text-small);
    color: #4b5563;
}

.catalog-card-title {
    font-family: 'Fraunces', serif;
    font-size: var(--public-text-subtitle);
    line-height: 1.3;
    color: #0f172a;
    overflow-wrap: anywhere;
}

.catalog-card-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    margin-top: 6px;
    font-size: var(--public-text-body);
    line-height: 1.55;
    color: #64748b;
}

/* margin-top: auto pins the footer to the bottom, so footers line up across a row. */
.catalog-card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
}

.catalog-card-footer .btn-event {
    margin-left: auto;
}

.public-footer {
    margin-top: 32px;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    color: #0f172a;
    padding: 48px 20px 32px
}

.footer-inner {
    max-width: 1140px;
    margin: 0 auto
}

.footer-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px 32px;
    padding: 28px 36px;
    border-radius: 20px;
    background:
        radial-gradient(ellipse 70% 90% at 100% 0%, color-mix(in srgb, #38bdf8 30%, transparent), transparent 70%),
        color-mix(in srgb, #38bdf8 14%, white);
    margin-bottom: 36px
}

.footer-cta-title {
    font-family: "Fraunces", serif;
    font-size: var(--public-text-title);
    font-weight: 600;
    line-height: 1.2;
    color: #0f172a;
    margin-bottom: 6px
}

.footer-cta-body {
    font-size: var(--public-text-body);
    line-height: 1.55;
    color: #4b5563
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    font-size: 13px;
    color: #64748b
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px
}

.footer-logo {
    height: 24px;
    width: auto;
    display: block
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px
}

.footer-links a {
    color: #64748b;
    text-decoration: none
}

.footer-links a:hover {
    color: #0369a1
}

@media (max-width: 767px) {
    .footer-cta {
        grid-template-columns: 1fr;
        padding: 24px 22px
    }

    .footer-brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px
    }
}

/* ----- event-like event page layout (CSS-only, no utility classes) ----- */
.event-page {
    background: #f4fafe;
    padding: 0 0 48px
}

.event-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 20px 0
}

.event-hero-content {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.event-pill {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    background: #e0f2fe;
    color: #075985;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: var(--public-text-label);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase
}

.event-pill--overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1
}

.event-hero-title {
    font-family: 'Fraunces', serif;
    font-size: var(--public-text-display);
    line-height: 1.15;
    color: #0f172a
}

.event-content-grid {
    margin-top: 30px;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 28px
}

.event-main-column {
    display: flex;
    flex-direction: column;
    gap: 22px
}

.event-card {
    padding: 16px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 14px rgba(15, 23, 42, 0.09)
}

.event-section-title {
    font-family: 'Fraunces', serif;
    font-size: var(--public-text-title);
    color: #0f172a;
    margin-bottom: 14px
}

.event-body-copy p {
    color: #4b5563;
    line-height: 1.75;
    font-size: var(--public-text-body)
}

.event-body-copy .trix-content a {
    color: #0369a1;
    text-decoration: underline
}

.event-body-copy .trix-content strong,
.event-body-copy .trix-content b {
    font-weight: 700;
}

.event-body-copy .trix-content em,
.event-body-copy .trix-content i {
    font-style: italic;
}

.event-body-copy .trix-content ul,
.event-body-copy .trix-content ol {
    margin: 0.5em 0;
    padding-left: 1.5em;
}

.event-body-copy .trix-content ul {
    list-style: disc;
}

.event-body-copy .trix-content ol {
    list-style: decimal;
}

.event-body-copy .trix-content li {
    display: list-item;
    margin: 0.15em 0;
}

.event-map-wrap {
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    overflow: hidden
}

.event-aside-column {
    position: relative
}

.event-ticket-card {
    position: sticky;
    top: 24px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 10px
}

.event-ticket-title {
    font-size: var(--public-text-subtitle);
    font-family: 'Fraunces', serif;
    color: #0f172a
}

.event-ticket-label {
    color: #64748b;
    font-size: var(--public-text-small)
}

.event-ticket-price {
    font-family: 'Fraunces', serif;
    text-align: right;
    color: #0369a1;
    font-size: var(--public-text-price);
    font-weight: 700;
    line-height: 1;
    margin-top: 8px;
    margin-bottom: 16px;
}

.event-ticket-info {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.event-ticket-value {
    font-size: var(--public-text-body);
    font-weight: 600;
    color: #0f172a;
    line-height: 1.45
}

.event-ticket-button {
    margin-top: 6px
}

@media (max-width: 1024px) {

    .event-content-grid {
        grid-template-columns: 1fr
    }

    .event-ticket-card {
        position: static
    }
}

@media (max-width: 768px) {
    .event-shell {
        padding-left: 14px;
        padding-right: 14px
    }
}

/* The member who runs a service, session, or event. */
.public-member {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0
}

.public-member-identity {
    min-width: 0
}

.public-member-name {
    margin: 0;
    color: #0f172a;
    font-weight: 700;
    line-height: 1.3
}

.public-member-tagline {
    margin: 2px 0 0;
    color: #4b5563;
    line-height: 1.45
}

.public-member-bio {
    margin-top: 14px
}

/* Icon rows for course, session, and event pages. */
.public-facts,
.public-schedule,
.public-schedule-times,
.public-schedule-period-list,
.public-prices {
    list-style: none;
    margin: 0;
    padding: 0
}

.public-fact {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.1)
}

.public-fact:first-child {
    padding-top: 0
}

.public-fact:last-child {
    border-bottom: 0;
    padding-bottom: 0
}

.public-fact-icon {
    width: 22px;
    height: 22px;
    margin-top: 1px;
    color: #0369a1;
    flex-shrink: 0
}

.public-fact-heading {
    margin: 0 0 2px;
    color: #0f172a;
    font-weight: 700
}

.public-fact-text {
    margin: 0;
    color: #0f172a;
    font-weight: 600;
    line-height: 1.45
}

.public-schedule {
    display: flex;
    flex-direction: column;
    gap: 12px
}

.public-schedule-day {
    display: flex;
    justify-content: space-between;
    gap: 16px
}

.public-schedule-day-name {
    font-weight: 700;
    color: #0f172a
}

.public-schedule-times {
    text-align: right;
    color: #0f172a;
    font-weight: 600
}

.public-schedule-periods {
    margin-top: 14px
}

.public-schedule-periods summary {
    cursor: pointer;
    font-weight: 600;
    color: #0369a1
}

.public-schedule-period-list {
    margin-top: 8px;
    color: #4b5563;
    display: flex;
    flex-direction: column;
    gap: 4px
}

.public-price {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.1);
    font-weight: 600;
    color: #0f172a
}

.public-price:first-child {
    padding-top: 0
}

.public-price:last-child {
    border-bottom: 0;
    padding-bottom: 0
}

.event-ticket-note {
    margin: 4px 0 0;
    color: #4b5563;
    font-size: var(--public-text-small);
    line-height: 1.5;
    font-weight: 400
}

@media (max-width: 768px) {
    .public-schedule-day {
        flex-direction: column;
        gap: 4px
    }

    .public-schedule-times {
        text-align: left
    }
}

/* Activity gallery: a bounded grid on desktop and a one-photo carousel on phones, built from the same tiles.
   Cell sizes come from the layout; images are contained over a blurred copy of themselves. */
.public-gallery-wrap {
    position: relative
}

.public-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    height: clamp(360px, 36vw, 440px);
    border-radius: 16px;
    overflow: hidden
}

.public-gallery[data-count="1"] {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr)
}

.public-gallery[data-count="2"] {
    grid-template-rows: minmax(0, 1fr)
}

.public-gallery[data-count="4"],
.public-gallery[data-count="5"] {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr)
}

.public-gallery[data-count="3"] .public-gallery-tile:first-child,
.public-gallery[data-count="4"] .public-gallery-tile:first-child,
.public-gallery[data-count="5"] .public-gallery-tile:first-child {
    grid-row: 1 / 3;
    grid-column: 1
}

.public-gallery[data-count="4"] .public-gallery-tile:nth-child(4) {
    grid-column: 2 / 4
}

.public-gallery-tile {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    cursor: zoom-in;
    background: #f1f5f9
}

.public-gallery-tile:nth-child(n + 6) {
    display: none
}

.public-gallery-tile:focus-visible {
    outline: 3px solid #0369a1;
    outline-offset: -3px
}

img.public-media-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(24px) saturate(1.15);
    transform: scale(1.15);
    opacity: 0.6;
    pointer-events: none
}

.public-viewer-frame > img.public-media-backdrop:not([src]) {
    display: none
}

.public-gallery-image {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.2s
}

.public-gallery-tile:hover .public-gallery-image {
    opacity: 0.92
}

.public-gallery-nav,
.public-gallery-counter {
    display: none
}

.public-gallery-all {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    font-family: inherit;
    font-size: var(--public-text-small);
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08)
}

.public-gallery-all svg {
    width: 16px;
    height: 16px
}

.public-gallery-all:focus-visible {
    outline: 3px solid #0369a1;
    outline-offset: 2px
}

html.public-viewer-open {
    overflow: hidden
}

.public-viewer {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: #0f172a;
    color: #fff;
    overflow: hidden
}

.public-viewer[open] {
    display: flex;
    flex-direction: column
}

.public-viewer::backdrop {
    background: #0f172a
}

.public-viewer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-size: var(--public-text-small)
}

.public-viewer-tools {
    display: flex;
    gap: 10px
}

.public-viewer-btn {
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-family: inherit;
    font-size: var(--public-text-small);
    font-weight: 600;
    cursor: pointer
}

.public-viewer-btn.public-viewer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    padding: 0
}

.public-viewer-icon[aria-pressed="true"] .public-viewer-zoom-plus {
    display: none
}

.public-viewer-btn:hover {
    background: rgba(255, 255, 255, 0.16)
}

.public-viewer-btn:focus-visible {
    outline: 3px solid #7dd3fc;
    outline-offset: 2px
}

.public-viewer-frame {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: hidden
}

.public-viewer-frame > .public-media-backdrop {
    filter: blur(40px) brightness(0.75) saturate(1.2);
    opacity: 0.7
}

.public-viewer-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 16px;
    overflow: auto
}

.public-viewer-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: zoom-in
}

.public-viewer-stage.is-zoomed {
    display: block
}

.public-viewer-stage.is-zoomed .public-viewer-image {
    max-width: none;
    max-height: none;
    width: 180%;
    height: auto;
    cursor: zoom-out
}

.public-viewer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    min-height: 64px;
    padding: 12px
}

@media (max-width: 767px) {
    .public-gallery {
        display: flex;
        gap: 0;
        height: clamp(260px, 75vw, 320px);
        border-radius: 14px;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scrollbar-width: none
    }

    .public-gallery::-webkit-scrollbar {
        display: none
    }

    .public-gallery-tile,
    .public-gallery-tile:nth-child(n + 6) {
        display: block;
        flex: 0 0 100%;
        scroll-snap-align: start
    }

    .public-gallery-all {
        display: none
    }

    .public-gallery-nav {
        position: absolute;
        top: calc(50% - 18px);
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        padding: 0;
        border: 1px solid #e2e8f0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.94);
        color: #0f172a;
        font-family: inherit;
        font-size: var(--public-text-subtitle);
        line-height: 1;
        cursor: pointer
    }

    .public-gallery-nav--prev {
        left: 10px
    }

    .public-gallery-nav--next {
        right: 10px
    }

    .public-gallery-counter {
        position: absolute;
        bottom: 10px;
        left: 50%;
        display: block;
        transform: translateX(-50%);
        padding: 3px 10px;
        border-radius: 999px;
        background: rgba(15, 23, 42, 0.8);
        color: #fff;
        font-size: var(--public-text-label);
        pointer-events: none
    }

    .public-viewer-head {
        padding: 12px
    }

    .public-viewer-tools {
        gap: 6px
    }

    .public-viewer-btn {
        padding: 8px 10px
    }
}