*,
*:before,
*:after {
    box-sizing: inherit;
}
@font-face {
    src: url(../fonts/Apex-Mk3-Medium.ttf);
    font-family: amm;
}

:root{
	--game-columns: 5;
}

#gallery {
    overflow: hidden;
    /*hamad changes*/
    display: grid;
    grid-template-columns: repeat( auto-fit, minmax(calc(100%/var(--game-columns)), calc(100%/var(--game-columns)) ));
}

#filters {
    margin: 0px 0px 40px;
    padding: 0px 10px 10px 10px;
    list-style: none;
    overflow: hidden;
    text-align: center;
}
#filters li {
    display: inline-block;
}
#filters li p {
    display: block;
    cursor: pointer;
    text-align: center;
    text-transform: uppercase;
    transition: all ease-in-out 0.25s;
    color: #ffffff;
    padding: 0px 20px;
    font-family: amm;
}
#filters li p img {
    display: inline-block;
    max-height: 34px;
}
#filters li p span {
    color: inherit;
    font-family: inherit;
    display: block;
    padding-top: 10px;
    transition: all ease-in-out 0.25s;
}
#filters li:hover p {
    filter: drop-shadow(2px 2px 4px rgba(226,162,54,0.6));
}
#filters li:hover p span {
    color: #e2a236;
}
#filters li p.active {
    color: #e2a236;
}

.gallery-item {
    float: left;
    /* width: 16.66%; */
    padding: 10px;
    position: relative;
    z-index: 10;
    display: none;
}

.inside {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}
.inside img {
    height: 100%;
    width: 100%;
    transform: scale(1);
    transition: all 0.3s ease-in-out;
}
.inside .ex-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 45px;
    height: auto;
    transform: scale(1);
    transition: all 0.3s ease-in-out;
    z-index: 10;
}
.inside .exclucive {
    width: 70px;
    height: auto;;
}
.inside .favourit {
    position: absolute;
    top: 28px;
    right: -12px;
    text-align: center;
    transition: all 0.3s ease-in-out;
    z-index: 10;
}
.inside .favourit a {
    width: 50px;
    height: 26px;
    border-radius: 30px;
    display: block;
    background: #fff5c2;
    background: -moz-linear-gradient(top, #fff5c2 0%, #e2a336 50%, #e2a336 50%, #fff5c2 100%);
    background: -webkit-gradient(left top, left bottom, color-stop(0%, #fff5c2), color-stop(50%, #e2a336), color-stop(50%, #e2a336), color-stop(100%, #fff5c2));
    background: -webkit-linear-gradient(top, #fff5c2 0%, #e2a336 50%, #e2a336 50%, #fff5c2 100%);
    background: -o-linear-gradient(top, #fff5c2 0%, #e2a336 50%, #e2a336 50%, #fff5c2 100%);
    background: -ms-linear-gradient(top, #fff5c2 0%, #e2a336 50%, #e2a336 50%, #fff5c2 100%);
    background: linear-gradient(to bottom, #fff5c2 0%, #e2a336 50%, #e2a336 50%, #fff5c2 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fff5c2', endColorstr='#fff5c2', GradientType=0 );
    transition: all 0.3s ease-in-out;
}
.inside .favourit a i {
    line-height: 26px;
    color: #de0000;
    transition: all 0.3s ease-in-out;
}

.inside .favourit a .ico2 {
    display: none;
}
.inside .fav-active a .ico1 {
    display: none;
}
.inside .fav-active a .ico2 {
    display: inline-block !important;
}
.details {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    opacity: 0;
}
.gall-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(../images/image-frame.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    z-index: 1;
    transition: all 0.7s ease-in-out;
}

.details {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: all 0.3s ease-in-out;
}

.gallery-item:hover .details {
    opacity: 1;
}
.gallery-item:hover .inside img {
    transform: scale(1.15);
}
.gallery-item:hover .inside .ex-icon {
    transform: scale(1);
}
.gallery-item:hover .inside .favourit a {
    width: 56px;
}
/*.gallery-item .details {
    z-index: 0;
}
.gallery-item:hover .details {
    z-index: 1;
}

.gallery-item .btn {
    display: none;
}
.gallery-item:hover .btn {
    display:inline-block;
}*/
