/* ── Night Owl Portfolio Grid ── */

.nowl-portfolio-wrap {
    width: 100%;
}

/* Section Header */
.nowl-section-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 48px;
}

.nowl-section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 38px;
    letter-spacing: 0.08em;
    color: #fff;
    margin: 0;
    white-space: nowrap;
}

.nowl-section-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
}

/* Grid */
.nowl-grid {
    display: grid;
    gap: 20px;
}

/* Card */
.nowl-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 2px;
    background: #111;
    display: block;
}

/* Image: absolute fill — NO black bars */
.nowl-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: filter 0.4s ease, transform 0.4s ease;
    filter: brightness(0.9);
    transform: scale(1);
}

/* Card image */

/* Hover */
.nowl-card:hover .nowl-card__img {
    filter: blur(3px) brightness(0.45);
    transform: scale(1.03);
}

/* Category Pill */
.nowl-card__pill {
    position: absolute;
    top: 14px;
    left: 14px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    padding: 5px 12px;
    z-index: 2;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.nowl-card:hover .nowl-card__pill {
    opacity: 0;
}

/* Hover Overlay */
.nowl-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.55);
}

.nowl-card:hover .nowl-card__overlay {
    opacity: 1;
}

.nowl-play-icon {
    display: block;
    flex-shrink: 0;
}

/* Bottom-left info block */
.nowl-card__bottom-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    text-align: left;
}

.nowl-card__title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    letter-spacing: 0.06em;
    color: #fff;
    margin: 0;
    text-align: left;
    line-height: 1.1;
}

.nowl-card__cat {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #d4a853;
    display: block;
    margin-top: 4px;
}

/* Load More */
.nowl-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.nowl-load-more {
    padding: 14px 56px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
    border-radius: 0;
    display: inline-block;
}

.nowl-load-more:hover {
    background: #fff;
    color: #0a0a0a;
}

/* Lightbox */
.nowl-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.nowl-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
}

.nowl-lightbox__content {
    position: relative;
    width: 100%;
    max-width: 960px;
    z-index: 1;
}

.nowl-lightbox__close {
    position: absolute;
    top: -48px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    line-height: 1;
}

.nowl-lightbox__close:hover { opacity: 0.7; }

.nowl-lightbox__video-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
}

.nowl-lightbox__iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.nowl-lightbox__info { margin-top: 16px; }

.nowl-lightbox__cat {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #d4a853;
    display: block;
}

.nowl-lightbox__title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px;
    color: #fff;
    margin: 8px 0 0;
    letter-spacing: 0.04em;
}

/* Category Filter Bar */
.nowl-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.nowl-filter-btn {
    padding: 8px 22px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
    border-radius: 0;
}

.nowl-filter-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.nowl-filter-btn--active {
    color: #fff;
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

/* Lightbox self-hosted video */
.nowl-lightbox__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

@media (max-width: 768px) {
    .nowl-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .nowl-section-title { font-size: 28px; }
    .nowl-filter-bar { gap: 8px; }
    .nowl-filter-btn { padding: 6px 16px; font-size: 11px; }
}

@media (max-width: 480px) {
    .nowl-grid { grid-template-columns: 1fr !important; }
}
