/* SEAYAPI v1.0.33 — H2 About Right only. Legacy appearance is unchanged until
   a content switch is used; the video-size control can be set independently. */
.sy-h2-about-right {
    --sy-h2about-video-size: 160px;
    --sy-h2about-image-min-height: 420px;
    --sy-h2about-image-position: center center;
    --sy-h2about-corner-cut: 18px;
    --sy-h2about-corner-radius: 10px;
}

/* The Easton theme uses a fixed 160px ring and the global ripple animation.
   Restore that effect with a locally named, diameter-aware animation, keeping
   the pulse on both the original card layout and the expanded image layout. */
@keyframes sy-h2about-ripple {
    0%   { opacity: .92; box-shadow: 0 0 0 0 rgba(235, 115, 40, .70); }
    67%  { opacity: .14; box-shadow: 0 0 0 calc(var(--sy-h2about-video-size) * .22) rgba(235, 115, 40, 0); }
    100% { opacity: 0; box-shadow: 0 0 0 0 rgba(235, 115, 40, 0); }
}
/* Apply the size to the play circle AND both pulsating rings. */
.sy-h2-about-right .content_block_eight .content-box .video-btn a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--sy-h2about-video-size);
    height: var(--sy-h2about-video-size);
    min-width: var(--sy-h2about-video-size);
    line-height: 1;
    font-size: calc(var(--sy-h2about-video-size) * .25);
    vertical-align: middle;
    box-sizing: border-box;
    /* Original Easton ring is 30px on a 160px button. Keep it proportional. */
    border-width: calc(var(--sy-h2about-video-size) * .1875);
    overflow: visible;
}
.sy-h2-about-right .content_block_eight .content-box .video-btn a::before,
.sy-h2-about-right .content_block_eight .content-box .video-btn a::after {
    content: "";
    display: block;
    position: absolute;
    width: var(--sy-h2about-video-size);
    height: var(--sy-h2about-video-size);
    top: 50%;
    left: 50%;
    box-sizing: border-box;
    border: 0;
    border-radius: 50%;
    background: transparent;
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation-name: sy-h2about-ripple;
    animation-duration: 3s;
    animation-timing-function: ease-out;
    animation-iteration-count: infinite;
    /* Negative delays start both waves immediately and stagger them. */
    animation-delay: -.3s;
    z-index: 0;
}
.sy-h2-about-right .content_block_eight .content-box .video-btn a::after {
    animation-delay: -1.8s;
}
.sy-h2-about-right.sy-h2-about--pulse-off .content_block_eight .content-box .video-btn a::before,
.sy-h2-about-right.sy-h2-about--pulse-off .content_block_eight .content-box .video-btn a::after {
    content: none;
    animation: none;
}
.sy-h2-about-right .content_block_eight .content-box .video-btn {
    overflow: visible;
}
.sy-h2-about-right .content_block_eight .content-box .video-btn a > i {
    position: relative;
    z-index: 1;
}

/* Card hidden: remove the theme's hardcoded ml_30/pl_70/pb_40 offsets, plus
   nested Bootstrap gutter / extra bottom padding, but only for this widget. */
.sy-h2-about-right.sy-h2-about--no-card {
    padding-bottom: 0 !important;
}
.sy-h2-about-right.sy-h2-about--no-card > .auto-container {
    width: 100%;
    max-width: none;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.sy-h2-about-right.sy-h2-about--no-card > .auto-container > .row {
    margin-left: 0;
    margin-right: 0;
}
.sy-h2-about-right.sy-h2-about--no-card .content-column {
    padding-left: 0;
    padding-right: 0;
}
.sy-h2-about-right.sy-h2-about--no-card .content_block_eight,
.sy-h2-about-right.sy-h2-about--no-card .content_block_eight .content-box {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}
.sy-h2-about-right.sy-h2-about--no-card .content_block_eight .content-box .image-box {
    display: block;
    position: relative;
    height: var(--sy-h2about-measured-height, var(--sy-h2about-image-min-height));
    min-height: var(--sy-h2about-image-min-height);
    width: 100%;
    margin: 0;
    overflow: hidden;
    clip-path: none;
    border-radius: 0;
    background-color: #e8eaed;
}
.sy-h2-about-right.sy-h2-about--no-card .content_block_eight .content-box .image-box img,
.sy-h2-about-right.sy-h2-about--no-card .content_block_eight .content-box .image-box .noimage {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--sy-h2about-image-position);
}
/* Three independently selectable corner treatments. Applied only with the card
   hidden, so existing widgets with the info card retain the original Easton shape. */
.sy-h2-about-right.sy-h2-about--no-card.sy-h2-about--corners-technical .content_block_eight .content-box .image-box {
    clip-path: polygon(
        0 var(--sy-h2about-corner-cut),
        var(--sy-h2about-corner-cut) 0,
        100% 0,
        100% calc(100% - var(--sy-h2about-corner-cut)),
        calc(100% - var(--sy-h2about-corner-cut)) 100%,
        0 100%
    );
    border-radius: 0;
}
.sy-h2-about-right.sy-h2-about--no-card .content_block_eight .content-box .image-box::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, .26);
    box-shadow: inset 0 0 0 4px rgba(23, 32, 40, .07);
}
.sy-h2-about-right.sy-h2-about--no-card.sy-h2-about--corners-technical .content_block_eight .content-box .image-box::after {
    background:
        linear-gradient(90deg, rgba(235,115,40,.78), rgba(235,115,40,.78)) left 12px top 12px / 32px 2px no-repeat,
        linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.55)) right 12px bottom 12px / 2px 32px no-repeat;
}
.sy-h2-about-right.sy-h2-about--no-card.sy-h2-about--corners-square .content_block_eight .content-box .image-box {
    clip-path: none;
    border-radius: 0;
}
.sy-h2-about-right.sy-h2-about--no-card.sy-h2-about--corners-square .content_block_eight .content-box .image-box::after {
    background: none;
    box-shadow: none;
}
.sy-h2-about-right.sy-h2-about--no-card.sy-h2-about--corners-rounded .content_block_eight .content-box .image-box {
    clip-path: none;
    border-radius: var(--sy-h2about-corner-radius);
}
.sy-h2-about-right.sy-h2-about--no-card.sy-h2-about--corners-rounded .content_block_eight .content-box .image-box::after {
    background: none;
    border-radius: inherit;
    box-shadow: none;
}
/* Keep the video button centered in the expanded image when the info card is absent. */
.sy-h2-about-right.sy-h2-about--no-card .content_block_eight .content-box .video-btn {
    position: absolute;
    display: block;
    left: 50%;
    top: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
    z-index: 2;
}

@media (max-width: 767px) {
    /* At stacked mobile widths use a well-proportioned responsive image, not the
       desktop left-column match which would create an oversized mobile banner. */
    .sy-h2-about-right.sy-h2-about--no-card .content_block_eight .content-box .image-box {
        height: auto;
        aspect-ratio: 4 / 3;
        min-height: min(var(--sy-h2about-image-min-height), 70vh);
    }
    .sy-h2-about-right.sy-h2-about--no-card .content_block_eight .content-box .image-box img {
        position: absolute;
    }
    /* Honor the legacy hidden state on mobile, even without the white card. */
    .sy-h2-about-right.sy-h2-about--no-card:not(.sy-h2-about--mobile-video) .content_block_eight .content-box .video-btn {
        display: none;
    }
    /* Theme hides the player on phones by default. The new explicit switch
       must be able to opt back in, with the play control inside the picture. */
    .sy-h2-about-right.sy-h2-about--mobile-video .content_block_eight .content-box .video-btn {
        display: block;
        z-index: 2;
    }
    .sy-h2-about-right.sy-h2-about--mobile-video:not(.sy-h2-about--no-card) .content_block_eight .content-box .video-btn {
        left: 50%;
        top: 42%;
        right: auto;
        bottom: auto;
        transform: translate(-50%, -50%);
    }
}
@media (prefers-reduced-motion: reduce) {
    .sy-h2-about-right .content_block_eight .content-box .video-btn a::before,
    .sy-h2-about-right .content_block_eight .content-box .video-btn a::after {
        animation: none !important;
    }
}
