.page-title {
    background-image: url('../web-img/page-title/about.webp');
    height: 100vh;
    max-height: 500px;
}

.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.project-gallery-item {
    width: 100%;
    height: auto;
    overflow: hidden;
    border: 1px solid var(--dgray);
    position: relative;
}

.project-gallery-item:hover,
.project-gallery-item:focus,
.project-gallery-item:active {
    border: 1px solid var(--tc1);
}

.project-location {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--dtc1);
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    z-index: 10;
    pointer-events: none;
}

.project-location span {
    color: var(--lgray);
    font-size: 14px;
}

.project-location i {
    color: var(--lgray);
    font-size: 14px;
}

.project-media-type {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
}

.project-media-type i {
    color: var(--white);
    font-size: 20px;
}

.project-gallery-item img {
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

/* Lightbox Modal Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

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

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.lightbox-image.loaded {
    opacity: 1;
    transform: scale(1);
}

/* Lightbox Video - Same styling as image */
.lightbox-video {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.lightbox-video.loaded {
    opacity: 1;
    transform: scale(1);
}

/* Close Button */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: transparent;
    color: var(--white);
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: color 0.3s ease, transform 0.3s ease;
}

.lightbox-close:hover {
    color: var(--tc1);
    transform: scale(1.1);
}

/* Navigation Arrows */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: transparent;
    color: var(--white);
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: color 0.3s ease, transform 0.3s ease;
}

.lightbox-nav:hover {
    color: var(--tc1);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Image Counter */
.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--black);
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    z-index: 10001;
}

/* Loading Spinner */
.lightbox-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 4px solid var(--dgray);
    border-top-color: var(--tc1);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@media (max-width: 1100px) {
    .project-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .project-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .project-gallery-grid {
        grid-template-columns: 1fr;
    }
}
