* { box-sizing: border-box; }


/* ---- isotope ---- */

/* ---- button-group ---- */

.button-group {
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
    padding: 0;
    max-width: 1440px;
    gap: 15px;
/*     justify-content: center; */
    margin: 50px 0;
}

/* AGENDA */
.button-group.filters-agenda .button {
    color: #fff;
    width: 90px;
    height: 90px;
    transition: all 0.2s;
    padding: 5px 10px;
    font-family: "Helvetica Neue LT Std";
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    border: 3px solid #fff;
    position: relative;
}

.button-group.filters-agenda .button span:not(.counter) {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    height: 51px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 15px;
    font-size: 12px;
}

.button-group.filters-agenda .button span.counter {
    background-color: var(--accent);
    position: absolute;
    right: 0;
    top: 0;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(30%, -30%);
    box-shadow: 0 0 1px 1px var(--accent);
}

.button-group.filters-agenda .button[data-filter="*"] {
    background-color: #555;
}

.button-group.filters-agenda .button[data-filter=".esdeveniments_waterpolo_femeni"] {
    background-color: #00a9dc;
}

.button-group.filters-agenda .button[data-filter=".esdeveniments_futsal"] {
    background-color: #ff201b;
}

.button-group.filters-agenda .button[data-filter=".esdeveniments_natacio"] {
    background-color: #ff8800;
}

.button-group.filters-agenda .button[data-filter=".esdeveniments_karate"] {
    background-color: #272727;
}

.button-group.filters-agenda .button[data-filter=".esdeveniments_waterpolo_masculi"] {
    background-color: #0078d3;
}

.button-group.filters-agenda .button[data-filter=".esdeveniments_triatlo"] {
    background-color: #00b6a1;
}

.button-group.filters-agenda .button[data-filter=".esdeveniments_esquaix"] {
    background-color: #ffc000;
}

.button-group.filters-agenda .button[data-filter=".esdeveniments_atletisme"] {
    background-color: #ff72db;
}

.button-group.filters-agenda .button[data-filter=".esdeveniments_aletes"] {
    background-color: #009a2a;
}

.button-group.filters-agenda .button[data-filter=".esdeveniments_artistica"] {
    background-color: #b162cb;
}


/* ---- button AGENDA ---- */

.filters-agenda .button:hover {
    /* background-color: var(--accent) !important; */
    opacity: 0.6;
    /* box-shadow: 0 0 6px 0px var(--accent);
}

.button:active,
.button.is-checked {
    /* background-color: var(--accent) !important;  */
    box-shadow: 0 0 1px 2px var(--accent);
}

.filters-agenda .button.is-checked {
    color: white;
}


/*.button-group .button:first-child { border-radius: 0.5em 0 0 0.5em; }*/
/*.button-group .button:last-child { border-radius: 0 0.5em 0.5em 0; }*/


/* ---- .element-item AGENDA ---- */

.element-item.item-agenda {
    position: relative;
    float: left;
    width: 100%;
    /* height: 100px; */
    /* width: 32%; */
    /* min-width: 300px; */
    /* height: 300px; */
	min-height: 200px;
    margin-right: 1%;
    margin-bottom: 20px;
    padding: 0px;
    /* background: #888; */
    border: 1px solid #dfdfdf;
    border-radius: 10px;
    background: #fbfbfb;
}

/* BLOG GRID */
.grid.grid-blog {
	display: flex;
	flex-wrap: wrap;
	margin: -10px; /* para compensar el padding interno de los items */
}


/* BLOG Buttons */
.button-group.filters-blog .button {
    background-color: #fff;
    color: var(--accent);
    transition: all 0.2s;
    padding: 8px 18px;
    border: 1px solid var(--accent);
    border-radius: 35px;
    position: relative;
}

.filters-blog .button:hover {
    background-color: var(--accent) !important;
	color: #fff;
}

.filters-blog .button:active,
.filters-blog .button.is-checked {
    background-color: var(--accent) !important; 
	color: #fff;
/*     box-shadow: 0 0 1px 2px var(--accent); */
}

.filters-blog .filters-agenda .button.is-checked {
    color: white;
}


/* ---- .element-item BLOG ---- */

.element-item.item-blog {
	width: calc(25.000% - 20px);
	min-width: 300px;
	box-sizing: border-box;
	margin: 10px;
	transition: all 0.2s;
}

a.leer-mas {
    display: none;
}

.element-item.item-blog img {
    margin-bottom: 15px;
    aspect-ratio: 4 / 4;
    object-fit: cover;
}

.element-item.item-blog .entry-date {
    margin-bottom: 15px;
    font-size: 14px;
    color: #000;
}

.element-item.item-blog h3 {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2em;
    height: 2.4em;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px !important;
    font-family: 'Helvetica Neue';
	margin-bottom: 15px;
}


.element-item.item-blog .read-more-container{
	text-align: right;
}

.element-item.item-blog .read-more-container a{
	background-color: unset;
    color: var(--accent);
    padding: 0;
}



@media (max-width: 900px) {
  .element-item.item-blog {
    width: calc(50% - 20px);
  }
}

@media (max-width: 600px) {
  .element-item.item-blog {
    width: 100%;
  }
}












/*.element-item.alkali          { background: #F00; background: hsl(   0, 100%, 50%); }*/
/*.element-item.alkaline-earth  { background: #F80; background: hsl(  36, 100%, 50%); }*/
/*.element-item.lanthanoid      { background: #FF0; background: hsl(  72, 100%, 50%); }*/
/*.element-item.actinoid        { background: #0F0; background: hsl( 108, 100%, 50%); }*/
/*.element-item.transition      { background: #0F8; background: hsl( 144, 100%, 50%); }*/
/*.element-item.post-transition { background: #0FF; background: hsl( 180, 100%, 50%); }*/
/*.element-item.metalloid       { background: #08F; background: hsl( 216, 100%, 50%); }*/
/*.element-item.diatomic        { background: #00F; background: hsl( 252, 100%, 50%); }*/
/*.element-item.halogen         { background: #F0F; background: hsl( 288, 100%, 50%); }*/
/*.element-item.noble-gas       { background: #F08; background: hsl( 324, 100%, 50%); }*/
