.gallery {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}

.gallery-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 0 50px;
    overflow: hidden;
    width: 100%;
}

.gallery-group {
    display: flex;
    flex-shrink: 0;
    width: 100%;
    transition: transform 0.5s ease;
}

.gallery-item {
    position: relative;
    width: 350px; 
    margin: 0 10px;
    text-align: center;
    border-radius: 3px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    border-radius: 3px;
}

.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 15px;
    box-sizing: border-box;
    text-align: left;
    font-size: 15px;
    height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 18px;
}
.caption h3{
    font-weight: bold;
    margin: 5px;
}
.caption p{
    font-weight: 400px;
    margin: 5px;
    font-size: 14px;
    
}
.caption span{
    margin: 10px;
    font-size: 16px;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    background-size: cover;
    background-repeat: no-repeat;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
}

.left-btn {
    left: 10px; 
    background-image: url('left-arrow.png');
}

.right-btn {
    right: 10px;
    background-image: url('./img/about/arrow-right.svg'); /* Path to right arrow image */
}

