.gallery-cols .entry-thumb{width: 100%;}

.gallery-cols .entry-link{cursor:pointer;}

.gallery-cols .entry-title{font-size:1.1em;}

.gallery-cols.includes-link-text .entry:not(.col-full) .entry-text-wrap{
	padding: 20px 20px 50px!important;
}

.gallery-cols.entry-cols .entry:not(.col-full) .entry-link-text-wrap{
	left: 20px;
    bottom: 20px;
}

@media (min-width:601px) and (max-width:900px){
    .gallery-cols article.gallery{
        width: 50%;
    }
}


.gallery-popup-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: calc(100% - 40px);
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    z-index: 9999;
    overflow: auto;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gallery-popup-modal.visible {
    display: flex !important;
}

.gallery-popup-modal .popup-inner {
    max-width: 600px;
    width: 100%;
    background: var(--wp--custom--primary--dark);
    padding: 30px;
    border-radius: 8px;
    box-sizing: border-box;
    position: relative;
}

@media screen and (max-width:900px) {
    .gallery-popup-modal .wp-block-columns .wp-block-column:first-of-type {
        text-align: center;
    }
}

.gallery-popup-modal h4{color: white;}

/* Close button inside content */
.gallery-popup-modal .popup-close {
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 4px;
    font-size: 1.25em;
    transition: all 300ms ease-in-out;
}

.gallery-popup-modal .popup-close:hover{
    transform: scale(1.25);
}

.gallery-popup-modal .wp-block-columns{
    gap:20px;
    align-items: center!important;
}

.gallery-popup-modal .entry-tax:not(:last-of-type){
    margin-bottom: 10px;
    line-height: 1.1;
}

.gallery-ajax-loader{
	text-align:center;
	margin:2rem 0;
	display:none;
}

.gallery-ajax-loader i{
	font-style:normal!important;
}