* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f6f7f9;
    color: #1d2530;
    font-family: Arial, Helvetica, sans-serif;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 68px;
    padding: 0 32px;
    background: #ffffff;
    border-bottom: 1px solid #dfe3e8;
}

.brand {
    color: #111827;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 6px;
    color: #4b5563;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active {
    background: #e8eef7;
    color: #10233f;
}

.page-shell,
.site-footer {
    width: min(1120px, calc(100% - 32px));
    margin-right: auto;
    margin-left: auto;
}

.page-shell {
    margin-top: 40px;
    margin-bottom: 40px;
}

.site-footer {
    margin-top: 48px;
    margin-bottom: 24px;
    padding-top: 20px;
    border-top: 1px solid #dfe3e8;
    color: #607086;
    font-size: 14px;
}

.page-heading {
    margin-bottom: 28px;
}

.eyebrow {
    margin: 0 0 8px;
    color: #607086;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

h1 {
    margin: 0 0 12px;
    font-size: 36px;
    line-height: 1.15;
}

h2 {
    margin: 0 0 10px;
    font-size: 20px;
}

p {
    max-width: 720px;
    margin: 0;
    color: #526173;
    line-height: 1.55;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

/* The photo stream is laid out by Masonry and keeps the compatible gallery markup. */
.buy_photos #pdopage.grid {
    display: block;
}

.buy_photos #pdopage > .rows {
    width: 100%;
}

.buy_photos .showzax_container {
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
}

/* Event detail galleries use the legacy three-column Masonry layout. */
.blog-single-page-gallery .grid {
    display: block;
    width: 100%;
}

.blog-single-page-gallery .grid-sizer,
.blog-single-page-gallery .grid-item {
    width: 33.333333%;
}

/* Favorites keep the original four-column card size. */
.blog-single-page-gallery-list .grid {
    display: block;
    width: 100%;
}

.blog-single-page-gallery-list .grid-sizer,
.blog-single-page-gallery-list .grid-item {
    width: 25%;
}

.blog-single-page-gallery-list .grid-item > a {
    width: 100%;
    padding: 0;
}

@media (max-width: 991.98px) {
    .blog-single-page-gallery .grid-sizer,
    .blog-single-page-gallery .grid-item {
        width: 50%;
    }

    .blog-single-page-gallery-list .grid-sizer,
    .blog-single-page-gallery-list .grid-item {
        width: 33.333333%;
    }
}

@media (max-width: 767.98px) {
    .blog-single-page-gallery .grid-sizer,
    .blog-single-page-gallery .grid-item {
        width: 100%;
    }

    .blog-single-page-gallery-list .grid-sizer,
    .blog-single-page-gallery-list .grid-item {
        width: 50%;
    }
}

.panel {
    min-height: 140px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #dfe3e8;
    border-radius: 8px;
}

@media (max-width: 760px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px;
    }

    .site-nav {
        width: 100%;
    }

    .site-nav a {
        flex: 1 1 auto;
        justify-content: center;
    }

    h1 {
        font-size: 30px;
    }
}
