/* Web Builder Component: our_village_page / design-smartsakhi */
.wb-our_village-page {
    padding: 80px 0;
    background: linear-gradient(180deg, #ffffff, #f9fafb);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow: hidden;
}

/* Container */
.wb-our_village-page .ss-container {
    max-width: 1365px;
    margin: auto;
    padding: 0 20px;
}

/* Heading Section */
.wb-our_village-page .ss-section-header {
    margin-bottom: 50px;
    text-align: center;
}

.wb-our_village-page .ss-heading {
    font-family: 'Marcellus', serif;
    font-size: 2.6rem;
    font-weight: 400;
    margin-bottom: 12px;
    color: #3f5740;
    letter-spacing: 0.5px;
}

.wb-our_village-page .ss-divider {
    height: 3px;
    width: 70px;
    background: linear-gradient(90deg, #e6b325, #f4d03f);
    margin: 12px auto 18px;
    border-radius: 5px;
}

.wb-our_village-page .ss-subtext {
    color: #6b7280;
    font-size: 1.1rem;
}

/* Row & Columns */
.wb-our_village-page .ss-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 80px;
}

.wb-our_village-page .ss-col-12 {
    width: 100%;
}

@media (min-width: 768px) {
    .wb-our_village-page .ss-col-md-6 {
        width: 50%;
        padding: 0 20px;
    }
}

.wb-our_village-page .ss-story-content p {
    color: #4a4a4a;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.wb-our_village-page .ss-story-image img {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: transform 0.5s ease;
}

/* Gallery Masonry Grid */
.wb-our_village-page .os-grid {
    column-count: 4;
    column-gap: 20px;
    margin-top: 40px;
}

.wb-our_village-page .os-card {
    position: relative;
    margin-bottom: 20px;
    break-inside: avoid;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.wb-our_village-page .os-card img,
.wb-our_village-page .os-card video {
    width: 100%;
    display: block;
    height: auto;
    border-radius: 16px;
    transition: transform 0.6s ease;
}

.wb-our_village-page .os-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.wb-our_village-page .os-card:hover img,
.wb-our_village-page .os-card:hover video {
    transform: scale(1.08);
}

/* Video Play Icon */
.wb-our_village-page .video-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.wb-our_village-page .video-indicator i {
    color: #3f5740;
    font-size: 1rem;
    margin-left: 3px;
}

.wb-our_village-page .os-card:hover .video-indicator {
    background: #ffffff;
    transform: translate(-50%, -50%) scale(1.15);
}

/* Popup / Lightbox */
.wb-our_village-page .os-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    backdrop-filter: blur(10px);
    padding: 20px;
}

.wb-our_village-page .popup-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    animation: osZoomIn 0.3s ease-out;
}

@keyframes osZoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.wb-our_village-page .popup-content img,
.wb-our_village-page .popup-content video {
    width: 100%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    display: block;
}

.wb-our_village-page .close-btn {
    position: absolute;
    top: -25px;
    right: -25px;
    z-index: 1001;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s ease;
}

.wb-our_village-page .close-btn i {
    color: #ff4d4d;
    font-size: 45px;
    background: #fff;
    border-radius: 50%;
    display: block;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.wb-our_village-page .close-btn:hover {
    transform: scale(1.1) rotate(90deg);
}

/* Responsive */
@media (max-width: 1024px) {
    .wb-our_village-page .os-grid { column-count: 3; }
}

@media (max-width: 768px) {
    .wb-our_village-page .os-grid { column-count: 2; }
    .wb-our_village-page .ss-heading { font-size: 2.2rem; }
    
    .wb-our_village-page .close-btn {
        top: -45px;
        right: 0;
    }
    .wb-our_village-page .close-btn i {
        font-size: 38px;
    }
}

@media (max-width: 480px) {
    .wb-our_village-page .os-grid { column-count: 1; }
    .wb-our_village-page .ss-container { padding: 0 15px; }
}
