/* Widget Container */
.pg-b7fcecbb-container {
    padding: 20px;
    /* background-color removed to allow Elementor control to work */
}

/* Grid Layout */
.pg-b7fcecbb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 30px;
    row-gap: 50px;
}

.pg-b7fcecbb-item {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    outline: none;
}

.pg-b7fcecbb-item:focus-visible .pg-b7fcecbb-img-wrap {
    box-shadow: 0 0 0 3px #172218;
}

.pg-b7fcecbb-hidden {
    display: none !important;
}

/* Image Wrapper (16:9 Aspect Ratio) */
.pg-b7fcecbb-img-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 15px;
    background-color: #eee; /* Placeholder bg */
}

.pg-b7fcecbb-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.pg-b7fcecbb-item:hover .pg-b7fcecbb-img,
.pg-b7fcecbb-item:focus-visible .pg-b7fcecbb-img {
    transform: scale(1.05);
}

/* Caption */
.pg-b7fcecbb-caption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #172218;
    font-size: 18px;
    font-weight: 500;
}

.pg-b7fcecbb-title {
    flex-grow: 1;
    padding-right: 15px;
}

/* Footer (Button & Link) */
.pg-b7fcecbb-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    flex-wrap: wrap;
    gap: 30px;
}

/* Button */
.pg-b7fcecbb-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background-color: #F5F0E5;
    color: #172218;
    border: none;
    border-radius: 34px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.pg-b7fcecbb-btn:hover {
    background-color: #e8e0ce;
}

/* Link */
.pg-b7fcecbb-link {
    color: #172218;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid #172218;
    padding-bottom: 2px;
    transition: opacity 0.3s ease;
}

.pg-b7fcecbb-link:hover {
    opacity: 0.8;
}

/* Lightbox Styles */
.pg-b7fcecbb-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 15, 10, 0.95);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pg-b7fcecbb-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.pg-b7fcecbb-lb-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 10px;
    z-index: 10;
}

.pg-b7fcecbb-lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 20px;
    z-index: 10;
}

.pg-b7fcecbb-lb-prev { left: 20px; }
.pg-b7fcecbb-lb-next { right: 20px; }

.pg-b7fcecbb-lb-content {
    position: relative;
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pg-b7fcecbb-lb-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    user-select: none;
}

.pg-b7fcecbb-lb-title {
    color: #fff;
    margin-top: 15px;
    font-size: 18px;
    text-align: center;
}

/* Responsive */
@media screen and (max-width: 767px) {
    .pg-b7fcecbb-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    .pg-b7fcecbb-lb-nav {
        padding: 10px;
    }
    .pg-b7fcecbb-lb-prev { left: 5px; }
    .pg-b7fcecbb-lb-next { right: 5px; }
}
