img,
video {
    max-width: 100%;
    height: auto;
}

.project-page {
    background-color: var(--black);
    color: var(--white);
    font-family: var(--font-primary);
}

/* Project Hero */
.project-hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    padding: 151px 4% 80px;
    gap: 5%;
}

@media (max-width: 992px) {
    .project-hero {
        flex-direction: column;
        padding-top: 120px;
        min-height: auto;
    }
}

.project-hero-right {
    flex: 1;
}

@media (max-width: 992px) {

    .project-hero-left,
    .project-hero-right {
        flex: none;
        width: 100%;
    }
}

.project-main-title {
    font-size: clamp(2.5rem, 5vw, 2.5em);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 1.5px;
    color: red;
}

.project-subtitle-box {
    margin-top: 0;
}

.project-client-name {
    font-size: 2.2rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 30px;
    display: block;
}

.project-description {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.8;
    max-width: 800px;
    text-align: justify;
    text-justify: inter-word;
}

.project-line {
    width: 100px;
    height: 1px;
    background-color: var(--white);
    margin: 40px 0;
    opacity: 0.5;
}

.project-agency {
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
}




.project-quote-section {
    padding: 2rem 4rem;
    background-color: #0d0d0f;
}

.project-quote {
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: 500;
    line-height: 1.1;
    max-width: 1200px;
    margin-left: auto;
}

@media (max-width: 768px) {
    .project-quote-section {
        padding: 4rem 1.5rem;
    }
}




.project-gallery {
    padding: 100px 4%;
    display: flex;
    flex-direction: column;
    gap: 60px;
    max-width: 1300px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    grid-auto-flow: dense;
    margin-bottom: 60px;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gallery-image {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background-color: #1a1a1a;
    cursor: pointer;
}

.gallery-image img,
.gallery-image video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.gallery-caption {
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.8;
    letter-spacing: 0.5px;
}



.gallery-grid .gallery-item:nth-child(7n+1) {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-grid .gallery-item:nth-child(7n+1) .gallery-image {
    aspect-ratio: 1 / 1;
}


.gallery-grid .gallery-item:nth-child(7n+2),
.gallery-grid .gallery-item:nth-child(7n+3) {
    grid-column: span 1;
    grid-row: span 1;
}

.gallery-grid .gallery-item:nth-child(7n+2) .gallery-image,
.gallery-grid .gallery-item:nth-child(7n+3) .gallery-image {
    aspect-ratio: 1 / 0.85;
}


.gallery-grid .gallery-item:nth-child(7n+4) {
    grid-column: span 2;
    grid-row: span 1;
}

.gallery-grid .gallery-item:nth-child(7n+4) .gallery-image {
    aspect-ratio: 2 / 0.85;
}


.gallery-grid .gallery-item:nth-child(7n+5) {
    grid-column: span 1;
    grid-row: span 2;
}

.gallery-grid .gallery-item:nth-child(7n+5) .gallery-image {
    height: 100%;
    aspect-ratio: auto;

}

.gallery-grid .gallery-item:nth-child(7n+5) {
    height: 100%;
}

.gallery-grid .gallery-item:nth-child(7n+5) .gallery-image {
    flex-grow: 1;
}


.gallery-grid .gallery-item:nth-child(7n+6),
.gallery-grid .gallery-item:nth-child(7n+7) {
    grid-column: span 1;
    grid-row: span 1;
}

.gallery-grid .gallery-item:nth-child(7n+6) .gallery-image,
.gallery-grid .gallery-item:nth-child(7n+7) .gallery-image {
    aspect-ratio: 1 / 1;
}

.gallery-item.full-width {
    grid-column: span 3 !important;
    aspect-ratio: 21 / 9;
}

.video-player-container {
    position: relative;
    cursor: pointer;
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.play-button-overlay i {
    font-size: 2.5rem;
    color: var(--white);
    margin-left: 5px;
}

.play-button-overlay:hover {
    background-color: var(--bbdo-red);
    border-color: var(--bbdo-red);
    transform: translate(-50%, -50%) scale(1.1);
}


@media (max-width: 1024px) {
    .project-hero {
        flex-direction: column;
        padding-top: 150px;
    }

    .project-hero-left {
        margin-bottom: 50px;
    }

    .project-quote {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-item.full-width {
        grid-column: span 1 !important;
        aspect-ratio: auto;
    }

    .project-main-title {
        font-size: 2.2rem;
    }

    .project-client-name {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .project-description {
        font-size: 1rem;
    }
}





.back-to-portfolio {
    padding: 60px 4%;
    display: flex;
    justify-content: center;
}

.btn-back-portfolio {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 15px 40px;
    border: 1px solid var(--white);
    border-radius: 50px;
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-back-portfolio:hover {
    background-color: var(--white);
    color: var(--black);
    transform: translateY(-5px);
}






.more-work-section {
    background-color: var(--bbdo-red);
    padding: 60px 4%;
    display: flex;
    gap: 40px;
    overflow: hidden;
    position: relative;
    min-height: 320px;
}

.more-work-title-box {
    flex: 0 0 120px;
    position: relative;
}

.more-work-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    color: var(--white);
    text-transform: uppercase;
    line-height: 0.9;
    transform: rotate(-90deg) translateX(-100%);
    transform-origin: left top;
    white-space: nowrap;
    position: absolute;
    left: 0;
    top: 100%;
}

.more-work-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.more-work-slider {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding-bottom: 40px;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.more-work-slider::-webkit-scrollbar {
    display: none;
}

.work-card {
    flex: 0 0 350px;
    text-decoration: none;
    color: var(--white);
    transition: transform 0.4s ease;
}

.work-card:hover {
    transform: translateY(-10px);
}

.work-card-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
}

.work-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-card-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.work-card-title {
    font-size: 1.4rem;
    font-weight: 900;
    text-transform: uppercase;
}

.work-card-line {
    width: 25px;
    height: 1px;
    background-color: var(--white);
}

.work-card-subtitle {
    font-size: 0.9rem;
    font-weight: 700;
    opacity: 0.9;
}

.more-work-nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-top: 30px;
}

.nav-arrows {
    display: flex;
    gap: 20px;
}

.nav-arrow {
    font-size: 2rem;
    color: var(--white);
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.nav-arrow:hover {
    opacity: 1;
}

.nav-dots {
    display: flex;
    gap: 10px;
}

.nav-dot {
    width: 30px;
    height: 3px;
    background-color: var(--white);
    opacity: 0.3;
    border-radius: 10px;
}

.nav-dot.active {
    opacity: 1;
}

@media (max-width: 1024px) {
    .more-work-section {
        flex-direction: column;
        padding: 4rem 1.5rem;
    }

    .more-work-title-box {
        height: auto;
        margin-bottom: 2rem;
        flex: none;
    }

    .more-work-title {
        transform: none;
        position: static;
        font-size: clamp(2rem, 10vw, 4rem);
    }

    .work-card {
        flex: 0 0 280px;
    }
}


.gallery-item {
    cursor: pointer;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 90%;
    height: auto;
    max-width: 1200px;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    animation: zoom 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes zoom {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #f1f1f1;
    font-size: 60px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    line-height: 1;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@media only screen and (max-width: 700px) {
    .lightbox-content {
        width: 100%;
    }

    .lightbox-close {
        top: 15px;
        right: 25px;
        font-size: 40px;
    }
}


.entertainment-section {
    padding: 80px 4% 100px;
    max-width: 1600px;
    margin: 0 auto;
    background-color: transparent;
}


.entertainment-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 70px;
    letter-spacing: 3px;
    color: var(--white);
}

.entertainment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.entertainment-grid .gallery-image {
    aspect-ratio: 1 / 1.1;
}

@media (max-width: 1200px) {
    .entertainment-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 650px) {
    .entertainment-grid {
        grid-template-columns: 1fr;
    }

    .entertainment-section {
        padding: 60px 20px;
    }
}