/* ========================================
   CREATIVE SHOWCASE
======================================== */

.creative-showcase {
    position: relative;
    overflow: hidden;
}

.creative-showcase::before {
    content: "";
    position: absolute;
    width: 700px;
    height: 700px;
    right: -250px;
    top: -250px;
    background: rgba(236,72,153,.15);
    filter: blur(180px);
}

.creative-showcase::after {
    content: "";
    position: absolute;
    width: 700px;
    height: 700px;
    left: -250px;
    bottom: -250px;
    background: rgba(6,182,212,.15);
    filter: blur(180px);
}

.creative-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 12px 22px;

    border-radius: 999px;

    border: 1px solid rgba(255,255,255,.08);

    background: rgba(255,255,255,.04);

    margin-bottom: 20px;
}

.creative-layout {
    margin-top: 70px;

    display: grid;

    grid-template-columns: repeat(2,1fr);

    gap: 24px;
}

.featured-video {
    grid-column: span 2;
    height: 520px;
}

.creative-item {
    position: relative;

    overflow: hidden;

    cursor: pointer;

    border-radius: 28px;

    border: 1px solid var(--border);

    background: var(--surface);

    transition: .5s ease;
}

.creative-item:hover {
    transform: translateY(-10px);
}

.creative-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: .8s ease;
}

.creative-item:hover img {
    transform: scale(1.08);
}

.creative-item::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
    linear-gradient(
        to top,
        rgba(0,0,0,.85),
        rgba(0,0,0,.15)
    );

    z-index: 1;
}

.creative-overlay {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    padding: 30px;

    z-index: 2;
}

.creative-category {
    display: inline-block;

    padding: 8px 14px;

    border-radius: 999px;

    background: rgba(255,255,255,.12);

    backdrop-filter: blur(10px);

    font-size: .8rem;

    margin-bottom: 15px;
}

.creative-overlay h3,
.creative-overlay h4 {
    color: #fff;
    margin: 0;
}

.play-circle {
    width: 90px;
    height: 90px;

    position: absolute;

    top: -180px;
    left: 50%;

    transform: translateX(-50%);

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,.15);

    backdrop-filter: blur(15px);

    color: white;

    font-size: 26px;
}

.creative-item:not(.featured-video) {
    height: 340px;
}

/* ========================================
   MODAL
======================================== */

.creative-modal {
    position: fixed;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;

    transition: .35s;

    z-index: 9999;
}

.creative-modal.active {
    opacity: 1;
    visibility: visible;
}

.creative-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(0,0,0,.88);

    backdrop-filter: blur(15px);
}

.creative-modal-content {
    position: relative;

    width: min(1200px,95vw);
    max-height: 90vh;

    overflow: auto;

    border-radius: 30px;

    z-index: 2;

    background: #0f1117;

    border: 1px solid var(--border);

    animation: modalIn .4s ease;
}

@keyframes modalIn {

    from {
        opacity: 0;
        transform: scale(.92);
    }

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

.creative-modal-body img,
.creative-modal-body video {
    width: 100%;
    display: block;
}

.creative-modal-body video {
    max-height: 85vh;
}

.creative-close {
    position: absolute;

    top: 20px;
    right: 20px;

    width: 50px;
    height: 50px;

    border-radius: 50%;

    border: none;

    cursor: pointer;

    color: white;

    background: rgba(255,255,255,.12);

    backdrop-filter: blur(15px);

    z-index: 10;
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 992px) {

    .featured-video {
        height: 420px;
    }
}

@media (max-width: 768px) {

    .creative-layout {
        grid-template-columns: 1fr;
    }

    .featured-video {
        grid-column: auto;
        height: 300px;
    }

    .creative-item {
        height: 260px !important;
    }

    .creative-overlay {
        padding: 20px;
    }

    .play-circle {
        width: 70px;
        height: 70px;
        top: -120px;
    }
}

.creative-modal-body {
    width: 100%;
}

.creative-modal-body img,
.creative-modal-body video,
.creative-modal-body iframe {
    width: 100%;
    display: block;
}

.creative-modal-body iframe {
    height: 85vh;
    border: none;
}

.creative-modal-content {
    width: min(1400px,95vw);
}

.creative-close:hover {
    transform: rotate(90deg);
}

.play-circle {
    transition: .4s ease;
}

.featured-video:hover .play-circle {
    transform: translateX(-50%) scale(1.15);
}

.creative-item::after {
    content: "";

    position: absolute;
    inset: 0;

    border-radius: inherit;

    background:
    linear-gradient(
        135deg,
        rgba(139,92,246,.25),
        rgba(6,182,212,.15)
    );

    opacity: 0;

    transition: .4s;
}

.creative-item:hover::after {
    opacity: 1;
}