/* PDX Additional CSS — cleaned December 3, 2026 */

/* Gravity Forms */
.gform-body p {
    margin-top: 1em;
    margin-bottom: 1em;
}

.gsection {
    background-color: #262626;
    padding: 15px;
    color: white;
    margin-top: 30px;
    margin-bottom: 30px;
}

.gsection h3 {
    color: white;
    text-transform: uppercase;
}

.gform_body table td, .gform_body table th {
    border: 0px;
    padding-left: 0;
}

.gform_heading {
    margin-bottom: 30px;
}

/* Legacy WordPress support gallery fix | MJR | hc-35172942
Retained for compatibility with historical galleries. */
figure.wp-block-gallery.has-nested-images {
    display: flex;
}

/* Homepage: default background photograph */
body.home {
    background-image: url('https://pdxdogs.com/wp-content/uploads/2026/11/Spaniel-Day-Group-Portrait.png');
}

/* PDX Nosework Yearbook introduction */
.pdx-yearbook-intro {
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: #333333;
    margin-bottom: 28px;
}

.pdx-yearbook-intro p {
    font-size: 16px !important;
    line-height: 1.6 !important;
    margin-top: 0 !important;
    margin-bottom: 16px !important;
}

.pdx-yearbook-intro h2 {
    font-size: 28px !important;
    line-height: 1.3 !important;
    margin-top: 28px !important;
    margin-bottom: 16px !important;
}

.pdx-yearbook-intro h3 {
    font-size: 21px !important;
    line-height: 1.4 !important;
    margin-top: 24px !important;
    margin-bottom: 10px !important;
}

.pdx-yearbook-intro ul {
    margin-top: 8px !important;
    margin-bottom: 20px !important;
    padding-left: 28px !important;
}

.pdx-yearbook-intro li {
    font-size: 16px !important;
    line-height: 1.6 !important;
    margin-bottom: 8px !important;
}

.pdx-yearbook-intro strong {
    font-weight: 700 !important;
}

/* Nosework Yearbook paragraph text */
.page-id-51581 .entry-content p {
    font-size: 18px;
    line-height: 1.6;
}

/* Desktop homepage: place the yellow block beside the menu */
@media (min-width: 1025px) {
    body.home #page.site {
        width: 320px;
        margin: 32px 0 auto 220px;
    }

    body.home #masthead .site-logo {
        padding: 14px 20px 8px;
    }

    body.home #masthead .site-branding {
        padding: 0 20px 10px;
    }

    body.home #colophon {
        padding: 10px 20px 14px;
    }

}

/* Homepage: show the city, phone, and email in the yellow block */
body.home .homepage-footer,
body.home .homepage-footer a {
    color: #222;
}

body.home .homepage-footer p {
    margin: 0 0 6px;
}

body.home .homepage-footer p:first-child a {
    font-size: 0;
}

body.home .homepage-footer p:first-child br {
    display: none;
}

body.home .homepage-footer p:first-child a::after {
    content: "Chattanooga, TN";
    font-size: 16px;
}

/* Mobile homepage: background, compact logo and contact block */
@media (max-width: 767px) {
    body.home {
        background-image: url('https://pdxdogs.com/wp-content/uploads/2026/11/02-P1940501.jpg');
        background-position: 75% 120px;
        background-repeat: no-repeat;
    }

    body.home #masthead .site-logo {
        margin-top: 0 !important;
        padding: 10px 14px 4px;
    }

    body.home #masthead .custom-logo-link {
        display: block;
        width: min(220px, 100%);
        margin: 0 auto;
    }

    body.home #masthead .custom-logo {
        display: block;
        width: 100%;
        height: auto;
        max-width: none;
        max-height: none;
    }

    body.home #masthead .site-branding {
        padding: 0 14px 4px;
    }

    body.home #masthead .site-description {
        margin: 0;
    }

    body.home #colophon {
        padding: 4px 14px 10px;
    }

    body.home .homepage-footer p {
        margin: 0 0 3px;
        font-size: 16px;
        line-height: 1.25;
    }
}

/* PDX Photo Gallery Captions */

.pdx-photo-gallery figure.wp-block-image {
    display: flex !important;
    flex-direction: column !important;
}

.pdx-photo-gallery figcaption {
    position: static !important;
    background: none !important;
    color: #222222 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-align: center !important;
    text-shadow: none !important;
    padding: 8px 4px 12px !important;
    margin: 0 !important;
    width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

/* PDX Gallery Archive Layout */

.gallery-loop {
    display: block !important;
}

.gallery-loop > * {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

/* Latest galleries */

.gallery-loop .pdx-gallery-latest {
    background: #fff9e6;
    border: 2px solid #efc332;
    border-radius: 8px;
    padding: 24px;
    margin: 0 0 32px;
    text-align: center;
}

.pdx-gallery-latest h2 {
    color: #222;
    font-size: 30px;
    margin: 0 0 8px;
}

.pdx-gallery-latest p {
    color: #444;
    font-size: 17px;
    margin-bottom: 20px;
}

.pdx-gallery-latest ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pdx-gallery-latest li {
    margin: 0;
    padding: 0;
}

.pdx-gallery-latest a {
    display: block;
    background: #efc332;
    color: #111 !important;
    padding: 18px 12px;
    border-radius: 6px;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none !important;
}

.pdx-gallery-latest a:hover,
.pdx-gallery-latest a:focus-visible {
    background: #dfb323;
    text-decoration: underline !important;
}

/* Historical archive */

.gallery-loop .pdx-gallery-archive-heading {
    font-size: 26px;
    margin: 24px 0 4px;
}

.gallery-loop .pdx-gallery-archive-instructions {
    font-size: 16px;
    margin: 0 0 20px;
}

.gallery-loop .pdx-gallery-history {
    display: block;
    border: 1px solid #d5d5d5;
    border-radius: 6px;
    margin: 0 0 8px;
    padding: 0;
    background: #fff;
    color: #222;
}

.pdx-gallery-history summary {
    cursor: pointer;
    padding: 10px 18px;
    font-size: 20px;
    font-weight: 600;
}

.pdx-gallery-history summary:hover {
    background: #fff9e6;
}

.pdx-gallery-history[open] summary {
    border-bottom: 1px solid #ddd;
}

.pdx-gallery-history ul {
    padding: 12px 24px 12px 40px;
    margin: 0;
}

.pdx-gallery-history li {
    margin-bottom: 6px;
}

.pdx-gallery-history a {
    color: #333 !important;
    text-decoration: underline;
}

/* Mobile layout */

@media (max-width: 600px) {
    .pdx-gallery-latest ul {
        grid-template-columns: 1fr;
    }

    .gallery-loop .pdx-gallery-latest {
        padding: 16px;
    }

    .pdx-gallery-latest h2 {
        font-size: 26px;
    }
}

/* PDX - Remove unnecessary gallery post elements */

.pdx-gallery-post .sharedaddy,
.pdx-gallery-post .sd-sharing-enabled,
.pdx-gallery-post .sd-like,
.pdx-gallery-post .entry-footer,
.pdx-gallery-post .post-navigation {
    display: none !important;
}