.captures-popup-trigger {
    font-family: inherit;
    /* font-size: 16px; */
    line-height: 1.4;
    border: 2px solid #c56320;
    border-radius: 4px;
    padding: 0.5rem 1.8rem;
    /* background: linear-gradient(135deg, #111, #444); */
    background-color: #ffffff;
    color: #c56320;
    font-weight:bold;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.captures-popup-trigger:hover {
    background: #c56320;
    color: #ffffff;
    border-color: #c56320;
}

.captures-popup-trigger:hover,
.captures-popup-trigger:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    outline: none;
}

.captures-popup-trigger--floating {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    padding: 1rem 2rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 100%);
    backdrop-filter: blur(6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.captures-immersive-block {
    width: 100%;
    background:#c5632088;
    /* margin: 2.5rem 0; */
}

.captures-immersive-block__inner {
    width: 100%;
    padding: 50px 20px;
    /* background: radial-gradient(circle at top, rgba(25, 25, 25, 0.85), #050505); */
    display: flex;
    justify-content: center;
}

.captures-immersive-button {
    position: relative;
    border-radius: 0;
    border: solid 2px transparent;
    padding: 1.3rem 3.75rem;
    color: #c56320;
    font-size: clamp(0.8rem, 1.2vw, 0.8rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    overflow: hidden;
    --captures-border-angle: 0turn;
    --captures-main-bg: conic-gradient(
        from var(--captures-border-angle),
        #ffffff,
        #ffffff 5%,
        #ffffff 60%,
        #ffffff 95%
    );
    --captures-gradient-border: conic-gradient(
        from var(--captures-border-angle),
        transparent 25%,
        #c56320,
        rgb(255, 106, 0) 99%,
        transparent
    );
    background:
        var(--captures-main-bg) padding-box,
        var(--captures-gradient-border) border-box,
        var(--captures-main-bg) border-box;
    background-position: center;
    animation: captures-immersive-border 3s linear infinite;
}

.captures-immersive-button:hover {
    background: #c56320;
    color: #ffffff;
    border-color: #c56320;
}

.captures-immersive-button span {
    position: relative;
    z-index: 1;
}

.captures-immersive-button:hover {
    animation-play-state: paused;
}

@keyframes captures-immersive-border {
    to {
        --captures-border-angle: 1turn;
    }
}

.captures-popup-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 15, 15, 0.75);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 10000;
    padding: 2rem;
}

.captures-popup-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.captures-popup-overlay.is-fullscreen {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
}

.captures-popup-backdrop {
    position: absolute;
    inset: 0;
}

.captures-popup-modal {
    position: relative;
    width: min(100%, 900px);
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
}

.captures-popup-modal--fullscreen {
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: 0;
}

.captures-popup-modal__body {
    width: 100%;
    height: min(80vh, 640px);
    background: #0a0a0a;
    overflow: hidden;
}

.captures-popup-modal--fullscreen .captures-popup-modal__body {
    height: 100%;
}

.captures-popup-iframe {
    width: 100%;
    height: 100%;
    border: none;
    overflow: hidden;
    display: block;
}

.captures-popup-controls {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.captures-popup-close {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 10px 12px;
    border-radius: 8px;
    border: none;
    background: #fff;
    color: #000;
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
}

.captures-popup-fullscreen {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}
.captures-popup-fullscreen-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
}

.captures-popup-fullscreen-icon svg {
    width: 100%;
    height: 100%;
}

.captures-popup-fullscreen:hover,
.captures-popup-fullscreen:focus-visible {
    background: rgba(255, 255, 255, 0.3);
}

.captures-popup-close:hover,
.captures-popup-close:focus-visible {
    background: #f2f2f2;
}

.captures-popup-exit-label {
    font-weight: 700;
}

.captures-popup-exit-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
}

.captures-popup-exit-icon svg {
    width: 100%;
    height: 100%;
}

.captures-popup-no-scroll {
    overflow: hidden;
}

@property --captures-border-angle {
    syntax: '<angle>';
    inherits: true;
    initial-value: 0turn;
}

@media (max-width: 768px) {
    .captures-popup-fullscreen {
        display: none;
    }
}
