.page-title {
    font-size: 32px;
    font-weight: normal;
    letter-spacing: 3px;
    margin-top: 40px;
    text-align: center;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 950px;
    margin: 60px auto 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

.gallery-item::after {
    content: attr(data-title);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 15px;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover::after {
    transform: translateY(0);
}

.back-to-top {
    text-align: center;
    margin-top: 60px;
}

.back-to-top a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 2px;
    transition: opacity 0.3s ease;
}

.back-to-top a:hover {
    opacity: 0.6;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 24px;
        margin-top: 30px;
    }
    
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-top: 40px;
    }
    
    .gallery-item::after {
        font-size: 10px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 20px;
    }
    
    .gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-item::after {
        font-size: 11px;
        padding: 12px;
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox.active ~ .container {
    filter: blur(20px);
}

.lightbox-content {
    position: relative;
    max-width: 700px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.lightbox-content img {
    max-width: 100%;
    max-height: calc(90vh - 80px);
    object-fit: contain;
}

.lightbox-title {
    color: #ffffff;
    font-size: 12px;
    letter-spacing: 2px;
    margin-top: 25px;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #ffffff;
    font-size: 30px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    opacity: 0.6;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    font-size: 30px;
    cursor: pointer;
    padding: 20px;
    transition: opacity 0.3s ease;
    user-select: none;
    z-index: 10000;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 0.6;
}

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

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


@media (max-width: 768px) {
    .lightbox-content {
        max-width: 90%;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
    }
}

/* Other Work */
.other-work {
    text-align: center;
    margin-top: 80px;
}

.other-work p {
    color: #ffffff;
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.other-work a img {
    max-width: 300px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.other-work .work-label {
    margin-top: 15px;
    margin-bottom: 5px;
}

.other-work .work-year {
    margin-top: 5px;
    font-size: 12px;
    opacity: 0.7;
}