/* iPads - portrait and landscape */
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) {
   #wrapper{
       width: 85% !important; 
   }

   /************ Single Image Alignment ************/
   .wp-caption img{
        width: 100% !important;
        height: auto !important;
    }
   
   .wp-caption{
        width: 50% !important;
        height: auto !important;
        float: left;
    }
   /************************/

   #f-img img{
       width: 100%;
       height: auto !important;
   }

   #socialmedia{
       display: none !important;
   }

   #socialmedia-tp{
       margin: 0;
       padding: 0;
       float: right;
       display: block;
       width: 35%;
       margin-top: -5px;
   }

   #socialmedia-tp li{
        text-align: center;
        list-style: none;
        margin-bottom: 18px;
        margin-right: 2%;
        float: right;
        width: auto !important;
    }

    #socialmedia-tp li a{
        padding: 9px 10px 8px 10px;
        background: #929292;
        border-radius: 50%;
    }

    #socialmedia-tp #fb a{
        padding: 9px 12px 8px 12px;
        background: #929292;
        border-radius: 50%;
    }

    #socialmedia-tp li a:hover{
        padding: 9px 10px 8px 10px;
        background: #59ADEC;
        border-radius: 50%;
    }

    #socialmedia-tp #fb a:hover{
        padding: 9px 12px 8px 12px;
        background: #59ADEC;
        border-radius: 50%;
    }

    #socialmedia-tp li a i{
        color: #FFF;
        font-size: 11pt;
    }

    #s-date p{
        width: 55%; 
        float: left;
    }

    #s-title h1 {
        font-size: 22pt !important;
    }
    
    #t-sidebar{
        margin-top: 45px;
    }

    .sidebar-item{
        padding-top: 10px;
    }

    #n-head img{
        margin-bottom: 20px;
    }
    
    #n-subhead img{
        margin-bottom: 20px;
    }
    
    #n-subcontent div img{
        margin-bottom: 20px;
    }

    #n-title{
        padding-top: 30px;
    }
    
    /************************************/
    #psubcontainer img{
        width: 40% !important;
        float: left !important;
    }

    #psubcontainer{
        width: 100% !important;
        float: left !important;
        margin-bottom: 25px;
        text-align: left;
    }

    #psubcontainer a{
        float: left !important;
        margin-right: 10px;
        margin-bottom: 15px;
        text-align: left;
    }

    #psubcontainer p{
        float: none !important;
        margin-bottom: 15px;
        text-align: left;
    }

    #inpage{
        float: left; 
        width: 45%;
    }

    #inpage select{
        width: 100% !important;
        margin-top: 10px; 
    }

    #inpage div#dborder{
        margin-bottom: 50px;
    }

    /************************************/

    #m-wrapper{
        width: 80% !important;
        margin: 0 auto;
        display: table;
    }
}

/* iPads - landscape */
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) {

    #wrapper{
        width: 85% !important; 
    }

    #f-img img{
        width: 100%;
        height: auto !important;
    }
 
    #socialmedia{
        display: none !important;
    }
 
    #socialmedia-tp{
        margin: 0;
        padding: 0;
        float: right;
        display: block;
        width: 35%;
        margin-top: -5px;
    }
 
    #socialmedia-tp li{
         text-align: center;
         list-style: none;
         margin-bottom: 18px;
         margin-right: 2%;
         float: right;
         width: auto !important;
     }
 
     #socialmedia-tp li a{
         padding: 9px 10px 8px 10px;
         background: #929292;
         border-radius: 50%;
     }
 
     #socialmedia-tp #fb a{
         padding: 9px 12px 8px 12px;
         background: #929292;
         border-radius: 50%;
     }
 
     #socialmedia-tp li a:hover{
         padding: 9px 10px 8px 10px;
         background: #59ADEC;
         border-radius: 50%;
     }
 
     #socialmedia-tp #fb a:hover{
         padding: 9px 12px 8px 12px;
         background: #59ADEC;
         border-radius: 50%;
     }
 
     #socialmedia-tp li a i{
         color: #FFF;
         font-size: 11pt;
     }
 
     #s-date p{
         width: 55%; 
         float: left;
     }

     #s-title h1 {
        font-size: 22pt !important;
     } 

     #t-sidebar{
        margin-top: 45px;
    }

    .sidebar-item{
        padding-top: 10px;
    }

    #n-head img{
        margin-bottom: 20px;
    }
    
    #n-subhead img{
        margin-bottom: 20px;
    }
    
    #n-subcontent div img{
        margin-bottom: 20px;
    }

    #n-title{
        padding-top: 30px;
    }

    #psubcontainer{
        width: 100% !important;
        float: left !important;
        margin-bottom: 25px;
    }
    
    /************************************/
    #psubcontainer img{
        width: 40% !important;
        float: left !important;
    }

    #psubcontainer{
        width: 100% !important;
        float: left !important;
        margin-bottom: 25px;
        text-align: left;
    }

    #psubcontainer a{
        float: left !important;
        margin-right: 10px;
        margin-bottom: 15px;
        text-align: left;
    }

    #psubcontainer p{
        float: none !important;
        margin-bottom: 15px;
        text-align: left;
    }
    /************************************/
}

/* iPads - portrait */
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait) {

    #wrapper{
        width: 85% !important; 
    }
 
    #socialmedia{
        display: none !important;
    }
 
    #socialmedia-tp{
        margin: 0;
        padding: 0;
        float: right;
        display: block;
        width: 35%;
        margin-top: -5px;
    }
 
    #socialmedia-tp li{
         text-align: center;
         list-style: none;
         margin-bottom: 18px;
         margin-right: 2%;
         float: right;
         width: auto !important;
     }
 
     #socialmedia-tp li a{
         padding: 9px 10px 8px 10px;
         background: #929292;
         border-radius: 50%;
     }
 
     #socialmedia-tp #fb a{
         padding: 9px 12px 8px 12px;
         background: #929292;
         border-radius: 50%;
     }
 
     #socialmedia-tp li a:hover{
         padding: 9px 10px 8px 10px;
         background: #59ADEC;
         border-radius: 50%;
     }
 
     #socialmedia-tp #fb a:hover{
         padding: 9px 12px 8px 12px;
         background: #59ADEC;
         border-radius: 50%;
     }
 
     #socialmedia-tp li a i{
         color: #FFF;
         font-size: 11pt;
     }
 
     #s-date p{
         width: 55%; 
         float: left;
     }

     #s-title h1 {
        font-size: 22pt !important;
     } 

     #t-sidebar{
        margin-top: 45px;
     }

     .sidebar-item{
        padding-top: 10px;
    }

    #n-head img{
        margin-bottom: 20px;
    }
    
    #n-subhead img{
        margin-bottom: 20px;
    }
    
    #n-subcontent div img{
        margin-bottom: 20px;
    }

    #n-title{
        padding-top: 30px;
    }

    #psubcontainer{
        width: 100% !important;
        float: left !important;
        margin-bottom: 25px;
    }
    
    /************************************/
    #psubcontainer img{
        width: 40% !important;
        float: left !important;
    }

    #psubcontainer{
        width: 100% !important;
        float: left !important;
        margin-bottom: 25px;
        text-align: left;
    }

    #psubcontainer a{
        float: left !important;
        margin-right: 10px;
        margin-bottom: 15px;
        text-align: left;
    }

    #psubcontainer p{
        float: none !important;
        margin-bottom: 15px;
        text-align: left;
    }
    /************************************/
}