.higallery-hide {
    display: none;
}

.mfp-close {
    top: 0;
}

@media(max-width: 600px) {
    .higallery-masonry.column-3 .higallery-masonry-item{
        width: 100%;
    }
}
/*Controller page*/
#galleries .higallery-masonry-item{
    padding: 5px;
}
#galleries .higallery-masonry-item > a {
    /* border: 1px solid #ccc; */
    display: block;
    position: relative; 
    overflow: hidden;
    border-radius: 3px;
}
#galleries .higallery-masonry-item img{
    max-width: 100%;
}
#galleries .higallery-masonry-item h4{
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 11px 20px;
    margin: 0;
    text-align: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.8);
    filter: alpha(opacity=90);
    font-family: "Noto Sans", sans-serif;
    transform: translateY(0%);
    -webkit-transition: transform 0.3s;
    -moz-transition: transform 0.3s;
    -ms-transition: transform 0.3s;
    -o-transition: transform 0.3s;
    transition: transform 0.3s;

    display: none;
}
/*End*/

.gallerys-container{
    clear: both;
}
.hig-gallery__block {
    margin-bottom: 30px;
}
.hig-gallery__block .image-content{
    padding: 5px;
    border-radius: 3px;
}
.hig-gallery__block .image-content > a{
    display: block;
    text-decoration: none;
    outline: none;
    position: relative;
    overflow: hidden;
}

.hig-gallery__block .image-content img{
    max-width: 100%;
    height: auto;
}
.higallery-image-container .caption{
    position: absolute;
    left: 0;
    bottom: 0;
    width: calc(100% - 10px);
    padding: 11px 20px;
    color: #fff;
    background: rgba(0, 0, 0, 0.8);
    filter: alpha(opacity=90);
    font-family: "Noto Sans", sans-serif;
    transform: translateY(100%);
    -webkit-transition: transform 0.3s;
    -moz-transition: transform 0.3s;
    -ms-transition: transform 0.3s;
    -o-transition: transform 0.3s;
    transition: transform 0.3s;
    margin-left: 4px;
    z-index: 991;
}
.higallery-image-container .caption span {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.higallery-image-container:hover .caption {
    transform: translateY(0%);
}

/* .higallery-loader,
.hi-gallery-ajax-loader {
    width: 60px;
    height: 60px;
    background: url(../img/loader.gif) no-repeat;
    margin: 0 auto;
}

@media ( -webkit-min-device-pixel-ratio : 1.5) {
   .higallery-loader,
   .hi-gallery-ajax-loader {
        background: url(../img/loader@2x.gif) no-repeat;
        background-size: 60px 60px;
    }
} */

.hig-gallery__block {
    margin: 15px 0;
}
.hig-gallery__block-title{
    margin-bottom: 20px;
}

.higallery-image-container {
    position: relative;
    overflow: hidden;
}
.higallery-image-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 999;
}
.higallery-image-actions i {
    margin: 0 5px;
    color: #fff;
    font-size: 30px;
}
.hi-gallery-link-icon {
    color: #fff;
}
.higallery-image-bg {
    position: absolute;
    margin: 5px;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    z-index: 99;
    transition: opacity 0.3s ease;
    border-radius: 3px;
}
.higallery-image-container:hover .higallery-image-actions,
.higallery-image-container:hover .higallery-image-bg {
    opacity: 1;
}

.hi-gallery-image-skeleton {
    width: 100%;
    padding: 16px;
    border-radius: 4px;
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
  
/* Base styles for skeleton elements */
.hi-gallery-image-skeleton-header,
.hi-gallery-image-skeleton-line {
    background: linear-gradient(90deg, #e0e0e0 25%, #f5f5f5 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}
  
  /* Header skeleton */
  .hi-gallery-image-skeleton-header {
    width: 100%;
    height: 100px;
    border-radius: 8px;
  }
  
  /* Line skeletons */
  .hi-gallery-image-skeleton-line {
    width: 100%;
    height: 16px;
  }
  
  .hi-gallery-image-skeleton-line.short {
    width: 60%;
  }
  
  /* Animation */
  @keyframes shimmer {
    0% {
      background-position: -200% 0;
    }
    100% {
      background-position: 200% 0;
    }
  }

.hi-gallery-img {
    display: none; /* Initially hide the image */
    width: 100%;
    height: auto;
}

.higallery-actions {
    text-align: center;
    margin: 20px 10px;
}

.higallery-dot-pulse-loader {
    position: relative;
    left: -9999px;
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: #9880ff;
    color: #9880ff;
    box-shadow: 9999px 0 0 -5px;
    animation: dot-pulse 1.5s infinite linear;
    animation-delay: 0.25s;

    margin: 0 auto;
  }
.higallery-dot-pulse-loader::before, .higallery-dot-pulse-loader::after {
    content: "";
    display: inline-block;
    position: absolute;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: #9880ff;
    color: #9880ff;
}
.higallery-dot-pulse-loader::before {
    box-shadow: 9984px 0 0 -5px;
    animation: dot-pulse-before 1.5s infinite linear;
    animation-delay: 0s;
}
.higallery-dot-pulse-loader::after {
    box-shadow: 10014px 0 0 -5px;
    animation: dot-pulse-after 1.5s infinite linear;
    animation-delay: 0.5s;
}
  
@keyframes dot-pulse-before {
    0% {
      box-shadow: 9984px 0 0 -5px;
    }
    30% {
      box-shadow: 9984px 0 0 2px;
    }
    60%, 100% {
      box-shadow: 9984px 0 0 -5px;
    }
}
@keyframes dot-pulse {
    0% {
      box-shadow: 9999px 0 0 -5px;
    }
    30% {
      box-shadow: 9999px 0 0 2px;
    }
    60%, 100% {
      box-shadow: 9999px 0 0 -5px;
    }
}
@keyframes dot-pulse-after {
    0% {
      box-shadow: 10014px 0 0 -5px;
    }
    30% {
      box-shadow: 10014px 0 0 2px;
    }
    60%, 100% {
      box-shadow: 10014px 0 0 -5px;
    }
}

.gallery-image-block {
    display: flex;
    flex-wrap: wrap;
}


.higallery-mobile-column-1 .higallery-masonry-item {
    width: 100%;
}
.higallery-mobile-column-2 .higallery-masonry-item {
    width: 50%;
}
.higallery-mobile-column-3 .higallery-masonry-item {
    width: 33%;
}
.higallery-mobile-column-4 .higallery-masonry-item {
    width: 25%;
}
.higallery-mobile-column-5 .higallery-masonry-item {
    width: 20%;
}
.higallery-mobile-column-6 .higallery-masonry-item {
    width: 16.6%;
}

@media (min-width: 576px) {
    .higallery-tablet-column-1 .higallery-masonry-item {
        width: 100%;
    }
    .higallery-tablet-column-2 .higallery-masonry-item {
        width: 50%;
    }
    .higallery-tablet-column-3 .higallery-masonry-item {
        width: 33%;
    }
    .higallery-tablet-column-4 .higallery-masonry-item {
        width: 25%;
    }
    .higallery-tablet-column-5 .higallery-masonry-item {
        width: 20%;
    }
    .higallery-tablet-column-6 .higallery-masonry-item {
        width: 16.6%;
    }
}

@media (min-width: 992px) {
    .higallery-column-1 .higallery-masonry-item {
        width: 100%;
    }
    .higallery-column-2 .higallery-masonry-item {
        width: 50%;
    }
    .higallery-column-3 .higallery-masonry-item {
        width: 33%;
    }
    .higallery-column-4 .higallery-masonry-item {
        width: 25%;
    }
    .higallery-column-5 .higallery-masonry-item {
        width: 20%;
    }
    .higallery-column-6 .higallery-masonry-item {
        width: 16.6%;
    }
}