/* portfolio.css - Стили страницы портфолио */

.portfolio-header {
    padding: 150px 0 60px;
    text-align: center;
    border-bottom: 1px solid #222222;
}

.portfolio-title {
    font-size: clamp(32px, 5vw, 60px);
    color: #ffffff;
    margin-bottom: 20px;
}

.portfolio-subtitle {
    color: #888888;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* Кнопки фильтрации */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    color: #888888;
    border: 1px solid #222222;
    padding: 10px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: #e6cc98;
    color: #050505;
    border-color: #e6cc98;
}

/* Большая сетка галереи */
.full-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    padding-bottom: 80px;
}

.gallery-item {
    position: relative;
    height: 400px;
    overflow: hidden;
    background: #111111;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s, filter 0.6s;
    filter: grayscale(10%); /* Легкое обесцвечивание */
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* Уведомление на пустой категории */
.no-results {
    display: none;
    text-align: center;
    color: #888888;
    padding: 50px 0;
    grid-column: 1 / -1;
    font-size: 18px;
}

/* Модальное окно (Lightbox) для портфолио */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border: 1px solid #333;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #ffffff;
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: #e6cc98;
}

.lightbox-caption {
    position: absolute;
    bottom: -30px;
    left: 0;
    color: #e6cc98;
    font-size: 16px;
    letter-spacing: 1px;
}

/* Дополнительные классы взамен инлайновых стилей */
.nav-link-active {
    color: #e6cc98 !important;
}
.portfolio-main-section {
    padding-top: 40px;
}
