body {
    overflow-x: hidden;
  }
  
/*STYLES NEWS*/

.titleList {
    color: var(--blue-dark-main);
    font-size: 1.5rem !important;
    font-weight: bold;
}

.article-item {
    display: flex;
    flex-direction: column;
    border: 2px solid #004a8f;
    border-radius: 0;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.article-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.article-item-content {
    padding: 20px 20px 0px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-item h4,
.article-item h3 {
    color: #004a8f;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.25rem !important;
}

.article-item .date {
    font-size: 0.9rem;
    font-weight: bold;
    color: #000;
}

.article-item p {
    flex: 1;
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 20px;
}

.article-item .btn {
    background-color: #004a8f;
    color: #ffffff;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.article-item .btn:hover {
    background-color: #003366;
}


.list{
    margin: 0 auto;
    max-width: 1350px !important;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 2rem 1rem;
}

.list > div{
    position: relative;
}

.article-item .video-img-container:after{
   display: block;
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 20px 0 20px 35px;
    border-color: transparent transparent transparent #fff;
    position: absolute;
    top: calc(50% - 10px);
    left: 50%;
    margin-top: -12px;
    margin-left: -10px;
}

a.video-popup.video-box:hover{
text-decoration: none;
}

a.video-popup.video-box:hover h4,
a.video-popup.video-box:hover .date,
.video-box-thumb.article-item:has(.video-popup.video-box:hover) h4,
.video-box-thumb.article-item:has(.video-popup.video-box:hover) h3,
.video-box-thumb.article-item:has(.video-popup.video-box:hover) .date,
.video-box-thumb.article-item:has(.video-popup.video-box:focus-visible) h3,
.video-box-thumb.article-item:has(.video-popup.video-box:focus-visible) .date {
    text-decoration: underline;
}


.video-img-container{
    max-height: 260px;
    overflow: hidden;
    position: relative;
}

.swiper-slide {
    height: auto !important;
    min-height: 500px;
}

.swiper {
    overflow: visible;
}

.swiper-slide-img{
    overflow: hidden;
    position: absolute;
    width: 100%;
    height: 100%;
}

.swiper-slide-img picture img{
    top: -500px;
    position: absolute;
    object-fit: cover;
}

.swiper-slide-text{
    position: relative;
    top: 0;
    margin: 0 auto;
    color: #ffffff;
    z-index: 3;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.swiper-slide-text > div{
    width: 1350px;
    max-width: 1350px;
    padding: 1rem;
}

.swiper-slide-text > div  p{
    width: 70%;
}

.swiper-slide-text .date,
.swiper-slide-text h2{
    font-weight: 700;
}

.swiper-slide-text .date{
    margin-bottom: 1rem;
}

.swiper-slide{
    background-color: #004a91;
}

.swiper-slide.second-img:before{
    content: '';
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    background: linear-gradient(90deg,rgba(0, 0, 0, .7) 0%,  rgba(255, 255, 255, 0) 100%);
    z-index: 2;
}

.swiper-slide .swiper-slide-img.first-img{
    display: flex;
    align-items: center;
    height: 400px;
    margin: 3.1rem;
    justify-content: flex-end;
	width: unset;
    float: right;
    position: relative;
}

.swiper-slide .swiper-slide-img.first-img picture img{
    height: 400px;
    object-fit: contain;
    width: auto;
    position: relative;
    top: auto;
}

.swiper-button-next,
.swiper-button-prev{
    color: #ffffff !important; 
}

.swiper-slide-text .location-icon {
	background-image: url(https://www.gipuzkoa.eus/o/DGN-gipuzkoa2021-theme/images/izfe/icons/ubicacion-white.svg);
    width: 24px;
    height: 20px;
    background-size: contain;
}

.swiper-slide-text .location-url {
	color: #ffffff !important;
}

#wrapper p{
    min-height: 3rem;
}

.video-box-thumb.article-item {
    position: relative;
    height: 100%;
}
.video-popup.video-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/*video*/
.mfp-content{
    text-align: center !important;
}
.mfp-close-btn-in .mfp-close{
    color: #ffffff !important;
    font-size: 3rem;
    opacity: 1;
    right: 10px;
    top: 0px;
    z-index: 99999;
}

/*paginacion*/
.taglib-page-iterator{
    margin: 0 auto;
    padding: 2rem 0rem;
}

@media(min-width: 576px) {
    .list,
    .swiper-slide-text > div,
    .taglib-page-iterator{
            max-width:540px !important;
        }
}

@media(min-width: 768px) {
    .list,
    .swiper-slide-text > div,
    .taglib-page-iterator{
            max-width:720px !important;
        }
}

@media(min-width: 992px) {
    .list,
    .swiper-slide-text > div,
    .taglib-page-iterator{
            max-width:960px !important;
        }
}

@media(min-width: 1280px) {
    .list,
    .swiper-slide-text > div,
    .taglib-page-iterator{
            max-width:1200px !important;
        }
}

@media(min-width: 1920px) {
    .list,
    .swiper-slide-text > div,
    .taglib-page-iterator{
            max-width:1350px !important;
        }

}

@media (max-width: 1200px){
    .list {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    a.video-popup.video-box:hover:before{
        height: 260px;
    }
    .swiper-slide .swiper-slide-img.first-img picture img{
        height: 300px;
    }
    .swiper-slide.second-img .swiper-slide-img picture img{
        height: 100%;
        top: auto;
        width: 100%;
    }
    .clearfix.lfr-pagination{
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    .swiper-slide-text > div p{
            width: 70%;
        }
    video{
        width: 90%;
    }
}

@media (max-width: 960px){
    .list {
        grid-template-columns: repeat(1, 1fr) !important;
        padding: 1rem;
    }
    .swiper-slide .swiper-slide-img.first-img picture img{
        width: 100%;
    }
    .swiper-slide.second-img .swiper-slide-img picture img{
        height: 100%;
        top: auto;
        width: 100%;
    }
    .swiper-slide-text > div p{
        width: 100%;
    }
}

a.btn.btn-podcast {
    background-color: var(--white);
    color: #004996!important;
    border-color: #004996;
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: bold;
    transition: all ease 0.5s;
}

a.btn.btn-podcast:hover, a.btn.btn-podcast:focus-visible {
    background-color: #004996;
    color: var(--white)!important;
}

.text-description {
	margin-top: 1rem;
}

.text-description p {
    min-height: 0 !important;
}