/**
 * Cutoff Photo & Video Slider PACKAGED v:1.0
 * Cutoff Photo & Video Slider global CSS.
 * @author Tibi - FWDesign [https://fwdapps.net/]
 * Copyright (c) Since 2006 All Rights Reserved.
 */


/* ################################################# */
/* General */
/* ################################################# */
.fwdcpavs,
.fwdcpavs button,
.fwdcpavs input,
.fwdcpavs select,
.fwdcpavs textarea {
    font-family: Roboto, sans-serif;
}


/* ################################################# */
/* Captions */
/* ################################################# */

/* Caption container. */
.fwdcpavs .caption {
    overflow: visible !important;
    width: calc(100% - 40px) !important;
    max-width: 600px !important;
    text-align: center !important;
    pointer-events: none !important;
}

/* Caption links. */
.fwdcpavs .caption a {
    text-decoration: underline;
    font-size: 600;
    text-decoration: none;
    pointer-events: auto;
    background-image: linear-gradient(#007bff calc(100% - 1px), #007bff 1px) !important;
    background-position: 0 calc(100% + 1px);
    background-repeat: no-repeat;
    background-size: 0% 1px;
    transition:
        background-size 0.6s cubic-bezier(0.215, 0.61, 0.355, 1),
        color 0.3s ease-out,
        background-color 0.3s ease-out,
        border-color 0.3s ease-out;
    border-bottom: 1px solid rgba(0, 123, 255, 0.2);
    color: #007bff;
}

.fwdcpavs .caption a:hover {
    background-size: 100% 1px;
}

/* Caption text. */
.fwdcpavs .caption-title {
    font:
        900 32px 'Roboto',
        sans-serif !important;
    line-height: 114% !important;
    margin: 27px 0 0 0;
    color: #111;
}

.fwdcpavs .caption-desc {
    font:
        400 16px 'Roboto',
        sans-serif !important;
    margin: 12px 0 30px 0;
    line-height: 146% !important;
    color: #111;
}

@media screen and (max-width: 1200px) {
    .fwdcpavs .caption-title {
        margin: 20px 0 0 0;
    }
}

@media screen and (max-width: 600px) {
    .fwdcpavs .caption-title {
        font-size: 30px !important;
        margin: 20px 0 0 0;
    }

    .fwdcpavs .caption-desc {
        font-size: 14px !important;
        margin: 12px 0 20px 0;
    }
}


/* ################################################# */
/* Error messages */
/* ################################################# */

/* Error icons and base styles. */
.fwdcpavs-error-window {
    background: #fff !important;
}

.fwdcpavs-error-window-text {
    padding: 7px 21px 9px 23px !important;
    color: #000;
}

.fwdcpavsicon-error {
    position: relative !important;
    top: 5px !important;
    left: -5px !important;
    margin: 0 1px 0 0;
    color: #f00;
}

.fwdcpavsicon-error:before {
    font-size: 26px;
}

/* Error window. */
.fwdcpavs-error-window {
    background: #fff !important;
}

.fwdcpavs-error-window-text {
    font-size: 16px !important;
    padding: 7px 21px 9px 23px !important;
    color: #000;
}

.fwdcpavs-error {
    position: relative !important;
    top: 5px !important;
    left: -5px !important;
    margin: 0 1px 0 0;
    color: #f00;
}

.fwdcpavs-error:before {
    font-size: 26px;
}


/* ################################################# */
/* Developer tools */
/* ################################################# */

/* GUI controls. */
.dg.main.a {
    z-index: 9999;
    margin: 0;
}

.dg.main.a.closed {
}

.dg.main.a.opened {
}

.dg .c {
    width: 50% !important;
}

.dg .property-name {
    width: 50% !important;
}

.dg.main.a .carousel {
    width: 71%;
    margin-left: 0;
}

.dg.main.a .has-carousel input[type='text'] {
    width: 24% !important;
    padding: 2px !important;
}

.dg.main.a .cr.color input[type='text'] {
    padding: 2px 0;
}

.dg .close-button {
    width: 100% !important;
}

.dg > ul {
    height: auto !important;
}

/* Stats. */
.fwdcpavs-imafe-manager > div {
    position: absolute !important;
}

@media screen and (max-width: 1200px) {
    .dg.main {
        displaytype: none !important;
    }
}


/* ################################################# */
/* Category interface */
/* ################################################# */

/* Layered important rules also override unlayered theme rules with ID selectors. */
@layer fwdcpavs-controls {
    /* Keep theme button styles outside the slider controls, including state rules. */
    .fwdcpavs button.fwdcpavs-category-button,
    .fwdcpavs button.fwdcpavs-category-button:is(:hover, :focus, :focus-visible, :active, :disabled),
    .fwdcpavs button.fwdcpavs-category-title,
    .fwdcpavs button.fwdcpavs-category-title:is(:hover, :focus, :focus-visible, :active, :disabled),
    .fwdcpavs button.fwdcpavs-picker-option,
    .fwdcpavs button.fwdcpavs-picker-option:is(:hover, :focus, :focus-visible, :active, :disabled) {
        appearance: none !important;
        -webkit-appearance: none !important;
        box-sizing: border-box !important;
        background: transparent !important;
        background-image: none !important;
        border: 0 !important;
        box-shadow: none !important;
        text-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        min-width: 0 !important;
        min-height: 0 !important;
    }

    /* Theme decoration must not create another disc behind the animated SVG. */
    .fwdcpavs button.fwdcpavs-category-button::before,
    .fwdcpavs button.fwdcpavs-category-button::after,
    .fwdcpavs button.fwdcpavs-category-title::before,
    .fwdcpavs button.fwdcpavs-category-title::after,
    .fwdcpavs button.fwdcpavs-picker-option::before,
    .fwdcpavs button.fwdcpavs-picker-option::after {
        content: none !important;
        display: none !important;
    }

    .fwdcpavs button.fwdcpavs-category-button {
        max-width: none !important;
        max-height: none !important;
        line-height: 1 !important;
        outline: none !important;
    }

    .fwdcpavs button.fwdcpavs-category-button > svg {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        pointer-events: none !important;
    }

    .fwdcpavs button.fwdcpavs-category-button svg [data-stroke] {
        fill: none !important;
        stroke: inherit !important;
        stroke-width: inherit !important;
        stroke-linecap: inherit !important;
    }

    /* Pointer clicks must not inherit a theme's colored focus frame. */
    .fwdcpavs button.fwdcpavs-category-title,
    .fwdcpavs button.fwdcpavs-picker-option,
    .fwdcpavs .fwdcpavs-picker-viewport,
    .fwdcpavs .fwdcpavs-picker-rail {
        outline: none !important;
        box-shadow: none !important;
    }

    /* Keyboard navigation keeps the gallery's own focus colors. */
    .fwdcpavs button.fwdcpavs-category-title:focus-visible {
        outline: 2px solid currentColor !important;
        outline-offset: 5px !important;
    }

    .fwdcpavs .fwdcpavs-category-picker button.fwdcpavs-picker-option:focus-visible,
    .fwdcpavs .fwdcpavs-category-picker button.fwdcpavs-picker-option[data-keyboard-focus],
    .fwdcpavs .fwdcpavs-picker-viewport:focus-visible .fwdcpavs-picker-option[tabindex='0'],
    .fwdcpavs .fwdcpavs-picker-rail:focus-visible {
        outline: 2px solid var(--picker-focus) !important;
        outline-offset: -3px !important;
    }

    /* Keep a visible keyboard indicator without the theme's button background. */
    .fwdcpavs button.fwdcpavs-category-button[data-keyboard-focus] {
        outline: 2px solid currentColor !important;
        outline-offset: 5px !important;
    }

    .fwdcpavs .fwdcpavs-category-picker button.fwdcpavs-category-button[data-keyboard-focus] {
        outline-color: var(--picker-focus) !important;
        outline-offset: -3px !important;
    }
}

/* Shared animated buttons. */
.fwdcpavs-category-button {
    --fwdcpavs-control-fill: #000;
    --fwdcpavs-control-mark: #fff;
    position: relative;
    flex: none;
    display: block;
    width: 45px;
    height: 45px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #000;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.fwdcpavs-category-close {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 30;
}

.fwdcpavs-category-close,
.fwdcpavs-category-enter {
    animation: fwdcpavs-close-enter 700ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

.fwdcpavs-category-button[data-inverted] {
    --fwdcpavs-control-fill: #fff;
    --fwdcpavs-control-mark: #000;
    color: #fff;
}

.fwdcpavs-category-button[data-blend] {
    mix-blend-mode: difference;
}

.fwdcpavs-category-button:disabled {
    cursor: default;
    filter: opacity(0.28);
}

.fwdcpavs-category-button svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 50%;
    pointer-events: none;
}

.fwdcpavs-category-button:focus {
    outline: none;
}

.fwdcpavs-category-button[data-keyboard-focus] {
    outline: 2px solid currentColor;
    outline-offset: 5px;
}

@keyframes fwdcpavs-close-enter {
    from {
        opacity: 0;
        transform: scale(0.25);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 599.98px) {
    .fwdcpavs-category-close {
        top: 15px;
        bottom: auto;
        right: 15px;
        width: 40px;
        height: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fwdcpavs-category-close,
    .fwdcpavs-category-enter {
        animation: none;
    }
}

/* Category title and image navigation. */
.fwdcpavs-category-title,
.fwdcpavs-category-navigation {
    position: absolute;
    z-index: 30;
    color: #fff;
    pointer-events: none;
    user-select: none;
}

.fwdcpavs-category-title {
    mix-blend-mode: normal;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    top: 37px;
    left: 30px;
    max-width: calc(100% - 135px);
    margin: 0;
    transform-origin: left center;
    padding: 0;
    border: 0;
    background: none;
    text-align: left;
    font:
        600 17px/1.35 Roboto,
        sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fwdcpavs-category-title-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fwdcpavs-category-title-arrow {
    display: block;
    flex: 0 0 auto;
    width: 0.8em;
    height: 0.8em;
    transform: translateY(0) rotate(0deg);
    transform-origin: center;
    transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.fwdcpavs-category-title[aria-expanded='true'] .fwdcpavs-category-title-arrow {
    transform: translateY(-0.12em) rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
    .fwdcpavs-category-title-arrow {
        transition: none;
    }
}

.fwdcpavs-category-title:not([data-image-blend]):enabled {
    pointer-events: auto;
    cursor: pointer;
    touch-action: manipulation;
}

.fwdcpavs-category-title:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 5px;
}

.fwdcpavs-category-title[data-image-blend] {
    pointer-events: none !important;
}

.fwdcpavs-category-navigation {
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 22px;
    mix-blend-mode: difference;
}

.fwdcpavs-category-navigation button {
    pointer-events: auto;
}

.fwdcpavs-category-counter-space {
    display: block;
    width: 70px;
    height: 14.4px;
}

.fwdcpavs-category-counter {
    position: absolute;
    z-index: 30;
    bottom: 40.3px;
    left: calc(50% - 35px);
    color: #fff;
    pointer-events: none;
    user-select: none;
    mix-blend-mode: normal;
    display: block;
    min-width: 70px;
    text-align: center;
    font:
        700 12px/1.2 Roboto,
        sans-serif;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.16em;
    white-space: nowrap;
}

@media (max-width: 599.98px) {
    .fwdcpavs-category-title {
        top: 27px;
        left: 18px;
        max-width: calc(100% - 93px);
        font-size: 13px;
        letter-spacing: 0.1em;
    }

    .fwdcpavs-category-navigation {
        bottom: 18px;
        gap: 16px;
    }

    .fwdcpavs-category-counter {
        bottom: 32.8px;
    }

    .fwdcpavs-category-navigation button {
        width: 44px;
        height: 44px;
    }
}

/* Category navigation arrows. */
.fwdcpavs-category-switcher {
    position: absolute;
    z-index: 30;
    top: 30px;
    right: 83px;
    display: flex;
    align-items: center;
    gap: 8px;
    mix-blend-mode: difference;
}

.fwdcpavs-category-switch-space {
    flex: none;
    width: 90px;
    height: 30px;
    pointer-events: none;
}

.fwdcpavs-category-switcher .fwdcpavs-category-button {
    width: var(--category-control-size, 45px);
    height: var(--category-control-size, 45px);
}

.fwdcpavs-category-switcher .fwdcpavs-category-button:disabled {
    filter: none;
    cursor: default;
}

.fwdcpavs-category-switch-label {
    position: absolute;
    z-index: 30;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    width: 90px;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}

.fwdcpavs-category-switch-label strong {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fwdcpavs-category-switch-label small {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.06em;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 599.98px) {
    .fwdcpavs-category-switcher {
        gap: 6px;
        right: 61px;
    }

    .fwdcpavs-category-switch-space,
    .fwdcpavs-category-switch-label {
        width: 80px;
    }

    .fwdcpavs-category-switch-label strong {
        font-size: 10px;
        letter-spacing: 0.05em;
    }

    .fwdcpavs-category-switch-label small {
        font-size: 11px;
    }
}

/* Center the mobile category row with its label between the two arrows. */
.fwdcpavs-category-switcher[data-centered] {
    gap: 16px;
}

.fwdcpavs-category-switcher[data-centered] .fwdcpavs-category-previous-collection {
    order: -1;
}

.fwdcpavs-category-switch-label[data-centered] {
    text-align: center;
}

/* Category arrow preview. */
.fwdcpavs-category-arrow-preview {
    position: absolute;
    z-index: 35;
    max-width: calc(100% - 40px);
    margin: 0;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.18));
    pointer-events: none;
    user-select: none;
    mix-blend-mode: normal;
    transform-origin: 50% 0;
    /* Keep one compositing layer when the transition ends; avoid a rasterization snap. */
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* Keep the preview's reveal independent of theme figure transitions. */
@layer fwdcpavs-preview {
    .fwdcpavs .fwdcpavs-category-arrow-preview {
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translate3d(0, -12px, 0) scale(0.88) rotate(0deg) !important;
        transition:
            opacity 320ms ease,
            visibility 0s 320ms,
            transform 700ms cubic-bezier(0.19, 1, 0.22, 1),
            left 450ms cubic-bezier(0.19, 1, 0.22, 1),
            clip-path 700ms cubic-bezier(0.19, 1, 0.22, 1) !important;
    }

    .fwdcpavs .fwdcpavs-category-arrow-preview[data-visible] {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translate3d(0, 0, 0) scale(1) rotate(var(--preview-tilt)) !important;
        transition-delay: 0s !important;
    }

    @media (prefers-reduced-motion: reduce) {
        .fwdcpavs .fwdcpavs-category-arrow-preview,
        .fwdcpavs .fwdcpavs-category-arrow-preview[data-visible] {
            transition: none !important;
            transform: none !important;
        }
    }
}

/* The photo and caption share one accordion cutoff silhouette. */
.fwdcpavs-category-preview-frame {
    position: relative;
    aspect-ratio: var(--preview-frame-ratio);
}

.fwdcpavs-category-preview-window {
    position: absolute;
    overflow: hidden;
    background: var(--preview-placeholder);
}

.fwdcpavs-category-preview-media {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(1.08);
    will-change: transform, opacity;
    backface-visibility: hidden;
    transition:
        opacity 250ms ease,
        transform 1000ms cubic-bezier(0.19, 1, 0.22, 1);
}

/* Keep theme image rules from leaving an uncovered band inside the preview frame. */
.fwdcpavs-category-preview-window img,
.fwdcpavs-category-preview-window video {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    object-fit: cover;
}

.fwdcpavs-category-arrow-preview[data-loaded] .fwdcpavs-category-preview-media {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.fwdcpavs-category-preview-video {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 180ms ease;
}

.fwdcpavs-category-arrow-preview[data-video-ready] .fwdcpavs-category-preview-video {
    opacity: 1;
}

.fwdcpavs-category-arrow-preview figcaption {
    position: relative;
    z-index: 2;
    padding: var(--preview-padding-top) calc(var(--preview-padding-x) + var(--preview-cutoff-right, 0px))
        calc(var(--preview-padding-bottom) + var(--preview-cutoff-bottom, 0px))
        calc(var(--preview-padding-x) + var(--preview-cutoff-left, 0px));
    background: var(--preview-paper);
}

.fwdcpavs-category-preview-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    font-size: var(--preview-label-size);
    font-weight: var(--preview-label-weight);
    color: var(--preview-label-color);
    line-height: 1.4;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.fwdcpavs-category-preview-name {
    display: block;
    margin-top: var(--preview-text-gap);
    font-size: var(--preview-title-size);
    color: var(--preview-title-color);
    font-weight: var(--preview-title-weight);
    line-height: 1.35;
    letter-spacing: 0.025em;
    white-space: normal;
    overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: reduce) {
    .fwdcpavs-category-arrow-preview,
    .fwdcpavs-category-preview-media,
    .fwdcpavs-category-preview-video {
        transition: none;
        transform: none;
    }
}

/* Category dropdown. */
.fwdcpavs-category-picker {
    position: absolute;
    z-index: 45;
    box-sizing: border-box;
    contain: layout style;
    color: var(--picker-ink);
    border: 1px solid var(--picker-border);
    border-radius: 8px;
    box-shadow: 0 22px 60px var(--picker-shadow);
    user-select: none;
    touch-action: none;
    font-family: var(--picker-font);
}

.fwdcpavs-category-picker[hidden] {
    display: none;
}

.fwdcpavs-category-picker header {
    height: 56px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 18px;
    background: var(--picker-header);
    border-radius: 7px 7px 0 0;
}

.fwdcpavs-picker-heading {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
    flex-wrap: wrap;
}

.fwdcpavs-picker-heading-counter {
    color: var(--picker-counter);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.fwdcpavs-picker-heading-counter strong {
    color: var(--picker-current-number);
    font-weight: 700;
}

.fwdcpavs-picker-heading-label {
    min-width: 0;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.12em;
}

.fwdcpavs-category-picker button {
    color: inherit;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

.fwdcpavs-category-picker .fwdcpavs-picker-dismiss {
    position: relative;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    padding: 0;
}

.fwdcpavs-category-picker .fwdcpavs-picker-viewport {
    border-top: 0;
    outline: none;
    position: relative;
    overflow: hidden;
    touch-action: none;
    cursor: grab;
}

.fwdcpavs-picker-viewport:focus-visible .fwdcpavs-picker-option[tabindex='0'] {
    outline: 2px solid var(--picker-focus);
    outline-offset: -3px;
}

.fwdcpavs-picker-viewport[data-dragging] {
    cursor: grabbing;
}

.fwdcpavs-picker-option {
    position: absolute;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    touch-action: none;
}

.fwdcpavs-picker-option[aria-disabled='true'] {
    cursor: grab;
}

.fwdcpavs-picker-option:focus-visible {
    outline: 2px solid var(--picker-focus);
    outline-offset: 3px;
}

.fwdcpavs-picker-viewport[data-dragging] .fwdcpavs-picker-option {
    cursor: grabbing;
}

.fwdcpavs-picker-selection {
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 16px;
    border-radius: 3px;
    background: var(--picker-selection);
    pointer-events: none;
    will-change: transform;
}

.fwdcpavs-picker-rail {
    position: absolute;
    right: 7px;
    top: 24px;
    bottom: 24px;
    width: 26px;
    cursor: pointer;
    touch-action: none;
}

.fwdcpavs-picker-rail::before {
    content: '';
    position: absolute;
    left: 10.5px;
    top: 0;
    bottom: 0;
    width: 5px;
    border-radius: 5px;
    background: var(--picker-track);
}

.fwdcpavs-picker-thumb {
    position: absolute;
    left: 10.5px;
    top: 0;
    width: 5px;
    border-radius: 5px;
    background: var(--picker-thumb);
    pointer-events: none;
}

.fwdcpavs-picker-bottom-inset {
    height: 18px;
    background: var(--picker-paper);
    border-radius: 0 0 7px 7px;
}

@media (max-width: 599.98px) {
    .fwdcpavs-picker-bottom-inset {
        height: 14px;
    }
}

.fwdcpavs-category-picker button[data-keyboard-focus],
.fwdcpavs-category-picker button:focus-visible,
.fwdcpavs-picker-rail:focus-visible {
    outline: 2px solid var(--picker-focus);
    outline-offset: -3px;
}

@media (max-height: 500px) {
    .fwdcpavs-category-picker header {
        height: 88px;
    }
}
