
/*.custom-gallery-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 20px;
}*/
/*
.gallery-item { 
    cursor: pointer; 
    overflow: hidden; 
    box-shadow: 0px 8px 10px 0px rgb(0 0 0 / 19%);
    object-fit: cover;
    aspect-ratio: 122/161;
}
.gallery-item img { 
    width:100%; 
    height:100%; 
    object-fit:cover; 
    transition: transform .25s ease; 
    display:block; 
}*/
.custom-gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px; 
  justify-content: center;
}

.gallery-item {
  flex: 0 0 auto;
  overflow: hidden;
  box-shadow: 0px 8px 10px 0px rgb(0 0 0 / 19%);
  cursor: pointer;
}

.gallery-item img {
  height: 120px; 
  width: auto;
  object-fit: cover;
  display: block;
}

.gallery-item:hover img { 
    transform:scale(1.05); 
}

.custom-lightbox.hidden { 
    display:none; 
}
.custom-lightbox {
  position:fixed; 
  inset:0; 
  z-index:88;
  display:flex; 
  align-items:center; 
  justify-content:center;
  top: 59px;
}

/*.single-works .custom-lightbox{
  top: 160px;
}*/
.lightbox-overlay {
  position:fixed; 
  inset:0; 
  background: rgb(255 255 255 / 100%);
}

.lightbox-content {
  position:relative;
  display:flex; 
  align-items:center;
  max-height:75vh;
  gap:18px;
  z-index:2;
  width: 100%;
    justify-content: space-between;
    padding: 0 20px;
}

.lightbox-main-wrap {
  max-width: calc(100vw - 320px);
  max-height:75vh;
}
.lightbox-main {
  display:block; 
  max-width:100%; 
  max-height:70vh; 
}

.lightbox-side {
  width: 98px;
  height: 129px;
  position: relative;
  object-fit: cover;
  aspect-ratio: 98/129;
  cursor:pointer; 
  position:relative; 
  overflow:hidden; 
  display:flex; 
  align-items:center; 
  justify-content:center;
}
.lightbox-side .thumb-inner {
  width:100%; 
  height:100%; 
  background-size:cover; 
  background-position:center;
  transition: transform .25s ease, opacity .25s ease; 
  opacity:.9;
}
.lightbox-side:hover .thumb-inner { 
    transform:scale(1.03); 
    opacity:1; 
}

.lightbox-counter {
  text-align: center;
  font-family: "InterTight", sans-serif;
  font-size: 13px;
  line-height: 130%;
  letter-spacing: 0.06em;
  font-weight: 200;
  margin-top: 40px;
}
.lightbox-close {
    position: fixed;
    right: 15%;
    top: 0;
    font-family: "NyghtSerif", sans-serif;
    font-size: 18px;
    letter-spacing: 0.03em;
    font-weight: 300;
    font-style: italic;
    color: #0a0a0a;
    background: #ffffff;
    height: 60px;
    width: 70%;
    border: none;
    cursor: pointer;
    z-index: 103;
    opacity: 1;
}

.lightbox-close.hidden{
  display: none;
}

.lightbox-close.transparentBtn{
  opacity: 0;
}

@media screen and (max-width: 1024px){
  .custom-gallery-grid{
      grid-template-columns: repeat(6, 1fr);
  }
}

@media screen and (max-width: 992px){
  .custom-gallery-grid{
      grid-template-columns: repeat(4, 1fr);
      gap: 10px;
  }
}

@media screen and (max-width: 768px){
  .lightbox-main-wrap {
    max-width: calc(100vw - 270px);
  }
  .lightbox-close{
    height: 49px;
  }

  .custom-lightbox{
    top: 50px;
  }

  /*.single-works .custom-lightbox{
    top: 120px;
  }*/
  
}

@media screen and (max-width: 560px){
 .gallery-item img{
    height: 80px;
 }

  .lightbox-content{
    padding: 0;
  }
  .lightbox-main-wrap {
      max-width: calc(100vw - 5%);
  }

  .lightbox-side.prev{
    margin-left: -20px;
  }

  .lightbox-side.next{
    margin-right: -20px;
  }

  .lightbox-side{
    height: 100px;
  }
}
