
.gall-container {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}
.home-gallery{
  text-decoration: none;
}

.gall-wrapper {
    display: flex;
    animation: scroll 20s linear infinite;
    width: calc(300px * 8);
}

.gall-wrapper:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-300px * 4)); }
}

.gall-card {
    min-width: 300px;
    padding: 10px;
}

.card {
    transition: transform 0.3s ease;
    height: 100%;
    padding: 0px !important;
}

.card:hover {
    transform: scale(1.05);
    cursor: pointer;
}

.card-img-top {
    height: 250px; /* Fixed height for all images */
    object-fit: cover;
}

.gall-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
}

.gall-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gall-modal-content {
    max-width: 800px;
    width: 90%;
    border-radius: 8px;
    position: relative;
    padding: 20px;
    margin: 0 auto;
}

.gall-modal img {
    width: 100%;
    height: 600px;
    object-fit: contain;
}

.gall-modal-text {
    text-align: center;
    padding: 10px;
    background-color: white;
   font-size: 16px;
   font-weight: 600;
   color: black;
    
}

.gall-modal-text h5 {
    margin-bottom: 10px;
}

.gall-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1;
    transition: all 0.3s ease;
}

.gall-nav-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.gall-prev {
    left: -50px;
}

.gall-next {
    right: -50px;
}

.gall-close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #000;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 2;
}

.gall-close:hover {
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .gall-nav-btn {
        width: 30px;
        height: 30px;
    }
    .gall-prev { left: 10px; }
    .gall-next { right: 10px; }
}

