* {
    box-sizing: border-box;
}

/* Create three equal columns that floats next to each other */
.column {
    float: left;
    width: 33.33%;
    padding: 10px;
    /*height: 300px;  Should be removed. Only for demonstration */
}
.column-container {
    float: left;
    width: 100%;
    height: 100%;
}

/* Clear floats after the columns */
.row:after {
    content: "";
    display: table;
    clear: both;
}

#demo-1 {
    float: left;
    width: 300px;
}
#demo-2 {
    float: left;
    width: 300px;
}
#demo-3 {
    float: left;
    width: 300px;
}
.height-300 {
    height: 300px;
}
.height-150 {
    height: 150px;
}
.width-66 {
    width: 66.66%;
}
.width-33 {
    width: 33.33%;
}

.layout-sample {
    padding: 5px;
    float: left;
    width: 300px;
}

.row-items {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;

}

.row-items .row-item {
    flex: 0 0 50%;
    border: 1px solid black;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    padding: 5px;
}

.row-item-back {
    width: 100%;
    height: 100%;
    position: relative;
}

.row-item-back span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.row-item-back.light {
    background: #ccc;
}
.row-item-back.dark {
    background: #bbb;
}
.row-item-back.darker {
    background: #aaa;
}

/*#demo-1 .row-items .row-item:nth-child(1) {
    flex: 0 0 100%;
}
#demo-1 .row-items .row-item:nth-child(2) {
    flex: 0 0 100%;
}
#demo-1 .row-items .row-item:nth-child(3) {
    flex: 0 0 100%;
}

#demo-2 .row-items .row-item:nth-child(1) {
    flex: 0 0 100%;
}
#demo-2 .row-items .row-item:nth-child(2) {
    flex: 0 0 100%;
}
#demo-2 .row-items .row-item:nth-child(3) {
    flex: 0 0 100%;
}

#demo-3 .row-items .row-item:nth-child(1) {
    flex: 0 0 100%;
}
#demo-3 .row-items .row-item:nth-child(2) {
    flex: 0 0 100%;
}
#demo-3 .row-items .row-item:nth-child(3) {
    flex: 0 0 100%;
}

#demo-4 .row-items {
    flex-direction: row;
}
#demo-4 .row-items .row-item:nth-child(1) {
    flex: 0 0 100%;
}
#demo-4 .row-items .row-item:nth-child(2) {
    flex: 0 0 100%;
}
#demo-4 .row-items .row-item:nth-child(3) {
    flex: 0 0 100%;
}

.apa-portfolio-view .row-items {
    flex-direction: column;
}
*//*
.apa-portfolio-view .row-items .row-item:nth-child(1) {
    flex: 0 0 100%;
}
.apa-portfolio-view .row-items .row-item:nth-child(2) {
    flex: 0 0 100%;
}
.apa-portfolio-view .row-items .row-item:nth-child(3) {
    flex: 0 0 100%;
}*/
/*.apa-portfolio-view .row-items .row-item:nth-child(1) {
    flex: 0 0 100%;
}
.apa-portfolio-view .row-items .row-item:nth-child(2) {
    flex: 0 0 100%;
}
.apa-portfolio-view .row-items .row-item:nth-child(3) {
    flex: 0 0 100%;
}*/

.apa-portfolio-view .row-items {
    height: 100%;
}
.row-items .row-item {
    height: 300px;
}
.apa-portfolio-view {
    float: left;
    width: 100%;
}
.row-item-back {
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    background-position: center;
    background-size: cover;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
}
.item-title {
    font-size: 18px;
    font-weight: bold;
    padding-left: 35px;
    padding-right: 35px;
    color: #fff;
    text-align: center;
}
.item-title a {
    color: #fff;
}

.filter-btn:hover {
    cursor: pointer;
    color: #333;
}


/*default-sh-s-s */

.apa-portfolio-view .row-items.default-sh-s-s {
    flex-direction: column !important;
    height: 300px;
}
.apa-portfolio-view .row-items.default-sh-s-s .row-item:nth-child(1) {
    flex: 0 0 100%;
}
.apa-portfolio-view .row-items.default-sh-s-s .row-item:nth-child(2) {
    flex: 0 0 50%;
}
.apa-portfolio-view .row-items.default-sh-s-s .row-item:nth-child(3) {
    flex: 0 0 50%;
}

/*default-sh-sh-sh*/

.apa-portfolio-view .row-items.default-sh-sh-sh {
    flex-direction: column !important;
    height: 300px;
}
.apa-portfolio-view .row-items.default-sh-sh-sh .row-item:nth-child(1) {
    flex: 0 0 100%;
}
.apa-portfolio-view .row-items.default-sh-sh-sh .row-item:nth-child(2) {
    flex: 0 0 100%;
}
.apa-portfolio-view .row-items.default-sh-sh-sh .row-item:nth-child(3) {
    flex: 0 0 100%;
}

/*default-s-s-sh*/

.apa-portfolio-view .row-items.default-s-s-sh {
    flex-direction: column !important;
    height: 300px;
}
.apa-portfolio-view .row-items.default-s-s-sh .row-item:nth-child(1) {
    /*flex: 0 0 100%;*/
}
.apa-portfolio-view .row-items.default-s-s-sh .row-item:nth-child(2) {
    /*flex: 0 0 50%;*/
}
.apa-portfolio-view .row-items.default-s-s-sh .row-item:nth-child(3) {
    flex: 0 0 100%;
}


/*default-sl-s-s*/

.apa-portfolio-view .row-items.default-sl-s-s {
    flex-direction: row !important;
    /*height: 300px;*/
}
.apa-portfolio-view .row-items.default-sl-s-s .row-item:nth-child(1) {
    flex: 0 0 100%;
}
.apa-portfolio-view .row-items.default-sl-s-s .row-item:nth-child(2) {
    flex: 0 0 50%;
}
.apa-portfolio-view .row-items.default-sl-s-s .row-item:nth-child(3) {
    flex: 0 0 50%;
}

/*default-sl-s-s*/

.apa-portfolio-view .row-items.default-s-s-sl {
    flex-direction: row !important;
    /*height: 300px;*/
}
.apa-portfolio-view .row-items.default-s-s-sl .row-item:nth-child(1) {
    /*flex: 0 0 100%;*/
}
.apa-portfolio-view .row-items.default-s-s-sl .row-item:nth-child(2) {
    /*flex: 0 0 50%;*/
}
.apa-portfolio-view .row-items.default-s-s-sl .row-item:nth-child(3) {
    flex: 0 0 100%;
}


/* Added 30-04-2024 */

.row-item.default-layout .item-title a {
	float: left;
	width: 100%;
	color: #000;
	text-align: center;
	font-weight: normal;
}
.row-item.default-layout {
    flex-direction: column !important;
}
