.gallery {
    width: 90%;
    margin: 0 auto;
    /* display: flex;
    flex-wrap: wrap; */
}

.gallery-item {
    width: calc(33.333% - 20px); /* 3 columns with 20px gutter */
    margin-bottom: 15px; /* This creates space between columns */
    padding: 10px;
    box-sizing: border-box;
    /* overflow: hidden; */
    background: white;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item.pano {
  width: calc(50% - 20px);
}

/* Hover effect for whole card */
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.gallery-item a {
    display: block;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease-in-out;
    transform-origin: center center;
}

/* Zoom on hover */
.gallery-item:hover img {
    transform: scale(1.05);
}

/* Caption */
.gallery-caption {
    padding: 15px;
    background: white;
    min-height: 60px;
}

.gallery-caption h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #2c3e50;
}

.gallery-caption p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
    .gallery-item {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .gallery-item {
        width: 100%;
    }
}

@media (max-width: 1100px) {
  .gallery-item,
  .gallery-item.pano {
    width: 100%;
  }
}