:root {
    --primary: #9d8fd3;
    --primary-light: #c7bee1;
    --primary-dark: #7a6ab8;
    --secondary: #e6b8c8;
    --text: #333333;
    --text-muted: #666666;
    --bg-color: #fcfcfc;
    --bg-alt: #f5f3f9;
    --border: #eae8f0;
    --white: #ffffff;
    --error: #d32f2f;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 48px rgba(100, 90, 140, 0.15);
}


/* =========================================================
   GLOBAL
   ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background-color: var(--bg-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.playfair {
    font-family: 'Playfair Display', serif;
}

.italic {
    font-style: italic;
}

.hidden {
    display: none !important;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(157, 143, 211, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(157, 143, 211, 0.4);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: var(--bg-alt);
    color: var(--primary-dark);
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-block {
    width: 100%;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    background: linear-gradient(135deg, #f5f3f9 0%, #ffffff 100%);
    padding: 45px 0 50px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(
        circle,
        rgba(230,184,200,0.3) 0%,
        rgba(255,255,255,0) 70%
    );
    border-radius: 50%;
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    line-height: 1.1;
    color: var(--primary-dark);
    margin-bottom: 24px;
}

.hero .subhead {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 5;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status-message {
    margin-top: 16px;
    font-weight: 600;
    color: var(--error);
    padding: 12px 16px;
    background: #fff5f5;
    border-radius: var(--radius-sm);
    display: inline-block;
}


/* =========================================================
   HOW IT WORKS / TIMELINE
   ========================================================= */

.how-it-works-section {
    padding: 40px 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
}

.steps-wrapper {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto
        minmax(0, 1fr)
        auto
        minmax(0, 1fr)
        auto
        minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0 0 32px;
}

.step-box {
    text-align: center;
    width: 100%;
    min-width: 0;
    padding: 12px 5px;
}

.step-title {
    display: block;
    font-weight: 700;
    font-size: 0.72rem;
    line-height: 1.3;
    color: var(--primary-dark);
    letter-spacing: 0.025em;
    margin-bottom: 6px;
    white-space: normal;
}

.step-date {
    display: inline-block;
    background: var(--bg-alt);
    padding: 4px 7px;
    border-radius: var(--radius-pill);
    font-size: 0.68rem;
    line-height: 1.25;
    font-weight: 600;
    margin: 4px 0 7px;
    color: var(--text);
    white-space: normal;
}

.step-desc {
    display: block;
    font-size: 0.72rem;
    line-height: 1.35;
    color: var(--text-muted);
}

.step-arrow {
    color: var(--primary-light);
    width: 16px;
    min-width: 16px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-arrow svg {
    width: 16px;
    height: 16px;
}

.compact-voting-info {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 24px;
    background: var(--bg-alt);
    border-radius: var(--radius-md);
}

.compact-voting-info p {
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.compact-voting-info p:last-child {
    margin-bottom: 0;
}

.winner-announcement {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 0.05em;
    border-top: 1px solid var(--border);
    padding-top: 12px;
}


/* =========================================================
   GALLERY
   ========================================================= */

.gallery-section {
    padding: 50px 0;
    background-color: var(--bg-color);
}

.gallery-header {
    text-align: center;
    margin-bottom: 30px;
}

.gallery-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.gallery-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    max-width: 100%;
}

.gallery-card {
    width: 100%;
    min-width: 0;
    max-width: none;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: var(--bg-alt);
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.card-content {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}

.card-caption {
    font-size: 1rem;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-author {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 12px;
}

.card-pet-meta {
    font-size: 12px !important;
    line-height: 1.35 !important;
    margin-top: 5px !important;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.card-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-dark);
    background: rgba(157, 143, 211, 0.15);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}

.card-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 10px;
    margin-top: auto;
}

.vote-btn-action {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.vote-btn-action:hover:not(.voted) {
    color: var(--primary);
    background: var(--bg-alt);
}

.vote-btn-action.voted {
    color: var(--primary);
    cursor: default;
}

.vote-btn-action.voted svg {
    fill: currentColor;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px dashed var(--border);
}

.empty-icon {
    color: var(--primary-light);
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.load-more-wrapper {
    text-align: center;
    margin-top: 48px;
}


/* =========================================================
   PRIZES
   ========================================================= */

.prize-section {
    padding: 50px 0;
    background-color: var(--bg-alt);
}

.prize-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.prize-image-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background-image: url('https://offertabs.s3.amazonaws.com/offer/3cdqu7/site/media/6a8e3cda7f7543.77941290.png');
    background-size: cover;
    background-position: center;
    aspect-ratio: 4 / 3;
}

.prize-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
}

.prize-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 24px;
}

.prize-list {
    list-style: none;
    margin-bottom: 24px;
}

.prize-list li {
    margin-bottom: 16px;
    font-size: 1.05rem;
    color: var(--text);
    padding-left: 24px;
    position: relative;
	}

.prize-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--secondary);
}

.prize-note {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.simple-list li {
    margin-bottom: 8px;
    padding-left: 20px;
}

.simple-list li::before {
    background-color: var(--primary-light);
    top: 10px;
    width: 6px;
    height: 6px;
}


/* =========================================================
   MODALS
   ========================================================= */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.modal-dialog {
    position: relative;
    background: white;
    width: 100%;
    max-width: 850px;
    height: 92vh;
    max-height: 96vh;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--bg-alt);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
    z-index: 50;
}

.close-btn:hover {
    background: var(--border);
    color: var(--text);
}

.modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary-dark);
    text-align: center;
    padding-right: 40px;
}


/* =========================================================
   ENTRY MODAL
   ========================================================= */

#entry-modal {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    padding: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    z-index: 99999 !important;
}

#entry-modal.hidden {
    display: none !important;
}

#entry-modal .modal-dialog {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    width: min(850px, 100%) !important;
    height: calc(100dvh - 40px) !important;
    max-height: calc(100dvh - 40px) !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

#entry-form-view,
#post-entry-view {
    display: block;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 28px 28px 60px !important;
    overflow-x: hidden !important;
    overflow-y: scroll !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    box-sizing: border-box !important;
    scrollbar-gutter: stable !important;
}

#entry-form-view.hidden,
#post-entry-view.hidden {
    display: none !important;
}

#entry-modal .close-btn {
    position: absolute !important;
    top: 10px !important;
    right: 14px !important;
    z-index: 100 !important;
}

#entry-form-view::-webkit-scrollbar,
#post-entry-view::-webkit-scrollbar {
    width: 12px;
}

#entry-form-view::-webkit-scrollbar-track,
#post-entry-view::-webkit-scrollbar-track {
    background: #f2edf4;
}

#entry-form-view::-webkit-scrollbar-thumb,
#post-entry-view::-webkit-scrollbar-thumb {
    background: #9c75ca;
    border-radius: 10px;
    border: 3px solid #f2edf4;
}


/* =========================================================
   FORM
   ========================================================= */

.form-section-title {
    font-size: 1.125rem;
    color: var(--text);
    border-bottom: 2px solid var(--bg-alt);
    padding-bottom: 8px;
    margin: 32px 0 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.row {
    display: flex;
    gap: 20px;
}

.form-group.row .col {
    flex: 1;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.optional {
    color: var(--text-muted);
    font-weight: normal;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
    background-color: var(--white);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(157, 143, 211, 0.1);
}

.file-upload-wrapper {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-alt);
    padding: 32px;
    text-align: center;
    transition: all 0.2s;
}

.file-upload-wrapper:hover {
    border-color: var(--primary-light);
    background: var(--white);
}

.file-upload-wrapper.has-file {
    border-style: solid;
    border-color: var(--primary);
    background: var(--white);
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
}

.upload-icon {
    color: var(--primary);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--bg-alt);
    padding: 16px;
    border-radius: var(--radius-md);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: normal;
    cursor: pointer;
    margin: 0;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.terms-group {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.terms-text {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.terms-link {
    color: var(--primary);
    text-decoration: underline;
}

.error-message {
    background: #fff5f5;
    color: var(--error);
    padding: 16px;
    border-radius: var(--radius-md);
    margin-top: 20px;
    font-weight: 500;
    text-align: center;
}


/* =========================================================
   POST ENTRY VIEW
   ========================================================= */

.post-entry-view {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.discount-offer-panel,
.share-panel,
.post-entry-actions,
.submitted-photo-wrapper {
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.discount-offer-panel {
    background: linear-gradient(
        135deg,
        rgba(157, 143, 211, 0.1) 0%,
        rgba(230, 184, 200, 0.1) 100%
    );
    border: 1px solid var(--primary-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 32px;
}

.discount-code-box {
    background: var(--white);
    border: 2px dashed var(--primary);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 20px 0;
}

.discount-code {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--primary-dark);
}

.discount-terms {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.discount-btn {
    margin-top: 16px;
}

.submitted-photo-wrapper {
    margin-bottom: 32px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    max-height: 300px;
    display: flex;
    flex-direction: column;
}

.submitted-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-grow: 1;
    max-height: 250px;
}

.submitted-caption {
    background: var(--white);
    padding: 16px;
    font-size: 1.125rem;
    color: var(--text);
    border-top: 1px solid var(--border);
}

.share-panel {
    background: var(--bg-alt);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
}

.share-input-group {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.share-input-group input {
    flex-grow: 1;
    min-width: 0;
}

.post-entry-actions {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.post-entry-actions .btn {
    flex: 1;
}


/* =========================================================
   LIGHTBOX
   ========================================================= */

.lightbox-dialog {
    position: relative;
    background: var(--bg-color);
    width: 100%;
    max-width: 1200px;
    height: 90vh;
    border-radius: var(--radius-lg);
    display: flex;
    overflow: hidden;
    z-index: 1;
    box-shadow: var(--shadow-lg);
}

.lightbox-content {
    display: flex;
    width: 100%;
    height: 100%;
}

.lightbox-image-container {
    flex: 2;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.lightbox-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox-sidebar {
    flex: 1;
    min-width: 320px;
    max-width: 400px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    background: var(--bg-color);
}

.lightbox-info {
    flex-grow: 1;
    overflow-y: auto;
}

.lightbox-caption {
    font-size: 1.5rem;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 8px;
}

.lightbox-eyebrow {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 24px;
}


/* =========================================================
   LIGHTBOX VOTING
   ========================================================= */

.lightbox-actions {
    margin-top: auto;
    padding-top: 24px;
}

.vote-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.btn-vote-large {
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 16px 40px;
    border-radius: var(--radius-pill);
    font-size: 1.25rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-vote-large:hover:not(.voted) {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.btn-vote-large:hover:not(.voted) svg {
    fill: currentColor;
}

.btn-vote-large.voted {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
    cursor: default;
    transform: none;
}

.vote-status-wrapper {
    text-align: center;
}

.vote-count-display {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.vote-msg {
    color: #2e7d32;
    font-weight: 600;
    font-size: 0.875rem;
    margin-top: 4px;
}


/* =========================================================
   LIGHTBOX SHARE
   ========================================================= */

.lightbox-share {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.share-title {
    font-size: 0.875rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 16px;
}

.share-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.share-btn {
    padding: 10px 16px;
    min-height: 44px;
    font-size: 0.875rem;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.share-icon {
    padding: 10px;
    width: 44px;
    border-radius: 50%;
    justify-content: center;
}


/* =========================================================
   LIGHTBOX NAVIGATION
   ========================================================= */

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    border: none;
    color: white;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.4);
}

.nav-btn.prev {
    left: 24px;
}

.nav-btn.next {
    right: calc(400px + 24px);
}

#wbx-powered-by-slot {
    margin-top: 60px;
}


/* =========================================================
   TABLET / EMBED RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .hero-grid {
        gap: 36px;
    }

    .lightbox-dialog {
        flex-direction: column;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .lightbox-content {
        flex-direction: column;
    }

    .lightbox-image-container {
        flex: 1;
        min-height: 40vh;
    }

    .lightbox-sidebar {
        flex: none;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        padding: 24px;
    }

    .nav-btn {
        width: 48px;
        height: 48px;
        top: 40%;
    }

    .nav-btn.next {
        right: 16px;
    }

    .nav-btn.prev {
        left: 16px;
    }
}


/* =========================================================
   700PX AND BELOW
   ========================================================= */

@media (max-width: 700px) {

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .prize-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Timeline becomes 2 x 2 */
    .steps-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .step-box {
        background: var(--bg-alt);
        border-radius: var(--radius-md);
        padding: 16px 10px;
        height: 100%;
    }

    .step-arrow {
        display: none;
    }

    .step-title {
        font-size: 0.78rem;
    }

    .step-date {
        font-size: 0.7rem;
    }

    .step-desc {
        font-size: 0.75rem;
    }

    /* Gallery becomes 2 across */
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .form-group.row {
        flex-direction: column;
        gap: 20px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .hero {
        padding: 32px 0 38px;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero .subhead {
        font-size: 1rem;
    }

    .how-it-works-section {
        padding: 30px 0;
    }

    .gallery-section {
        padding: 38px 0;
    }

    .prize-section {
        padding: 38px 0;
    }

    .gallery-header h2 {
        font-size: 2rem;
    }

    .gallery-header p {
        font-size: 0.95rem;
    }

    .modal {
        padding: 0;
    }

    #entry-modal {
        padding: 0 !important;
    }

    #entry-modal .modal-dialog {
        width: 100% !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        border-radius: 0 !important;
    }

    #entry-form-view,
    #post-entry-view {
        padding: 28px 18px calc(60px + env(safe-area-inset-bottom)) !important;
    }

    #entry-modal .close-btn {
        position: fixed !important;
        top: 16px !important;
        right: 16px !important;
        background: rgba(255,255,255,0.94);
        backdrop-filter: blur(4px);
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .modal-title {
        padding-right: 48px;
        font-size: 1.75rem;
        text-align: left;
    }

    .post-entry-actions {
        flex-direction: column-reverse;
    }

    .share-input-group {
        flex-direction: column;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .steps-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .step-box {
        padding: 13px 7px;
    }

    .step-title {
        font-size: 0.7rem;
    }

    .step-date {
        font-size: 0.62rem;
        padding: 3px 6px;
    }

    .step-desc {
        font-size: 0.68rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .card-content {
        padding: 10px;
    }

    .card-caption {
        font-size: 0.88rem;
    }

    .card-pet-meta {
        font-size: 11px !important;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}


/* =========================================================
   VERY NARROW MOBILE
   ========================================================= */

@media (max-width: 340px) {

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .steps-wrapper {
        grid-template-columns: 1fr;
    }

    .step-box {
        padding: 16px 12px;
    }
}/* =========================================================
   COVERDOG LIGHTBOX FIX
   Cleaner desktop + mobile entry view
   ========================================================= */

/* Overall lightbox */
.lightbox-dialog {
    width: min(1100px, calc(100vw - 40px)) !important;
    height: auto !important;
    max-height: 90vh !important;
    background: #ffffff !important;
}

/* Image + information layout */
.lightbox-content {
    width: 100% !important;
    height: auto !important;
    max-height: 90vh !important;
    align-items: stretch !important;
}

/* REMOVE BLACK BACKGROUND */
.lightbox-image-container {
    background: #f5f3f9 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: 90vh !important;
    padding: 20px !important;
}

/* Keep the full dog photo visible without ugly empty black space */
.lightbox-image-container img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: calc(90vh - 40px) !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 10px !important;
}

/* Sidebar shouldn't force the photo area into weird proportions */
.lightbox-sidebar {
    width: 320px !important;
    min-width: 280px !important;
    max-width: 340px !important;
    padding: 30px !important;
    overflow-y: auto !important;
}

/* Navigation buttons */
.nav-btn.next {
    right: 360px !important;
}


/* =========================================================
   TABLET + MOBILE LIGHTBOX
   ========================================================= */

@media (max-width: 900px) {

    .lightbox-dialog {
        width: 100% !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        border-radius: 0 !important;
        overflow-y: auto !important;
    }

    .lightbox-content {
        display: block !important;
        height: auto !important;
        max-height: none !important;
    }

    .lightbox-image-container {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        padding: 12px !important;
        background: #f5f3f9 !important;
    }

    .lightbox-image-container img {
        width: 100% !important;
        height: auto !important;
        max-height: 60dvh !important;
        object-fit: contain !important;
        border-radius: 8px !important;
    }

    .lightbox-sidebar {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        padding: 22px 18px 40px !important;
    }

    .nav-btn {
        top: 30vh !important;
        width: 42px !important;
        height: 42px !important;
    }

    .nav-btn.prev {
        left: 10px !important;
    }

    .nav-btn.next {
        right: 10px !important;
    }
}


/* Smaller phones */
@media (max-width: 480px) {

    .lightbox-image-container {
        padding: 8px !important;
    }

    .lightbox-image-container img {
        max-height: 52dvh !important;
    }

    .lightbox-sidebar {
        padding: 18px 16px 35px !important;
    }

    .lightbox-caption {
        font-size: 1.25rem !important;
    }

    .btn-vote-large {
        padding: 13px 20px !important;
        font-size: 1rem !important;
    }

    .lightbox-share {
        margin-top: 22px !important;
        padding-top: 18px !important;
    }
}

/* =========================================================
   COVERDOG TARGETED FIXES — AUG 2026
   ========================================================= */

/* Larger lightbox social icons. Kept outside a media query because
   Woobox can report an iframe width larger than the phone viewport. */
#lb-fb-btn,
#lb-ig-btn {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 56px !important;
}

#lb-fb-btn svg,
#lb-ig-btn svg {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
}

/* Post-entry modal: once the long form is replaced by the shorter
   confirmation screen, stop retaining the form's full-height scroll state.
   Kept outside a media query because Woobox embeds can report a wider iframe
   viewport even when the visitor is on a phone. */
#entry-modal.post-entry-active {
    align-items: flex-start !important;
    overflow-y: auto !important;
}

#entry-modal.post-entry-active .modal-dialog {
    height: auto !important;
    min-height: 0 !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
}

#entry-modal.post-entry-active #post-entry-view {
    height: auto !important;
    min-height: 0 !important;
    max-height: 100dvh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-top: 64px !important;
}
#hero-status-message {
    display: none !important;
}
