﻿.grid * { box-sizing: border-box; }
.grid {
    width: 1596px;
    height: 550px;
}
.heading,.grid .content .descbox,.grid .content .descbox:before {
    -webkit-transition: 0.2s cubic-bezier(0.694, 0.0482, 0.335, 1);
    transition: 0.2s cubic-bezier(0.694, 0.0482, 0.335, 1);
}
    .grid h4 {
        transform: skew(0, 332deg) !important;
        width: auto;
        font-weight: 500;
        font-size: 15px;
        text-rendering: optimizeLegibility;
        padding: 0;
        background: #79b353;
        display: flex;
        align-items: center;
    }
    .grid-item.redgift h4 {
        background: #873945;
    }
    .grid .content h4 {
        color: #fff;
        /* height: 40px; */
        width: auto;
        position: absolute;
        overflow: hidden;
    }


.descbox {
    font-size: 15px;
    margin: 0 0 .9em;
    display: none;
    text-align: center;
    justify-content: center;
    direction: rtl;
}
.grid .grid-item .overlay .content {
    position: absolute;
    width: 45%;
    z-index: 2;
    bottom: 0;   
    right: 4%;
    direction: rtl;
    text-align: right;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    color: #000;
    display: flex;
}

.grid .grid-item.custom .overlay .content
{
   display:none;
   text-align: center;   
    justify-content: center;

}
.grid .grid-item .overlay .content h4:before {
    content: '';
    height: 2px;
    position: absolute;
    background: #e53527;
    transition: all 0.3s ease-out;
}

.grid .grid-item:hover .overlay .content {
    color: #fff;
    text-shadow: none;
    height: 100px;
}
.grid .grid-item.redgift:hover .overlay {
    background: linear-gradient(0deg, #eb869c61 0%, #00000000 49%);
}
   
.grid .grid-item:hover .overlay .descbox {
    display: flex;
    background: #7c9a49;
    color: #fff;
    -webkit-border-top-left-radius: 10px;
    -webkit-border-top-right-radius: 10px;
    -moz-border-radius-topleft: 10px;
    -moz-border-radius-topright: 10px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    padding: 10px 5px;
}
.grid .grid-item.redgift:hover .overlay .descbox {
    background: #873945;
}
.grid .grid-item:hover .content h4 {
    padding: 0 5px;
    text-align: center;
    overflow: hidden;
}
.grid .grid-item.showtitle .content h4
{
     padding:0 10px;
    width:auto;      
     overflow:initial;
    
}
/*syntax position*/
.grid .content.lt h4,.grid .content.lb h4,.grid .content.lc h4
{
    left: -50%;
}
.grid .content.rt h4,.grid .content.rb h4,.grid .content.rc h4
{
    right: -50%;
}

.grid .grid-item.custom .overlay  .content.rt
{
     bottom: unset;
    top: 20px;
    left: unset;
    right: -50%; 
}
.grid .grid-item.custom .overlay  .content.rc
{
     bottom: unset;
    top:calc(50% - 40px);
    left: unset;
    right: -50%; 
}
.grid .grid-item.custom .overlay  .content.lt
{
     bottom: unset;
    top: 20px;
    left: -50%;
    right: unset; 
}
.grid .grid-item.custom .overlay  .content.lc
{
     bottom: unset;
    top: 50%;
    left: -50%;
    right: unset; 
}
.grid .grid-item.custom .overlay .content.rb {
    bottom: 40px;
    top: unset;
    left: unset;
    right: -50%; 
}
.grid .grid-item.custom .overlay  .content.lb
{
     top: unset;
    bottom: 40px;
    left: -50%;
    right: unset; 
}
.grid .grid-item .overlay .content.lt h4:before
,.grid .grid-item .overlay .content.lb h4:before
,.grid .grid-item .overlay .content.lc h4:before
{
     right:0;
    left: 100%;
    top: 50%;
}
.grid .grid-item.showtitle .overlay .content.lt h4:before
,.grid .grid-item.showtitle .overlay .content.lb h4:before
,.grid .grid-item.showtitle .overlay .content.lc h4:before
{
     right:-200%;
    left: 100%;
    top: 50%;
}

.grid .grid-item .overlay .content.rt h4:before
,.grid .grid-item .overlay .content.rb h4:before
,.grid .grid-item .overlay .content.rc h4:before
{
       left:0;
    right: 100%;
    top: 50%;
}
.grid .grid-item.showtitle .overlay .content.rt h4:before
,.grid .grid-item.showtitle .overlay .content.rb h4:before
,.grid .grid-item.showtitle .overlay .content.rc h4:before
{
       left:-200%;
    right: 100%;
    top: 50%;
}
.grid .grid-item:hover .content.lt h4
,.grid .grid-item:hover .content.lb h4
,.grid .grid-item:hover .content.lc h4
,.grid .grid-item.showtitle .content.lt h4
,.grid .grid-item.showtitle .content.lb h4
,.grid .grid-item.showtitle .content.lc h4
{
      left: 10%;
}

.grid .grid-item:hover .content.rt h4
,.grid .grid-item:hover .content.rb h4
,.grid .grid-item:hover .content.rc h4
,.grid .grid-item.showtitle .content.rt h4
,.grid .grid-item.showtitle .content.rb h4
,.grid .grid-item.showtitle .content.rc h4
{
      right: 10%;
}
.grid .grid-item:hover .overlay .content.lt h4:before
,.grid .grid-item:hover .overlay .content.lb h4:before
,.grid .grid-item:hover .overlay .content.lc h4:before
,.grid .grid-item.showtitle .overlay .content.lt h4:before
,.grid .grid-item.showtitle .overlay .content.lb h4:before
,.grid .grid-item.showtitle .overlay .content.lc h4:before
{
    right:-200%;
}
.grid .grid-item:hover .overlay .content.rt h4:before
,.grid .grid-item:hover .overlay .content.rb h4:before
,.grid .grid-item:hover .overlay .content.rc h4:before
,.grid .grid-item.showtitle .overlay .content.rt h4:before
,.grid .grid-item.showtitle .overlay .content.rb h4:before
,.grid .grid-item.showtitle .overlay .content.rc h4:before
{
    left:-200%;
}

/* clear fix */
.grid:after {
  content: '';
  display: block;
  clear: both;
}
.grid .overlay {
    position: absolute;
    width: calc(100% - 10px);
    height: 100%;
    top: 0;
    left: 5px;
    z-index: 2;
    -webkit-transition: .25s ease-in-out;
    transition: .25s ease-in-out;
    backface-visibility: hidden;
}

.grid .grid-item:hover .overlay {
    background: #00e54c29;
    background: linear-gradient(0deg, #00e54c47 0%, #00000000 49%);
}
.grid .grid-item:hover .overlay .content ,.grid .grid-item.showtitle .overlay .content 
{
    display:flex;
     
}
.grid .grid-item:hover .overlay .content.lt,.grid .grid-item.showtitle .overlay .content.lt
{
     bottom: unset;
    top: 20px;
    left:-50%;
    right: unset;
}
/* ---- .grid-item ---- */

.grid-item {
    float: left;
    width: 100px;
    height: 100px;
    position: relative;
}
.grid-item img
{
    width:100%;
}

.grid-item--width3 { width: 625px; }
.grid-item--height3 { height: 616px; }
.grid-item--width2 { width: 310px; }
.grid-item--height2 { height: 408.5px; }
.grid-item--width { width: 152.5px; }
.grid-item--height { height: 202px; }
.grid-item.custom img {
    width: auto !important;
    height: auto !important;
    left: 0;
    top: 0;
    display: none;
}
.grid-item.custom
{
    width:auto !important;
    height:auto  !important;
    display: flex;
}
section.org {
    width: 90vw;
    height: 550px;
    /* margin: 20px 0 0 0;*/
    overflow: hidden;
}
.grid-item-circle {
    -webkit-border-radius: 100%;
    -moz-border-radius: 100%;
    border-radius: 100%;
}
/*.grid-item--width3 { width: Calc(50% - 4px); }
.grid-item--height3 { height:Calc(100% - 4px); }
.grid-item--width2 { width: Calc(30% - 4px); }
.grid-item--height2 { height:Calc(30% - 4px);}
.grid-item--width { width: Calc(20% - 4px); }
.grid-item--height {height:Calc(30% - 4px); }*/
.columngift {
   /* position: absolute;*/
    z-index: 2;
}
.boxgift {
    position: absolute;
}
.grid-item.custom img.gift {
    position: absolute;
    top: 245px;
    transition: top 0.5s ease;
}
.grid-item:hover img.gift {
   
    top:50px;
   
}