 .modal {
     padding: 0;
     background: #fff;
 }

 .modal-content {
     box-shadow: none;
     border: 0;
     overflow: hidden;
     display: flex;
     flex-direction: column;
     width: 100%;
     height: 100%;
 }

 .modal-dialog {
     width: 100%;
     margin: 0;
     height: 100%;
 }

 .slick-carousel .slick-slide {
     text-align: center;
     background: #fff;
 }

 .slick-carousel img {
     max-width: 100%;
     height: auto;
 }

 .gallery-modal {
     visibility: hidden;
     /* Hidden initially */
     opacity: 0;
     position: fixed;
     z-index: 100;
     bottom: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background-color: #fff;
     transform: translateY(110%);
     transition: all 0.5s ease-in-out;
     /* Smooth transition */
 }

 .gallery-modal.open {
     visibility: visible;
     /* Show gallery when opened */
     opacity: 1;
     top: 0;
     transform: translateY(0%);

     /* Default position */
 }

 .gallery-modal.closed {
     opacity: 0;
     transform: translateY(-100%);
     /* Move gallery to bottom */
 }

 .m-gallery-header {
     position: fixed;
     top: 0;
     padding: 18px 50px;
     width: 100%;
     display: flex;
     justify-content: space-between;
     align-items: center;
     z-index: 1;
     border-bottom: 1px solid #E6E6E6;
 }

 .m-gallery-logo {
     width: 175px;
 }

 .m-gallery-navbar {
     width: calc(100% - 175px);
     display: grid;
     grid-template-columns: repeat(3, 1fr);
 }

 .m-gallery-navbar .c-galleri-title {
     margin-bottom: 0;
 }

 .c-gallery-heading {
     text-transform: capitalize;
 }

 @keyframes slideUp {
     0% {
         transform: translateY(100%);
     }

     100% {
         transform: translateY(0);
     }
 }

 .m-gallery-arrow .slick-prev {
     left: -50px;
     background: var(--gold) !important;
 }

 .m-gallery-arrow .slick-next {
     right: -50px;
     background: var(--gold) !important;
 }

 .full-image-slider img {
     margin: 0 auto;
     height:100%; 
     display: block;
     width: auto;
 }

 .thumbnail-slider .m-gallery-thumb {
     border-right: 1px solid #fff;
     position: relative;
     overflow: hidden;
     height: 130px;
     margin: 0 2.5px;
 }

 /*.thumbnail-slider .m-gallery-thumb::after {
     content: "";
     position: absolute;
     left: 0;
     width: 100%;
     height: 100%;
     background-color: hsl(0deg 0% 83% / 70%);
     top: 0;
 }*/

 .thumbnail-slider .m-gallery-thumb.slick-current.slick-center::after {
     background-color: transparent;
 }

 .thumbnail-slider .m-gallery-thumb>img {
     width: 100%;
     height: 130px;
     cursor: pointer;
     transition: all 0.5s ease-in-out;
     -webkit-transition: all 0.5s ease-in-out;
     -moz-transition: all 0.5s ease-in-out;
 }


 .thumbnail-slider .slick-center img {
     opacity: 1;
 }

 .thumbnail-slider .slick-current img:hover,
 .thumbnail-slider .slick-active img:hover,
 .m-gallery-thumb.slick-slide.slick-active:hover>img {
     opacity: 1;
 }

 .thumbnail-slider .m-gallery-thumb.slick-slide.slick-active:hover::after,
 .thumbnail-slider .m-gallery-thumb.slick-slide.slick-current.slick-active::after {
     opacity: 0;
 }

 .thumbnail-wrapper {
     position: absolute;
     width: 100%;
     transform: translate3d(0, 50%, 0);
     transition: transform .45s cubic-bezier(0.215, 0.61, 0.355, 1);
     height: 135px;
     overflow: hidden;
     left: 0;
     right: 0;
     bottom: 0;
     margin: 0 auto;
     text-align: center;

     /*position: absolute;
            left: 0;
            width: 100%;
            transform: translate3d(0, 50%, 0);
            transition: transform .45s cubic-bezier(0.215, 0.61, 0.355, 1);
          
            height: 135px;*/
 }

 .thumbnail-slider {
     text-align: center;
 }

 .thumbnail-wrapper:hover {
     transform: translate3d(0, 0, 0);
 }

 .slick-prev:before,
 .slick-next:before {
     color: black;
 }

 /*        .slick-track {
            display: flex !important;
            align-items: center;
        }*/

 .full-image-slider .slick-list,
 .full-image-slider .slick-track,
 .full-image-slider .m-gallery-media {
     height: 100%;
 }


 .closeModal,
 .closeGallery {
     position: absolute;
     right: 0;
     background: transparent;
     border: 0;
     top: 0;
     padding: 20px !important;
 }

 .closeModal:hover,
 .closeGallery:hover {
     background: var(--black) !important;
     border: 2px solid var(--black) !important;
 }

 #fullscreenModal .modal-body {
     background: hsl(0deg 0% 0% / 80%);
     padding: 0;
     display: flex;
     align-items: center;
     justify-content: center;
     height: 100vh;
     overflow: hidden;
     padding: 20px 0;
 }

 #fullscreenImage {
     max-width: 100%;
     max-height: 100%;
     transition: transform 0.3s ease;
     /* Smooth zoom transition */
 }

 .zoom-controls {
     position: absolute;
     bottom: 20px;
     right: 20px;
 }

 .zoom-btn {
     background-color: rgba(255, 255, 255, 0.7);
     border: none;
     padding: 10px;
     margin: 5px;
     font-size: 18px;
     cursor: pointer;
 }

 .gallery-inner {
     padding: 150px 100px 50px;
     overflow-y: auto;
     transition: all 0.6s ease;
     -webkit-transition: all 0.6s ease;
     height: 100%;
     display: flex;
     flex-direction: column;
     background: var(--white);
 }

 .m-gallery-list {
     display: flex;
     flex-wrap: wrap;
     gap: 100px;
     align-items: flex-start;
     justify-content: flex-start;
 }

 .m-gallery-list li {
     width: 20%;
 }

 .m-gallery-list li .m-gallery-list-image {
     position: relative;
     overflow: hidden;
     height: 250px;
     padding: 4px;
     background-color: #fff;
     border: 1px solid #f0f0f0;
     border-radius: 5px;
     cursor: pointer;
 }

 .m-gallery-list li .m-gallery-list-image>img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     margin: 0 auto;
     border: 0;
     padding: 0;
     transition: all 0.5s ease-in-out;
     -webkit-transition: all 0.5s ease-in-out;
     -moz-transition: all 0.5s ease-in-out;
 }

 .m-gallery-list li .m-gallery-list-image:hover {
     background: #f0f0f0;
 }

 /* .m-gallery-list li .m-gallery-list-image:hover>img {
     transform: scale(0.90);
 } */

 .thumbnail-slider.m-gallery-arrow .slick-arrow {
     top: 65px;
 }

 /*  *********** | Modal Popup | *********** */
 .modal-header {
     padding: 13px 50px;
     width: 100%;
     display: flex;
     background: var(--white);
     z-index: 1;
     justify-content: space-between;
     border-bottom: 1px solid #E2E2E2;
     height: 80px;
     align-items: center;
 }

 .m-modal-logo {
     width: 175px;
 }

 .m-modal-navbar {
     width: calc(100% - 290px);
     /*display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;*/
     display: flex;
     justify-content: space-between;
     align-items: center;
 }

 .m-modal-navbar .gallery-type {
     margin-bottom: 0;
 }

 .m-modal-navbar .modal-title {
     margin-bottom: 0;
     text-align: left;
 }

 .m-modal-navbar .image-count,
 .m-modal-navbar .modal-title {
     font-size: 16px;
     color: #333333;
     font-weight: 600;
 }


 .m-modal-navbar .button-group .backButton {
     color: var(--primary);
     background: transparent;
     border-color: transparent;
     transition: all 0.5s linear;
     -webkit-transition: all 0.5s linear;
     -moz-transition: all 0.5s linear;
 }

 .m-modal-navbar .button-group .backButton:hover {
     background: var(--orange);
     border-color: var(--orange);
     color: var(--white);
 }

 /*.m-gallery-arrow .slick-next:before, 
.m-gallery-arrow .slick-prev:before{
  content: none;
}
.m-gallery-arrow .slick-next:before{
    content: "\f105 ";
    margin-left: 4px;
}
.m-gallery-arrow .slick-prev:before{
    content: "\f104 ";
}*/

 /*.m-gallery-arrow .slick-arrow{
    width: 35px;
    height: 35px;
    min-height: 35px;
    background: var(--lightgray);
}*/
 #fullscreenModal .modal-content {
     padding-top: 0;
     border-radius: 0;
 }

 #fullscreenModal .modal-header {
     background: transparent;
     padding: 0;
     border: 0;
 }

 #fullscreenModal button.close {
     background: transparent;
 }

 #fullscreenModal button.close>img {
     filter: brightness(0) invert(1);
     margin: 0;
 }

 #fullscreenModal .modal-header .close {
     margin-top: 0;
     opacity: 1;
     position: absolute;
     right: 20px;
     top: 20px;
     background: var(--primary);
     padding: 10px;
 }

 #fullscreenModal .zoom-btn {
     background-color: var(--primary);
     border: none;
     padding: 10px;
     margin: 5px;
     font-size: 18px;
     cursor: pointer;
     display: flex;
     align-items: center;
     justify-content: center;
     width: 44px;
     height: 44px;
 }

 #myModal .modal-body {
     height: 100%;
     padding: 50px 0 0;
     flex: 1;
 }

 #myModal .modal-body .full-image-slider {
     height: calc(100% - 140px);
     position: relative;
     max-width: 1620px;
     margin: 0 auto;

 }

 .m-gallery-img {
     position: absolute;
     top: 0;
     height: 100%;
     width: 1000px;
     margin: 0 auto;
     left: 0;
     right: 0;
 }



 /* #myModal .modal-body .full-image-slider .m-gallery-img{
    max-width: 1100px;
    margin: 0 auto;
    height: 100%;
}*/



 /* ************ || Inner Gallery || *************/
 .inner-gallery-wrapper .heading-44 {
     margin-bottom: 40px;
 }

 /*.gallery-grid , .gallery-grids{
    display: flex;
    flex-wrap: wrap;
    row-gap: 40px;
    margin:0 -20px 50px;
}*/
 /* .gallery-grid .gallery-item,
 .gallery-grids .gallery-item,
 .gallery-grid .gallery-item-vid {
     width: calc(25% - 40px);
     margin: 0 20px;
 } */

 .loading {
     position: absolute;
     top: 0;
     left: 0;
     bottom: 0;
     right: 0;
     margin: auto;
     width: 100%;
     height: 100%;
     display: flex;
     justify-content: center;
     align-items: center;
 }

 #custom-gallery .process_tab_wrap {
     position: absolute;
     top: 0;
     right: 0;
 }

 .gallery-grid .gallery-item,
 .gallery-grid .gallery-item-vid {
     position: relative;
     overflow: hidden;
 }

 /* .gallery-grid .gallery-item:before,
 .gallery-grid .gallery-item-vid:before {
     content: "";
     position: absolute;
     width: 100%;
     height: 100%;
     background-color: hsl(0deg 0% 0% / 30%);
     top: 0;
     left: 0;
     opacity: 0;
     z-index: 1;
     transition: 0.5s linear;
     -webkit-transition: 0.5s linear;
     -o-transition: 0.5s linear;
 } */

 .gallery-grid .gallery-item-vid:after {
     content: "\f04b  ";
     font-family: "FontAwesome";
     left: 0;
     right: 0;
     top: 0;
     bottom: 0;
     margin: auto;
     font-size: 30px;
     color: var(--orange);
     position: absolute;
     width: 55px;
     height: 55px;
     background: var(--white);
     border-radius: 100%;
     display: flex;
     align-items: center;
     z-index: 1;
     justify-content: center;
     transition: 0.5s linear;
     -webkit-transition: 0.5s linear;
     -o-transition: 0.5s linear;
 }

 .gallery-grid .gallery-item:hover:before,
 .gallery-grid .gallery-item-vid:hover:before {
     opacity: 1;
 }

 .gallery-grid .gallery-item>img,
 .gallery-grid .gallery-item-vid img {
     transition: 0.5s linear;
     -webkit-transition: 0.5s linear;
     -o-transition: 0.5s linear;
     width: 100%;
     height: auto;
 }

 /* .gallery-grid .gallery-item:hover > img,
.gallery-grid .gallery-item-vid:hover > img{
    transform: scale(1.05);
} */
 .modal-project-view {
     text-align: right;
     padding-right: 47px;
 }

 .modal-project-view a {
     border: 1px solid var(--secondary);
     background-color: transparent;
     color: var(--secondary);
     padding: 8px 20px;
     font-weight: 600;
     min-height: 44px;
     display: inline-flex;
     align-items: center;
     justify-content: center;

     &:hover {
         background: var(--secondary);
         color: var(--white);
     }
 }

 /* for masonery type gallery*/
 .gallery-grid.masonry-list a img {
     width: 100%;
     /* margin-bottom: 20px; */
 }

 .gallery-grid.masonry-list {
     column-count: 10;
     columns: 300px;
 }


 .gallery-grid.masonry-list a {
     position: relative;
     background: #000 !important;
     display: inline-block;
     margin-bottom: 10px;
 }

 .gallery-grid.masonry-list a:hover img {
     opacity: 0.3;
 }

 .gallery-grid.masonry-list a:before {
     content: '';
     position: absolute;
     background: url('../images/zoom-icon.svg')no-repeat 0 0;
     width: 50px;
     height: 50px;
     top: 50%;
     left: 50%;
     margin: -25px 0 0 -25px;
     opacity: 0;
     z-index: 1
 }

 .gallery-grid.masonry-list a:hover:before {
     opacity: 1;
 }





 @media screen and (min-width: 1921px) {
     .thumbnail-wrapper {
         transform: translate3d(0, 0, 0);
     }

     #myModal .modal-body .full-image-slider {
         height: calc(100% - 188px);
     }

 }

 @media screen and (max-width: 1599.98px) {
     .thumbnail-wrapper {
         padding: 0 15px;
     }

     .modal-project-view a {
         font-size: 14px;
         min-height: 40px;
         letter-spacing: normal;
         min-width: 170px;
         padding: 8px 10px;
     }

     .modal-header {
         padding: 13px 20px;
     }

     .closeModal,
     .closeGallery {
         right: -5px;
     }
 }

 @media screen and (max-width: 1439.98px) {
     .m-gallery-arrow .slick-prev {
         left: 30px;
     }

     .m-gallery-arrow .slick-next {
         right: 30px;
     }
 }

 @media screen and (max-width: 1199.98px) {

     /*.full-image-slider img{height: 100%;}*/
     .thumbnail-wrapper {
         position: relative;
         transform: translate3d(0, 0, 0);
     }

     .thumbnail-slider .m-gallery-thumb {
         margin: 0 3px;
     }

     .m-gallery-img {
         width: 80%;
     }

     #myModal .modal-body .full-image-slider {
         margin: 0 auto 30px;
     }

     .m-modal-logo {
         width: 160px;
     }

     .m-modal-navbar {
         width: calc(100% - 172px);
     }
 }

 @media screen and (max-width: 991.98px) {
     #myModal .modal-body .full-image-slider {
         padding: 40px 100px 0;
     }

     .gallery-modal .modal-body .thumbnail-wrapper {
         height: 135px;
     }

     .full-image-slider img {
         width: 100%;
         height: calc(100% - 10px);
         object-fit: cover;
     }

     #custom-gallery .process_tab_wrap {
         position: relative;
     }

     .gallery-grid,
     .gallery-grids {
         row-gap: 10px;
         margin: 0 -5px 30px;
     }

     /* .gallery-grid .gallery-item,
     .gallery-grids .gallery-item,
     .gallery-grid .gallery-item-vid {
         width: calc(33.33% - 10px);
         margin: 0 5px;
     } */
 }

 @media screen and (max-width: 767.98px) {
     #myModal .modal-body .full-image-slider {
         padding: 40px 15px 0;
     }

     .modal-header {
         padding: 18px 20px;
     }

     .m-modal-logo {
         padding-right: 10px;
     }

     /* .closeModal,
     .closeGallery {
         right: 15px;
         top: 8px;
     } */

     .closeModal,
     .closeGallery {
         right: -35px;
         top: 8px;
     }

     .m-modal-navbar .modal-title {
         font-size: 14px;
         margin-bottom: 0;
     }

     .m-modal-navbar .image-count {
         font-size: 14px;
     }

     #myModal .modal-body {
         padding: 0;
     }

     .m-gallery-img {
         width: 90%;
     }

     #myModal .modal-body .full-image-slider {
         padding: 70px 15px 0;
     }

     .m-modal-navbar {
         grid-template-columns: repeat(1, 1fr);
         width: calc(100% - 150px);
         padding-right: 30px;
         text-align: right;
         justify-content: flex-end;
     }

     .modal-project-view a {
         min-height: auto;
         padding: 0;
         border: 0;
         border-bottom: 1px solid var(--secondary);
         min-width: auto;
     }

     .modal-header {
         padding: 15px 15px 55px;
         position: relative;
         height: auto;
     }

     .m-modal-navbar .modal-title {
         position: absolute;
         bottom: 6px;
         left: 0;
         right: 0;
         width: 100%;
         text-align: center;
     }

     .m-modal-navbar .gallery-type {
         position: absolute;
         bottom: 22px;
         left: 0;
         right: 0;
         text-align: center;
         width: 100%;
         font-size: 20px;
     }

     .modal-project-view {
         padding-right: 0;
     }

     .modal-project-view {
         position: absolute;
         bottom: -42px;
         left: 0;
         right: 0;
         text-align: center;
     }

 }

 @media screen and (max-width: 575.98px) {

     .closeModal,
     .closeGallery {
         top: 8px;
     }

     .m-modal-logo {
         width: 160px;
     }

     .m-gallery-arrow .slick-prev,
     .m-gallery-arrow .slick-next {
         top: calc(58% - 30px) !important;
     }

     /*.m-modal-navbar{
        grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    }
    m-*/

 }