﻿.pre-description {
    position: relative;
}

.bcl .description {
    top: -5px;
    left: 5px;
    width: 300px;
    z-index: 100000;
}

.tcr .description {
    top: -5px;
    right: 5px;
    width: 300px;
    z-index: 100000;
}

.bcl ul.thumbnail li a > * {
    float: left;
}

.tcr ul.thumbnail li a > * {
    float: right;
}

.row .container.bcl .thumbnail .description {
    background: #2369e6;
}

.row .container.tcr .thumbnail .description {
    background: #c5ec93;
}

.row .container.tcr .description p {
    color: black;
}

.row .container .thumbnail .description h3 {
    font-family: b yekan;
    font-size: 15px;
    background: white;
    color: black;
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 40px;
    font-weight: normal;
}

.row .container.tm .foreground .description h3 {
    border-bottom: 2px solid black;
    color: black;
}

.row .container.tm .foreground .description p {
    width: 70%;
    margin: 0 auto;
}

.row .container.tcl .foreground .description {
    background: #c82d42;
}

.row .container.bcm .foreground .description {
    background: #ae3328;
}

.row .container.bcr .foreground .description {
    background: #17977a;
}

.row .container.tm .foreground .description {
    background: #efdce4;
}

    .row .container.tm .foreground .description p {
        color: black;
    }

.row .container.tcl .foreground .description h3 {
    color: white;
}


.row .container.bcl:hover .mask {
    display: none;
}

.row .container.bcl .mask {
    background-image: url("../images/Traditional_Wedding_Dress_of_Bahrain-Recovered.png");
    height: 100%;
    width: 100%;
    background-position: 50%;
    background-repeat: no-repeat;
}

.pre-thumbnail {
    display: none;
}

.container:hover .pre-thumbnail {
    display: block;
}

.masklayer {
    position: relative;
    width: 100%;
    height: 100%;
}

.foreground:hover .masklayer .description {
    display: block !important;
}

.foreground:hover img {
    opacity: 0;
    display: none;
}

.row .container.tcr:hover .mask {
    display: none;
}

.row .container.tcr .mask {
    background-image: url("../images/mahali-r2.png");
    height: 100%;
    width: 100%;
    background-position: 50%;
    background-repeat: no-repeat;
}

.row .container .pre-mask,
.row .container .pre-mask img {
    width: 100%;
    height: 100%;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    z-index: 100;
}

.row .container .foreground > img,
.row .container .thumbnail li img {
    transition: all 0.3s ease-in 0s;
    -webkit-transition: all 0.3s ease-in 0s;
    -moz-transition: all 0.3s ease-in 0s;
    -o-transition: all 0.3s ease-in 0s;
   
}

.row .container .foreground:hover > img,
.row .container .thumbnail li:hover img {
    -webkit-transform: scale(1.1);
      -ms-transform: scale(1.1);
          transform: scale(1.1);
}


.row .container .foreground .description h3 {
    border-bottom: 2px solid white;
background: initial;
width: 70%;
margin: 0 auto !important;
}

.row .container .foreground {
    overflow: hidden;
    width: 100%;
    height: 100%;
}

    .row .container .foreground img {
        width: 100%;
        /* height: 325px; */
        min-height: 100%;
    }

.row .container .description h3 {
    color: white;
    padding: 5px;
    text-align: center;
    position: relative;
    top: -20%;
    width: 100%;
    margin: 0 auto;
    font-family: b homa;
    font-size: 20px;
    transition: all .2s linear;
     -webkit-transition: all .2s linear;
    -moz-transition: all .2s linear;
    -o-transition: all .2s linear;
}

.row .container.tm .description:hover h3,
.row .container.tcl .description:hover h3,
.row .container.bcr .description:hover h3,
.row .container.bcm .description:hover h3,
.row .container.tm .description:hover p,
.row .container.tcl .description:hover p,
.row .container.bcr .description:hover p,
.row .container.bcm .description:hover p {
    top: 20%;
}

.row .container .description p {
    color: white;
    margin-top: -10px;
    margin-bottom: -10px;
    text-align: justify;
    direction: rtl;
    padding: 21px;
    position: relative;
    top: 82%;
    font-family: b homa;
     transition: all .2s linear;
     -webkit-transition: all .2s linear;
    -moz-transition: all .2s linear;
    -o-transition: all .2s linear;
}



.row .container .foreground .description {
    position: absolute;
    background: #4682B4;
    width: 100%;
    height: 100%;
    display: none;
}

.foreground:hover .description {
    display: block;
}

.row .container .thumbnail .description {
    display: none;
    position: absolute;
    background: #4682B4;
    z-index: 100;
}


.row .container a:hover .description {
    display: block !important;
}

.row .container .thumbnail li a img {
    width: 100%;
    height: 100%;
    z-index: 99;
}

.row .container .thumbnail {
    float: right;
    direction: rtl;
    margin: 0;
    padding: 33px;
}

    .row .container .thumbnail li {
        display: inline-block;
        width: 17%;
        height: 17%;
    }


@media (max-width : 1024px) {
    .container {
        float: none !important;
    }

        .container.tcr,
        .container.tm,
        .container.tcl,
        .container.bcr,
        .container.bcm,
        .container.bcl {
            width: auto !important;
        }

    .tcr .description {
        top: -5px;
        left: -5px;
        width: 111px;
        right: initial;
    }

    .bcl .description {
        top: -155px;
        left: -106px;
        width: 111px;
        right: initial;
    }
}

@media (max-width : 590px) {
}

.container.bcl {
    background: #6de8f2;
     width: 55%;
}

.container.tcr {
    background: #A2CC68;
     width: 55%;
}
.container.tm {
    width: 30%;
}
.container.tcl {
    width: 15%;
}
.container.bcr {
    width: 15%;
}
.container.bcm {
    width: 30%;
}


.container {
    height: 350px;
    float: right;
}

body {
    background: #336699;
    font-family: Tahoma;
    font-size: 13px;
    margin: 0;
}

a {
    text-decoration: none;
}


@media (min-width: 1200px){
    body {background:#C71585}

    .row .container.tcr .thumbnail {
       padding: 13px;
margin-left: -42px;
margin-top: 0;
    }
    .row .container.bcl .thumbnail {
        padding: 13px;
        margin-left: -45px;
        margin-top: 0;
    }

     .row .container.tcr .thumbnail li{
        width: 13%;
        height: 13%;
    }
      .row .container.bcl .thumbnail li {
        width: 13%;
        height: 13%;
    }
        
}

@media (max-width: 1199px) and (min-width: 1025px){
    body {background:#DC143C}

  .row .container.tcr .thumbnail {
      padding: 6%;
    padding-top: 3%;}
   .row .container.bcl .thumbnail {
      padding: 7%;
    padding-top: 3%;}
   .row .container.tcr .thumbnail li,
   .row .container.bcl .thumbnail li {
        width: 73px;
        height: 73px;
    }

   

}
@media (max-width: 1024px) and (min-width: 980px){


       body {background:black}

     .row .container .thumbnail {padding: 1%;}
   .row .container.tcr .thumbnail li,
   .row .container.bcl .thumbnail li {
        width: 12%;
        height: 12%;
    }
    .container.tcr{height:250px}
    .container.bcl {height:370px}


}

@media (max-width: 979px) and (min-width: 768px){
    body {background:#FF4500}
     .row .container .thumbnail {padding: 1%;}
   .row .container.tcr .thumbnail li,
   .row .container.bcl .thumbnail li {
        width: 12%;
        height: 12%;
    }
    .container.tcr{height:245px}
    .container.bcl {height:355px}
         

}

@media (max-width: 767px) and (min-width: 599px){
    body {background:#FFD700}

    .row .container.tcr .thumbnail li,
    .row .container.bcl .thumbnail li {
        width: 13%;
        height: 13%;
    }
         
        .row .container .thumbnail {padding: 3%;}
  

}

@media (max-width: 598px) and (min-width: 364px){
    
        body {background:#228B22}
    
        .container.tcr{height:545px}
        .container.bcl {height:670px}

 .row .container .thumbnail {
    padding: 4%;
    }   

    .row .container.tcr .thumbnail li,
    .row .container.bcl .thumbnail li {
        width: 24%;
        height: 24%;
    }
      
       
   

}

@media (max-width: 363px){
    body {background:#4682B4}

    .container.tcr{height:520px}
    .container.bcl {height:630px}

    .row .container .thumbnail {
    padding: 3%;
    }   

    .row .container.tcr .thumbnail li,
    .row .container.bcl .thumbnail li {
        width: 32%;
        height: 32%;
    }
     
}