@media only screen and (max-width: 1150px) {
/* Make header text smaller - home */
    .hero .name { font-size: 4em }
    .hero .roles { font-size: 1.75rem }
}

@media only screen and (max-width: 1000px) {
/* Vertical orientation for all - home */
    .hero .container {
        flex-direction: column-reverse;
        justify-content: center;
        align-items: center;
        gap: 0;
    }

    .hero .text {
        text-align: center;
        margin-top: 30px;
    }

    .hero .name { margin-bottom: 20px; }
    .hero .roles { margin-bottom: 30px; }    
    .hero .desktop { display: none; }
    .home-pubs h2 { text-align: center; }
    .home-pubs figure { margin-bottom: 60px; }
    .home-pubs figure:last-of-type { margin-bottom: 0; }

    .home-pubs img {
        width: 100%;
        max-width: 300px;
        height: auto;
    }

    .home-pubs .books {
        flex-direction: column;
        gap: 0;
        align-items: center;
        justify-content: center;
    }

    .home-pubs .pubdesc { height: auto; }
    .home-pubs .blue-btn.sm-btn { margin: 30px 0 0 0;}

    footer .container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
    }

    footer .info, footer nav { 
        width: auto;
        text-align: center;
        padding-left: 0;
    }

    footer .info { margin-bottom: 60px; }
    footer .linkedin { margin-right: 0; }
    .pubs figure.photo1 { width: 40%; }

    .long-btn { font-size: 1rem; }
    .long-btn a { padding: 5px 15px 10px 15px; }
    .long-btn svg { 
        width: 25px;
        height: 25px;
    }

}

@media only screen and (max-width: 750px) {
/* Make other sections' text smaller - home */
/* Vertical orientation for all - secondary */
    .quote .container::before {
        font-size: 7.5rem;
        left: -80px;
        top: -50px;
    }
    
    .quote .lede { font-size: 1.75rem; }
    .quote .subquote, .quote cite { 
        font-size: 1.2rem;
        line-height: 200%;
    }

    .home-pubs h2 { font-size: 2rem; }

    footer .copyright p { margin-bottom: 10px; }

    .secondary .title-container { justify-content: center; }
    .secondary h2 { width: auto; }
    .secondary h3 { text-align: center; }

    .about figure.photo1, .pubs figure.photo1, figure.photo2 {
        float: none;
        margin: 0 auto 20px auto;
        width: 50%;
    }

    .about figure.photo1 img, .about figure.photo2 img { height: auto; }
    
    .photos .container { flex-direction: column; }
    .photos figure { width: 100%; }
    .photos figure:first-of-type { margin-bottom: 30px; }

    .about button {
        display: block;
        margin: 0 auto;
    }

    .pubs figure.photo1 img {
        max-height: 500px;
    }

    .pubs .btn-group {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }
    .pubs .btn-group button { margin-right: 0; }

    .pubs button {
        display: block;
        margin: 0 auto;
    }

    .open-popup {
        display: block;
    }

    .open-popup .btn-group button {
        margin: 0 auto !important;
    }

    .popup {
        width: 80%;
        margin: 0 10%;
        left: 0;
        background-color: rgb(255, 255, 255, 0.9);
    }

    .popup::after {
        left: 50%;
        opacity: 0.9;
    }

    .pubs .essays h2 {
        text-align: center;
        margin-bottom: 30px;
    }

    .pubs .essays .misc p, .pubs p.release {
        text-align: center;
    }

    .services figure.photo1 {
        float: none;
        width: 75%;
        margin: 10px auto;
    }

    .services figure.photo1 img {
        width: 100%;
        max-height: 400px;
        object-fit: cover;
        object-position: center center;
    }

    .contact .copy .container {
        flex-direction: column;
        align-items: center;
    }
}

@media only screen and (max-width: 600px) {
/* Bring in mobile nav, change to mobile specs - home/secondary */
    header { padding: 15px 0; }
    header h1 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    header .hr-container { width: 156px; }
    header hr.left { margin-right: 10px; }
    header hr.right { margin-left: 10px; }

    header nav .close-icon {
        display: block;
		position: absolute;
        top: 25px;
        right: 25px;
        z-index: 98;
        width: 30px;
        height: 32px;
        -webkit-user-select: none;
        user-select: none;
    }

    header nav .close-icon input {
        position: absolute;
        top: -7px;
        left: -5px;
        width: 40px;
        height: 32px;        
        cursor: pointer;
        opacity: 0; /* hide this */
        z-index: 100; /* and place it over the hamburger */
        -webkit-touch-callout: none;
    }
  
    header nav .close-icon span {
        display: block;
        width: 30px;
        height: 3px;
        margin-bottom: 7px;
        position: relative;
        background: #fff;
        z-index: 99;
        transform-origin: 0px 0px;
        transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
                  background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
                  opacity 0.55s ease;
    }
  
    header nav .close-icon input:hover ~ span { background: #fff; }
    header nav .close-icon span:first-child { transform-origin: 0% 0%; }
    header nav .close-icon span:nth-last-child(2) { transform-origin: 50% 100%; }
    header nav .close-icon input:checked ~ span {
        opacity: 1;
        transform: rotate(45deg) translate(-6px, -22px);
        background: #fff;
    }
  
    header nav .close-icon input:checked:hover ~ span { background: #fff; }
    header nav .close-icon input:checked ~ span:nth-last-child(3) {
      opacity: 0;
      transform: rotate(0deg) scale(0.2, 0.2);
    }
  
    header nav .close-icon input:checked ~ span:nth-last-child(2) { 
        transform: rotate(-45deg) translate(5px, 5px); 
    }

    header nav ul {
        margin: 0;
        position: absolute;
        top: 75px;
        right: 0;
        left: 0;
        z-index: -1;
        background-color: #5D2142;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-25px);
        transition: transform 0.3s ease-out, opacity 0.3s ease-out, visibility 0.3s ease-out;
    }

    header nav ul.active {
		visibility: visible;
		opacity: 1;
		transform: translateY(0);
        z-index: 100;
	}

    header nav ul li {
        display: block;
        text-align: center;
        margin: 0;
    }

    header nav ul li a { 
        display: block;
        width: 100%;
        padding: 15px 0;
    }

    main {
        margin-top: 79px;
    }

    .hero { padding: 40px 5% 75px 5%; }
    .hero img {
        width: 95%;
        height: auto;
        margin: 0 2.5%;
        border: 10px solid #eddfef;
    }

    .hero .name {
        font-size: 2.625rem;
        line-height: 100%;
        margin: 0 0 25px 0;
    }
    
    .hero .roles {
        font-size: 1.5rem;
        margin: 0 0 30px 0;
    }
    .hero .roles p { margin-bottom: 5px; }

    .lg-btn {
        font-size: 1.25rem;
        height: 50px;
    }

    .lg-btn svg {
        margin-left: 10px;
        height: 25px;
        width: 25px;
        top: 5px;
    }

    .quote { padding: 25px 10% 25px 15%; }
    .quote .container::before {
        font-size: 4.6875rem;
        left: -55px;
        top: -25px;
    }

    .quote .lede {
        font-size: 1.6875rem;
        line-height: 175%;
        margin-bottom: 10px;
    }

    .quote .subquote, .quote cite { font-size: 1.15rem; }
    .quote .subquote { margin-bottom: 10px; }
    .home-pubs { padding: 60px 5% 50px 5%; }
    .home-pubs img { max-width: 290px; }
    .secondary main { padding-top: 0; }

    .secondary h2 {
        font-size: 2.25rem;
        line-height: 125%;
    }

    .secondary .copy h3 {
        font-size: 1.6875rem;
        margin-bottom: 30px;
    }

    .about figure.photo1 { width: 75%; }
    .about figure.photo2 { width: 100%; }
    .about figure.photo1 img, .about figure.photo2 img { max-height: none; }
    .photos { padding: 75px 5% 50px 5%; }
    .photos img { height: auto; }

    .pubs figure.photo1 { width: 75%; }
    .pubs .essays h2 { 
        font-size: 2.25rem; 
        margin-bottom: 50px;
    }

    .services .disclaimer {
        text-align: center;
    }

    .services button, .contact button {
        display: block;
        margin: 15px auto 0 auto;
    }

    .contact .note {
        text-align: center;
    }
}

@media only screen and (max-width: 400px) {

    .hero .name { font-size: 2.5rem; }    
    .about figure.photo1, .pubs figure.photo1, .services figure.photo1 { width: 100%; }
    .sm-btn, .long-btn { font-size: 0.9rem; }
    .long-btn a {
            padding: 5px 10px 10px 10px;
    }
    .long-btn svg {
        width: 20px; 
        height: 20px;
    }
}

@media only screen and (min-width: 1921px) {

    .container, .secondary h2 { max-width: 1200px; }
    .hero img { height: 600px; }
    .pubs .copy blockquote:nth-of-type(3) cite { margin-right: 28%; }

}