/* Gallery grid layout: up to 3 items per row, similar to .products-grid */
.vallant-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Gallery item styling, similar to .product-item */
.vallant-gallery .gallery-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1;
    position: relative;
}

.vallant-gallery .gallery-item:hover {
    box-shadow: 0 4px 16px rgba(30, 60, 114, 0.18);
    border-color: var(--primary, #89c1ff);
    cursor: pointer;
    transform: scale(1.03);
}

/* Featured image styling, similar to .product-image */
.vallant-gallery .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    background: #f8f8f8;
    transition: transform 0.3s ease;
}

/* Modal styles (unchanged, but included for completeness) */
.gallery-modal {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 9999;
}

.gallery-modal-img-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80vw;
    max-width: 900px;
    height: 70vh;
    max-height: 600px;
    margin-bottom: 24px;
}

.gallery-modal-img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
    display: block;
    margin: 0 auto;
}

.gallery-close {
    position: absolute;
    top: 32px; right: 48px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    z-index: 10;
}

/* Side navigation buttons */
.gallery-prev, .gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    z-index: 5;
    transition: transform 0.2s;
    background: none; /* Remove background color */
}

.gallery-prev {
    left: 0;
}

.gallery-next {
    right: 0;
}

.gallery-prev:hover, .gallery-next:hover {
    transform: translateY(-50%) scale(1.15); /* Only scale up the button */
}

/* Chevron arrow icons using CSS */
.gallery-prev::before, .gallery-next::before {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    border-style: solid;
    border-width: 0 4px 4px 0;
    border-color: #fff; /* Arrow stays white */
    padding: 3px;
}

.gallery-prev::before {
    transform: rotate(135deg);
    margin-left: 8px;
}

.gallery-next::before {
    transform: rotate(-45deg);
    margin-right: 8px;
}

/* Hide default button text */
.gallery-prev, .gallery-next {
    font-size: 0;
}

/* Disabled state for prev/next buttons */
.gallery-prev:disabled,
.gallery-next:disabled {
    opacity: 0.4;
    pointer-events: none;
    transform: translateY(-50%) scale(1); /* Prevent scaling on hover */
    box-shadow: none;
    cursor: default;
    display: none; /* Hide disabled buttons */
}