.gf-widget-wrapper-980adb68 {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gf-large-image-container {
    width: 100%;
    /* Default height is now managed by Elementor styling options */
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Transparent background instead of solid color */
    background: transparent;
}

.gf-large-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.gf-large-placeholder {
    width: 100%;
    height: 400px;
    background: rgba(0,0,0,0.05);
}

.gf-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px; /* Default gap, can be overridden by style options */
    margin-bottom: 10px;
}

.gf-filter-btn {
    background-color: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 8px 16px; /* Default padding, overridden by style options */
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #555;
    transition: all 0.3s ease;
    border-radius: 4px; /* Slight rounding for potential background colors */
}

.gf-filter-btn:hover,
.gf-filter-btn.active {
    color: #000;
    border-bottom-color: #000;
}

.gf-thumbnails-grid {
    display: grid;
    /* Columns mapped in PHP via style selectors */
    gap: 15px;
}

.gf-thumb-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px;
    /* Aspect ratio now set by elementor controls */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gf-thumb-item.hidden {
    display: none;
}

.gf-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gf-thumb-item img:hover {
    opacity: 1;
}

.gf-thumb-item img.active {
    opacity: 1;
    transform: scale(1.05);
    border: 2px solid #000;
}