.pg-8b4f07ca-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pg-8b4f07ca-main-image {
    width: 100%;
    height: 500px; /* Default overridden by Elementor setting */
    overflow: hidden;
    position: relative;
    border-radius: 8px; /* Default */
}

.pg-8b4f07ca-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.pg-8b4f07ca-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
    transition: background 0.3s ease, transform 0.2s ease;
    color: #333;
}

.pg-8b4f07ca-nav-btn svg {
    width: 20px;
    height: 20px;
    fill: #333;
}

.pg-8b4f07ca-nav-btn:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.pg-8b4f07ca-nav-prev {
    left: 15px;
}

.pg-8b4f07ca-nav-next {
    right: 15px;
}

.pg-8b4f07ca-thumbnails {
    display: grid;
    grid-template-columns: repeat(var(--pg-columns, 4), 1fr);
    gap: var(--pg-gap, 10px);
}

.pg-8b4f07ca-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: var(--pg-aspect-ratio, 1 / 1);
    cursor: pointer;
    border-radius: 4px; /* Default */
    opacity: 0.7;
    transition: opacity 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
}

.pg-8b4f07ca-item.active,
.pg-8b4f07ca-item:hover {
    opacity: 1;
}

.pg-8b4f07ca-item.active {
    border-color: #333; /* Visual indicator for active thumbnail */
}

.pg-8b4f07ca-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.pg-8b4f07ca-item:hover img {
    transform: scale(var(--pg-zoom-scale, 1.1));
}

@media (max-width: 1024px) {
    .pg-8b4f07ca-thumbnails {
        grid-template-columns: repeat(var(--pg-columns-tablet, 3), 1fr);
    }
}

@media (max-width: 767px) {
    .pg-8b4f07ca-thumbnails {
        grid-template-columns: repeat(var(--pg-columns-mobile, 2), 1fr);
    }
    .pg-8b4f07ca-main-image {
        height: 300px !important; /* Force smaller on mobile if not set explicitly */
    }
}