.zm-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    background: #000;
    color: #fff;
}
.zm-lightbox[hidden] { display: none; }
.zm-header {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    background: #000;
}
.zm-header-title {
    padding: 0 20px 0 22px;
    font-family: 'Titillium Web', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.2em;
    letter-spacing: 0.08em;
    color: #fff;
}
.zm-back, .zm-prev, .zm-next {
    flex: 0 0 auto;
    align-self: stretch;
    border: 0;
    border-radius: 0;
    background: #000;
    color: #fff;
    font: inherit;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0 28px;
    min-height: 52px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.zm-back:hover, .zm-back:focus-visible,
.zm-prev:hover, .zm-prev:focus-visible,
.zm-next:hover, .zm-next:focus-visible { background: #fff; color: #000; }
.zm-viewport {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    touch-action: pan-y;
    outline: none;
}
.zm-track {
    display: flex;
    height: 100%;
    transition: transform 0.45s ease;
    will-change: transform;
}
.zm-slide { flex: 0 0 100%; height: 100%; min-width: 0; }
.zm-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}
.zm-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    flex: 0 0 auto;
    box-sizing: border-box;
    background: #000;
    color: #fff;
    text-align: left;
}
.zm-text {
    flex: 1 1 280px;
    min-width: 0;
    display: grid;
    color: #fff;
    line-height: 1.45;
    padding: 16px 24px;
    box-sizing: border-box;
}
.zm-text > div { grid-area: 1 / 1; visibility: hidden; }
.zm-text > div.active { visibility: visible; }
.zm-text a { color: inherit; text-decoration: underline; }
.zm-next { margin-left: auto; }
.zm-prev.hidden { visibility: hidden; }
.zm-single .zm-prev, .zm-single .zm-next { display: none; }
@media (max-width: 800px) {
    .zm-text { order: -1; flex: 1 1 100%; padding: 14px; }
    .zm-prev, .zm-next { flex: 1 1 50%; margin-left: 0; }
    .zm-header-title { font-size: 1em; padding-right: 12px; }
}
@media (prefers-reduced-motion: reduce) { .zm-track { transition: none; } }
