/* gallery.css content */

.gallery {
    padding: 40px 0;
}

.gallery h3 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
    color: #333;
}

.gallery-grid {
    margin-top: 30px;
}

.gallery-item {
    margin-bottom: 30px;
}

.gallery-card {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gallery-link {
    position: relative;
    display: block;
    text-decoration: none;
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-card:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay i {
    color: white;
    font-size: 2em;
}

.gallery-caption {
    padding: 15px;
    text-align: center;
}

.gallery-caption p {
    margin: 0;
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

/* Lightbox Styles */
.jzBox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    z-index: 9999;
}

#jzBoxTargetImg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

#jzBoxBottom {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
}

#jzBoxClose {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2em;
    cursor: pointer;
    transition: color 0.3s ease;
}

#jzBoxClose:hover {
    color: #ccc;
}

.arrow-left, .arrow-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2em;
    cursor: pointer;
    transition: color 0.3s ease;
}

.arrow-left {
    left: 20px;
}

.arrow-right {
    right: 20px;
}

.arrow-left:hover, .arrow-right:hover {
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-item {
        margin-bottom: 20px;
    }
    
    .gallery h3 {
        font-size: 2em;
        margin-bottom: 30px;
    }
    
    .gallery-image {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .gallery-grid .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
