/*
Theme Name: AsapTheme-Child
Theme URI: https://asaptheme.com
Version: 1.0.1
Description: Asap Theme Child
Author: Asap Theme
Author URI: https://asaptheme.com
Template: asap
*/


/* CONTENEDOR */
.pagination-gallery {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    list-style: none;
    margin: 10px 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ITEMS */
.pagination-gallery li {
    display: flex;
}

/* LINKS */
.pagination-gallery a {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #dd0b0b;          
    color: #fff;               
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: all .2s ease;
}

/* HOVER */
.pagination-gallery a:hover {
    background: #111827;
}

/* ACTIVO */
.pagination-gallery a.active {
    background: #111827;
    color: #ffffff;
    pointer-events: none;
}

/* PREV / NEXT */
.pagination-gallery .prev a,
.pagination-gallery .next a {
    font-weight: 600;
    padding: 0 14px;
}

/* DESHABILITADO (cuando no hay link) */
.pagination-gallery .prev:empty,
.pagination-gallery .next:empty {
    display: none;
}

/* SEPARADOR "..." */
.pagination-gallery span {
    display: inline-flex;
    align-items: center;
    padding: 0 6px;
    color: #9ca3af;
    font-size: 18px;
}

/* RESPONSIVE (móvil) */
@media (max-width: 480px) {
    .pagination-gallery a {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .pagination-gallery .prev a,
    .pagination-gallery .next a {
        padding: 0 10px;
    }
}



.back-to-gallery {
    display: flex;
    justify-content: center;
    margin: 24px 0 40px;
}

.back-to-gallery a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    background: #33363b;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: background .2s ease, transform .15s ease;
}

/* Hover */
.back-to-gallery a:hover {
    background: #33363b;
    transform: translateY(-1px);
}

/* Icono */
.back-to-gallery .icon {
    font-size: 16px;
    line-height: 1;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .back-to-gallery a {
        background: #1f2937;
        color: #e5e7eb;
    }

    .back-to-gallery a:hover {
        background: #374151;
    }
}

	
.content-attachment {
    margin-top: .3rem;
}	
p {
    margin: 0 0 10px;
}


.gallery figure img {
    border-radius: 10px;
}

.gallery figure {
    margin: 1%;
}

@media (max-width: 480px) {
    .content-loop {
        padding: 6rem .5rem .5rem !important;
    }
    .article-loop {
        padding: .2rem;
    }
}

@media (max-width: 768px) {
    .gallery.gallery-columns-4 figure, .gallery.gallery-columns-5 figure, .gallery.gallery-columns-6 figure, .gallery.gallery-columns-7 figure, .gallery.gallery-columns-8 figure, .gallery.gallery-columns-9 figure {
        width: 48%;
        margin: .2rem;
        float: none;
    }
}

@media (max-width: 1050px) {
    .article-full, .content-thin, .primary-sidebar {
        padding: 0 .5rem .5rem !important;
    }
	.asap-columns-2, .asap-columns-3, .asap-columns-4, .asap-columns-5 {
        width: 100%;
        flex-basis: 50%;
        max-width: 50%;
    }
}

.content-tags {
    margin: .1rem 0;
}

.gallery {
    width: 100%;
}
.asap-box-design .asap-content-box .the-content {
    padding: .5rem;
}

.article-content {
    position: relative;
}

.article-content .image-count {
    position: absolute;
    top: 8px;   
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 14px;
    padding: 9px 8px;
    border-radius: 10px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 10;
}



.item-update {
    position: absolute;
    display: inline-block;
	background: #e83030;
	padding: .5rem;
	color: #fff;
    top: 0;
    left: 0;
    font-weight: 400;
    z-index: 1;
    font-size: .70rem;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 10%);
    margin-top: 10px;
    line-height: 1.2;
	text-align: center;
}

