.page-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 1rem;
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 3rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(10, 10, 10, 0.9);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 250px;
    overflow: hidden;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: fixed;
    top: 115px;
    left: max(var(--content-side-padding), calc(50% - (var(--content-max-width) / 2)));
    z-index: 1100;
    backdrop-filter: blur(5px);
}

.back-button:before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(rgb(160, 115, 238) -11.11%, rgb(110, 37, 237) 100%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    border-radius: 250px;
    z-index: -1;
}

.back-button:hover {
    background: var(--accent-gradient);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-neon);
}

.back-button:hover:before {
    background: none;
}


@media (max-width: 768px) {
    .back-button {
        top: 100px;
        left: 10px;
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }

    .gallery {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .gallery-item {
        max-width: 100%;
    }

    .gallery-image {
        height: 400px;
    }

    .container {
        padding: 100px 5% 60px;
    }
}

.hidden {
    display: none !important;
}


.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border: none;
    border-radius: 50%;
    color: var(--primary-bg);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2001;
}



.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--text-primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-neon);
}

.lightbox-prev[disabled],
.lightbox-next[disabled] {
    background: var(--border-color);
    color: var(--text-secondary);
    cursor: default;
    opacity: 0.5;
    pointer-events: none;
}

.lightbox-prev[disabled]:hover,
.lightbox-next[disabled]:hover {
    transform: translateY(-50%) scale(1);
    box-shadow: none;
}

/* Update lightbox close button */
.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border: none;
    border-radius: 50%;
    color: var(--primary-bg);
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2001;
}

.lightbox-close:hover {
    transform: rotate(90deg) scale(1.1);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 5% 80px;
}

.page-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 4rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 350px));
    gap: 2rem;
    margin-top: 3rem;
    justify-content: center;
}

.gallery-item {
    position: relative;
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(224, 241, 31, 0.3);
}

.gallery-image {
    width: 100%;
    height: 400px;
    background: var(--secondary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.05);
}

.placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: 600;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

/* Footer */
.modern-footer {
    background: var(--secondary-bg);
    padding: 4rem 5%;
    border-top: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.contact-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--accent-color);
}

.social-links-footer {
    display: flex;
    gap: 1.5rem;
}

.social-links-footer a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links-footer a:hover {
    color: var(--accent-color);
    transform: translateY(-5px);
}