/* ===========================
   Общие стили и шрифты
=========================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@250;400;500;700&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #000; /* черный фон для всей страницы */
    color: #fff;
    overflow-x: hidden; /* убираем горизонтальный скролл */
}

/* ===========================
   Верхний хэдер
=========================== */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000;
    padding: 20px 40px;
    height: 80px;
    box-sizing: border-box;
}

.top-header .logo {
    font-weight: 250;
    font-size: 28px;
    letter-spacing: 2px;
}

.top-header nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.top-header nav ul li {
    margin-left: 30px;
}

.top-header nav ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: 250;
    font-size: 16px;
    transition: color 0.3s;
}

.top-header nav ul li a:hover {
    color: #aaa;
}

/* ===========================
   Нижний футер
=========================== */
.bottom-footer {
    background-color: #000;
    text-align: center;
    padding: 20px 0;
    font-weight: 250;
    font-size: 14px;
}

/* ===========================
   Слайдер главной страницы
=========================== */
.slider {
    width: 100%;
    height: 80vh; /* примерно 80% высоты экрана */
    overflow: hidden;
    position: relative;
}

.slider .slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider .slides img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slider .slides img.active {
    opacity: 1;
    z-index: 1;
}

/* ===========================
   Сетка портфолио
=========================== */
/* Сетка миниатюр портфолио */
/* Сетка фотографий */
.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.portfolio-item {
    text-align: center;
    width: 600px;
    color: #fff;
    text-decoration: none;
}
.portfolio-thumb img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 8px;
}
.portfolio-title {
    margin-top: 8px;
    font-family: 'Montserrat', sans-serif;
}

/* Сетка фото жанра */
.portfolio-photos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.portfolio-photos-grid img {
    width: 200px;        /* ширина миниатюры */
    height: 150px;       /* высота миниатюры */
    object-fit: cover;   /* обрезает фото по размеру блока */
    cursor: pointer;
    border-radius: 4px;
    transition: transform 0.3s;
}

.portfolio-photos-grid img:hover {
    transform: scale(1.05);
}

/* Лайтбокс */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background-color: rgba(0,0,0,0.9);
    text-align: center;
}
.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    margin-top: 5%;
}
.close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}
.nav {
    position: absolute;
    top: 50%;
    color: #fff;
    font-size: 50px;
    cursor: pointer;
    user-select: none;
}
.prev { left: 20px; transform: translateY(-50%); }
.next { right: 20px; transform: translateY(-50%); }

/* ===========================
   Адаптивность
=========================== */
@media (max-width: 768px) {
    .top-header {
        flex-direction: column;
        height: auto;
        padding: 20px;
    }

    .top-header nav ul {
        flex-direction: column;
    }

    .top-header nav ul li {
        margin: 10px 0;
    }
}
