body {
    font-family: 'Roboto', sans-serif;
    /* Updated to a modern font */
    line-height: 1.6;
    /* Improved readability */
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    /* Softer background color */
    color: #444;
    /* Slightly lighter text color */
}

header {
    text-align: center;
    padding: 12rem 2rem;
    /* Increased padding for better spacing */
    background: url('img/fullsize/_0000_01_Yard_Back.jpg') center/cover no-repeat;
    /* Added background image */
    color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Subtle shadow for depth */
    position: relative;
    /* For overlay effect */
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Dark overlay for text readability */
    z-index: 1;
}

header h1,
header .subtitle {
    position: relative;
    /* Ensure text is above the overlay */
    z-index: 2;
}

header h1 {
    font-size: 2.5rem;
    /* Larger, more prominent title */
    margin-bottom: 0.5rem;
}

header .subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    /* Lighter subtitle for contrast */
}

.gallery {
    display: grid;
    grid-template-columns: 1fr;
    /* Adjusted for better responsiveness */
    gap: 1.5rem;
    /* Balanced spacing */
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery-item {
    display: grid;
    place-items: center;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gallery-item-img {
    overflow: hidden;
    aspect-ratio: 4/3;
    border-radius: 6px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    max-height: 100%;
    min-height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 6px;
    /* Match gallery section's rounded corners */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    /* Smooth animations */
    cursor: pointer;
}

.gallery-item img:hover {
    transform: scale(1.05);
    /* Slight zoom for interactivity */
    /* Elevated shadow on hover */
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox.hidden {
    display: none;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border: 2px solid white;
    border-radius: 8px;
}

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

#lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

.summary {
    padding: 1rem;
    background-color: #eaeaea;
    color: #333;
    font-size: 1.2rem;
    line-height: 1.5;
}

section .section-inner {
    max-width: 100%;
    padding: 2rem;
    margin: 0 auto;
    /* Center the section content */
}

footer {
    text-align: center;
    padding: 1.5rem;
    background-color: #333333;
    color: #fff;
    font-size: 0.9rem;
    margin-top: 2rem;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
    /* Shadow at the top for separation */
}

footer a {
    color: #1e90ff;
    /* Modern blue for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #63b3ed;
    /* Lighter blue on hover */
}

/* Lightbox navigation buttons */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 30, 30, 0.7);
    border: none;
    color: #fff;
    font-size: 2.5rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    z-index: 1100;
    border-radius: 50%;
    transition: background 0.2s;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-nav:hover {
    background: rgba(0, 123, 255, 0.9);
}

/* Modern table style as CSS Grid */
.table-container {
    
    width: 100%;
    margin: 2rem 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(30, 144, 255, 0.07);
    border-collapse: unset;
    border-spacing: unset;
}

.table-header {
    display: grid;
    text-align: center;; 
    grid-template-columns: 1fr 1fr;
    font-size: 1.05rem;
    border-bottom: 1px solid #e0e7ee;
}

.table-header > div {
    text-align: center;; 
    font-weight: 700;
    color: #fff;
    background: #333;
    border-bottom: 2px solid #747474;
}

.table-body{
  
}

.table-body .table-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding:1rem;
    border-bottom: 2px solid #e6e7e6;;
}

.table-body .table-row >div {
    padding: .5rem;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    header {

        padding: 4rem 2rem;
        /* Increased padding for better spacing */

    }

    header h1 {
        font-size: 2rem;
    }

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

    footer {
        font-size: 0.8rem;
    }
   
}

@media (min-width: 600px) {
 .table-header {
        display: grid;
        width: 100%;
    }
}

@media (min-width: 1024px) {
    .gallery {

        grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
        /* Adjusted for better responsiveness */

    }

    header {
        padding: 6rem 3rem;
        /* Larger padding for desktop */
        background-size: cover;
        /* Ensure full coverage */
    }

    header h1 {
        font-size: 3.5rem;
        /* Larger title for desktop */
    }

    header .subtitle {
        font-size: 1.5rem;
        /* Larger subtitle for desktop */
    }

    section .section-inner {
        max-width: 800px;
        margin: 0 auto;
        /* Center the section content */
    }
}

@media (min-width: 1200px) {
    section .section-inner {
        max-width: 1000px;
        margin: 0 auto;
        /* Center the section content */
    }
}

.tag-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background-color: #333;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}