/*------------------- PRAGATI: 2-Row Infinite Scrolling Gallery -------------------*/
.pa-gallery-section {
    padding: 100px 0;
    background-color: var(--smoke-color);
    /* Light cream */
    overflow: hidden;
    /* Crucial for marquee */
}

.pa-gallery-row-1,
.pa-gallery-row-2 {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    width: max-content;
    /* Ensure container matches width of all children */
}

/* Animations */
.pa-gallery-row-1 {
    animation: scroll-left 50s linear infinite;
}

.pa-gallery-row-2 {
    margin-left: -500px;
    /* Offset second row so they look intentionally staggered */
    animation: scroll-right 45s linear infinite;
}

/* Pause on hover */
.pa-gallery-row-1:hover,
.pa-gallery-row-2:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Scrolls exactly half its width (the duplicated content) */
}

@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.pa-gal-item {
    position: relative;
    height: 280px;
    /* Fixed height, variable width */
    border-radius: 16px;
    overflow: hidden;
    display: block;
    flex-shrink: 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.pa-gal-item img {
    height: 100%;
    width: auto;
    /* Natural aspect ratio without cropping/stretching */
    min-width: 200px;
    /* Fallback */
    object-fit: cover;
    transition: transform 0.8s ease;
    display: block;
}

.pa-gal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(152, 13, 26, 0.85);
    /* Brand Color Overlay */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    /* Let clicks pass through to <a> tag */
}

.pa-gal-overlay i {
    font-size: 32px;
    color: #fff;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pa-gal-overlay>span {
    color: #fff;
    font-family: var(--title-font);
    font-size: 16px;
    margin-top: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: 0.1s;
}

/* Hover States */
.pa-gal-item:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(152, 13, 26, 0.25);
    z-index: 10;
}

.pa-gal-item:hover img {
    transform: scale(1.1);
}

.pa-gal-item:hover .pa-gal-overlay {
    opacity: 1;
}

.pa-gal-item:hover .pa-gal-overlay i,
.pa-gal-item:hover .pa-gal-overlay>span {
    transform: translateY(0);
}

/* Tablets & Mobile Heights */
@media (max-width: 991px) {
    .pa-gal-item {
        height: 220px;
    }
}

@media (max-width: 575px) {
    .pa-gal-item {
        height: 180px;
    }

    .pa-gallery-row-1,
    .pa-gallery-row-2 {
        gap: 10px;
        margin-bottom: 10px;
    }
}