/* Accessible Keyboard-Navigable & Touch-Optimized GIF Pause/Play Styles for Tenterhooks */
.gif-pause-play-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    border-radius: 4px;
}

.gif-static-canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

.gif-bg-overlay-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    z-index: 1;
}

/* Accessible Interactive Button (Touch-Optimized for Mobile) */
.gif-control-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.88);
    color: #ffffff;
    padding: 10px 16px;
    min-height: 38px;
    min-width: 72px;
    border-radius: 20px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    backdrop-filter: blur(4px);
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 99999;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover & Active Mobile Tap States */
.gif-control-btn:hover,
.gif-control-btn:active {
    background: #000000;
    border-color: #ffffff;
    transform: scale(1.06);
}

/* Keyboard & Mobile Focus State (Tab key navigation) */
.gif-control-btn:focus,
.gif-control-btn:focus-visible {
    outline: 3px solid #ff4b4b !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 5px rgba(255, 75, 75, 0.5), 0 4px 14px rgba(0, 0, 0, 0.6) !important;
    background: #000000 !important;
    border-color: #ffffff !important;
}

.gif-control-icon {
    font-size: 12px;
    line-height: 1;
    pointer-events: none;
}

.gif-control-label {
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-size: 11px;
    pointer-events: none;
}

/* Maintain original visual H1 sizing for footer quote H5 heading */
footer h5.sc_item_title,
.footer_wrap h5.sc_item_title,
footer h5 .sc_item_title_text,
.footer_wrap h5 .sc_item_title_text,
footer h5,
.footer_wrap h5 {
    font-size: var(--theme-var-font-h1-size, 2.5rem);
    line-height: var(--theme-var-font-h1-line-height, 1.2);
}
