body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f7f7f7;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #2f6f4e;
    color: white;
    text-align: center;
    padding: 2rem 1rem;
}

section {
    max-width: 900px;
    margin: auto;
    padding: 2rem 1rem;
}

h2 {
    margin-bottom: 1rem;
    color: #2f6f4e;
}

.pedigree img {
    width: 100%;
    border-radius: 8px;
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.pedigree img:hover {
    transform: scale(1.02);
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.image-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.image-grid img:hover {
    transform: scale(1.03);
}

/* Responsiv tilpasning */
@media (max-width: 900px) {
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .image-grid {
        grid-template-columns: 1fr;
    }
}


/* LIGHTBOX */

#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

#close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

#prev, #next {
    position: absolute;
    top: 50%;
    font-size: 60px;
    color: white;
    cursor: pointer;
    user-select: none;
    padding: 10px;
    transform: translateY(-50%);
}

#prev {
    left: 20px;
}

#next {
    right: 20px;
}

#prev:hover, #next:hover, #close:hover {
    color: #ddd;
}

/* FAKTATABELL */

.info-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.info-table th,
.info-table td {
    padding: 1px 5px;
    text-align: left;
    font-size: 0.85rem;
}

.info-table th {
    width: 35%;
    background-color: #f0f4f2;
    color: #2f6f4e;
    font-weight: bold;
}

.info-table tr:nth-child(even) td {
    background-color: #fafafa;
}

.dogweb-link {
    margin-top: 1rem;
    font-weight: bold;
}

.dogweb-link a {
    color: #2f6f4e;
    text-decoration: none;
}

.dogweb-link a:hover {
    text-decoration: underline;
}

