/* Photography Page Specific Styles */

/* Override main margin from index page hero section */
main {
    margin-top: 0 !important;
}

/* Prevent project card styles from affecting photography */
.photography-grid * {
    aspect-ratio: unset !important;
}

.photography-grid img,
.photography-grid video {
    object-fit: initial !important;
    position: static !important;
}

.page-title {
    text-align: center;
    padding: 140px 32px 60px;
}

.page-title h2 {
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.8;
}

.photography-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 32px 80px;
    max-width: 900px;
    margin: 0 auto;
}

.photo-item {
    position: relative;
    overflow: hidden;
    line-height: 0;
}

.photo-item img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: top;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.photo-item img:hover {
    opacity: 0.9;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

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

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    display: block;
}

.lightbox-close {
    position: fixed;
    top: 32px;
    right: 32px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
    padding: 0;
}

.lightbox-close::before,
.lightbox-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 2px;
    background: #fff;
    transform-origin: center;
}

.lightbox-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.lightbox-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.lightbox-close:hover::before,
.lightbox-close:hover::after {
    background: rgba(255, 255, 255, 0.7);
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
    padding: 0;
}

.lightbox-prev {
    left: 32px;
}

.lightbox-next {
    right: 32px;
}

.lightbox-nav::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
}

.lightbox-prev::before {
    transform: translate(-30%, -50%) rotate(-45deg);
}

.lightbox-next::before {
    transform: translate(-70%, -50%) rotate(135deg);
}

.lightbox-nav:hover::before {
    border-color: rgba(255, 255, 255, 0.7);
}

/* Counter */
.lightbox-counter {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    letter-spacing: 0.1em;
    z-index: 10001;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .page-title {
        padding: 120px 20px 40px;
    }

    .photography-grid {
        padding: 0 20px 60px;
        gap: 20px;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
    }

    .lightbox-nav {
        width: 50px;
        height: 50px;
    }

    .lightbox-prev {
        left: 20px;
    }

    .lightbox-next {
        right: 20px;
    }

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