/* Infinite Marquee Animation */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 60px 0;
    background: #f8f9fa;
    /* Light background to contrast with images */
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.marquee-item {
    display: inline-block;
    margin: 0 40px;
    vertical-align: middle;
    transition: transform 0.3s ease;

    /* Force a fixed box to crop "black borders" */
    width: 140px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    /* Essential for cropping */
    background: white;
    /* Fallback */
}

.marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* This crops the image to fill the box */
    filter: grayscale(100%);
    /* Start with grayscale for professional look */
    opacity: 0.7;
    transition: all 0.3s ease;

    /* Ensure no native borders */
    border: none !important;
    outline: none !important;

    /* SCALE UP to hide baked-in black bars (letterboxing) in source images */
    transform: scale(1.2);
}

.marquee-item:hover {
    transform: scale(1.1);
    /* Overrides the container scale, but we need to target img */
}

/* Fix hover effect to maintain/increase zoom */
.marquee-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.3);
    /* Zoom a bit more on hover */
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

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

/* Gallery Section Styling */
.gallery-section .gallery-item {
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);

    /* Force Aspect Ratio for Uniformity & Cropping */
    aspect-ratio: 4/3;
    background: #000;
    /* Dark background if image fails */
}

.gallery-section .gallery-item img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Crops baked-in bars */

    border: none !important;
    outline: none !important;
}

.gallery-section .gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-section .gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-section .gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-section .gallery-overlay i {

    /* Specific fix for Conf6 image to show face */
    .marquee-item img.conf6-fix {
        object-position: top center !important;
        transform: scale(1.0) !important;
    }

    .marquee-item:hover img.conf6-fix {
        transform: scale(1.05) !important;
    }