﻿.shiftPattern {
    background-image: url("../Images/CairoFestival/CIFF.webp");
    background-size: auto 100%;
    background-repeat: no-repeat;
    width: 100%;
    margin-bottom: 50px;
    padding:0px 16px;
    display:flex;
    flex-direction:column;
}

.shiftPattern .shiftHeader {
 display:flex;
 flex-direction:row;
 width:100%;
 justify-content:space-between;
 align-items:center;
 padding:10px 0px;
 border-bottom: 1px solid #C5A56180;
}

.shiftPattern .shiftHeader .title {
    display: inline-block;
    color: #C5A561;
    font-family: DroidKufiBold, Arial;
    font-size: 20px;
    line-height: 70px;
}


.shiftPattern .shiftHeader .logo{
   display: flex;
   flex-direction: row;
   justify-content:center;
   align-items:center;
   gap: 21px; 
}

.shiftPattern .shiftHeader .logo img:first-child {
  width: 136px;
  height: 18px;
  display: block;        
  object-fit: contain;
    }

.shiftPattern .shiftHeader .logo img:last-child {
  width: 179px;
  height: 76px;
  display: block;        
  object-fit: contain;   
}



.shiftPattern .shiftContainer {
  display: flex;
  flex-direction: row;
  justify-content:center;
  align-items:center;
  width:100%;
  padding:16px 0px;
}

.shiftContainer .shiftContent {
    display: inline-block;
    width: calc(100% - 320px);
}

.shiftContent ul li {
    display: inline-block;
    position: relative;
    width: calc((100% - 20px) /2);
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
}

.shiftContent ul li:nth-of-type(2n) {
            margin-left: 0
}

.shiftContent ul li:nth-of-type(5), .shiftPattern ul li:last-child {
            margin-bottom: 0
}

.shiftContent ul li .imageCntnr {
    float: right;
    display: inline-block;
    position: relative;
    overflow: hidden;
    width: 150px;
    padding-bottom: calc((150px * 56.25) /100);
    margin-left: 10px;
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.shiftContent ul li .imageCntnr img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    border: none;
}

.shiftContent ul li .desc {
    float: right;
    width: calc(100% - 180px);
    height: auto;
    cursor: pointer;
    display: inline-block;
}

.shiftContent ul li .desc p {
  color: #fff;
  overflow: hidden;
  font-size: 14px;
  font-family: 'DroidKufiLight';
  line-height: 24px;
  transition: all 0.2s ease-in-out 0s;
  -webkit-transition: all 0.2s ease-in-out 0s;
  -moz-transition: all 0.2s ease-in-out 0s;
  -ms-transition: all 0.2s ease-in-out 0s;
  -o-transition: all 0.2s ease-in-out 0s;
}

.shiftContainer .shiftClipRotate {
    float: right;
    width: 320px;
}


@media screen and (min-width: 1360px) and (max-width: 1919px) {
    .shiftContainer .shiftClipRotate {
        width: 260px;
    }
    .cairoFestivalStarsMain{padding:0}

    .shiftContainer .shiftContent {
        width: calc(100% - 300px);
    }

}

@media screen and (min-width:1280px) and (max-width:1359px) {
    .shiftContainer .shiftClipRotate {
        width: 280px;
    }

    .shiftContainer .shiftContent {
        width: calc(100% - 280px);
    }

    .shiftContent ul li .imageCntnr {
        width: 130px;
        padding-bottom: calc((130px * 66.6) /100);
    }

    .shiftContent ul li .desc {
        width: calc(100% - 146px);
    }

    .shiftContent ul li:nth-of-type(5), .shiftPattern .shiftContent ul li:last-child {
            margin-bottom: 0;
    }
}


@media screen and (min-width: 1024px) and (max-width:1279px) {

    .shiftPattern .shiftHeader {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .shiftPattern .shiftContainer {
        flex-direction: column;
    }

    .shiftContainer .shiftClipRotate {
        width: 100%;
    }

    .shiftContainer .shiftContent {
        width: 100%;
    }


    .shiftContent ul li {
        width: calc((100% - 40px) /2);
        margin-left: 40px
    }


    .shiftClipRotate {
        width: 100%;
    }

    .shiftPattern .shiftContent {
        width: 100%;
    }

    .shiftContent ul li {
        margin-bottom: 20px
    }

    .shiftContent ul li .imageCntnr {
            width: 130px;
            padding-bottom: calc((130px * 66.6) /100);
            margin-left: 16px;
    }

    .shiftContent ul li .desc {
            width: calc(100% - 146px);
    }
}

@media screen and (min-width: 900px) and (max-width: 1023px) {
    .shiftContainer .shiftClipRotate {
        width: 230px;
    }

    .shiftContainer .shiftContent {
        width: calc(100% - 230px);
    }
}





@media screen and (max-width: 899px) {
.shiftPattern{
    background-image:url("../Images/CairoFestival/CIFFMobile.webp");
    width: 100%;
    background-size:auto;
    padding:0px;
}

    .shiftPattern .shiftHeader {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .shiftPattern .shiftHeader .title {
        font-size: 18px;        line-height: 20px;
    }

    .shiftPattern .shiftHeader .logo img:first-child {
        width: 100px;
        height: 14px;
       
    }

    .shiftPattern .shiftHeader .logo img:last-child {
        width: 118px;
        height: 50px;
       
    }


    .shiftPattern .shiftContainer {
        flex-direction: column;
    }

    .shiftContainer .shiftClipRotate {
        width: 100%;
    }

    .shiftContainer .shiftContent {
        width: 100%;
        padding: 0px 10px;
    }

    .shiftContent ul {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        gap: 15px;
    }

    .shiftContent ul li {
        float: none !important;
        width: 100% !important;
        margin-left: 0 !important;
    }

    .shiftContent ul li a {
            display: flex !important;
            flex-direction: column !important;
            width: 100% !important;
            justify-content: center;
            align-items: center;
     }


    .shiftContent ul li{
        display: flex;
        flex-direction: column;
    }

   .shiftContent ul li .desc {
    float: none !important;
    width: 100% !important;
    margin-top: 10px;
    padding: 0;
}


    .shiftContent ul li .imageCntnr {
        width: 100%;
        padding-bottom: calc((100% * 56.25) /100);
        margin-left: 0;
        border: 1px solid rgba(255, 255, 255, 0.10);
    }

    .shiftContent ul li .imageCntnr img {
            width: 100%;
            object-fit: fill;
    }

    .shiftContent ul li .desc {
            width: 100% ;
            padding-right: 10px
    }

    .shiftPattern ul li:last-child {
                margin-bottom: 0 !important
    }

}
