.product-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .product-gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

.gallery-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* 50% dark transparent */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    background-color: white;
    padding: 1rem;
    border-radius: 15px;
    /* Rounded corners */
    max-width: 90%;
    max-height: 90vh;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.lightbox-image {
    max-width: 100%;
    max-height: 70vh;
    display: block;
    object-fit: contain;
}

.close-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 30px;
    height: 30px;
    background-color: white;
    border: 2px solid #ff0000;
    border-radius: 50%;
    color: #ff0000;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.close-btn:hover {
    background-color: #ff0000;
    color: white;
}

.lightbox-details {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
}

.lightbox-title {
    font-family: 'Cardo', serif;
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.lightbox-cta {
    display: inline-block;
    background-color: #333;
    color: white;
    padding: 0.5rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.lightbox-cta:hover {
    background-color: #555;
}