h1.fronttitle {
    margin-left: 80px;
    margin-bottom: 50px;
    color: #2a9c50;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

nav {
    float: left;
    width: 120px;
    margin-left: 80px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

p {
    margin-left: 225px;
    max-width: 500px;
    text-align: left;
}

h2 {
    margin-left: 225px;
    margin-bottom: 0;
    margin-block-end: 10px;
}

h3 {
    margin-left: 225px;
    margin-bottom: 0;
    margin-block-end: 10px;
}

h4 {
    margin-left: 225px;
    margin-top: 0px;
}

.review-img {
    display: block;
    margin-left: 225px;
    max-width: 500px;
    height: auto;
}

.category-list {
    margin-left: 250px;
    padding: 0;
}

nav + p,
nav + h2 {
    margin-top: 60px;
}

nav a.active {
    font-weight: bold;
    font-size: 1.1em;
}

.centered {
    text-align: center;
}

.postlink {
    font-size: 1.1em;
    display: block;
    margin: 0;
}

p:has(.postlink) {
    margin: 0;
}

a:visited {
    color: #0000EE;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: center;
    margin-left: 225px;
}

.gallery img {
    width: 100%;
    height: auto;
}

.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.925);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox-overlay.open {
    display: flex;
}

.lightbox-overlay img {
    max-width: 65%;
    max-height: 65%;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: grey;
    font-size: 2em;
    cursor: pointer;
}

.lightbox-close {
    top: 20px;
    left: 20px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev.hidden,
.lightbox-next.hidden {
    display: none;
}

@media (max-width: 600px) {
    nav {
        float: none;
        width: auto;
    }

    p {
        margin-left: 0;
        max-width: none;
        padding-left: 8%;
        padding-right: 8%;
    }
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-left: 225px;
    margin-right: 40px;
    margin-bottom: 1.25rem;
}

/* undo your global text rules inside the columns */
.row p,
.row h2,
.row h3,
.row h4 {
    margin-left: 0;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

/* optional divider */
.row > div:first-child {
    border-right: 1px solid #ccc;
    padding-right: 1rem;
}

nav + .row {
    margin-top: 60px;
}

.rotate-note {
    display: none;
    margin-left: 0;
}

@media (max-width: 600px) and (orientation: portrait) {
    .rotate-note {
        display: block;
        background: #fff3cd;
        padding: 0.75rem;
        text-align: center;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .row {
        margin-left: 20px;
        margin-right: 20px;
    }
}

.full-row {
    margin-left: 225px;
    margin-right: 40px;
    margin-bottom: 1.25rem;
}

.full-row p {
    margin-left: calc((100% - 2rem) / 4);
    margin-right: calc((100% - 2rem) / 4);
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

/* optional: center the text */
.full-row.centered {
    text-align: center;
}

@media (orientation: landscape) and (max-height: 500px) {
    .full-row {
        margin-left: 20px;
        margin-right: 20px;
    }
}

.full-row.centered p {
    text-align: center;
}