:root {
    --primary-orange: #e20604;
    --dark-bg: #1f2329;
    --light-text: #ffffff;
    --dark-text: #333333;
    --navbar-height: 100px !important;
    --topbar-height: 40px;
    --brown: #7a1823;
}


/* --- Gallery Section Styling --- */

.gallery-section {
    /* padding: 60px 0; */
    background-color: var(--overall-bg-color);
    /* Use the overall background color */
}

.gallery-section .section-heading {
    margin-bottom: 50px;
    color: var(--heading-color);
}
/* --- Animating Heading Border --- */
.section-heading {
    color: var(--heading-color);
    margin-bottom: 40px;
    font-size: 2.5em;
    font-weight: bold;
    position: relative; /* For positioning the pseudo-elements */
    padding-bottom: 15px; /* Space for the border */
    display: inline-block; /* To make the width fit the content for positioning */
    /* If you want the heading to always be full width for centering, remove inline-block and adjust positioning of ::after */
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%; /* Start from the center */
    transform: translateX(-50%); /* Center the pseudo-element initially */
    width: 0; /* Initial width is 0 */
    height: 3px; /* Border thickness */
    background-color: var(--brown); /* Border color */
    animation: expandBorder 2s ease-in-out infinite alternate; /* Animation properties */
}

@keyframes expandBorder {
    0% {
        width: 0; /* Start with no width */
    }
    100% {
        width: 100%; /* Expand to full width */
    }
}

/* Responsive adjustments for the heading border */
@media (max-width: 768px) {
    .section-heading {
        font-size: 2em;
        margin-bottom: 30px;
        padding-bottom: 10px;
    }
    .section-heading::after {
        height: 2px; /* Thinner border on smaller screens */
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 5px solid var(--primary-color);
    /* Imageku mela border */
    border-radius: 8px;
    /* Optional: rounded corners for the border */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    /* Subtle shadow for the image container */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    /* Slight lift on hover */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    /* Enhanced shadow on hover */
}

.gallery-item img {
    display: block;
    width: 100%;    
    height: 400px;
    /* Fixed height for consistent card size */
    object-fit: cover;
    /* Ensures images cover the area without distortion */
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
    /* Slightly zoom image on hover */
}

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    /* **Hover background color (black with transparency)** */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    /* Initially hidden */
    transition: opacity 0.3s ease;
    border-radius: 3px;
    /* Match border-radius of the image container */
}

.gallery-item:hover .overlay {
    opacity: 1;
    /* Show overlay on hover */
}

.gallery-item .search-icon {
    font-size: 30px;
    /* Size of the search icon */
    color: var(--light-text);
    /* **Search icon color** */
    transition: transform 0.3s ease;
}

.gallery-item:hover .search-icon {
    transform: scale(1.2);
    /* Slightly larger icon on hover */
}

/* Modal Styling */
.modal-content {
    border-radius: 10px;
    background-color: var(--light-text);
}

.modal-header {
    border-bottom: 3px solid var(--brown);
}

.modal-title {
    color: var(--heading-color);
}

.modal-body img {
    max-height: 80vh;
    /* Max height for modal image */
    width: auto;
    object-fit: contain;
}

/* Responsive Adjustments for Gallery */
@media (max-width: 991px) {

    /* Medium devices and down */
    .gallery-item img {
        height: 250px;
        /* Adjust height for tablets */
    }
}

@media (max-width: 767px) {

    /* Small devices and down */
    .gallery-item img {
        height: 220px;
        /* Adjust height for mobile */
    }

    .gallery-item .search-icon {
        font-size: 2.5em;
    }
}

@media (max-width: 575px) {

    /* Extra small devices */
    .gallery-item {
        border-width: 3px;
        /* Thinner border for very small screens */
    }

    .gallery-item img {
        height: 200px;
    }
}