.gallery-attach .gallery-item {
    text-align: center;
    position: relative;
    /*padding:20px;*/
    /*cursor:default;*/
}
/*.gallery-attach .gallery-item{
    min-width:300px;
}*/
.gallery-attach .gallery-caption {
    position:relative;
    z-index:2;
    text-align: center;
}
.ga-settings textarea {height:100px !important; font-size:15px !important;}
.gallery-attach.gallery {
    /*display: flex;
    flex-flow: wrap;*/
    align-items: center;
}
.gallery::before, .gallery::after {
    content: none;
    display: none !important;
}
#gallery_attach_checkbox[type="checkbox"]:checked::before {
    width:100%;
}
.gallery-item a {
    display:inline !important;
}
.gallery-nav {
    margin:0px;
}
.ga-scroll .gallery {
    padding:0px !important;
    margin:0px !important;
    transition: height 0.2s ease;
}
.ga-scroll .gallery-item {
    height:fit-content;

}
#gutter_field {
    max-width:35px;
}
.clr-picker {z-index: 1000002;}
.ga_attachment_used {
    margin:0 auto;
    width:fit-content;
    padding:15px;
    background:#eb9d8b;
    color:white;
    border-radius:5px;
    max-width:500px;
    font-size:16px;
    text-align: center;
    font-weight: bold;

}
.gallery {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -5px;
}

.gallery-item {
    flex: 1 1 auto;
    box-sizing: border-box;
    padding: 5px;
    margin: 0 !important;
}

.gallery-item > img {
    width: 100% !important;
    height: auto;
    display: block;
}
/* Base styling: no shadows */
.ga_thumbnail {
  /* Any base styles you need here */
}

/* Top shadow only */
.ga_shadow-top {
  box-shadow: inset 0 15px 25px -10px rgba(0, 0, 0, 0.4);
}

/* Bottom shadow only */
.ga_shadow-bottom {
  box-shadow: inset 0 -15px 25px -10px rgba(0, 0, 0, 0.4);
}

/* Scrollbar styling (always applied if overflow exists) */
.ga_overflow {
  scrollbar-width: auto; /* Firefox */
  scrollbar-color: #999 #f1f1f1; /* Firefox */
}

/* Chrome/Edge/Safari scrollbar */
.ga_overflow::-webkit-scrollbar {
  width: 8px;
}
.ga_overflow::-webkit-scrollbar-thumb {
  background: #666;
  border-radius: 4px;
}

/*
.vbox-inline iframe body:empty {
    pointer-events: none;
}*/
.attachment-icon {
    max-width:300px;
    text-align:center;
    z-index:21;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
/*Masonry?
.gallery-attach{margin:auto; column-count:4;column-gap:0;}
.gallery-attach img{max-width:100%;height:auto;border:none !important;}
.gallery-attach .gallery-item{margin:0;display:inline-block;width:100%;width:100%;margin-top:0;}*/
body .wp-core-ui .attachment-close {
    z-index:100 !important;
}
.settings-overlay {
    display:none;
    position:fixed;
    z-index:10000;
    height:100%;
    width:100%;
    background-color:rgba(0,0,0,.6);
    top:0px;
    left:0px;
}
.preview-overlay {
    z-index:10002;
    display:none;
    position:fixed;
    height:100%;
    width:100%;
    background-color:rgba(0,0,0,.6);
    top:0px;
    left:0px;
}
.ga-link {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    text-decoration:none !important;
    border:none !important;
}
.external_link_icon {
    display:none;
    margin: 0 auto;
    z-index:10004;
    cursor:pointer;
    pointer-events: none;
    position:relative;
    position: absolute;
    top:31px;
    left: 50%;
    transform: translate(-50%, 0);
    background-color: #fff;
    background-position: -96px 4px;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0,0,0,.3);
    transition: none;
    padding: 2px;
    width: 18px;
    height: 18px;
}
.external_link_icon img {
    width:100%;
    border:0px !important;
}
.gallery-item:hover .external_link_icon {
    display:block;
}
.gallery-item:has(> a) {
    cursor:pointer;
}

.gallery-item:has(> img) {
    cursor:zoom-in;
}
.gallery-item:has(> .no-link) {
    cursor:default;
}
a:has(> .ga-link) {
    position: absolute;
    top: 0;
    left: 0;
    height:100%;
    width:100%;
    text-decoration:none !important;
    display:block;
    color:inherit;
    pointer-events:none;
}

.gallery-attach a:focus {
    outline: none !important;
}
#ga-sidebar-settings-link {
    display:none;
}
#gallery_attach_checkbox{
    width: 30px;
    height: 30px;
}
#ga-checkbox-label span {
    position: relative;
    font-weight: bold !important;
    text-transform: uppercase;
    font-size: 12px;
    color: #646970;
}
/*.gallery-attach .gallery-icon img {width:100%;}*/
.compat-field-ga_add_attachment input{
    display:none !important;
}
#copy_attachment {
    display:inline-block !important;
}
.ga_thumbnail img {
    border:0px;
}

.ga_thumbnail {
    container-type: inline-size;
    /*font-size: 4cqmin;
    font-size: 1.5cqmax;*/
    font-size:20px;
    /*width:calc(100% - 20px);
    height:calc(100% - 20px);*/
    /*width:100%;
    height:100%;*/
    margin:0 auto;
    max-width:100%;
    max-height:400px;
    /*width:100%;*/
    text-decoration:none !important;
    display:block;
    border:solid 5px #000;
    min-height:250px;
    align-content: center;
    line-height:1.5;
    padding:10px;
    /*max-width: 300px;*/
    text-align: center;
    background:#fff;
    position: relative;
    overflow-y: auto;
    pointer-events: auto;
    
    word-wrap: break-word !important;
    overflow-wrap: break-word;
}
.attachments-wrapper .ga_thumbnail {
    padding:0px;
}
.ga_thumbnail .view-full-page {
    display:none;
}
.vbox-title {
    font-size:16px !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word;
    white-space: normal !important;
    padding:30px;
}
.ga_thumbnail_for_link {
    max-width:350px;
    margin:0 auto;
    width:100%;
    pointer-events:none;
}
.ga_thumbnail_for_link img{
    margin:0 auto;
}
.ga_thumbnail_for_link figcaption {
    display:none;
}
figcaption {
    min-height:40px;
    box-sizing: border-box;
    pointer-events: none;
}
.loaded-in-tab{
    font-size:30px;
}
.loading-in-tab{
    font-size:30px;
}
.external-link{
    font-size:30px;
}

.thumbnail .ga_thumbnail {
    min-width:100%;
    min-height:100%;
}

.ga_thumbnail pre,.vbox-inline pre,.ga-custom-page-content pre {
    white-space: pre-wrap !important;
    width:100% !important;
    font-family: inherit !important;
    background: transparent !important;
    padding:0px;
    margin:0px;
    overflow: visible;
}
.vbox-inline img {max-height: unset !important;}
.vbox-inline {
    min-height:500px;
    padding:20px !important;
    max-width: 1000px !important;
    position:relative;
    text-align: left;
    font-size:16px;
}
.vbox-inline:has(> .ga_thumbnail) {
    align-content: center;

}
.vbox-inline:has(> .ga_thumbnail_for_link) {
    align-content: center;

}
.attachment-preview .ga_thumbnail {
    border:0px;
}
.ga-preview:not(.ga-preview-gallery) .gallery-item {
    float:none !important;
    margin:0 auto;
}
.ga-settings-notice {text-align: center;}

/*.ga_custom_html_div {
    display:none;
}*/
.media-sidebar {
    z-index: 200
}
tr.top td {
    border-top: thin solid black;
}

tr.bottom td {
    border-bottom: thin solid black;
}

tr.row td:first-child {
    border-left: thin solid black;
}

tr.row td:last-child {
    border-right: thin solid black;
}
/*.ga-preview-gallery {
    min-width:1000px;
}*/
.ga-preview-popup {
    border:solid 2px #000 !important;
    position:relative;
    background:#fff;
    padding:10px;
    margin:0 auto;
    display:block !important;
    min-height:330px;
    max-width: 100%;
    /*min-width:400px;*/
}
.ga_permalink {
    margin-bottom:10px;
}
.ga-preview-wrapper * {
    box-sizing: border-box;

}
.ga-editor .attachments-wrapper .thumbnail img{
    display:none;
}
.attachments-browser .attachments-wrapper .thumbnail img{
    display:block;
}
.ga-settings-buttons {
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);
    top:7px;

}
.ga-settings-buttons .ga-settings-button{
    margin-left:10px;
    position: static;
    float:left;
    display:block;
}
.ga-preview-single .gallery-item {
    margin:0px;
    max-width: 300px;
    margin: 0 auto !important;
}
.ga-preview-wrapper{
    overflow:auto;

    position: fixed;
    z-index:10003;
    width:100%;
    max-width:1000px;
    height:100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* This centers the div */
}
.ga-preview-popup .ga-preview-close {
    display:block !important;
    top:15px;
    right:15px;
}
.ga-settings {
    max-width:1000px;
    border:solid 2px #000 !important;
    position:relative;
    background:#fff;
    padding:10px;
    width:calc(100% - 40px) !important;
    margin:0 auto;
    background:#d1d2f0;
    font-size:15px !important;


}
.media-modal .ga-settings label {
  font-size: 15px !important;
}
.ga-settings .media-modal label {font-size:15px !important;}
.ga-settings-wrapper .compat-item table {
}
.ga-settings-wrapper{
    overflow:auto;

    position: fixed;
    z-index:10001;

    width:fit-content;
    height:100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* This centers the div */
}
.ga-settings .ga-settings-close {
    display:block !important;
    top:15px;
    right:15px;
}
#tinymce .gallery-icon img {
    margin:0 auto !important;
}
.wp-block-freeform.block-library-rich-text__tinymce .gallery img {
    margin:0 auto !important;
}
.hide_excerpt_link .ga_excerpt_link {
    display:none;
}
.disabled-option {
    opacity: .4;
    pointer-events: none;
}
.compat-field-ga-add_attachment input {
    display:none;
}
#add_blank_button {
    float:left;
}
#add_blank_text {
    float:left;
}
.ga-settings-link {
    position:absolute;
    top:5px;
    left:5px;
}
.ga-copy-link {
    position:absolute;
    top:5px;
    left:65px;
    padding:3px !important;
    width:15.5px !important;
    height:15.5px !important;

}
.ga-duplicate-button {

    position:absolute;
    top:5px;
    left:35px;
    background-color: #fff;
    background-position: -96px 4px;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0,0,0,.3);
    transition: none;
    padding:2px;
    width:18px;
    height:18px;
}
.ga-paste-link {
    position:absolute;
    top:5px;
    left:96px;
    padding:3px !important;
    width:15.5px !important;
    height:15.5px !important;
}
.iframe-loading-wrapper {
    width:100%;
    height:100%;
    position:absolute;
    top:0px;
    left:0px;
    z-index:21;
}
.iframe-loading {
    width:30px;
    position: absolute;
    top: 50%;
    left:50%;

    transform: translate(-50%, -50%);
}
.editor-preview-loading-wrapper {
    background:white;
    width:100%;
    height:100%;
    position:absolute;
    top:0px;
    left:0px;
}

.editor-preview-loading {
    width:30px;
    position: absolute;
    top: 50%;
    left:50%;

    transform: translate(-50%, -50%);
}
.preview-loading-wrapper {
    width:100%;
    height:100%;
    position:absolute;
    top:0px;
    left:0px;
}
.preview-loading {
    width:30px;
    position: absolute;
    top: 50%;
    left:50%;

    transform: translate(-50%, -50%);
}
.ga-preview-button {
    position:absolute;
    bottom: 5px;
    right: 5px;
    background-color: #fff;
    background-position: -96px 4px;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0,0,0,.3);
    transition: none;
    padding:2px;
    width:18px;
    height:18px;
}
.no-link {
    cursor:default;
}
.ga-preview .ga_thumbnail {
    //max-width:300px;
}
.ga-preview-gallery .ga_thumbnail {
    max-width:100%;
}
.ga-preview {
    width:100%;
    max-width: 1000px;
    height:fit-content;
    padding:20px;
    background:#fff;
    display:none;
    background: #d1d2f0;
}
.ga-html-setting-link {
    position:absolute;
    bottom:5px;
    left:65px;
}
.ga-thumbnail-setting-link {
    position:absolute;
    bottom:5px;
    left:96px;
}
.ga-link-setting-link {
    position:absolute;
    bottom:5px;
    left:5px;
}
.ga-attachment-setting-link {
    position:absolute;
    bottom:5px;
    left:35px;
}
.ga-selected-setting {
    background-color:#c8abc2 !important;
}
.ga-preview a:focus {
    box-shadow: none !important;
}
.custom_featherlight .featherlight-content{
    width: 100%;
    max-width:1000px;
    min-height:500px;
}
.custom_featherlight .featherlight-content .featherlight-inner {
    margin: 0 auto;
}
.ga-settings-button {
    background-color: #fff;
    background-position: -96px 4px;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0,0,0,.3);
    transition: none;
    padding:2px;
    width:18px;
    height:18px;
}
.ga-settings-button img {
    width:100%;
}
/*.ga-preview-button {
    background-color: #fff;
    background-position: -96px 4px;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0,0,0,.3);
    transition: none;
    padding:2px;
    width:18px;
    height:18px;
}*/
.ga-preview-button img {
    width:100%;
}
.ga-preview-gallery-button {
    background-color: #fff;
    background-position: -96px 4px;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0,0,0,.3);
    transition: none;
    padding:2px;
    width:18px;
    height:18px;
}
.ga-preview-gallery-button img {
    width:100%;
}
.ga-paste-gallery-button {
    background-color: #fff;
    background-position: -96px 4px;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0,0,0,.3);
    transition: none;
    padding:2px;
    width:18px;
    height:18px;
}
.ga-paste-gallery-button img {
    width:100%;
}
@media(max-width:1400px) {

    .ga-settings-wrapper {
        width:100%;
    }
}
@media(max-width:1000px) {
    .ga-preview-wrapper {
        max-width:100%;
    }
    .ga-preview{
        max-width:100%;
    }

}
@media(max-width:900px) {
    .gallery-attach .gallery-item {
        padding:5px;
    }
    .gallery-attach .gallery-caption {
        font-size:16px;
    }
    .ga_thumbnail {
        min-width: unset;
    }

}
.gallery .gallery-item .non-image-file {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 10px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    text-align: center;
}

.gallery .gallery-item .non-image-file .file-icon {
    font-size: 24px;
    color: #555;
}

.gallery .gallery-item .non-image-file .file-title {
    margin-top: 5px;
    font-size: 14px;
    color: #333;
}
.link_type_area {
    background:#e4e5f6;
}
.ga_settings_area {
    background:#e4e5f6;
    float:left;
    margin-top:10px;
    padding:5px;
}
.ga_settings_area .setting{
    float:left;
}
.link_type_area td {
    padding:15px;
}

@media(max-width:700px) {
    .ga_thumbnail {
        max-width:300px;
    }
   /* .gallery-item {
        width:100%;
    }*/
}
.vbox-inline:has(> .iframe-attachment) {
    height: 100% !important;
    display: flex;
    flex-direction: column;
    min-height: 75vh;
}
.vbox-inline:has(> .iframe-link) {

    height: 100% !important;
    display: flex;
    flex-direction: column;
    min-height:75vh;
}
.ga-custom-page-content:has(> .iframe-link) {

    height: 100% !important;
    display: flex;
    flex-direction: column;
    min-height:75vh;
}
/* Ensure the iframe fills the Venobox slide */
.ga-iframe-container iframe, .ga-iframe-container object {
    z-index:22;
    position:relative;

}
.ga-iframe-container blockquote {display:none;}
.ga-iframe-container iframe,
.wp-embedded-content iframe {
  visibility: visible !important;
  opacity: 1 !important;
  display: block !important;
}
.ga-basic-iframe {
    
    margin-bottom: 20px;
    position:relative !important;
    width:100%;
}
/*.ga-iframe-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; 
}*/

iframe.ga-video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.vbox-overlay iframe {
    flex: 1;
    border: none;
}
.ga-iframe-container {
    position: relative;
    width: 100%;
    /*padding-top: 56.25%; // 16:9 Aspect Ratio (height = 9/16 * width) */
}
iframe {
    position:relative;

}
