.gpc-news-gallery {
    width: 100%;
    margin: 0 0 28px;
    clear: both;
}

.gpc-news-gallery__stage {
    position: relative;
    width: 100%;
    overflow: hidden;
    border: 1px solid #e4e4e4;
    background: #111;
}

.gpc-news-gallery.is-enhanced .gpc-news-gallery__stage {
    background: #111;
}

.gpc-news-gallery__slide {
    display: block;
    margin: 0 0 14px;
}

.gpc-news-gallery.is-enhanced .gpc-news-gallery__slide {
    display: none;
    margin: 0;
}

.gpc-news-gallery.is-enhanced .gpc-news-gallery__slide.is-active {
    display: block;
}

.gpc-news-gallery__image-link {
    display: block;
    text-decoration: none;
}

.gpc-news-gallery__slide img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 720px;
    object-fit: contain;
    margin: 0 auto;
}

.gpc-news-gallery__caption {
    padding: 10px 12px;
    color: #fff;
    background: rgba(0, 0, 0, 0.86);
    font-size: 14px;
    line-height: 1.45;
}

.gpc-news-gallery__controls {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 12px 0 8px;
}

.gpc-news-gallery.is-enhanced .gpc-news-gallery__controls {
    display: flex;
}

.gpc-news-gallery__button {
    min-width: 40px;
    min-height: 40px;
    border: 1px solid #d0d0d0;
    border-radius: 999px;
    background: #fff;
    color: #222;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.gpc-news-gallery__button:hover,
.gpc-news-gallery__button:focus {
    background: #222;
    border-color: #222;
    color: #fff;
    outline: none;
}

.gpc-news-gallery__counter {
    min-width: 62px;
    padding: 5px 10px;
    border: 1px solid #e2e2e2;
    border-radius: 999px;
    background: #fff;
    color: #222;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.gpc-news-gallery__thumbs {
    display: none;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 2px 4px;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.gpc-news-gallery.is-enhanced .gpc-news-gallery__thumbs {
    display: flex;
}

.gpc-news-gallery__thumbs::-webkit-scrollbar {
    height: 7px;
}

.gpc-news-gallery__thumbs::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.gpc-news-gallery__thumbs::-webkit-scrollbar-thumb {
    background: #bdbdbd;
    border-radius: 999px;
}

.gpc-news-gallery__thumb {
    flex: 0 0 auto;
    width: 76px;
    height: 56px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 3px;
    background: #f7f7f7;
    cursor: pointer;
    opacity: 0.7;
    scroll-snap-align: center;
    transition: opacity 0.16s ease, border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.gpc-news-gallery__thumb:hover,
.gpc-news-gallery__thumb:focus {
    opacity: 0.92;
    outline: none;
}

.gpc-news-gallery__thumb.is-active,
.gpc-news-gallery__thumb[aria-current="true"] {
    border-color: #ff7f00;
    box-shadow: 0 0 0 1px rgba(255, 127, 0, 0.18);
    opacity: 1;
    transform: translateY(-1px);
}

.gpc-news-gallery__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 1px;
    object-fit: cover;
}

@media (max-width: 767px) {
    .gpc-news-gallery {
        margin-bottom: 22px;
    }

    .gpc-news-gallery__controls {
        gap: 12px;
    }

    .gpc-news-gallery__button {
        min-width: 42px;
        min-height: 42px;
        font-size: 24px;
    }

    .gpc-news-gallery__thumb {
        width: 66px;
        height: 50px;
    }

    .gpc-news-gallery__caption {
        font-size: 13px;
    }
}


/*
 * GPC Galería - oculta el contenedor principal vacío de imagen destacada JNews.
 * Aplica solo en posts con galería y solo al bloque destacado principal.
 */
body.single-post.gpc-gallery-hide-featured-single .jeg_singlepage > .jeg_featured.featured_image,
body.single-post.gpc-gallery-hide-featured-single article > .jeg_featured.featured_image,
body.single-post.gpc-gallery-hide-featured-single article .entry-header > .jeg_featured.featured_image {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/*
 * GPC Galería - oculta el contenedor principal vacío de imagen destacada JNews
 * dentro del contenido principal del artículo.
 */
body.single-post.gpc-gallery-hide-featured-single .jeg_main_content .jeg_inner_content > .jeg_featured.featured_image {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

body.single-post.gpc-gallery-hide-featured-single .jeg_main_content .jeg_inner_content > .jeg_featured.featured_image > .thumbnail-container {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}