.wpfm-gallery-default-view {
    display: grid;
    grid-template-columns: auto auto auto;
    grid-gap: 15px;
    max-width: 100%!important;
}
.wpfm-gallery-default-view img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.wpfm-gallery-default-view img:hover {
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.wpfm-gallery-folder-view {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.wpfm-gallery-folder {
    background-color: #f7f7f7;
    padding: 15px;
    margin: 10px;
    border-radius: 5px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    width: 150px;
}

.wpfm-gallery-folder:hover {
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
}

.wpfm-gallery-folder h3 {
    margin: 0;
    font-size: 18px;
}
.folder-icon {
    width: 64px;
    height: 64px;
    font-size: 64px;
}
.open-folder {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    overflow-y: auto;
    max-width: 100%!important;
}

.open-folder-header {
    display: flex;
    align-items: center;
    padding: 16px;
    background-color: #f0f0f0;
}

.back-button {
    cursor: pointer;
    font-size: 24px;
    margin-right: 16px;
}

.folder-title {
    font-size: 18px;
}
/* ... previous CSS ... */

.images-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    grid-gap: 16px;
    padding: 16px;
}

.image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
/* ... previous CSS ... */

.image:hover {
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.food-manager-remove-uploaded-file {
    font-size: 0;
    height: 20px;
    width: 20px;
    background: var(--wpfm-white-color);
    position: absolute;
    top: 2px;
    right: 2px;
    border-radius: 0 4px;
    border: none;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

.food-manager-remove-uploaded-file::before {
    content: "\ea0f";
    font-family: wp-food-manager;
    font-size: 10px;
    color: red;
    top: 50%;
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.2s;
}

/* .food-manager-uploaded-file-preview img {
    max-height: 100px;
    max-width: 100px;
    border: 2px solid var(--wpfm-gray-border-color);
    border-radius: 6px;
} */

/* .food-manager-uploaded-file-preview {
    display: inline-block;
    position: relative;
} */

/* .food-manager-uploaded-file {
    margin-bottom: 20px;
    display: inline-block;
    padding-right: 20px;
    vertical-align: top;
} */

/* input[type="file"] {
    height: 45px;
    width: 100%;
    margin: 0;
    outline: 0;
    border: 1px solid var(--wpfm-gray-border-color);
    border-radius: 4px;
    font-size: 16px;
    font-weight: 400;
    line-height: 45px;
    padding: 0 15px;
    background-color: var(--wpfm-white-color);
    color: var(--wpfm-dark-color);
    transition: all 0.2s;
} */

table.wpfm-responsive-table-wrapper tbody tr td .wpfm-dboard-gallery-action {
    display: flex;
}
table.wpfm-responsive-table-wrapper tbody tr td .wpfm-dboard-gallery-action .wpfm-dboard-gallery-act-btn {
    display: inline-block;
    margin: 2px;
    height: 30px;
    width: 30px;
    position: relative;
}

.restaurant_gallery .featured-media, .single-restaurant_gallery img.attachment-post-thumbnail.size-post-thumbnail.wp-post-image {
    display: none;
}

table.wpfm-responsive-table-wrapper tbody tr td .wpfm-dboard-food-action .wpfm-dboard-food-act-btn a.gallery-dashboard-action-edit::before {
    content: "\e906";
}

table.wpfm-responsive-table-wrapper tbody tr td .wpfm-dboard-food-action .wpfm-dboard-food-act-btn a.gallery-dashboard-action-delete::before {
    content: "\e9ad";
}


.wpfm-single-gallery-items {
    display: block;
}
.wpfm-single-gallery-item img {
    width: 100%;
    display: block;
}
.wpfm-single-gallery-item a {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    color: var(--wpfm-dark-color);
    display: block;
}
.wpfm-single-gallery-item a:before {
    content: "\ea0a";
    position: absolute;
    top: calc(50% - 20px);
    left: calc(50% - 20px);
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 14px;
    background-color: #fff;
    color: var(--wpfm-dark-color);
    border-radius: 50px;
    text-align: center;
    transition: all 0.3s ease-in-out;
    z-index: 1;
    opacity: 0;
    transform: scale(0);
    font-family: wpfm-restaurant-manager!important;
}
.wpfm-single-gallery-item a:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--wpfm-dark-color);
    opacity: 0;
    transition: all 0.3s ease-in-out;
}
.wpfm-single-gallery-item a:hover:before {
    opacity: 1;
    transform: scale(1);
}
.wpfm-single-gallery-item a:hover:after {
    opacity: .3;
}
.wpfm-form-wrapper .wpfm-form-group .food-manager-uploaded-files {
    display: flex;
    flex-wrap: wrap;
}
.wpfm-form-wrapper .wpfm-form-group .food-manager-uploaded-files .wpfm-single-gallery-item {
    margin-right: 15px;
}
.wpfm-form-wrapper .wpfm-form-group .food-manager-uploaded-files .wpfm-single-gallery-item img {
    width: 100px;
    height: 80px;
    border: 2px solid var(--wpfm-gray-border-color);
    border-radius: 6px;
    object-fit: cover;
}
.wpfm-form-wrapper .wpfm-form-group .food-manager-uploaded-files.food_menu {
    display: flex;
    flex-wrap: wrap;
}

.wpfm-form-wrapper .wpfm-form-group .food-manager-uploaded-files.food_menu > img {
    width: 100px;
    height: 80px;
    border: 2px solid var(--wpfm-gray-border-color);
    border-radius: 6px;
    object-fit: cover;
    margin-right: 15px;
    margin-bottom: 15px;
}

/* .wpfm-form-wrapper .wpfm-form-group .food-manager-uploaded-files .food-manager-uploaded-file .food-manager-uploaded-file-preview.wpfm-gallery-uploaded-file-preview img {
    margin-right: -10px;
    margin-bottom: -10px;
}
.wpfm-form-wrapper .wpfm-form-group .food-manager-uploaded-files .food-manager-uploaded-file .wpfm-gallery-uploaded-file-preview img,
.wpfm-gallery-uploaded-file-preview img{
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 2px solid var(--wpfm-gray-border-color);
    border-radius: 6px;
    margin-right: 10px;
    margin-bottom: 10px;
} */



.wpfm-single-food-gallery-block-wrapper {
    padding: 20px;
}

.gallery-view-options {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.gallery-view-options button {
    padding: 10px 20px;
    margin: 0 5px;
    border: none;
    background-color: #f0f0f0;
    cursor: pointer;
    border-radius: 5px;
}

.gallery-view-options button.active {
    background-color: #0073aa;
    color: #fff;
}


/* Masonry view */
.wpfm-single-gallery-items.masonry {
    columns: 4 200px;
    gap: 30px;
}
.wpfm-single-gallery-items.masonry .wpfm-single-gallery-item {
    margin-bottom: 30px;
}


/* Thumbnail view */
.wpfm-single-gallery-items.thumbnail {
    display: flex;
    flex-wrap: wrap;
    margin: -15px;
}
.wpfm-single-gallery-items.thumbnail .wpfm-single-gallery-item {
    flex: 0 0 calc(25% - 30px);
    max-width: calc(25% - 30px);
    margin: 15px;
}
.wpfm-single-gallery-items.thumbnail .wpfm-single-gallery-item img {
    height: 200px;
    object-fit: cover;
}


/* Carousel view*/
.wpfm-single-gallery-items.carousel .wpfm-single-gallery-item {
    padding: 15px;
}
.wpfm-single-gallery-items.carousel .wpfm-single-gallery-item img {
    height: 200px;
    object-fit: cover;
}
.carousel .slick-prev, .carousel .slick-next {
    width: 36px;
    height: 36px;
    background-color: var(--wpfm-primary-color);
    color: var(--wpfm-white-color);
    border-radius: 4px;
    z-index: 1;
}
.carousel .slick-prev:before, .carousel .slick-next:before {
    font-size: 16px;
}
.carousel .slick-prev {
    left: 0px;
}
.carousel .slick-next {
    right: 0px;
}
.carousel .slick-prev:hover, .carousel .slick-next:hover {
    background-color: var(--wpfm-dark-color);
    color: var(--wpfm-white-color);
}
.carousel .slick-prev:focus, .carousel .slick-next:focus {
    background-color: var(--wpfm-primary-color);
    color: var(--wpfm-white-color);
}


/* Media Query Start */

@media (max-width: 992px){
    .wpfm-single-gallery-items.thumbnail .wpfm-single-gallery-item {
        flex: 0 0 calc(33.33% - 30px);
        max-width: calc(33.33% - 30px);
    } 
}

@media (max-width: 767px){
    .wpfm-gallery-default-view{
        grid-template-columns: auto auto;
    }
    .wpfm-single-gallery-items.thumbnail .wpfm-single-gallery-item {
        flex: 0 0 calc(50% - 30px);
        max-width: calc(50% - 30px);
    }
}

@media (max-width: 575px){
    .wpfm-gallery-default-view{
        grid-template-columns: auto;
    }
    .wpfm-gallery-default-view img{
        height: 200px;
    }
    .wpfm-single-gallery-items.thumbnail .wpfm-single-gallery-item {
        flex: 0 0 calc(100% - 30px);
        max-width: calc(100% - 30px);
    }
}

/* Media Query End */