/* ===== BEHIND THE SCENES PAGE ===== */

.bts-container {
    max-width: 1300px;
    width: 92%;
    margin: 0 auto;
    padding: 40px 0 80px 0;
}

.bts-title {
    font-family: "League Gothic", "Mozilla Text", sans-serif;
    font-size: 2.8rem;
    font-weight: normal;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 30px;
}

/* ===== FILTER SYSTEM ===== */

.bts-filters {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-label {
    font-size: 0.7rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.filter-tabs {
    display: flex;
    gap: 0;
    border: 1px solid #333;
    border-radius: 3px;
    overflow: hidden;
}

.filter-tabs a {
    padding: 9px 18px;
    color: #777;
    font-family: "League Gothic", "Mozilla Text", sans-serif;
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    border-right: 1px solid #333;
    background: #0a0a0a;
}

.filter-tabs a:last-child {
    border-right: none;
}

.filter-tabs a:hover {
    color: #ccc;
    background: #151515;
}

.filter-tabs a.active {
    color: #5cda39;
    background: #111;
}

.active-filter-display {
    color: #555;
    font-size: 0.8rem;
    margin-bottom: 20px;
    min-height: 1.2em;
}

.active-filter-display span {
    color: #5cda39;
}

/* ===== PROJECT SECTION HEADERS ===== */

.bts-section-title {
    font-family: "League Gothic", "Mozilla Text", sans-serif;
    font-size: 1.6rem;
    font-weight: normal;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5cda39;
    padding: 25px 0 15px 0;
    border-bottom: 1px solid #1a1a1a;
    margin-bottom: 20px;
}

.bts-section-title:first-of-type {
    padding-top: 0;
}

/* ===== IMAGE GRID ===== */

.bts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

/* Single image card */
.bts-card {
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
}

.bts-card:hover {
    transform: scale(1.03);
    z-index: 2;
}

.bts-card .card-img {
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease;
}

.bts-card:hover .card-img {
    border-color: #555;
}

.bts-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bts-card .card-img .placeholder {
    color: #2a2a2a;
    font-family: "League Gothic", "Mozilla Text", sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Multi-image badge */
.bts-card .multi-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(92, 218, 57, 0.85);
    color: #000;
    font-family: "League Gothic", "Mozilla Text", sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 3px;
    pointer-events: none;
}

/* Caption under image */
.bts-card .card-caption {
    padding: 8px 2px 0 2px;
}

.bts-card .card-caption .caption-name {
    color: #ccc;
    font-size: 0.8rem;
    font-family: "League Gothic", "Mozilla Text", sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.bts-card .card-caption .caption-technique {
    color: #5cda39;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 2px;
}

/* Empty / loading */
.bts-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #444;
    padding: 50px 0;
    font-style: italic;
    font-size: 1rem;
}

.bts-loading {
    text-align: center;
    color: #666;
    font-size: 1.2rem;
    padding: 60px 0;
    font-family: "League Gothic", "Mozilla Text", sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ===== MODAL ===== */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-content-bts {
    position: relative;
    margin: 3% auto;
    max-width: 85vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: slideIn 0.3s ease;
}

.modal-bts-image {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

/* Gallery nav for multi-image items */
.modal-gallery-nav {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 16px;
}

.modal-gallery-nav .nav-arrow {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid #333;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: #999;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.modal-gallery-nav .nav-arrow:hover {
    background: rgba(92, 218, 57, 0.15);
    border-color: #5cda39;
    color: #5cda39;
}

.modal-thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0;
}

.modal-thumbnails .thumb {
    width: 60px;
    height: 45px;
    flex-shrink: 0;
    border: 2px solid #333;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.25s ease;
    opacity: 0.5;
}

.modal-thumbnails .thumb.active {
    border-color: #5cda39;
    opacity: 1;
}

.modal-thumbnails .thumb:hover {
    opacity: 0.85;
}

.modal-thumbnails .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-counter {
    color: #555;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    margin-top: 6px;
}

/* Modal info */
.modal-bts-info {
    margin-top: 16px;
    text-align: center;
    max-width: 600px;
}

.modal-bts-info h2 {
    font-family: "League Gothic", "Mozilla Text", sans-serif;
    font-size: 1.6rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    margin-bottom: 6px;
}

.modal-bts-info .modal-technique {
    color: #5cda39;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.modal-bts-info .modal-desc {
    color: #aaa;
    font-size: 1rem;
    line-height: 1.6;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 36px;
    font-weight: normal;
    cursor: pointer;
    z-index: 1001;
    background-color: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

@keyframes slideIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1200px) {
    .bts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .bts-container {
        width: 95%;
        padding: 25px 0 60px 0;
    }

    .bts-title {
        font-size: 2rem;
    }

    .bts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .bts-filters {
        flex-direction: column;
        gap: 15px;
    }

    .filter-tabs a {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .modal-content-bts {
        max-width: 95vw;
    }

    .modal-gallery-nav .nav-arrow {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .modal-thumbnails .thumb {
        width: 50px;
        height: 38px;
    }
}

@media (max-width: 480px) {
    .bts-title {
        font-size: 1.6rem;
    }

    .bts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .bts-card .card-caption .caption-name {
        font-size: 0.7rem;
    }

    .filter-tabs {
        flex-wrap: wrap;
    }

    .filter-tabs a {
        padding: 7px 10px;
        font-size: 0.8rem;
    }

    .close {
        top: 10px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
}