
/* ===== SINGLE DOG PAGE ===== */

.dog-page {
    padding: 78px 0 100px;
    background: #fff;
}

.dog-wrap {
    width: min(100% - 48px, 1080px);
    margin: 0 auto;
}

.dog-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 42px;
}

.dog-photo {
    overflow: hidden;
    background: #f4f2ee;
}

.dog-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .45s ease;
}

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

.dog-heading {
    text-align: center;
    margin-bottom: 34px;
}

.dog-kicker {
    margin: 0 0 12px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.dog-heading h1 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    font-weight: 700;
}

.dog-heading .gold-line {
    width: 54px;
    height: 2px;
    background: var(--gold);
    margin: 22px auto 0;
}

.dog-subtitle {
    margin: 16px auto 0;
    max-width: 760px;
    color: #6d7b89;
    font-size: 15px;
    line-height: 1.7;
}

.dog-details {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 64px;
    align-items: start;
    margin-bottom: 60px;
}

.dog-info {
    color: #50657a;
    font-size: 15px;
    line-height: 1.75;
}

.dog-info p {
    margin: 0 0 20px;
}

.dog-info strong {
    color: var(--navy);
}

.dog-info-title {
    position: relative;
    margin: 0 0 22px;
    padding-left: 18px;
    color: var(--navy);
    font-size: 20px;
    line-height: 1.3;
}

.dog-info-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 3px;
    height: 24px;
    background: var(--gold);
}

.dog-pedigree {
    padding: 26px;
    background: #faf9f7;
    border-top: 2px solid var(--gold);
}

.dog-pedigree img {
    display: block;
    width: 100%;
    max-width: 520px;
    height: auto;
    margin: 0 auto;
}

.dog-gallery {
    padding-top: 48px;
    border-top: 1px solid #ddd8cf;
}

.dog-gallery-heading {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.dog-gallery-heading span {
    display: block;
    width: 46px;
    height: 2px;
    background: var(--gold);
}

.dog-gallery-heading h2 {
    margin: 0;
    color: var(--navy);
    font-size: 22px;
}

.dog-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.dog-gallery-item {
    overflow: hidden;
    background: #f3f1ed;
}

.dog-gallery-item img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform .4s ease;
}

.dog-gallery-item:hover img {
    transform: scale(1.04);
}

@media (max-width: 800px) {
    .dog-page {
        padding: 52px 0 70px;
    }

    .dog-intro {
        grid-template-columns: 1fr;
    }

    .dog-details {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .dog-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .dog-wrap {
        width: min(100% - 30px, 1080px);
    }

    .dog-gallery-grid {
        gap: 7px;
    }
}


/* ===== IMAGE VIEWER ===== */

.dog-pedigree h2 {
    margin: 0 0 18px;
    color: var(--navy);
    font-size: 22px;
    line-height: 1.3;
}

.image-open {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    font: inherit;
}

.dog-pedigree .image-open {
    background: #faf9f7;
}

.image-open img {
    display: block;
    width: 100%;
    height: auto;
}

.image-open-label {
    display: block;
    padding: 11px 0 2px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .8px;
    text-align: center;
    text-transform: uppercase;
}

.dog-gallery-item {
    appearance: none;
    border: 0;
    padding: 0;
    border-radius: 0;
    cursor: zoom-in;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 70px 40px 40px;
}

.image-lightbox.is-open {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 24, 43, .92);
}

.lightbox-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.lightbox-content img {
    display: block;
    max-width: 94vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 18px 60px rgba(0,0,0,.35);
}

.lightbox-close {
    position: absolute;
    z-index: 3;
    top: 18px;
    right: 24px;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 34px;
    font-weight: 300;
    line-height: 42px;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

.lightbox-close:hover {
    background: var(--gold);
    border-color: var(--gold);
}

body.lightbox-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .image-lightbox {
        padding: 65px 14px 20px;
    }

    .lightbox-close {
        top: 12px;
        right: 14px;
    }

    .lightbox-content img {
        max-width: 96vw;
        max-height: 82vh;
    }
}
