/* 
try using https://caniuse.com/#search=object-fit 
also see here: https://mdbootstrap.com/content/bootstrap-images/
*/

.collage {
    width: 1000px;
    margin: 50px auto;
    position: relative;
    height: 660px;
}

.collage a {
    position: absolute;
    max-width: 320px;
    padding: 0px;
    background-color: rgb(255, 255, 255);
    
    cursor: auto;

    transform: rotate(-0deg);
    -ms-transform: rotate(-0deg);
    -moz-transform: rotate(-0deg);
    -webkit-transform: rotate(-0deg);
    -o-transform: rotate(-0deg);

    -webkit-transition: all 0.2s linear;
    -moz-transition: all 0.2s linear;
    -o-transition: all 0.2s linear;
    -ms-transition: all 0.2s linear;
    transition: all 0.2s linear;

    /*** Fix for Webkit to resolve the flickering issue
	           Suggested by erikhatfield ***/
    -webkit-transform-style: preserve-3d;

    -moz-box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    -ms-filter: "progid:DXImageTransform.Microsoft.dropshadow(OffX=1,OffY=1,Color=#33000000,Positive=true)";
    filter: progid:DXImageTransform.Microsoft.dropshadow(OffX=1, OffY=1, Color=#33000000, Positive=true);
}

.collage a:nth-child(1) {
    margin-left: 0%;
    margin-top: 40px;
}
.collage a:nth-child(2) {
    margin-left: 35%;
}

.collage a:nth-child(3) {
    margin-left: 70%;
    margin-top: 30px;
    
}

.collage a:nth-child(4) {
    margin-left: 15%;
    margin-top: 450px;
}

.collage a:nth-child(5) {
    margin-left: 50%;
    margin-top: 450px;
}
.collage a:nth-child(6) {
    margin-left: 31%;
    margin-top: 160px;
}
.collage a.collagetext {
    padding: 30px;
    max-width: none;
    width: 400px;
    color: #757575;
    cursor: pointer;
}



.collage a img {
    max-width: 100%;
    max-height: 100%;
/*    filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale");
    filter: gray;
    -webkit-filter: grayscale(100%);
*/
}

/*
.collage a:hover {
    z-index: 999;
    transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -o-transform: rotate(0deg);

    -webkit-transition: all 0.2s linear;
    -moz-transition: all 0.2s linear;
    -o-transition: all 0.2s linear;
    -ms-transition: all 0.2s linear;
    transition: all 0.2s linear;
}*/

/*.collage a:hover>img {
    filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'1 0 0 0 0, 0 1 0 0 0, 0 0 1 0 0, 0 0 0 1 0\'/></filter></svg>#grayscale");
    -webkit-filter: grayscale(0%);
}*/

.collagetext .kopjes {
    text-align: center;
}