@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Archivo+Black&display=swap');

:root {
    --lm-orange: #F2AB13;
    --dark-grey: #0c0c0c;
    --mid-grey: #1c1c1c;
    --soft-grey: #f5f5f5;
    --card-bg: #ffffff;
    --border: #e1e1e1;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100vh;
    overflow: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #2a2a2a;
    background: var(--soft-grey);
    display: flex;
    flex-direction: column;
}

.catalog-header {
    background: var(--dark-grey);
    color: #fff;
    padding: 18px 4vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.back-button {
    border: 1px solid rgba(255,255,255,0.4);
    background: transparent;
    color: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease, transform 0.2s ease;
    font-family: 'Montserrat', sans-serif;
}

.back-button:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-1px);
}

.header-copy p {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--lm-orange);
    margin-bottom: 4px;
}

.header-copy h1 {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(1.6rem, 2.5vw, 2.4rem);
    margin-bottom: 4px;
}

.header-copy span {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

.header-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-right img {
    height: 60px;
    object-fit: contain;
}

.gallery-layout {
    flex: 1;
    padding: 24px 4vw;
    overflow-y: auto;
    min-height: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 18px;
    cursor: pointer;
    transition: transform 0.2s ease;
    background: #fff;
}

.gallery-item:hover {
    transform: translateY(-4px);
}

.gallery-item:focus {
    outline: 2px solid var(--lm-orange);
    outline-offset: 2px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

.media-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 999;
}

.media-modal.open {
    opacity: 1;
    pointer-events: all;
}

.media-dialog {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-dialog img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    border: none;
    background: rgba(255,255,255,0.2);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background 0.2s ease;
    z-index: 1000;
}

.modal-close:hover {
    background: rgba(255,255,255,0.3);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(255,255,255,0.2);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background 0.2s ease;
    z-index: 1000;
}

.modal-nav:hover {
    background: rgba(255,255,255,0.3);
}

.modal-nav.prev {
    left: 20px;
}

.modal-nav.next {
    right: 20px;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 12px;
    }
    
    .gallery-layout {
        padding: 16px 3vw;
    }
    
    .modal-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .modal-nav.prev {
        left: 10px;
    }
    
    .modal-nav.next {
        right: 10px;
    }
}




