  html.with-featherlight {
    overflow: initial;
}

.featherlight {
    background: rgba(0,0,0,.8);
}

.featherlight .featherlight-close-icon {
    width: 18px;
    height: 36px;
    overflow: hidden;
    line-height: 1;
    text-align: right;
    text-shadow: none;
    font-size: 1.5rem;
    font-weight: 400;
    color: #fff;
    position: absolute;
    top: -10px;
    right: 25px;
    background: transparent;

    /**/
    opacity: 0;
    transition-duration: 0.3s;
    transition-timing-function: ease-in-out;
    transition-property: opacity;
    transition-delay: 1s;
}

.featherlight:has(.modal-content:not(:empty)) .featherlight-close-icon {
    opacity: 1;
}

/**/
.featherlight:has(.modal--default) .featherlight-inner {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: auto;
    background-color: transparent;
}

.featherlight:has(.modal--default) .modal-dialog,
.featherlight:has(.modal--default) .modal-content,
.featherlight:has(.modal--default) .modal-body {
    width: 100%;
    height: 100%;
    padding: 0;
    background: none;
}

.featherlight .featherlight-content {
    max-height: 90vh;
    height: 100%;
    padding: 25px 25px 0;
}

/* this is (probably) assumed to be an image from the media library */
.featherlight:has(.modal--default) .featherlight-content {
    overflow: hidden;
    background: none;
}

/* linked to asset is a PDF file */
.featherlight:has(.modal--pdf) .featherlight-content {
    width: clamp(350px, 66vw, 90vw);
    height: clamp(500px, 66vh, 90vh);
}

.featherlight:has(.modal--pdf) .featherlight-inner {
    overflow: hidden;
}

/* modal content defined as Modal CPT */
.featherlight:has(.modal--video) {
    padding: 0 20px;
}

.featherlight:has(.modal--video) .featherlight-content {
    max-width: 100%;
    min-width: 350px;
    height: 100%;
    width: auto;
    aspect-ratio: 16/9;
    border-bottom: 0;
    margin: 0;
    background: none;
}

.featherlight:has(.modal--video) .modal-content {
    background: none;
}

.featherlight:has(.modal--video) iframe {
    width: 100%;
    height: 100%;
    aspect-ratio: 16/9;
}