.gallery-item img {
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 14px;
    border-radius: 30px;
    backdrop-filter: blur(8px);
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all .3s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

/* hover */
.gallery-btn:hover {
    background: linear-gradient(135deg, #2979FF, #7C3AED);
    color: #fff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(41, 121, 255, 0.4);
}

/* icon animation */
.gallery-btn:hover::before {
    transform: scale(1.2);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 25px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 18px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}

@media(max-width:900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.gallery-masonry{
  column-count:4;
  column-gap:20px;
}

.gallery-masonry .col-6{
  width:100%;
  display:inline-block;
  margin-bottom:20px;
}

.gallery-item img{
  width:100%;
  height:auto;
  display:block;
  border-radius:10px;
}
@media(max-width:992px){
.gallery-masonry{ column-count:3; }
}

@media(max-width:768px){
.gallery-masonry{ column-count:2; }
}

@media(max-width:480px){
.gallery-masonry{ column-count:1; }
}
#galleryModalImage {
  width: 100%;
  height: 500px;
  object-fit: contain;  
  background: #000;
}