/**
 * Gallery.
 *
 * @package fwdsc
 * @since fwdsc 1.0
 */

/* General. */
.fwdsc-upgrade-to-pro-text{
    font-size: 22px !important;
    margin: 55px auto 45px !important;
    text-align: center;
    font-weight: 600;
    line-height: 136%;
}

.fwdsc.no-init{
    display: none !important;
}

#fwdsc_add_item_source,
#fwdsc_edit_item_source{
    pointer-events: none !important;
    opacity: 0.4 !important;
}

.fwdsc-dialog-main a {
    text-transform: uppercase;
    text-decoration: underline;
    font-weight: 800 !important;
    text-decoration: none;
    pointer-events: auto;
    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;
    background-image: linear-gradient(#E01F1C calc(100% - 1px), #E01F1C 1px) !important;
    border-bottom: 1px solid rgba(0, 123, 255, .2);
    color: #E01F1C;
}

.fwdsc-dialog-main a:hover {
    background-size: 100% 1px;
}


.fwdsc-dialog-main .flex{
    width: 100% !important;
   display:flex !important;
    margin: 23px 0 0  0 !important;
}

.fwdsc-dialog-main .flex:last-child{
    margin-bottom: 20px !important;
}

.fwdsc-dialog-main .flex .col1{
    width: 260px !important;
}

.fwdsc-dialog-main .flex .col2{
    width: 100% !important;
}

.fwdsc-dialog-main .thumb-action{
   display:none;
}

.fwdsc-dialog-main #link,
.fwdsc-dialog-main #lightbox{
   display:none;
}

.fwdsc-dialog-main .flex .col2 p{
    width: 100% !important;
    font-family: Roboto !important;
    font-size: 12px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 18px !important;
    margin: 10px 0 0 !important;
    color: #333 !important;
}

.fwdsc-dialog-main .flex input[type=text]{
    width: 100% !important;
}

.fwdsc-dialog-main label{
   display:block !important;
}

#fwdsc_no_galleries,
#fwdsc_no_items{
   display:inline-block;
    margin: 9px 0 42px !important;
}

.fwdsc-dialog-main .col2 .checkbox  + p{
    margin-top: 19px !important;
}


/* Header. */
#fwdsc_galleries_header{
    font-family: Roboto !important;
    font-size: 24px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 38px !important;
    text-transform: capitalize !important;
    margin: 20px 0 10px !important;
    color: #333 !important;
}


/**
 * Gallery.
 */
#fwdsc_galleries_main{
    width: calc(100% - 20px) !important;
}

#fwdsc_galleries{
   display:grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); /* Adjust column width as needed */
    grid-gap: 20px !important;
    align-content: start !important;
    height: 100% !important;
    box-sizing: border-box !important;
    margin: 0 0 40px 0;
}

#fwdsc_galleries.no-galleries{
    margin: 12px 0 0 0 !important;
}

.fwdsc-main-gallery{
    position: relative !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    cursor: grab !important;
    background: #FFF !important;
}

.fwdsc-main-gallery .main-content{
    flex-grow: 1 !important;
    border-radius: 8px !important;
    text-align: center !important;
   display:flex !important;
    flex-direction: column !important;
    padding: 20px !important;
}

.fwdsc-img-holder{
    position: relative !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    width: 100% !important;
    height: 0 !important;
    padding-bottom: 68.25% !important;
}

.fwdsc-gallery-img{
    position: absolute !important;
    width: 100% !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    object-fit: cover !important;
    background: #CCC !important;
}

.fadpap-gallery-info{
    position: relative !important;
    box-sizing: border-box !important;
    margin: 15px 0 0 !important;
}

.fwdsc-gallery-text{
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    width: 100% !important;
   display:inline-block !important;
    box-sizing: border-box !important;
    text-align: left !important;
    font-family: Roboto !important;
    font-size: 20px !important;
    font-style: normal !important;
    font-weight: 500 !important;
    line-height: 30px !important;
    margin: 13px 0 0 !important;
    color: #333 !important;
}

.fwdsc-gallery-items-count{
    font-family: Roboto !important;
    font-size: 14px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 24px !important;
    text-align: left !important;
    margin: 6px 0 0 !important;
    color: #7C7C7C !important;
}

.add-gallery-or-item,
.add-item{
    width: calc(100% - 42px) !important;
    font-family: Roboto !important;
    font-size: 24px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 24px !important;
    text-align: center !important;
    user-select: none !important;
    cursor: pointer !important;
    border-radius: 8px !important;
    border: 1px dashed #B7B7B7 !important;
    padding: 28px 20px !important;
    background: rgba(255, 255, 255, 0.43) !important;
    color: #333 !important;
    transition: all .8s ease-out !important;
}

.add-gallery-or-item svg,
.add-item svg{
    margin: 0 16px 0 !important;
    transform: translateY(5px) !important;
}

.add-gallery-or-item:hover,
.add-item:hover{
    border-color: #169A24 !important;
    background: rgba(255, 255, 255, 1) !important;
}

.fwdsc-small-close-button-holder{
    position: relative !important;
    width: 0 !important;
    height: 0 !important;
    overflow: visible !important;
    z-index: 1 !important;
}

.fwdsc-dialog-remove-image{
    position: absolute !important;
    cursor: pointer !important;
    line-height: 0 !important;
    transform: translate(73px, -2px) !important;
    padding: 5px !important;    
}

.fwdsc-dialog-remove-image path{
    transition: all 0.25s ease-out !important;
}

.fwdsc-dialog-remove-image:hover path:nth-child(2){
    fill: #E01F1C !important;
}

.fwdsc-main-gallery .fwdsc-edit-gallery-items{
   float: left;
   border-color: #E01F1C !important;
   background: #E01F1C !important;
   color: #FFF !important;
}

.fwdsc-main-gallery .fwdsc-edit-gallery-items:hover{
    background: #169A24 !important;
    border-color: #169A24 !important;
}

.fwdsc-edit-gallery{
    margin-right: 24px !important;
}

.fwdsc-edit-gallery, 
.fwdsc-delete-gallery{
   display:inline-block !important;
    cursor: pointer !important;
    float: right !important;
    margin-top: 4px !important;
}

.fwdsc-edit-gallery svg path, 
.fwdsc-delete-gallery svg path{
    transition: all .25s ease-out !important;
}

.fwdsc-edit-gallery:hover svg path, 
.fwdsc-delete-gallery:hover  svg path{
    stroke: #E01F1C !important;
}


/* Add/edit/delete gallery dialog. */
#fwdsc_add_gallery_image_input,
#fwdsc_edit_gallery_image_input{
   display:none !important;
}

#fwdsc_add_gallery_img,
#fwdsc_edit_gallery_img{
    width: 100px !important;
    height: 100px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    margin-bottom: -8px !important;
    background: #e1e1e2 !important;
}

.fwdsc-dialog-main .center{
    text-align: center !important;
}

.fwdsc-item-img{
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    width: 80px !important;
    height: 80px !important;
    border-radius: 100% !important;
    object-fit: cover !important;
    background: #CCC !important;
}


/* Add/edit item */
#fwdsc_add_item_artwork_img,
#fwdsc_edit_item_artwork_img{
    position: relative !important;
    width: 100px !important;
    height: 100px !important;
    border-radius: 8px !important;
    object-fit: cover !important;
    background: #CCC !important;
}

#fwdsc_edit_item_artwork_img{
    margin-bottom: -8px !important;
}

#fwdsc_add_item_artwork_input,
#fwdsc_edit_item_artwork_input{
   display:none !important;
}

.fwdsc-item{
    position: relative;
   display:block !important;
    
    height: 104px !important;
    box-sizing: border-box !important;
    user-select: none !important;
    border-radius: 100px !important;
    cursor: grab !important;
    padding: 33px 28px 0 0 !important;
    margin: 0 0 20px !important;
    background: #FFF !important;
}

.fwdsc-item-overlay{
    position: absolute !important;
    width: 150px !important;
    height: 100% !important;
}

.fwdsc-item-img{
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    width: 80px !important;
    height: 80px !important;
    border-radius: 100% !important;
    object-fit: cover !important;
    background: #CCC !important;
}

.fadpap-item-info{
    position: absolute !important;
    text-align: left !important;
    width: calc(100% - 296px) !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin-left: 97px !important;
    padding: 10px !important;
    box-sizing: border-box !important;
}

.fwdsc-item-text {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
   display:inline-block !important;
    box-sizing: border-box !important;
    text-align: left !important;
    color: #000 !important;
    margin: 0 !important;
    padding: 0 20px 0 0 !important;
}

#fwdsc_items .fwdsc-dialog-button{
    margin: 10px 10px 0 5px !important;
}

#fwdsc_buttons #fwdsc_back_to_galleries_button{
    background: #E01F1C !important;
    border-color: #E01F1C !important;
    color: #FFF !important;
}

#fwdsc_buttons #fwdsc_back_to_galleries_button:hover{
    background: #169A24 !important;
    border-color: #169A24 !important;
    color: #FFF !important;
}

#fwdsc_buttons .fwdsc-dialog-button + .fwdsc-dialog-button {
    margin-left: 6px !important;
}

#fwdsc_add_item_type{
    width: auto !important;
}

.fwdsc-play{
    position: relative !important;
   display:inline-block !important;
    cursor: pointer !important;
    float: right !important;
    width: 56px !important;
    height: 56px !important;
    margin: -11px 28px 0 0 !important;
}

.fwdsc-play.disabled{
    pointer-events: none !important;
    opacity: .6 !important;
}

.fwdsc-play svg{
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
   
}

.fwdsc-play svg path{
    transition: all .25s ease-out !important;
}

.fwdsc-play svg:hover path{
    fill: #333333 !important;
}

.fwdsc-play .fwdsc-pause-button{
   display:none;
}


/* Add from library button. */
.fwdsc-dialog-add-from-library{
    width: 100% !important;
    font-family: Roboto !important;
    text-align: center !important;
    user-select: none !important;
    font-size: 14px !important;
    font-style: normal !important;
    font-weight: 500 !important;
    line-height: 36px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    border: 1px dashed #E01F1C !important;
    color: #E01F1C !important;
    transition: all .25s ease-out !important;
}

.fwdsc-dialog-add-from-library svg{
    margin: 0 7px 0 0 !important;
    transform: translateY(6px) !important;
}

.fwdsc-dialog-add-from-library svg path{
    transition: all .25s ease-out !important;
}

.fwdsc-dialog-add-from-library:hover{
    background: #169A24 !important;
    color: #FFF !important;
}

.fwdsc-dialog-add-from-library:hover svg path{
    stroke: #FFF !important;
}


/* Submit buttons. */
#fwdsc_buttons{
    position: fixed !important;
    border-radius: 8px !important;
    background: #F0F2F4 !important;
    box-shadow: 0px 4px 17px 0px rgba(80, 75, 117, 0.27) !important;
    right: 20px !important;
    bottom: 30px !important;
    padding: 10px !important;
    background: #FFF !important;
}


/* Smaller screens. */
@media screen and (max-width: 782px) {

    #fwdsc_galleries_main{
        width: calc(100% - 10px) !important;
    }

    #fwdsc_buttons{
        right: 10px !important;
    }
}

@media screen and (max-width: 550px) {

    #fwdsc_galleries{
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .fwdsc-dialog-content{
        width: calc(100% - 10px) !important;
        padding: 0 10px 0 20px !important;
    }

    .fwdsc-dialog-main .flex{
       display:block !important;
    }

    .fwdsc-dialog-main .checkbox{
        margin-top: -51px !important;
    }

    .fwdsc-dialog-main .col2 .checkbox + p{
        margin-top: -6px !important;
    }

}
