/**
 * Product Gallery (ACF) - base styles.
 *
 * Copied verbatim from the Angie snippet (angie_snippet post 3521) so the
 * cascade is unchanged. Site-specific overrides for these same .pg-* classes
 * live in the child theme style.css and continue to win, exactly as before.
 */

.pg-container_c3a55d49 {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
    align-items: stretch;
}

.pg-main-wrapper {
    position: relative;
    flex: 1;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    padding: 30px;
    min-height: 400px;
}

.pg-main-wrapper img {
    max-width: 100%;
    max-height: 450px;
    object-fit: contain;
}

/* Thumbs vertical slider layout */
.pg-thumbs-slider-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    flex-shrink: 0;
    position: relative;
}

.pg-thumbs-track-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pg-thumbs-track {
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pg-thumb {
    width: 120px;
    border: 1px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
    transition: border-color 0.25s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.pg-thumb:hover {
    transform: translateY(-2px);
    border-color: #ddd;
}

.pg-thumb.active {
    border-color: #e65c00;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.pg-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Navigation Arrows */
.pg-slider-arrow {
    background: transparent;
    border: none;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    padding: 5px 0;
    width: 100%;
    text-align: center;
    transition: color 0.2s;
    user-select: none;
}

.pg-slider-arrow:hover {
    color: #e65c00;
}

.pg-slider-arrow[disabled] {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Horizontal Responsive Fallback */
@media (max-width: 767px) {
    .pg-container_c3a55d49 {
        flex-direction: column;
    }
    .pg-thumbs-slider-wrapper {
        width: 100%;
        flex-direction: row;
    }
    .pg-thumbs-track-container {
        height: auto !important;
        overflow-x: auto;
    }
    .pg-thumbs-track {
        flex-direction: row;
        transform: none !important;
    }
    .pg-thumb {
        width: 80px;
        height: 80px !important;
    }
    .pg-slider-arrow {
        display: none !important;
    }
}
