﻿
/* Carousel Fix for White Space During Transitions */
.carousel-item {
    transition: opacity 0.1s ease-in-out; /* Smooth transition */
    opacity: 0;
    visibility: hidden;
}

.carousel-item.active {
    opacity: 1;
    visibility: visible;
}



/* Optional: Smooth carousel transition */
.carousel-control-prev,
.carousel-control-next {
    transition: all 0.1s ease;
}

body {
    background-color: #f8f9fa;
}

.gallery-item {
    margin-bottom: 30px;
}

    .gallery-item img {
        width: 100%;
        height: 200px;
        border-radius: 8px;
        cursor: pointer;
    }

    .gallery-item .info {
        margin-top: 10px;
        text-align: center;
    }

.gallery-title {
    text-align: center;
    margin-top: 30px;
    font-size: 2.5rem;
    font-weight: 700;
}

.card {
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

    .card:hover {
        transform: translateY(-5px)
    }

.card-img-top {
    height: 200px;
    width: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    opacity: 1;
}

.card:hover .card-img-top {
    transform: scale(1.05);
    opacity: 0.8;
    background-color: black;
}

.card {
    overflow: hidden;
}

.card-img-top:hover {
    border-radius: 9px;
}



.icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover .icon-overlay {
    opacity: 1;
}

.card-body {
    text-align: center;
    position: relative;
}

.card-container {
    position: relative;
    overflow: hidden;
}

.filter-buttons {
    margin-bottom: 20px;
}

    .filter-buttons select {
        margin-right: 10px;
    }

.modal-body .image-info {
    text-align: center;
}

.modal-text {
    font-weight: bold;
    background-color: black;
    opacity: 0.50;
    padding: 4px;
}


.loader {
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid blue;
    border-right: 16px solid green;
    border-bottom: 16px solid red;
    width: 120px;
    height: 120px;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
    position: absolute;
    top: 65%;
    left: 45%;
    transform: translate(-50%, 30%);
}

@@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Basic heading styling */
h2.ani {
    color: #ffffff;
    background-color: #007bff;
    /* Primary color as background */
    padding: 15px;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    width: fit-content;
}

    /* Hover effect */
    h2.ani:hover {
        background-color: #0056b3;
        /* Darker shade for hover */
        color: #e0e0e0;
        transform: scale(1.05);
        /* Slightly scales up on hover */
    }

/* Animation */
@@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2.ani {
    animation: fadeIn 1s ease;
}

.no-images-card {
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    max-width: 400px;
    margin: auto;
    transition: transform 0.3s, box-shadow 0.3s;
}

    .no-images-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }

/* Icon Styling */
.no-images-icon {
    font-size: 50px;
    color: #adb5bd;
    margin-bottom: 20px;
}

/* Title Styling */
.no-images-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 10px;
}

/* Text Styling */
.no-images-text {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.6;
}

/* Button Styling */
.btn-try-again {
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

    .btn-try-again:hover {
        background-color: #0056b3;
    }

/*jdfhjd*/
.carousel-item {
    opacity: 1;
    visibility: visible;
    transition: opacity 0s ease;
}

.carousel-item-next, .carousel-item-prev {
    opacity: 0;
    visibility: hidden;
}

.carousel-item img {
    width: 100%;
    height: auto;
    object-fit: cover; /* Ensures the image covers the container without distorting */
}
/*code new*/
.carousel-inner {
    overflow: hidden;
}
/* zoom-out animation*/

.carousel-item {
    transition: transform 1s ease, opacity 1s ease;
    opacity: 0;
    transform: scale(1.2)
}

    .carousel-item.active {
        opacity: 1;
        transform: scale(1)
    }

    .carousel-item.prev, .carousel-item.next {
        opacity: 0;
        transform: scale(0.8);
        transition: opacity 0.3s ease;
    }


