/*
Theme Name: iDea - Clean & Powerful Bootstrap Theme
Author: HtmlCoder
Author URI: http://www.htmlcoder.me
Author e-mail: htmlcoder.me@gmail.com
Version: 1.0.0 
Created: August 2014
License URI: http://wrapbootstrap.com
File Description: Place here your custom CSS styles
*/

#galleryCarousel{
    opacity: 1 !important;
    height: 380px;
    overflow-x: hidden;
}

.img-gallery {
    height: 200px !important;
    width: 100%;
}

/* ===== Custom Gallery CSS ===== */

#galleryCarousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    width: 100%;
}

.image-box {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.image-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.image-box .overlay-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.image-box .overlay-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.image-box:hover .overlay-container img {
    transform: scale(1.05);
    filter: brightness(0.8);
}

.image-box .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-box:hover .overlay {
    opacity: 1;
}

.image-box .overlay-links {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

.image-box .overlay-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #e84c3d;
    color: #fff;
    border-radius: 50%;
    font-size: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
    position: static !important;
    margin: 0 !important;
}

.image-box .overlay-links a:hover {
    background-color: #fff;
    color: #e84c3d;
    transform: scale(1.1);
}

.image-box .overlay-links a i {
    line-height: 1;
    margin: 0 !important;
}

.image-box-body {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.image-box-body .title {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.image-box-body .title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.image-box-body .title a:hover {
    color: #e84c3d;
}

.image-box-body p {
    margin: 0;
    font-size: 13px;
    color: #999;
}

/* Loading and Error States */
.gallery-loading {
    text-align: center;
    padding: 40px 20px;
    color: #fff;
    font-size: 16px;
}

.gallery-error {
    text-align: center;
    padding: 40px 20px;
    color: #ff6b6b;
    font-size: 16px;
    background-color: rgba(255, 107, 107, 0.1);
    border-radius: 8px;
    margin: 20px;
}

.gallery-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    #galleryCarousel {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
        padding: 10px;
    }
    
    .image-box .overlay-container {
        height: 180px;
    }
    
    .image-box-body {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    #galleryCarousel {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }
    
    .image-box .overlay-container {
        height: 200px;
    }
}