/* ==================================================================

*   Ceevee Media Queries
*   url: styleshout.com
*   03-18-2014

/* ================================================================== */


/* screenwidth less than 1024px
--------------------------------------------------------------------- */
@media only screen and (max-width: 1024px) {

    /* header styles
   ------------------------------------------------------------------ */
   header .banner-text h1 {
      font: 80px/1.1em 'opensans-bold', sans-serif;
      letter-spacing: -1px;
      margin: 0 auto 12px auto;
   }

}

/* screenwidth less than 900px
--------------------------------------------------------------------- */
@media only screen and (max-width: 900px) {

    /* header styles
   ------------------------------------------------------------------ */
   header .banner { padding-bottom: 12px; }
   header .banner-text h1 {
      font: 78px/1.1em 'opensans-bold', sans-serif;
      letter-spacing: -1px;      
   }
   header .banner-text h3 {
      font: 17px/1.9em 'librebaskerville-regular', serif;
      width: 80%;
   }
   header .banner-text hr {
      width: 65%;
      margin: 12px auto;
   }
   /* nav-wrap */
   #nav-wrap {
      font: 11px 'opensans-bold', sans-serif;
      letter-spacing: 1.5px;
   }


   /* About Section
   ------------------------------------------------------------------- */
   #about .profile-pic {
      width: 114px;
      height: 114px;
      margin-left: 12px;
   }
   #about .contact-details { width: 50%; }
   #about .download { width: 50%; }

   /* Resume Section
   ------------------------------------------------------------------- */
   #resume h1 { font: 16px/24px 'opensans-bold', sans-serif; }
   #resume .main-col { padding-right: 5%; }   

   /* Testimonials Section
   ------------------------------------------------------------------- */
   #testimonials .header-col h1:before {
      font-size: 66px;
      line-height: 66px;
   }
   #testimonials blockquote p {
      font-size: 22px;
      line-height: 46px;      
   }

    /* Call to Action Section
   ------------------------------------------------------------------- */
   #call-to-action .header-col h1:before {
      font-size: 66px;
      line-height: 66px;
   }

   /* Contact Section
   ------------------------------------------------------------------- */
   #contact .section-head { margin-bottom: 30px; }
   #contact .header-col h1:before {
      font-size: 66px;
      line-height: 66px;
   }
   #contact .section-head p.lead { font: 17px/33px opensans-light, sans-serif; }


}

/* mobile wide/smaller tablets
---------------------------------------------------------------------- */

@media only screen and (max-width: 767px) {

   /* mobile navigation
   -------------------------------------------------------------------- */
   #nav-wrap {
      font: 12px 'opensans-bold', sans-serif;
      background: transparent !important;
      letter-spacing: 1.5px;  
      width: auto;
      position: fixed;
      top: 0;
      right: 0;
   }
   /* #nav-wrap > a {
	   width: 48px;
		height: 48px;
		text-align: left;
		background-color: #CC5200;
		position: relative;
      border: none;
      float: right;

      font: 0/0 a;
      text-shadow: none;
      color: transparent;

      position: relative;
      top: 0px;
      right: 12px;
   }

	#nav-wrap > a:before,
   #nav-wrap > a:after {
	   position: absolute;
		border: 2px solid #fff;
		top: 35%;
		left: 25%;
		right: 25%;
		content: '';
	}
   #nav-wrap > a:after { top: 60%; } */
#nav-wrap > a {
   width: 48px;
   height: 48px;
   text-align: left;
   background-color: transparent;
   background-image: url('../images/diak/diak-logo.jpg');
   background-size: contain;
   background-repeat: no-repeat;
   background-position: center;
   position: relative;
   border: 2px solid rgba(255,255,255,0.5);
   border-radius: 8px;
   float: right;

   font: 0/0 a;
   text-shadow: none;
   color: transparent;

   top: 0px;
   right: 12px;
}

/* Remove hamburger lines */
#nav-wrap > a:before,
#nav-wrap > a:after {
   content: none !important;
   border: none !important;
}
   /* toggle buttons */
	#nav-wrap:not( :target ) > a:first-of-type,
	#nav-wrap:target > a:last-of-type  {
	   display: block;
	}

   /* hide menu panel */
   #nav-wrap ul#nav {
      height: auto;
		display: none;
      clear: both;
      width: auto; 
      float: right;     

      position: relative;
      top: 12px;
      right: 0;
   }

   /* display menu panels */
	#nav-wrap:target > ul#nav	{
	   display: block;
      padding: 30px 20px 48px 20px;
      background: #1f2024;
      margin: 0 30px;
      clear: both;
   }

   ul#nav li {
      display: block;
      height: auto;      
      margin: 0 auto; 
      padding: 0 4%;           
      text-align: left;
      border-bottom: 1px solid #2D2E34;
      border-bottom-style: dotted; 
   }
  
   ul#nav li a {  
      display: block;    
      margin: 0;
      padding: 0;      
      margin: 12px 0; 
      line-height: 16px; /* reset line-height from 48px */
      border: none;
   }  


   /* Header Styles
   -------------------------------------------------------------------- */
   header .banner {
      padding-bottom: 12px;
      padding-top: 6px;
   }
   header .banner-text h1 { font: 68px/1.1em 'opensans-bold', sans-serif; }
   header .banner-text h3 {
      font: 16px/1.9em 'librebaskerville-regular', serif;
      width: 85%;
   }
   header .banner-text hr {
      width: 80%;
      margin: 18px auto;
   }

   /* header social links */
   header .social {
      margin: 18px 0 24px 0;
      font-size: 24px;
      line-height: 36px;      
   }
   header .social li { margin: 0 10px; }

    /* scrolldown link */
   header .scrolldown { display: none; }


   /* About Section
   -------------------------------------------------------------------- */
   #about .profile-pic { display: none; }
   #about .download .button {
      width: 100%;
      text-align: center;
      padding: 15px 20px;
   }
   #about .main-col { padding-right: 30px; }


   /* Resume Section
   --------------------------------------------------------------------- */
   #resume .header-col {
      padding-top: 0;
      margin-bottom: 48px;
      text-align: center;
   }
   #resume h1 { letter-spacing: 3px; }
   #resume .main-col { padding-right: 30px; }
   #resume h3, #resume .info { text-align: center; }
      
   .bars { width: 100%; }


   /* Call To Action Section
   /* ----------------------------------------------------------------- */
   #call-to-action { text-align: center; }
   #call-to-action h1 {
      font: 16px/24px 'opensans-bold', sans-serif;
      text-align: center;
      margin-bottom: 30px;
      text-shadow: 0px 1px 3px rgba(0, 0, 0, 1);
   }
   #call-to-action h1 span { display: block; }
   #call-to-action .header-col h1:before { content: none; }
   #call-to-action p { font-size: 15px; }


   /* Portfolio Section
   /* ----------------------------------------------------------------- */
   #portfolio-wrapper .columns { margin-bottom: 40px; }
   .popup-modal {	max-width: 85%; }


   /* Testimonials Section
   ----------------------------------------------------------------------- */
   #testimonials .text-container { text-align: center; }
   #testimonials h1 {
      font: 16px/24px 'opensans-bold', sans-serif;
      text-align: center;
      margin-bottom: 30px;
      text-shadow: 0px 1px 3px rgba(0, 0, 0, 1);
   }
   #testimonials h1 span { display: block; }
   #testimonials .header-col h1:before { content: none; }
   #testimonials blockquote { padding-bottom: 24px; }
   #testimonials blockquote p {
      font-size: 20px;
      line-height: 42px;      
   }

   /* Control Nav */
   .flex-control-nav {
      text-align: center;
      margin-left: -30px;
   }


   /* contact Section
   ----------------------------------------------------------------------- */
   #contact { padding-bottom: 66px; }
   #contact .section-head { margin-bottom: 12px; }
   #contact .section-head h1 {
      font: 16px/24px 'opensans-bold', sans-serif;            
      text-align: center;   
      margin-bottom: 30px;
      text-shadow: 0px 1px 3px rgba(0, 0, 0, 1);
   }  
   #contact h1 span { display: block; }
   #contact .header-col { padding-top: 0; }
   #contact .header-col h1:before { content: none;	}
   #contact .section-head p.lead { text-align: center;}

   /* form */
   #contact label {
      float: none;
      width: 100%;
   }
   #contact input,
   #contact textarea,
   #contact select {
     	margin-bottom: 6px;    	
      width: 100%;
   }
   #contact button.submit { margin: 30px 0 24px 0; }
   #message-warning, #message-success {
      width: 100%;
      margin-left: 0;
   }


   /* footer
   ------------------------------------------------------------------------ */
  
   /* copyright */
   footer .copyright li:before { content: none; }
   footer .copyright li { margin-right: 12px; }

   /* social links */
   footer .social-links { font-size: 22px; }
   footer .social-links li { margin-left: 18px; }

   /* Go To Top Button */
   #go-top { margin-left: -22px; }
   #go-top a {
   	width: 54px;
   	height: 54px;
      font-size: 18px;
      line-height: 54px;
   }

   /* inside the existing max-width: 767px block in media-queries.css */

   #designprinciples-wrapper.cf::before,
   #designprinciples-wrapper.cf::after {
      content: none !important;
      display: none !important;
   }

   #designprinciples-wrapper.bgrid-quarters.s-bgrid-thirds.cf {
      display: flex !important;
      flex-wrap: wrap !important;
      justify-content: center !important;
      gap: 20px !important;
   }

   #designprinciples-wrapper.bgrid-quarters .columns,
   #designprinciples-wrapper.bgrid-quarters .columns:first-child,
   #designprinciples-wrapper.bgrid-quarters .columns:last-child {
      width: 260px !important;
      float: none !important;
      margin: 0 !important;
      padding: 0 !important;
      clear: none !important;
   }

   #designprinciples-wrapper .designprinciples-item .item-wrap {
      display: block !important;
      background: transparent !important;
      width: 100% !important;
   }

   #designprinciples-wrapper .designprinciples-item .item-wrap img {
      width: 100% !important;
      height: 233px !important;
      display: block !important;
   }

   /* Design Principles modal – mobile positioning */
   .popup-modal {
      max-width: 95% !important;
   }

   .mfp-wrap .mfp-container {
      vertical-align: top !important;
      /* padding-top: 10px !important; */
   }

   /* Force no padding on gallery cards */
   #gallery #diak-project-grid > div.columns.diak-project-card {
      padding: 0 !important;
      margin: 0 !important;
      width: 100% !important;
      box-sizing: border-box !important;
   }

   #gallery .diak-project-card__wrap {
      background: transparent !important;
   }

   #gallery .diak-project-card__img {
      border-radius: 6px !important;
   }

   /* Project modal – mobile typography */
   .diak-project-modal__body {
      padding: 20px 16px !important;
   }

   .diak-project-modal__title {
      font-size: 20px !important;
      line-height: 1.2 !important;
      margin-bottom: 4px !important;
   }

   .diak-project-modal__subtitle {
      font-size: 14px !important;
      margin-bottom: 12px !important;
   }

   .diak-project-modal__meta {
      gap: 10px !important;
   }

   .diak-project-modal__meta span {
      font-size: 11px !important;
      letter-spacing: 1.5px !important;
      margin-bottom: 2px !important;
      color: #999 !important;
   }

   .diak-project-modal__meta > div {
      font-size: 14px !important;
      line-height: 1.5 !important;
   }

   .diak-project-modal__meta > div:last-child {
      font-size: 13px !important;
      line-height: 1.6 !important;
   }

   .diak-project-modal__footer {
      padding: 12px 16px !important;
   }

   /* People section – center cards on mobile */
   #people > .row {
      width: auto !important;
      max-width: 100% !important;
      padding: 0 20px !important;
   }

   #people .columns.portfolio-item {
      display: flex !important;
      justify-content: center !important;
      padding: 0 !important;
   }

   #people .item-wrap {
      max-width: 300px !important;
      width: 100% !important;
   }

   /* People modal – mobile typography */
   .popup-modal-pfp .description-box {
      padding: 20px 16px !important;
   }

   .popup-modal-pfp .description-box h4 {
      font-size: 22px !important;
      line-height: 1.2 !important;
      margin-bottom: 6px !important;
   }

   .popup-modal-pfp .title {
      font-size: 14px !important;
      margin-bottom: 12px !important;
   }

   .popup-modal-pfp .description-box p {
      font-size: 13px !important;
      line-height: 1.6 !important;
   }

   .popup-modal-pfp .credentials {
      font-size: 11px !important;
   }

   .popup-modal-pfp .link-box {
      padding: 12px 16px !important;
   }

   #contact .contact-logo span {
      display: inline !important;
   }


   .fixed-logo {
      font-size: 11px !important;
      padding: 6px 12px !important;
      text-align: center !important;
   }

   .fixed-logo-img {
   display: none !important;
   }
}

/* mobile narrow
  -------------------------------------------------------------------------- */

@media only screen and (max-width: 480px) {

   /* mobile navigation
   -------------------------------------------------------------------- */
   #nav-wrap ul#nav { width: auto; float: none; }

   /* header styles
   -------------------------------------------------------------------- */
   header .banner { padding-top: 24px; }
   header .banner-text h1 {
      font: 40px/1.1em 'opensans-bold', sans-serif;      
      margin: 0 auto 24px auto;
   }
   header .banner-text h3 {
      font: 14px/1.9em 'librebaskerville-regular', sans-serif;
      width: 90%;
   }
  
   /* header social links */
   header .social { font-size: 20px;}
   header .social li { margin: 0 6px; }

   /* footer
   ------------------------------------------------------------------------ */

   /* social links */
   footer .social-links { font-size: 20px; }
   footer .social-links li { margin-left: 14px; }   

}









