.header-actorlist{
	background-color: var(--primary-bg);
    height: 19vh;
    position: sticky;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}
.header-title{
	color: var(--primary-text-color);
    letter-spacing: 10px;
    font-weight: lighter;
    font-size: 2em;
}
.header-actorlist{
	display: grid;
    grid-column: 1;
}
#logo{
    height: 10vh;
    align-self: center;
    border-right: none;
    grid-column: 1;
    border-right: solid 1px white;
}
/* Filters related code********************/

.list-controls
{
	display:grid;
	padding: 20px;
	grid-template-columns: 1fr;
}
.button-toggle-filters{
	cursor: pointer;
    background-color: var(--buttons-color);
    width: 90vw;
    height: 10vh;
    color: var(--primary-text-color);
    font-size: 1em;
	border: none;
	display:grid;
	grid-column: 1;
	grid-row:1;
	align-items: center;
}
.button-toglle-filters:hover{
    background-color: var(--primary-bg);
}
#filters{
	grid-template-columns: 1fr;
	grid-column: 1;
	grid-row: 2;
    gap: 0px;
    width: 90vw;
    box-shadow: 6px 6px 19px var(--buttons-color);
	display:none;
}
.filter-label{
	text-align: center;
	font-weight: bold;
	color: var(--text-reading-color);
}
.input-label{
    color: var(--text-reading-color);
}
.input-label:hover{
	background-color: var(--primary-bg);
	color: var(--primary-text-color);
	cursor: pointer;
	
}

/* Filters related code*********************/


/*One card per row on mobile*/
.actor-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30vw, 1fr));
    gap: 0px;
    padding: 0px;
}

.actor-card {
    background-color: #fff;
    padding: 20px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    scroll-snap-align: start;
    /*box-shadow: 0 4px 8px darkslategrey;*/
    font-size: 1em;
	height: 37vw;
	
	background-size: cover;
	background-repeat: no-repeat;
	background-position: top;
	grid-template-columns: 1fr;
	
	position: relative;/*helps with layer-info size to cover full photo*/
}

.actor-card a {
    text-decoration: none;
    color: white;
    display: grid;
    width: 100%;
    height: 100%;
    grid-template-columns: 1fr;
    align-items: end;
	position: absolute;
	z-index: 3;

}

.actor-card a:active{
	background-color: transparent;
}
.actor-card:hover > .info-layer{
	display:grid;
	z-index: 1;
}
.info-layer{
	background-color: darkslateblue;
    color: white;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 0;
    position: absolute;
    grid-template-rows: 1fr 1fr 1fr 1fr;
    align-items: center;
    text-align: center;
	font-size: 0.8em;
	opacity: 0.8
}
.actor-card h2{
	background-color: rgba(0,0,0,0.5);
	font-size: 1em;
	padding-top: 4px;
	padding-bottom: 4px;
	font-weight: normal;
}


/*the img element on actor card is now a .actorShadowPhoto*/
.actor-card img {
   /* width: 150px;
    height: 150px;
    object-fit: cover;
    max-height: 150px;
    max-width: 150px;
    border-radius: 50%;
	*/
}

.actor-card h2 {
    margin: 0px 0;
    font-size: 1em;
}

.actor-card p {
    margin: 0;
	display:grid;
}

.actor-card:hover {
    transform: scale(1);
}

.actorShadowPhoto{
	display: none;
}

.is-infancy{
    position: absolute;
    top: 0px;
    width: 100%;
    font-weight: normal;
    background-color: var(--infancy-bg);
    color:white;
}

/*CSS hidden applied if filters are active*/
.hidden
{
	visibility: hidden;
}
.show{
	display: grid;
}

/******* media querys *******/
@media (min-width: 600px) and (max-width: 1023px) {
    
    /*header*/
    #logo{
        max-width: unset;
        max-height: 8vh;
    }
    .header-actorlist{
        max-height: 14vh;
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
    .header-actorlist > a{
        grid-column: 2;
    }
    .header-title{
        grid-column: 3;
        font-size: 3em;
    }
    
    /*filter button*/
    .button-toggle-filters{
        height: 8vh;
        font-size: 2em;
    }

}
/* Media query for desktop screens */
@media (min-width: 1024px) {
	
	.header-actorlist{
			height: 22vh;
			grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
	}

	#logo{
		max-width: 16vw;
		height: unset;
	}
	
/* Filters related code********************/
	.list-controls{
		grid-template-columns: 1fr 1fr 1fr;
	}
	.button-toggle-filters{
		width: 25vw;
		grid-column: 1;
		grid-row:1;
	}
	#filters{
		grid-column: 1;
		grid-row: 2;
		width: 25vw;
	}
/* Filters related code*********************/
	/*next is logo clone for the logo because is a link (just cloning grid properties)*/
	.header-actorlist>a{
		display: grid;
		grid-column: 3;
	}
	.info-layer{
		font-size: 1em;
	}
	.header-title{
		grid-column:4;
		font-size: 3em;
	}
	.actor-list {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(17vw, 1fr));
		gap: 4px;
		padding: 20px;
	}

	.actor-card{
		/*to make it squared*/
		height: 21vw;
	}

}