html {
    scroll-behavior: smooth;
}

.ptb-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    min-height: 100vh;
}

.ptb-project-col {
    margin-bottom: 40px;
}

.ptb-project-col video,
.ptb-project-col .imageDiv {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-meta {
    margin-top: 10px;
    font-size: 1rem;
}

.imageDiv, .videoDiv{
    padding-top: 0!important;
}

.ptb-project-skeleton {
    height: 200px;
    background: #eee;
    animation: pulse 1.5s infinite;
}
.ptb-projects-sentinel {
    height: 1px;
}


.ptb-media-wrapper {
    position: relative;
    width: 100%;
    /* max-height: 60vh; */
    /* aspect-ratio: 1 / 1; */
    aspect-ratio: 1.5 / 1;
    overflow: hidden;
}

.ptb-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ptb-loader {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Spinner */
.ptb-loader::after {
    content: '';
    width: 32px;
    height: 32px;
    border: 3px solid #ddd;
    border-top-color: #000;
    border-radius: 50%;
    animation: ptb-spin 0.8s linear infinite;
}

@keyframes ptb-spin {
    to {
        transform: rotate(360deg);
    }
}

.linkHoverPTB:hover .ptb-media-wrapper:after,
.linkHoverPTB:hover .ptb-media-wrapper:after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(230, 0, 126, 0.5);
    background-image: url('/ptb2012/wp-content/themes/pushthebrand/assets/img/hover_push.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 15%;
    opacity: 1;
    animation-name: fadeInOpacity;
    animation-iteration-count: 1;
    animation-timing-function: ease-in;
    animation-duration: 0.5s;
    z-index: 1;
}


/* Quand chargé */
.ptb-project-col:not(.is-loading) .ptb-loader {
    display: none;
}

@media (max-width: 767.99px) {
    .ptb-projects-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 30px;
    }
}