.ebs-editorial-block {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: clamp(28px, 5vw, 76px);
    align-items: center;
    padding: clamp(28px, 5vw, 76px);
    margin: 28px 0;
    min-height: 520px;
    overflow: hidden;
    border-radius: 3px;
}
.ebs-editorial-block.ebs-image-left .ebs-editorial-copy { order: 2; }
.ebs-editorial-block.ebs-image-left .ebs-editorial-media { order: 1; }
.ebs-editorial-copy { min-width: 0; }
.ebs-editorial-eyebrow {
    font-size: 11px !important;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-weight: 700;
    margin: 0 0 22px !important;
    color: #b49a6a;
}
.ebs-editorial-copy h2 {
    font-size: clamp(32px, 4.1vw, 58px) !important;
    line-height: 1.06 !important;
    letter-spacing: -.045em !important;
    font-weight: 400 !important;
    margin: 0 0 24px !important;
}
.ebs-editorial-rule {
    width: 64px;
    height: 2px;
    background: #b49a6a;
    margin: 0 0 24px;
}
.ebs-editorial-body {
    display: block;
    font-size: 16px;
    line-height: 1.85;
    max-width: 540px;
    margin: 0;
}
.ebs-editorial-body p { margin: 0 0 1em; }
.ebs-editorial-media {
    min-width: 0;
    height: 620px;
    overflow: hidden;
    position: relative;
}
.ebs-editorial-gallery-window {
    height: 100%;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to bottom, transparent 0%, #000 9%, #000 91%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 9%, #000 91%, transparent 100%);
}
.ebs-editorial-gallery-track {
    display: flex;
    flex-direction: column;
    gap: 14px;
    animation: ebs-gallery-rise var(--ebs-gallery-duration, 24s) linear infinite;
}
.ebs-editorial-gallery-window:hover .ebs-editorial-gallery-track { animation-play-state: paused; }
.ebs-editorial-gallery-item {
    display: block;
    position: relative;
    box-sizing: border-box;
    margin: 0;
    width: 100%;
    height: auto !important;
    aspect-ratio: 3 / 4;
    flex: 0 0 auto;
    overflow: hidden;
    background: #ddd;
}
.ebs-editorial-gallery-item img,
.ebs-editorial-gallery-item .ebs-gallery-photo {
    position: absolute;
    inset: 0;
    display: block;
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    margin: 0 !important;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center;
}
.ebs-editorial-gallery-empty {
    height: 100%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    padding: 30px;
    border: 1px dashed rgba(120, 120, 120, .5);
    font-size: 13px;
    letter-spacing: .04em;
}
.ebs-gallery-empty-title { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.ebs-gallery-empty-help { max-width: 280px; font-size: 13px; line-height: 1.6; opacity: .75; }
.ebs-gallery-add-button.components-button {
    min-height: 40px;
    padding: 0 18px;
    border-radius: 2px;
    font-size: 12px;
    letter-spacing: .04em;
}
.ebs-gallery-editor-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}
.ebs-editorial-editor-note { font-size: 11px; opacity: .7; }
.ebs-editorial-editor-media { height: auto; min-height: 380px; display: block; }
.ebs-editorial-editor-thumbs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.ebs-editorial-editor-thumb {
    position: relative;
    aspect-ratio: 3 / 4;
    height: auto;
    overflow: hidden;
    background: #ddd;
}
.ebs-editorial-editor-thumb img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}
.ebs-tone-light { background: #f4f2ed; color: #202a38; }
.ebs-tone-light .ebs-editorial-body { color: #58616a; }
.ebs-tone-dark { background: #172338; color: #fff; }
.ebs-tone-dark .ebs-editorial-body { color: rgba(255,255,255,.78); }
.ebs-tone-sand { background: #e9e1d3; color: #252a30; }
.ebs-tone-sand .ebs-editorial-body { color: #55534f; }
@keyframes ebs-gallery-rise {
    from { transform: translateY(0); }
    to { transform: translateY(calc(-50% - 7px)); }
}
@media (max-width: 780px) {
    .ebs-editorial-block { grid-template-columns: 1fr; gap: 26px; padding: 26px; min-height: 0; }
    .ebs-editorial-block.ebs-image-left .ebs-editorial-copy,
    .ebs-editorial-block.ebs-image-left .ebs-editorial-media { order: initial; }
    .ebs-editorial-media { height: 500px; }
    .ebs-editorial-gallery-item { aspect-ratio: 3 / 4; }
    .ebs-editorial-copy h2 { font-size: clamp(32px, 9vw, 46px) !important; }
}
@media (prefers-reduced-motion: reduce) {
    .ebs-editorial-gallery-track { animation: none !important; }
}
