:root {
    --max-width: 1500px;
}

:root {
    --bgwhite: #f0f0f0;
    --black: #1a1a1a;
    --primary: #3b82f6;
    --accent: rgb(34, 197, 94);
}

html,
body {
    height: 100%;
    margin: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    background: var(--bgwhite);
    color: var(--black);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    background: var(--bgwhite);
    border: 2px solid var(--black);
    overflow: visible;
}

.bordercontainer {
    max-width: var(--max-width);
    margin: 0 auto;
    margin-bottom: 2rem;
    margin-left: 1.25rem;
    margin-right: 1.25rem;
}

header.site-header {
    text-align: left;
    position: relative;
}

header.site-header h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-left: +1.25rem !important;
    margin-right: +1.25rem
}

header.site-header h2 {
    margin: 0;
    font-size: 1;
    font-weight: 100;
    margin-bottom: 2rem;
    margin-left: +1.25rem !important;
    margin-right: +1.25rem
}

.center-line {
    width: 20%;
    /* or any width you want */
    margin: 35px auto;
    /* centers it horizontally and adds vertical space */
    border: 1px solid var(--black);
    /* line color and thickness */
}

.info-bar {
    background-color: var(--black);
    color: var(--bgwhite);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.info-bar a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    transition: opacity 0.3s;
}

.info-bar a:hover {
    opacity: 0.1;
}

/* Header thumbnail */
.header-thumb {
    aspect-ratio: 3 / 1;

    background-size: 100% auto;
    background-position: center;
    background-repeat: no-repeat;
    align-content: center;


    margin-left: -1.25rem !important;
    margin-right: -1.25rem !important;
}


/* Center the sketch image and keep it responsive */
.fullscreen-img {
    display: block;
    margin-left: -1.25rem !important;
    margin-right: -1.25rem !important;
    width: calc(100% + 2.5rem) !important;
    height: auto;
}

/* Full-width model viewer within padded container */
model-viewer {
    margin-left: -1.25rem !important;
    margin-right: -1.25rem !important;
    width: calc(100% + 2.5rem) !important;
}


/* Image gallery grid and modal preview */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 3rem;
}

.gallery-item {
    aspect-ratio: 1 / 1;
    max-width: 400px;
    overflow: hidden;
    border-radius: 3px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #f0f0f0;
    position: relative;

}


h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    color: #333;
}

.lightbox-close:hover {
    background: #f0f0f0;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    color: #333;
}

.lightbox-nav:hover {
    background: white;
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
        padding: 15px;
    }

    h1 {
        font-size: 2rem;
    }

    .lightbox-nav {
        display: none;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
    }
}