.pup-section {
    margin: 0 0 34px;
}

.pup-hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 220px 220px;
    gap: 8px;
    margin-bottom: 22px;
    overflow: hidden;
    border-radius: 18px;
    background: #e8eee9;
}

.pup-hero-photo {
    position: relative;
    display: block;
    overflow: hidden;
    background: #dfe7e1;
}

.pup-hero-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .25s ease;
}

.pup-hero-photo:hover img {
    transform: scale(1.025);
}

.pup-main-photo {
    grid-row: 1 / 3;
}


.pup-hero-grid.pup-single-photo {
    grid-template-columns: 1fr;
    grid-template-rows: 440px;
}

.pup-hero-grid.pup-single-photo .pup-main-photo {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
}

.pup-photo-credit {
    position: absolute;
    left: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .72);
    color: #fff;
    font-size: .76rem;
    font-weight: 700;
}

.pup-empty-hero {
    min-height: 270px;
    display: grid;
    place-content: center;
    gap: 6px;
    text-align: center;
    border-radius: 18px;
    background:
        linear-gradient(
            135deg,
            #eaf3ed,
            #dbe9df
        );
    color: #264c37;
    margin-bottom: 22px;
}

.pup-heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.pup-kicker {
    display: block;
    color: #147a4a;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.pup-heading-row h2,
.pup-dialog-header h2 {
    margin: 4px 0 0;
}

.pup-heading-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pup-primary-button,
.pup-secondary-button {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    text-decoration: none;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.pup-primary-button {
    border: 0;
    background: #125d3b;
    color: #fff;
}

.pup-secondary-button {
    border: 1px solid #cad7cf;
    background: #fff;
    color: #24553d;
}

.pup-community-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.pup-photo-card {
    overflow: hidden;
    border: 1px solid #dce4de;
    border-radius: 15px;
    background: #fff;
}

.pup-card-image {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e8eee9;
}

.pup-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.pup-featured-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 6px 9px;
    border-radius: 999px;
    background: #125d3b;
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
}

.pup-card-content {
    padding: 13px;
}

.pup-photographer {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: baseline;
}

.pup-photographer a,
.pup-photographer strong {
    color: #183e2b;
    font-weight: 800;
    text-decoration: none;
}

.pup-photographer span,
.pup-visited {
    color: #758077;
    font-size: .8rem;
}

.pup-caption {
    margin: 9px 0;
    color: #3f4d44;
    font-size: .9rem;
}

.pup-card-actions {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
}

.pup-vote-button {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    border: 1px solid #ced9d1;
    border-radius: 999px;
    padding: 7px 11px;
    background: #fff;
    color: #315342;
    cursor: pointer;
}

.pup-vote-button.active {
    border-color: #d85868;
    color: #bd3547;
    background: #fff1f3;
}

.pup-vote-button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.pup-report-box {
    position: relative;
    font-size: .78rem;
    color: #737d76;
}

.pup-report-box summary {
    cursor: pointer;
}

.pup-report-box select,
.pup-report-box textarea {
    display: block;
    width: 230px;
    max-width: 70vw;
    margin-top: 6px;
    border: 1px solid #ced8d1;
    border-radius: 8px;
    padding: 7px;
    font: inherit;
}

.pup-report-box textarea {
    min-height: 70px;
    resize: vertical;
}

.pup-report-box button {
    margin-top: 6px;
    border: 0;
    border-radius: 8px;
    padding: 7px 10px;
    background: #46584e;
    color: #fff;
    cursor: pointer;
}

.pup-upload-dialog {
    width: min(560px, calc(100vw - 24px));
    border: 0;
    border-radius: 18px;
    padding: 0;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .25);
}

.pup-upload-dialog::backdrop {
    background: rgba(12, 25, 18, .66);
}

.pup-upload-dialog form {
    padding: 22px;
}

.pup-dialog-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.pup-dialog-header button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #edf2ee;
    font-size: 1.5rem;
    cursor: pointer;
}

.pup-file-picker {
    display: grid;
    gap: 5px;
    padding: 25px;
    border: 2px dashed #afc7b7;
    border-radius: 14px;
    background: #f3f8f5;
    text-align: center;
    cursor: pointer;
}

.pup-file-picker span {
    color: #6e7d73;
    font-size: .82rem;
}

.pup-file-picker input {
    margin: 12px auto 0;
    max-width: 100%;
}

.pup-optional-details {
    margin-top: 14px;
}

.pup-optional-details summary {
    cursor: pointer;
    color: #24583d;
    font-weight: 700;
}

.pup-optional-details label {
    display: grid;
    gap: 5px;
    margin-top: 12px;
    font-weight: 700;
}

.pup-optional-details textarea,
.pup-optional-details input {
    width: 100%;
    border: 1px solid #ccd7cf;
    border-radius: 9px;
    padding: 9px;
    font: inherit;
}

.pup-rights-check {
    display: flex;
    gap: 10px;
    align-items: start;
    margin-top: 18px;
    color: #394a40;
}

.pup-rights-check input {
    margin-top: 4px;
}

.pup-permission-note {
    margin: 9px 0 16px;
    color: #748078;
    font-size: .78rem;
}

.pup-submit-photo {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 10px;
    background: #125d3b;
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.pup-no-community {
    padding: 18px;
    border-radius: 12px;
    background: #f5f8f6;
    color: #6b776f;
}

@media (max-width: 850px) {
    .pup-hero-grid {
        grid-template-columns: 2fr 1fr;
        grid-template-rows: 180px 180px;
    }

    .pup-hero-photo:nth-child(n+4) {
        display: none;
    }

    .pup-community-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .pup-hero-grid {
        display: block;
        height: 310px;
    }

    .pup-hero-photo {
        display: none;
        height: 100%;
    }

    .pup-main-photo {
        display: block;
    }

    .pup-heading-row {
        display: block;
    }

    .pup-heading-actions {
        margin-top: 13px;
    }

    .pup-community-grid {
        grid-template-columns: 1fr;
    }
}
