#photopop {
    height: 80%;
    top: 10%;
    width: 95%;
}

#smallcontrols {
    display: flex;
    justify-content: center;
    height: 50px;
    margin: 20px 0 20px 0;
    width: 100%;
}

#smallcontrols a {
    color: black;
    text-decoration: none;
}

.largecontrols {
    display: none;
}

#closepop, #previousphoto, #nextphoto {
    border: 3px solid #282828;
    font-size: 2em;
    height: 100%;
}

#closepop {
    margin: 0 50px 0 50px;
    order: 1;
    width: 50px;
}

#previousphoto, #nextphoto {
    width: 100px;
}

#previousphoto {
    order: 0;
}

#nextphoto {
    order: 2;
}

#photo img, #photopop img {
    max-height: 90%;
    max-width: 95%;
    object-fit: contain;
}

#photopop img {
    align-self: flex-start;
}

#header {
    background-color: #C8C8C8;
    font-size: 2em;
}

h1 a {
    color: #282828;
}

#nav {
    background-color: #282828;
    font-size: 1.5em;
}

#nav a {
    color: #C8C8C8;
}

#nav, #photogrid, #photo, #about, #footer {
    flex-basis: 100%;
}

#photo, #photogrid, #about {
    border-width: 50px 50px 100px 50px;
}

#photogrid {
    gap: 5px 10px;
    grid-template-columns: 1fr 1fr;
    padding: 10px;
}

#photogrid a {
    margin: 0;
}

#about {
    font-size: 2.5em;
}

.aboutgroup {
    flex-wrap: wrap;
    margin: 10px;
}

.aboutgroup img, .aboutgroup p {
    flex-basis: 100%;
}

#caseranch p {
    margin: 0 0 30px 0;
}

@media (orientation: landscape) {
    #photopop {
        height: 90%;
        top: 2%;
    }

    #smallcontrols {
        height: 30px;
        margin: 5px 0 5px 0;
    }

    #closepop {
        margin: 0 30px 0 30px;
        width: 30px;
    }

    #closepop, #previousphoto, #nextphoto {
        font-size: 1.2em;
    }

    #photopop img {
        max-height: 85%;
    }
}