/* =========================================
   GALLERY GRID & LIGHTBOX (WithHeartandVerve)
========================================= */
.whv-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 22px 0;
}

.whv-gallery-item {
    background: #fafafa;
    border: 1px solid #eceae6;
    padding: 5px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whv-gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #F8AFB8;
}

.whv-gallery-item img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}

.whv-gallery-caption {
    font-family: 'PT Serif', Georgia, serif;
    font-size: 12px;
    color: #666;
    padding: 6px 4px 2px;
    line-height: 1.4;
}

/* Lightbox Popup */
.whv-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
}

.whv-lightbox.open {
    display: flex;
}

.whv-lightbox img {
    max-width: 90vw;
    max-height: 80vh;
    border: 5px solid #ffffff;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

.whv-lightbox-caption {
    color: #ffffff;
    font-family: 'PT Serif', Georgia, serif;
    font-size: 14px;
    margin-top: 12px;
    text-align: center;
}

.whv-lb-close,
.whv-lb-prev,
.whv-lb-next {
    position: fixed;
    background: rgba(54, 171, 138, 0.9);
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-size: 22px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.whv-lb-close:hover,
.whv-lb-prev:hover,
.whv-lb-next:hover {
    background: #F8AFB8;
    color: #222;
}

.whv-lb-close { top: 20px; right: 25px; font-size: 26px; }
.whv-lb-prev  { left: 20px; top: 50%; transform: translateY(-50%); }
.whv-lb-next  { right: 20px; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
    .whv-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .whv-gallery-item img {
        height: 130px;
    }
}
