
/* Gallery Page Styles - Black Theme */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    margin-top: 80px;
}

/* Breadcrumb Navigation */
nav {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.6s ease forwards;
}

nav a {
    color: #00ff88;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

nav a:hover {
    color: #00ccdd;
}

nav span {
    color: #888;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00ff88, #00ccdd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

header p {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Navigation buttons */
header div {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

header a {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 10px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

header a:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: #00ff88;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.2);
}

header a[target="_blank"] {
    background: linear-gradient(135deg, #00ff88, #00ccdd);
    color: #000;
    border: none;
}

header a[target="_blank"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 255, 136, 0.4);
}

header a[target="_blank"]::after {
    content: "↗";
    margin-left: 0.5rem;
    font-size: 0.9rem;
}

/* Gallery Counter */
.container > div:has(p) {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.container > div p {
    color: #cccccc;
    font-weight: 500;
    margin: 0;
}

.container > div span {
    color: #00ff88;
    font-weight: 700;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.gallery-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    backdrop-filter: blur(10px);
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(0, 255, 136, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.image-caption {
    padding: 1.5rem;
}

.image-caption p {
    color: #cccccc;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Empty Gallery State */
.empty-gallery {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.empty-gallery h2 {
    font-size: 2rem;
    color: #666;
    margin-bottom: 1rem;
}

.empty-gallery p {
    color: #888;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.empty-gallery a {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #00ff88, #00ccdd);
    color: #000;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.empty-gallery a:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 255, 136, 0.3);
}

.empty-gallery a::before {
    content: "←";
    margin-right: 0.5rem;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 204, 221, 0.1));
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.contact-section h3 {
    font-size: 1.8rem;
    color: #00ff88;
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-section p {
    color: #cccccc;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.contact-section div {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-section a {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-section a:first-child {
    background: linear-gradient(135deg, #00ff88, #00ccdd);
    color: #000;
}

.contact-section a:last-child {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.contact-section a:hover {
    transform: translateY(-3px);
}

.contact-section a:first-child:hover {
    box-shadow: 0 10px 25px rgba(0, 255, 136, 0.4);
}

.contact-section a:last-child:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

.contact-section a::after {
    content: "→";
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.contact-section a:hover::after {
    transform: translateX(3px);
}

/* Lightbox Modal */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.5);
    transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: rgba(0, 255, 136, 0.5);
    transform: translateY(-50%) scale(1.1);
}

#lightbox-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.lightbox-counter {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 255, 136, 0.3);
    backdrop-filter: blur(10px);
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
        margin-top: 70px;
    }

    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }

    header div {
        flex-direction: column;
        align-items: center;
    }

    header a {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .gallery-item {
        min-height: 300px; /* Минимальная высота для мобильных */
    }

    .gallery-item img {
        height: 200px; /* Фиксированная высота для мобильных */
    }

    .image-caption {
        height: auto; /* Автоматическая высота для мобильных */
        min-height: 100px;
    }

    .contact-section {
        padding: 2rem;
    }

    .contact-section div {
        flex-direction: column;
        align-items: center;
    }

    .contact-section a {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .lightbox-prev {
        left: -60px;
    }

    .lightbox-next {
        right: -60px;
    }

    .lightbox-close {
        top: -40px;
        right: -10px;
    }

    .lightbox-counter {
        bottom: -40px;
    }
}

@media (max-width: 480px) {
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .lightbox-prev {
        left: 10px;
        top: 10px;
        transform: none;
    }

    .lightbox-next {
        right: 10px;
        top: 10px;
        transform: none;
    }

    .lightbox-close {
        top: 10px;
        right: 50%;
        transform: translateX(50%);
    }

    .lightbox-counter {
        bottom: 10px;
    }
}