.gall-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.gall-thumbnail {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    width: calc(33.33% - 1rem); /* Desktop */
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.gall-thumbnail:hover {
    transform: scale(1.05);
}

.gall-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gall-caption {
    width: 100%;
    padding: 10px;
    color: white;
    font-weight: bold;
    font-size: 1.5em;
    background: rgba(0, 0, 0, 0.3);
    text-align: center;
    position: absolute;
    padding: 5px;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
}

@media (max-width: 768px) {
    .gall-thumbnail {
        width: calc(50% - 1rem); /* Tablet */
    }
}

@media (max-width: 480px) {
    .gall-thumbnail {
        width: 100%; /* Mobile */
    }
}
