.sg {
    display: flex;
}
.sg__item {
    background-position-x: center;
    background-position-y: center;
    background-size: auto 100%;
    overflow: hidden;
    position: relative;
    transition-duration: 500ms;
    transition-property: width;
    transition-timing-function: cubic-bezier(0, 0, 1, 1);
}
@media (min-width: 1280px) {
    .sg__item {
        transition-duration: 1000ms;
    }
}
.sg_3 .sg__item {
    height: 1350px;
    max-width: 900px;
    width: calc(100% / 3);
}
@media (min-width: 768px) {
    .sg_3 .sg__item {
        height: 675px;
    }
}
@media (min-width: 1280px) {
    .sg_3 .sg__item {
        height: 600px;
    }
}
.sg_4 .sg__item {
    height: 600px;
    max-width: 600px;
    width: calc(100% / 4);
}
.sg__item::before {
    background-color: rgba(40, 53, 147, 0.25);
    content: "";
    height: 100%;
    left: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    transition-duration: 250ms;
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
    width: 100%;
    z-index: 2;
}
@media (min-width: 1280px) {
    .sg__item::before {
        transition-duration: 500ms;
    }
}
.sg__item:hover {
    flex-shrink: 0;
    width: 75%;
}
.sg__item:hover .sg__content,
.sg__item:hover::before {
    opacity: 1;
    transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}
.sg__content,
.sg__video {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}
.sg__video {
    -o-object-fit: cover;
    font-family: "object-fit:cover";
    object-fit: cover;
    z-index: 1;
}
.sg__content {
    background-color: transparent;
    opacity: 0;
    padding: 32px 16px;
    transform: translateX(100%);
    transition-duration: 250ms;
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
    z-index: 3;
}
@media (min-width: 768px) {
    .sg__content {
        padding-left: 32px;
        padding-right: 32px;
    }
}
@media (min-width: 1280px) {
    .sg__content {
        transition-duration: 500ms;
    }
}
.sg__item:hover .sg__content {
    transform: translateX(0);
    transition-delay: 500ms;
    transition-duration: 250ms;
    transition-property: opacity, transform;
}

.sg__item:hover .sg_beforehover {
    display: none;
    transition: all 0.3s ease;
}

.sg_beforehover {
    display: block;
    background-color: #3d3d3dc2;
    /* border-radius: 30px; */
    position: absolute;
    padding: 10px;
    font-size: 30px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    font-weight: bold;
    /* left: 30%; */
    /* top: 40%; */
    line-height: 30px;
    color: #fff;
    transition: all 0.3s ease;
}

@media screen and (max-width: 992px) {
    .sg_beforehover {
        width: 230%;
        font-size: 20px;
        left: -125px;
        border-radius: 0px;
        transform: rotate(-90deg);
        line-height: 20px;
        /* left: 30%; */
        top: 40%;
    }
}

@media (min-width: 1280px) {
    .sg__item:hover .sg__content {
        transition-duration: 500ms;
    }
}

.wysiwyg_white, .wysiwyg_white ol, .wysiwyg_white p, .wysiwyg_white ul {
    color: #fff;
}

.wysiwyg_small p, .wysiwyg_small ul {
    font-size: 14px;
    line-height: 20px;
}