/* Gallery Container for 3 cards per row */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 cards per row */
    gap: 20px; /* increased spacing between cards */
    margin-top: 20px;
}

/* Gallery Card Styling */
.gallery-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-radius: 12px;
    overflow: hidden;
    border: none;
    background-color: #fff;
    height: 380px; /* Slightly increased card height */
    width: 100%;
    box-sizing: border-box;
}

.gallery-card:hover {
    transform: translateY(-8px) scale(1.05); /* Increased hover effect */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2); /* Stronger shadow on hover */
}

/* Image Wrapper */
.gallery-image-wrapper {
    overflow: hidden;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.gallery-image {
    height: 240px; /* Increased image height for better impact */
    object-fit: cover;
    width: 100%;
    transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-image {
    transform: scale(1.08); /* Slightly larger zoom effect on image */
}

/* Card Title */
.card-title {
    font-size: 1.1rem; /* Slightly bigger font */
    font-weight: 600;
    color: #333;
}

/* Animated Button */
.animated-button {
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: 500;
    background-color: #063e7a;
    color: white;
    border: none;
}

.animated-button:hover {
    background-color: rgb(255, 166, 0);
    color: black;
    transform: scale(1.05);
}

/* Responsive Styling for Smaller Screens */
@media (max-width: 767px) {
    .gallery-image {
        height: 200px; /* Slightly bigger image height for small screens */
    }

    .gallery-container {
        grid-template-columns: repeat(2, 1fr); /* 2 cards per row on smaller screens */
    }

    .gallery-card {
        height: 350px; /* Keep card height reasonable on smaller screens */
    }
}


/* View Gallery */

.gallery-header {
    text-align: center;
}

.gallery-heading {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
}

.gallery-portfolio {
    padding-top: 50px;
}

.gallery-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.gallery-card-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.gallery-card-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.image-wrapper {
    overflow: hidden;
    border-radius: 12px;
}

.gallery-card-image {
    width: 100%;
    height: 230px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-card-item:hover .gallery-card-image {
    transform: scale(1.05);
}

.no-image-placeholder {
    text-align: center;
    padding: 40px;
    color: #aaa;
    font-style: italic;
}

@media (max-width: 768px) {
    .gallery-card-image {
        height: 180px;
    }
}


/* Video CSS */
/* Card Styling */
.custom-gallery-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-radius: 12px;
    overflow: hidden;
    border: none;
    background-color: #fff;
    margin: 10px; /* Add gap between cards */
    max-width: 320px; /* Reduced card width */
    width: 100%;
    box-sizing: border-box;
}

.custom-gallery-card:hover {
    transform: translateY(-12px) scale(1.06); 
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* Image Wrapper */
.custom-gallery-image-wrapper {
    overflow: hidden;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.custom-gallery-image {
    height: 180px; /* Reduced image height */
    object-fit: cover;
    width: 100%;
    transition: transform 0.4s ease;
}

.custom-gallery-card:hover .custom-gallery-image {
    transform: scale(1.1); /* Slight zoom effect on image */
}

/* Content Section (Text and Button) */
.custom-gallery-content {
    padding: 15px; /* Reduced padding */
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Title */
.custom-gallery-title {
    font-size: 1.1rem; /* Adjusted font size */
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-transform: capitalize;
    line-height: 1.4;
    letter-spacing: 0.5px;
}

/* Button Styling */
.custom-gallery-button {
    font-size: 1rem;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 500;
    background-color: #063e7a;
    color: white;
    border: none;
    text-align: center;
    display: inline-block;
    text-decoration: none;
    margin-top: 20px;
    align-self: center;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: scale(1); /* Initial scale */
}

.custom-gallery-button:hover {
    background-color: #f8a72d;
    color: #333;
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Button Icon (Optional: If you add any icons to button) */
.custom-gallery-button .btn-icon {
    margin-right: 8px;
}

/* Responsive Styling */
@media (max-width: 767px) {
    .custom-gallery-image-wrapper {
        height: 160px; /* Reduced image height for mobile */
    }

    .custom-gallery-title {
        font-size: 1rem; /* Adjusted font size for smaller screens */
    }

    .custom-gallery-button {
        font-size: 0.9rem;
        padding: 6px 15px;
    }

    /* Stack cards vertically on small screens */
    .custom-gallery-card {
        margin: 10px auto;
        max-width: 300px; /* Make the cards even smaller */
    }
}


/* view Video Gallery */

/* Hover effect for gallery items */
.awesome-testimonial-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

.awesome-testimonial-item:hover {
    transform: translateY(-10px); /* Moves the card up slightly */
    box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.1); /* Adds shadow */
}

.awesome-testimonial-item iframe,
.awesome-testimonial-item video {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

/* Adding a nice hover effect to video and iframe */

.no-records-message {
    font-size: 1.5rem;
    text-align: center;
    color: #888;
}

/* Ensuring the gallery layout is 2x2 */
.row-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

.row-cols-sm-2 {
    grid-template-columns: repeat(2, 1fr);
}

.row-cols-md-2 {
    grid-template-columns: repeat(2, 1fr);
}

.row-cols-lg-2 {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .row-cols-md-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .row-cols-lg-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.awesome-gallery-item {
    margin-bottom: 30px;
}

.awesome-gallery-item .col {
    padding: 0 10px;
}




/* Fancybox Styles */
.fancybox-content {
    max-width: 80vw;
    max-height: 80vh;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    overflow: hidden;
}