.portfolio-link.active ~ .portfolio-overlay {
    opacity: 1;
    height: 100%;
}
.portfolio-link ~ .portfolio-overlay {
    position: fixed !important;
    top: 0;
    left: 0;
    z-index: 5000;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    display: flex;
    height: 0;
    opacity: 0;
    overflow: hidden;
    cursor: pointer;
    transition: opacity 0.5s ease;
}

.portfolio-full{
    position: fixed !important;
    z-index: 6000;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: calc(90% - 60px);
    max-width: 600px;
    height: 0;
    max-height: 90%;
    overflow: hidden;
    background-color: white;
    transition: opacity 300ms ease;
    border-radius: var(--wp--custom--radius--sm);
}
.portfolio-flex{
	display: flex;
    margin-top: 40px;
    align-items: center;
	gap:20px;

}

@media screen and (max-width:600px){
	.portfolio-flex{
		align-items: flex-start;
    	flex-direction: column;
	}
}

@media screen {
    
}
.portfolio-flex div:first-child { width: 200px; }

.portfolio-full .portfolio-title{
	margin-bottom:0;
	text-align:center;
}

.portfolio-link.active ~ .portfolio-full{
    height:auto;
    overflow:auto;
    padding: 0 30px 30px;
}

.portfolio-full .portfolio-thumb-wrap img{
	max-width:200px;
	border:1px solid var(--wp--custom--light--1);
	padding:5px!important;
}

.portfolio-full p{margin:.5px 0;}

.portfolio-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 1.5em;
    cursor: pointer;
}

i.portfolio-close:hover {
    color: var(--wp--custom--secondary--main);
}

@media screen and (max-width:600px){
	.portfolio-cols .portfolio{width:50%;}
}