.ds-public {
    position: relative;
    margin: 28px 0 38px;
    overflow: hidden;
    border: 1px solid #dce4eb;
    border-radius: 10px;
    background: #fff;
}
.ds-public-slide[hidden] {
    display: none !important;
}
.ds-public-slide {
    position: relative;
}
.ds-public-slide picture {
    display: block;
    overflow: hidden;
    background: #edf2f6;
}
.ds-public-slide img {
    display: block;
    width: 100%;
    height: clamp(250px, 35vw, 460px);
    object-fit: cover;
}
.ds-public-caption {
    position: absolute;
    left: 28px;
    bottom: 28px;
    max-width: min(520px, calc(100% - 56px));
    padding: 20px 24px;
    border: 1px solid #dae4eb;
    border-radius: 8px;
    background: #fffffff5;
    color: #10243d;
    box-shadow: 0 4px 18px #0b31531a;
}
.ds-public-caption h2 {
    margin: 0 0 8px;
    font:
        700 clamp(20px, 2.2vw, 30px)/1.25 "Manrope",
        Arial,
        sans-serif;
    overflow-wrap: anywhere;
}
.ds-public-caption p {
    margin: 0;
    color: #40566a;
    font-size: 16px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.ds-public-caption a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin-top: 12px;
    padding: 0 14px;
    border-radius: 6px;
    background: #0e426d;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}
.ds-public-caption a:hover {
    background: #092e4d;
}
.ds-public-controls {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 4px;
    border: 1px solid #d4e0e8;
    border-radius: 8px;
    background: #fffffff5;
    color: #173b59;
}
.ds-public-controls[hidden] {
    display: none;
}
.ds-public-controls button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #173b59;
    font-size: 20px;
    cursor: pointer;
}
.ds-public-controls button:hover {
    background: #e9f2f8;
}
.ds-public-controls span {
    min-width: 40px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
}
.ds-public :is(button, a):focus-visible {
    outline: 3px solid #ff7817;
    outline-offset: 2px;
}
@media (max-width: 680px) {
    .ds-public {
        margin: 24px 0 28px;
    }
    .ds-public-slide img {
        height: clamp(220px, 65vw, 340px);
    }
    .ds-public-caption {
        position: static;
        max-width: none;
        padding: 18px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
    .ds-public-caption h2 {
        font-size: 21px;
    }
    .ds-public-caption p {
        font-size: 15px;
    }
    .ds-public-controls {
        position: static;
        justify-content: flex-end;
        padding: 4px 10px;
        border: 0;
        border-top: 1px solid #e7eef2;
        border-radius: 0;
    }
}

.ds-public-caption {
    position: static;
    max-width: none;
    padding: 20px 24px;
    border: 0;
    border-top: 1px solid #e7eef2;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}
.ds-public-controls {
    position: static;
    justify-content: flex-end;
    padding: 4px 16px;
    border: 0;
    border-top: 1px solid #e7eef2;
    border-radius: 0;
    background: #fff;
}
@media (max-width: 680px) {
    .ds-public-caption {
        padding: 18px;
    }
    .ds-public-controls {
        padding: 4px 10px;
    }
}
