/*
Archive de Proyectos
*/

body .site-content {
    margin-top: 0;
}

/*Navegacionde categorias*/

.bark-list-categories {
    margin: 0;
    list-style: none;
    display: flex;
    gap: 40px;
}

.bark-list-categories__item a {
    position: relative;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 1.08px;
    text-transform: uppercase;
    text-decoration: underline transparent;
    transition: text-decoration-color 0.3s ease, text-shadow 0.3s ease;
}

.bark-list-categories__item.active a,
.bark-list-categories__item:hover a{
    text-decoration-color: inherit;
    text-shadow: 0.5px 0 0 currentColor;
}

.post-type-archive-portfolio-item .grid-container.container.hfeed {
    max-width: 100%;
}

.post-type-archive-portfolio-item .gb-container .gb-loop-item,
.post-type-archive-portfolio-item .gb-container .gb-loop-item .archive-portfolio-overlay {
    transition: all .3s ease-out;
}

.post-type-archive-portfolio-item .gb-container .gb-loop-item .archive-portfolio-overlay {
    opacity: 0;
}

.post-type-archive-portfolio-item .gb-container .gb-loop-item:hover {
    transform: scale(.95);
}

.post-type-archive-portfolio-item .gb-container .gb-loop-item:hover .archive-portfolio-overlay {
    opacity: 1;
}

/*************************************************/
/*   ESTILOS DESKTOP PARA LA GRILLA DE PORTFOLIO
/*************************************************/
@media (min-width: 768px){

    .post-type-archive-portfolio-item .grid-proyectos {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }
    .post-type-archive-portfolio-item .gb-container .gb-loop-item:nth-child(1),
    .post-type-archive-portfolio-item .gb-container .gb-loop-item:nth-child(2),
    .post-type-archive-portfolio-item .gb-container .gb-loop-item:nth-child(8),
    .post-type-archive-portfolio-item .gb-container .gb-loop-item:nth-child(9) {
        grid-column: span 6;
    }

    .post-type-archive-portfolio-item .gb-container .gb-loop-item:nth-child(7) {
        grid-column: span 8;
    }

    .post-type-archive-portfolio-item .gb-container .gb-loop-item {
        grid-column: span 4;
    }
}

@media (max-width: 768px) {
    .post-type-archive-portfolio-item .gb-container .gb-loop-item {
        max-height: 280px;
    }
}

/**
 * Portfolio Categories Carousel Styles (Swiper)
 */

/* Carousel Container */
.bark-categories-carousel {
    position: relative;
    width: 100%;
    margin: 2rem 0;
    padding: 0 3rem;
}

.bark-categories-wrapper {
    /* overflow: hidden; */
}

/* Swiper slide - auto width */
.bark-categories-carousel .swiper-slide {
    width: auto;
}

/* Category Items */
.bark-category-item {
    color: var(--black, #101211);
    font-family: var(--gp-font--wix-madefor-display);
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 1.08px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
}

.bark-category-item:hover {
    text-decoration: underline;
}

.bark-category-item.active {
    color: var(--black, #101211);
    font-family: var(--gp-font--wix-madefor-display);
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 1.08px;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: none;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
}

/* Swiper Navigation Buttons */
body .bark-categories-carousel .swiper-button-prev,
body .bark-categories-carousel .swiper-button-next {
    width: 2rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.bark-categories-carousel .swiper-button-prev:after,
.bark-categories-carousel .swiper-button-next:after {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
}

.bark-categories-carousel .swiper-button-prev.swiper-button-disabled,
.bark-categories-carousel .swiper-button-next.swiper-button-disabled {
    opacity: 0.3;
}

.bark-categories-carousel .swiper-button-prev {
    left: 0;
}

.bark-categories-carousel .swiper-button-next {
    right: 0;
}

/* Responsive Styles */

/* Tablet */
@media (max-width: 1024px) {
    .bark-categories-carousel {
        padding: 0 2.5rem;
    }

}

/* Mobile */
@media (max-width: 768px) {
    .bark-categories-carousel {
        padding: 0 2rem;
        margin: 1.5rem 0;
    }

}

/* Small Mobile */
@media (max-width: 480px) {
    .bark-categories-carousel {
        padding: 0 1.5rem;
    }

}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bark-category-item {
        border: 2px solid currentColor;
    }

    .bark-categories-carousel .swiper-button-prev,
    .bark-categories-carousel .swiper-button-next {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .bark-category-item,
    .bark-categories-carousel .swiper-button-prev,
    .bark-categories-carousel .swiper-button-next {
        transition: none;
    }
}

