/* MLC MASTER BRANDING SHEET */
:root { 
    --gold: #c5a059; 
    --dark-bg: #121212; 
    --card-bg: #1e1e1e; 
    --text: #e0e0e0; 
}

body { 
    background-color: var(--dark-bg); 
    color: var(--text); 
    font-family: 'Segoe UI', Tahoma, sans-serif; 
    margin: 0; 
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header { 
    text-align: center; 
    padding: 60px 20px; 
    border-bottom: 2px solid var(--gold); 
    width: 100%; 
    max-width: 900px; 
    margin-bottom: 40px; 
}

h1 { 
    font-size: 3rem; 
    color: var(--gold); 
    text-transform: uppercase; 
    margin: 0; 
    letter-spacing: 2px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

.gallery-intro {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 25px;
    box-sizing: border-box;
    background: var(--card-bg);
    border-left: 3px solid var(--gold);
    border-radius: 4px;
}

.gallery-intro h2 {
    color: var(--gold);
    margin: 0 0 15px;
}

.gallery-intro p {
    margin: 0 0 15px;
    line-height: 1.6;
}

.gallery-intro p:last-child {
    margin-bottom: 0;
}

.gallery-section {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 50px;
}

.gallery-section .gallery-intro {
    margin: 0 auto 25px;
}

.gallery-section:last-child {
    margin-bottom: 0;
}

/* GRIDS */
.grid, .featured-grid, .dept-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 25px; 
    width: 100%; 
    max-width: 1100px; 
}

/* CARDS */
.item-card, .dept-card, .card { 
    background: var(--card-bg); 
    border: 1px solid #333; 
    border-radius: 8px; 
    overflow: hidden; 
    text-decoration: none; 
    color: inherit; 
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.item-card:hover, .dept-card:hover, .card:hover { 
    border-color: var(--gold); 
    transform: translateY(-5px); 
}

.item-image, .dept-img, .card img { 
    width: 100%; 
    height: 280px; 
    object-fit: contain; 
    background: #000; 
    display: block; 
}

.item-info, .dept-info, .caption { 
    padding: 15px; 
    text-align: center; 
}

h3 { color: var(--gold); margin: 0; }

/* BUTTONS */
.btn, .back-btn { 
    background-color: var(--gold); 
    color: #121212; 
    padding: 12px 25px; 
    text-decoration: none; 
    font-weight: bold; 
    border-radius: 4px; 
    display: inline-block;
    margin: 20px 0;
    min-height: 44px;
}

.status-banner { 
    background: rgba(197, 160, 89, 0.1); 
    border: 1px solid var(--gold); 
    padding: 15px; 
    margin-top: 20px; 
    border-radius: 4px; 
    font-style: italic; 
}

/* CONTACT CARD STYLES */
.contact-section {
    background: var(--card-bg);
    border-top: 3px solid var(--gold);
    width: 100%;
    max-width: 900px;
    margin-top: 60px;
    padding: 40px 20px;
    text-align: center;
    border-radius: 8px 8px 0 0;
}

.contact-info {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.contact-item {
    flex: 1;
    min-width: 200px;
}

.contact-item strong {
    display: block;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 5px;
    font-size: 0.8rem;
}

.contact-item p {
    margin: 0;
    font-size: 1.1rem;
}

.contact-item a {
    color: inherit;
    text-decoration-color: var(--gold);
    text-underline-offset: 3px;
}

.contact-item a:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

@media (max-width: 600px) {
    header {
        padding: 40px 15px;
    }

    h1 {
        font-size: 2rem;
    }

    .gallery-intro {
        padding: 20px;
    }
}

/* HOMEPAGE */
.home-page {
    padding: 0 20px 20px;
}

.home-hero {
    max-width: 1100px;
    padding: 48px 30px 65px;
    margin-bottom: 0;
}

.section-kicker {
    margin: 0 0 14px;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.home-logo {
    display: block;
    width: clamp(175px, 18vw, 240px);
    height: auto;
    margin: 0 auto 24px;
}

.home-hero h1 {
    font-size: clamp(2.35rem, 6vw, 4.5rem);
    line-height: 1.05;
}

.home-tagline {
    margin: 14px 0 0;
    color: #f0d49d;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.45rem, 3vw, 2.15rem);
    font-style: italic;
}

.home-craft-line {
    margin: 18px 0 0;
    color: var(--gold);
    font-size: clamp(0.78rem, 1.5vw, 0.95rem);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.home-introduction {
    max-width: 760px;
    margin: 24px auto 0;
    font-size: 1.12rem;
    line-height: 1.7;
}

.home-location {
    margin: 18px 0 0;
    color: #cfcfcf;
    font-weight: 600;
}

.home-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.home-actions .btn {
    margin: 0;
}

.btn-secondary {
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--gold);
}

.home-page .btn:hover,
.home-page .btn:focus-visible {
    background: #e2bd7a;
    color: #121212;
    transform: translateY(-2px);
}

.home-main {
    width: 100%;
    max-width: 1100px;
}

.home-section {
    padding: 70px 0 0;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 32px;
    text-align: center;
}

.section-heading h2,
.home-contact h2 {
    margin: 0;
    color: var(--gold);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    letter-spacing: 0.02em;
}

.section-heading > p:last-child {
    margin: 14px 0 0;
    line-height: 1.65;
}

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

.capability-card {
    position: relative;
    min-height: 245px;
    padding: 30px;
    overflow: hidden;
    background: linear-gradient(145deg, #222, var(--card-bg));
    border: 1px solid #353535;
    border-top: 2px solid var(--gold);
    border-radius: 8px;
}

.capability-card h3 {
    position: relative;
    margin-bottom: 20px;
    font-size: 1.35rem;
}

.capability-card ul {
    position: relative;
    margin: 0;
    padding-left: 20px;
    line-height: 1.75;
}

.capability-card li::marker {
    color: var(--gold);
}

.capability-number {
    position: absolute;
    top: 10px;
    right: 20px;
    margin: 0;
    color: rgba(197, 160, 89, 0.1);
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
}

.home-featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-featured-grid .item-image {
    height: 430px;
    object-fit: contain;
}

.home-featured-grid .item-info {
    padding: 22px;
}

.home-featured-grid .item-info p {
    margin: 10px 0 0;
    line-height: 1.55;
}

.department-section {
    padding-bottom: 10px;
}

.department-links {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.department-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    padding: 14px;
    border: 1px solid #3b3b3b;
    border-radius: 6px;
    color: var(--gold);
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    transition: 0.2s ease;
}

.department-links a:hover,
.department-links a:focus-visible {
    border-color: var(--gold);
    background: rgba(197, 160, 89, 0.1);
    transform: translateY(-2px);
}

.home-contact {
    max-width: 1100px;
    margin-top: 70px;
}

footer,
.site-footer {
    width: 100%;
    max-width: 900px;
    margin: 45px auto 20px;
    padding: 0 20px;
    text-align: center;
    box-sizing: border-box;
}

.site-footer-primary {
    margin: 0;
    color: var(--gold);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: break-word;
}

.site-footer-secondary {
    margin: 6px 0 0;
    color: #9e9e9e;
    font-size: 0.85rem;
    line-height: 1.5;
    overflow-wrap: break-word;
}

@media (max-width: 800px) {
    .capability-grid,
    .home-featured-grid {
        grid-template-columns: 1fr;
    }

    .department-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-featured-grid .item-image {
        height: 360px;
    }
}

@media (max-width: 600px) {
    .home-page {
        padding: 0 15px 15px;
    }

    .home-hero {
        padding: 38px 10px 45px;
    }

    .home-logo {
        width: 165px;
        margin-bottom: 18px;
    }

    .home-craft-line {
        line-height: 1.6;
    }

    .home-introduction {
        font-size: 1rem;
    }

    .home-location span {
        display: block;
        height: 4px;
        overflow: hidden;
        color: transparent;
    }

    .home-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .home-actions .btn {
        text-align: center;
    }

    .home-section {
        padding-top: 55px;
    }

    .capability-card {
        min-height: 0;
        padding: 25px 22px;
    }

    .home-featured-grid .item-image {
        height: 300px;
    }

    .department-links {
        grid-template-columns: 1fr;
    }

    .contact-info {
        flex-direction: column;
    }

    footer,
    .site-footer {
        margin: 35px auto 15px;
        padding: 0 10px;
    }

    .site-footer-primary {
        font-size: 0.82rem;
    }

    .site-footer-secondary {
        font-size: 0.78rem;
    }
}

/* ==========================================================================
   FULL-SIZE ARTWORK VIEWER (LIGHTBOX)
   ========================================================================== */

body.lightbox-open {
    overflow: hidden;
}

.card-image-link {
    display: block;
    position: relative;
    background: #000;
    cursor: pointer;
    text-decoration: none;
    line-height: 0;
}

.card-image-link:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: -2px;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.lightbox:not([hidden]) {
    visibility: visible;
    opacity: 1;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.94);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.lightbox-dialog {
    position: relative;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    pointer-events: none;
}

.lightbox-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 92vw;
    max-height: 90vh;
    pointer-events: auto;
}

.lightbox-figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.lightbox-img {
    max-width: 88vw;
    max-height: calc(82vh - 60px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(197, 160, 89, 0.25);
    display: block;
}

.lightbox-caption {
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 14px;
    padding: 6px 16px;
    background: rgba(30, 30, 30, 0.88);
    border: 1px solid rgba(197, 160, 89, 0.35);
    border-radius: 4px;
    letter-spacing: 0.5px;
    max-width: 88vw;
    word-break: break-word;
}

/* Lightbox Controls */
.lightbox-btn {
    position: absolute;
    background: rgba(25, 25, 25, 0.88);
    color: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.6rem;
    line-height: 1;
    transition: background 0.2s, color 0.2s, opacity 0.2s, transform 0.2s;
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
    z-index: 1002;
}

.lightbox-btn:hover:not(:disabled),
.lightbox-btn:focus-visible:not(:disabled) {
    background: var(--gold);
    color: #121212;
    transform: scale(1.08);
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.lightbox-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
    border-color: #555;
    color: #777;
    pointer-events: none;
}

.lightbox-close {
    top: 20px;
    right: 20px;
    font-size: 2rem;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev:hover:not(:disabled),
.lightbox-prev:focus-visible:not(:disabled) {
    transform: translateY(-50%) scale(1.08);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next:hover:not(:disabled),
.lightbox-next:focus-visible:not(:disabled) {
    transform: translateY(-50%) scale(1.08);
}

/* Responsive Rules for Small Devices */
@media (max-width: 768px) {
    .lightbox-dialog {
        padding: 10px;
    }

    .lightbox-close {
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
        font-size: 1.6rem;
    }

    .lightbox-prev {
        left: 10px;
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }

    .lightbox-next {
        right: 10px;
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }

    .lightbox-img {
        max-width: 94vw;
        max-height: calc(75vh - 50px);
    }

    .lightbox-caption {
        font-size: 0.95rem;
        margin-top: 10px;
        padding: 6px 12px;
    }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    .lightbox, .lightbox * {
        transition: none !important;
        animation: none !important;
    }
}
