/**
 * NOWLB Portfolio Manager - Frontend Styles
 * 
 * Exact design specifications from NOWLB Figma Make
 * @package NOWLB_Portfolio_Manager
 */

/* ========== CSS VARIABLES ========== */
:root {
    --nowlb-primary-black: #0A0A0A;
    --nowlb-primary-white: #FFFFFF;
    --nowlb-accent-gray: #D9D9D9;
    --nowlb-text-gray: #6F6F6F;
    --nowlb-bg-light: #F5F5F5;
    --nowlb-placeholder: #F3F3F3;
    --nowlb-max-width: 72rem; /* 1152px */
    --nowlb-shell-padding: clamp(1rem, 4vw, 2rem);
    --nowlb-section-gap: clamp(2.5rem, 8vw, 4.5rem);
}

.portfolio-shell,
.portfolio-container {
    /* width: auto; (default) prevents overflow when padding is added */
    margin-inline: auto;
    padding-inline: var(--nowlb-shell-padding);
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .portfolio-shell,
    .portfolio-container {
        width: min(var(--nowlb-max-width), 100%);
        padding-inline: 0;
    }
}

.portfolio-filter-section,
.portfolio-filters-mobile,
.portfolio-grid-section {
    width: 100%;
}

/* ========== PORTFOLIO PAGE CONTAINER ========== */
.portfolio-page {
    min-height: 100vh;
    background: var(--nowlb-primary-white);
    padding-block-start: clamp(3.5rem, 12vw, 6rem);
    padding-block-end: clamp(2rem, 8vw, 3.5rem);
}

.portfolio-container {
    /* inherits shared shell rules */
}

/* ========== FILTER BAR SECTION ========== */
.portfolio-filter-section {
    margin-bottom: clamp(1.5rem, 5vw, 2.5rem);
    position: static;
    background: transparent;
}

/* ========== DESKTOP FILTERS ========== */
.portfolio-filters-desktop {
    display: none !important;
}

@media (min-width: 1024px) {
    .portfolio-filters-desktop {
        display: flex !important;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        /* PREVENT REORDERING */
        flex-direction: row;
    }
}

/* Desktop Filter Buttons */
.portfolio-filter-btn {
    /* Shape */
    padding: 8px 20px;
    border-radius: 999px;
    border: 1px solid;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    display: inline-block;
    text-decoration: none;
    
    /* Typography */
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    letter-spacing: 0.05em;
    
    /* Default State */
    background: transparent;
    color: var(--nowlb-primary-black);
    border-color: var(--nowlb-accent-gray);
    
    /* Transition */
    transition: all 200ms ease-out;
    
    /* PREVENT REORDERING - maintain order */
    order: 0;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.portfolio-filter-btn:hover {
    border-color: var(--nowlb-primary-black);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.portfolio-filter-btn.active {
    background: var(--nowlb-primary-black);
    color: var(--nowlb-primary-white);
    border-color: var(--nowlb-primary-black);
}

/* ========== MOBILE/TABLET FILTERS ========== */
.portfolio-filters-mobile {
    /* inherits shared shell rules */
}

@media (min-width: 1024px) {
    .portfolio-filters-mobile {
        display: none;
    }
}

.filter-row-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.filter-row {
    display: flex;
    gap: 8px;
    flex: 1 1 auto;
}

/* Mobile Filter Buttons */
.portfolio-filter-btn-mobile {
    /* Shape */
    flex: 1;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid;
    white-space: nowrap;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    
    /* Typography */
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    line-height: 1.25;
    font-weight: 500;
    letter-spacing: 0.03em;
    
    /* Default State */
    background: var(--nowlb-primary-white);
    color: var(--nowlb-primary-black);
    border-color: var(--nowlb-accent-gray);
    
    /* Transition */
    transition: all 200ms ease-out;
    
    /* PREVENT REORDERING - maintain order */
    order: 0;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.portfolio-filter-btn-mobile:active {
    background: var(--nowlb-bg-light);
}

.portfolio-filter-btn-mobile.active {
    background: var(--nowlb-primary-black);
    color: var(--nowlb-primary-white);
    border-color: var(--nowlb-primary-black);
}

/* ========== PORTFOLIO GRID SECTION ========== */
.portfolio-grid-section {
    /* inherits shared shell rules */
}

/* Grid Layout */
.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 3vw, 1.5rem);
}

@media (min-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(1.25rem, 3vw, 1.75rem);
    }
}

@media (min-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: clamp(1.5rem, 3vw, 2rem);
    }
}

/* ========== PORTFOLIO CARD (IMAGE OVERLAY DESIGN) ========== */
.portfolio-card {
    /* Container */
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 6px;
    background: var(--nowlb-bg-light);
    text-decoration: none;
    display: block;
    
    /* Aspect Ratio */
    aspect-ratio: 4/3;
    
    /* Transitions */
    transition: all 300ms ease-out;
    
    /* Filter animation - FAST */
    opacity: 1;
    transform: scale(1);
    transition: opacity 150ms ease-out, transform 150ms ease-out;
}

.portfolio-card::before {
    content: '';
    display: block;
    padding-bottom: 75%; /* Maintain 4:3 ratio when aspect-ratio unsupported */
}

@supports (aspect-ratio: 4 / 3) {
    .portfolio-card::before {
        display: none;
    }
}

/* Hidden by filter - INSTANT */
.portfolio-card.hidden-filter {
    display: none !important;
    opacity: 0;
}

/* Visible by filter - INSTANT */
.portfolio-card.visible-filter {
    display: block !important;
    opacity: 1;
}

.portfolio-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 
                0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Image - fills entire card */
.portfolio-card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease-out;
}

.portfolio-card:hover .portfolio-card-image {
    transform: scale(1.1);
}

/* Gradient Overlay - always visible, intensifies on hover */
.portfolio-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top, 
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        transparent 100%
    );
    opacity: 0.7;
    transition: opacity 300ms ease-out;
    pointer-events: none;
}

.portfolio-card:hover .portfolio-card-gradient {
    opacity: 0.95;
}

/* Arrow Icon - bottom-right, fades in on hover */
.portfolio-card-arrow {
    position: absolute;
    bottom: 24px;
    right: 24px;
    z-index: 10;
    opacity: 0;
    transition: opacity 300ms ease-out;
    pointer-events: none;
}

.portfolio-card:hover .portfolio-card-arrow {
    opacity: 1;
}

.arrow-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow-circle svg {
    width: 20px;
    height: 20px;
    color: var(--nowlb-primary-white);
    stroke: currentColor;
}

/* Content - title at bottom-left */
.portfolio-card-content {
    position: absolute;
    bottom: 32px;
    left: 0;
    right: 0;
    padding-inline: clamp(1.25rem, 4vw, 2rem) clamp(3rem, 6vw, 5rem);
    z-index: 5;
}

.portfolio-card-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    font-weight: 500;
    line-height: 1.4;
    color: var(--nowlb-primary-white);
    margin: 0;
    display: inline-block;
    position: relative;
    transition: transform 300ms ease-out;
}

.portfolio-card-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 250ms ease-out;
    opacity: 0.95;
}

.portfolio-card:hover .portfolio-card-title::after,
.portfolio-card:focus .portfolio-card-title::after,
.portfolio-card:focus-visible .portfolio-card-title::after {
    transform: scaleX(1);
}

/* ========== LOADING STATES ========== */
.portfolio-loading {
    text-align: center;
    padding: 40px;
    color: var(--nowlb-text-gray);
    grid-column: 1 / -1;
}

.portfolio-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--nowlb-text-gray);
    grid-column: 1 / -1;
}

.portfolio-empty p {
    font-size: 16px;
    margin: 0;
}

/* ========== ACCESSIBILITY ========== */
.portfolio-filter-btn:focus,
.portfolio-filter-btn-mobile:focus {
    outline: none;
}

.portfolio-filter-btn:focus-visible,
.portfolio-filter-btn-mobile:focus-visible {
    outline: 2px solid var(--nowlb-primary-black);
    outline-offset: 2px;
}

.portfolio-card:focus,
.portfolio-card:focus-visible,
.portfolio-card:active {
    outline: none;
    box-shadow: 0 0 0 0 transparent;
}

/* ========== PRINT STYLES ========== */
@media print {
    .portfolio-filter-section {
        display: none;
    }
    
    .portfolio-card {
        break-inside: avoid;
    }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
    .portfolio-filter-btn,
    .portfolio-filter-btn-mobile,
    .portfolio-card,
    .portfolio-card-image,
    .portfolio-card-gradient,
    .portfolio-card-arrow,
    .portfolio-card-title {
        transition: none;
    }
    
    .portfolio-card:hover .portfolio-card-image {
        transform: scale(1);
    }
}

/* ========== RESPONSIVE TYPOGRAPHY ========== */
@media (max-width: 767px) {
    .portfolio-card-title {
        font-size: 16px;
    }
    
    .portfolio-card-content {
        bottom: 24px;
        padding-left: 20px;
        padding-right: 70px;
    }
    
    .portfolio-card-arrow {
        bottom: 20px;
        right: 20px;
    }
}

/* ========== HIGH DPI SCREENS ========== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .portfolio-card-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

.hero-section {
    height: 60vh;
    background: var(--nowlb-primary-black);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero-section {
        height: 65vh;
    }
}

@media (min-width: 1024px) {
    .hero-section {
        height: 70vh;
    }
}

.hero-placeholder-image {
    background: #F3F3F3;
    width: 100%;
    height: 100%;
}

.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 10;
}

.back-next-buttons {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 30;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
}

.nav-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: white;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 300ms;
    text-decoration: none;
}

.nav-button:hover {
    background: rgba(0, 0, 0, 0.4);
}

.a2z-hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    z-index: 20;
}

.a2z-hero-text-wrapper {
    text-align: center;
    max-width: 1200px;
    width: 100%;
}

.a2z-hero-image-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.a2z-hero-image-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Large screens */
@media (min-width: 1600px) {
    .a2z-hero-image-container img {
        max-height: 90vh;
    }
}

/* Mobile portrait */
@media (max-width: 767px) and (orientation: portrait) {
    .a2z-hero-image-container img {
        max-width: 90vw;
    }
}

.hero-content {
    position: relative;
    z-index: 20;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 24px;
}

.hero-title {
    font-size: 72px;
    line-height: 1.2;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: white;
    margin-bottom: 16px;
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 42px;
    }
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.625;
    font-weight: 400;
    color: white;
    opacity: 0.9;
    max-width: 48rem;
    margin: 0 auto;
}

.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    text-align: center;
}

.scroll-text {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 400;
    line-height: 18px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: white;
    margin-bottom: 16px;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 100%);
    margin: 0 auto;
}

.project-overview {
    background: white;
    padding: 64px 0;
}

@media (min-width: 768px) {
    .project-overview {
        padding: 80px 0;
    }
}

.section-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.title-line {
    width: 48px;
    height: 1px;
    background: black;
}

.section-heading {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}

.overview-grid {
    display: flex;
    gap: 64px;
    position: relative;
}

@media (max-width: 1023px) {
    .overview-grid {
        flex-direction: column;
        gap: 24px;
    }
}

.overview-description {
    flex: 1;
    padding-right: 32px;
    color: var(--nowlb-text-gray);
    line-height: 1.625;
    max-width: 88%;
}

@media (max-width: 1023px) {
    .overview-description {
        max-width: 100%;
        padding-right: 0;
        order: 2;
    }
}

.vertical-divider {
    position: absolute;
    left: 46%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #E9E9E9;
}

@media (max-width: 1023px) {
    .vertical-divider {
        display: none;
    }
}

.info-box {
    width: 552px;
    flex-shrink: 0;
    background: #F5F5F5;
    border-radius: 4px;
    padding: 32px;
}

@media (max-width: 1023px) {
    .info-box {
        width: 100%;
        order: 1;
    }
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #E9E9E9;
    margin-bottom: 16px;
}

.info-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-label {
    font-size: 14px;
    color: var(--nowlb-text-gray);
    font-family: 'Inter', sans-serif;
}

.info-value {
    font-size: 14px;
    color: var(--nowlb-primary-black);
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.gallery-placeholder {
    background: #F3F3F3;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 300ms;
}

.gallery-placeholder:hover {
    opacity: 0.9;
}

.gallery-large .image-1 {
    height: 600px;
}

.gallery-large .image-2 {
    height: 600px;
}

@media (max-width: 767px) {
    .gallery-large .image-1,
    .gallery-large .image-2 {
        height: 360px;
    }
}

.related-projects {
    background: #F7F7F7;
    padding: 96px 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

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

.nowlb-cta {
    background: var(--nowlb-primary-black);
    padding: 96px 0;
    color: var(--nowlb-primary-white);
}

.nowlb-cta__title {
    font-family: 'Inter', sans-serif;
    font-size: 40px;
    font-weight: 500;
    margin: 0 0 16px;
}

.nowlb-cta__subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    opacity: 0.9;
    margin: 0 0 24px;
}

.nowlb-cta__button {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--nowlb-primary-white);
    color: var(--nowlb-primary-black);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.nowlb-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
}

.nowlb-lightbox.is-open {
    display: block;
}

.nowlb-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.95);
}

.nowlb-lightbox__ui {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
}

.nowlb-lightbox__top {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px;
    z-index: 2;
}

.nowlb-lightbox__spacer {
    flex: 1;
}

.nowlb-lightbox__btn {
    appearance: none;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(0,0,0,0.3);
    color: #fff;
    border-radius: 999px;
    padding: 8px 12px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    cursor: pointer;
}

.nowlb-lightbox__stage {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1;
}

.nowlb-lightbox__img {
    max-width: 92vw;
    max-height: 72vh;
    object-fit: contain;
    transform-origin: center;
    transition: transform 200ms ease-out;
}

.nowlb-lightbox--zoom .nowlb-lightbox__img {
    transform: scale(1.6);
}

.nowlb-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(0,0,0,0.3);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.nowlb-lightbox__nav--prev {
    left: 16px;
}

.nowlb-lightbox__nav--next {
    right: 16px;
}

.nowlb-lightbox__bottom {
    padding: 16px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.nowlb-lightbox__counter {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,0.85);
}

.nowlb-lightbox__dots {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.nowlb-lightbox__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.35);
    background: transparent;
    cursor: pointer;
}

.nowlb-lightbox__dot.is-active {
    background: rgba(255,255,255,0.9);
}

.nowlb-lightbox-open {
    overflow: hidden;
}

/* ========== ELEMENTOR SINGLE WIDGETS (NO INLINE CSS) ========== */
.nowlb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) and (max-width: 1023px) {
    .nowlb-container {
        padding: 0 16px;
    }
}

@media (max-width: 767px) {
    .elementor-widget-nowlb_related_portfolio_grid {
        width: 100vw !important;
        max-width: none !important;
        margin-left: calc((100% - 100vw) / 2);
        margin-right: calc((100% - 100vw) / 2);
    }

    .elementor-widget-nowlb_related_portfolio_grid .nowlb-container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* HERO WIDGET */
.nowlb-hero {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: var(--nowlb-primary-black);
    height: 60vh;
}

@media (min-width: 768px) {
    .nowlb-hero {
        height: 65vh;
    }
}

@media (min-width: 1024px) {
    .nowlb-hero {
        height: 70vh;
    }
}

.nowlb-hero__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

.nowlb-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, var(--nowlb-hero-grad-start, 0.4)) 0%,
        rgba(0, 0, 0, var(--nowlb-hero-grad-end, 0.7)) 100%
    );
}

.nowlb-hero__nav {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 30;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.nowlb-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: var(--nowlb-primary-white);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 300ms ease-out;
}

.nowlb-hero__btn:hover {
    background: rgba(0, 0, 0, 0.4);
}

.nowlb-hero__btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nowlb-hero__btn-icon svg {
    width: 20px;
    height: 20px;
}

.nowlb-hero__content {
    position: relative;
    z-index: 20;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.nowlb-hero__content-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.nowlb-hero__title {
    font-family: 'Inter', sans-serif;
    font-size: 72px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--nowlb-primary-white);
    margin: 0 0 16px;
}

@media (min-width: 768px) and (max-width: 1023px) {
    .nowlb-hero__title {
        font-size: 56px;
    }
}

@media (max-width: 767px) {
    .nowlb-hero__title {
        font-size: 32px;
    }
}

.nowlb-hero__subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.625;
    color: var(--nowlb-primary-white);
    opacity: 0.9;
    max-width: 48rem;
    margin: 0 auto;
}

.nowlb-hero__scroll {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    text-align: center;
    bottom: 20px;
}

@media (min-width: 768px) and (max-width: 1023px) {
    .nowlb-hero__scroll {
        bottom: 16px;
    }
}

@media (max-width: 767px) {
    .nowlb-hero__scroll {
        bottom: 12px;
    }
}

.nowlb-hero__scroll-text {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--nowlb-primary-white);
    margin-bottom: 16px;
}

@media (max-width: 767px) {
    .nowlb-hero__scroll-text {
        font-size: 10px;
    }
}

.nowlb-hero__scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 100%);
    margin: 0 auto;
}

/* OVERVIEW WIDGET */
.nowlb-overview {
    background: var(--nowlb-primary-white);
    padding: 64px 0;
}

.nowlb-overview__title-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.nowlb-overview__title-line {
    width: 48px;
    height: 1px;
    background: #000;
    display: none;
}

@media (min-width: 1024px) {
    .nowlb-overview__title-line {
        display: block;
    }
}

.nowlb-overview__heading {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--nowlb-primary-black);
}

.nowlb-overview__grid {
    display: flex;
    gap: 64px;
    position: relative;
}

.nowlb-overview__description {
    flex: 1;
    padding-right: 32px;
    max-width: 88%;
    color: var(--nowlb-text-gray);
    line-height: 1.625;
}

.nowlb-overview__vdiv {
    position: absolute;
    left: 46%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #E9E9E9;
}

.nowlb-overview__info {
    width: 552px;
    flex-shrink: 0;
    background: #F5F5F5;
    border-radius: 4px;
    padding: 32px;
}

.nowlb-overview__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #E9E9E9;
    margin-bottom: 16px;
}

.nowlb-overview__row--last {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.nowlb-overview__label {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--nowlb-text-gray);
}

.nowlb-overview__value {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--nowlb-primary-black);
}

@media (max-width: 1023px) {
    .nowlb-overview__grid {
        flex-direction: column;
        gap: 24px;
    }
    .nowlb-overview__vdiv {
        display: none;
    }
    .nowlb-overview__info {
        width: 100%;
        padding: 24px;
        order: 1;
    }
    .nowlb-overview__description {
        order: 2;
        max-width: 100%;
        padding-right: 0;
    }
}

/* GALLERY WIDGET */
.nowlb-gallery {
    padding: 8px 0;
}

.nowlb-gallery__link {
    display: block;
    text-decoration: none;
}

.nowlb-gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    background: var(--nowlb-placeholder);
    cursor: pointer;
    transition: opacity 300ms ease-out;
}

.nowlb-gallery__link:hover .nowlb-gallery__img {
    opacity: 0.9;
}

.nowlb-gallery__stack {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.nowlb-gallery--large .nowlb-gallery__img {
    height: 600px;
}

@media (min-width: 768px) and (max-width: 1023px) {
    .nowlb-gallery--large .nowlb-gallery__img {
        height: 500px;
    }
}

@media (max-width: 767px) {
    .nowlb-gallery__stack {
        gap: 24px;
    }
    .nowlb-gallery--large .nowlb-gallery__img {
        height: 400px;
    }
}

.nowlb-gallery__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
    margin-bottom: 48px;
}

@media (max-width: 767px) {
    .nowlb-gallery__title {
        margin-bottom: 32px;
    }
}

.nowlb-gallery__title-line {
    height: 1px;
    width: 120px;
    background: #E9E9E9;
}

.nowlb-gallery__title-text {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--nowlb-primary-black);
}

.nowlb-gallery__grid {
    display: grid;
    gap: 24px;
}

@media (max-width: 767px) {
    .nowlb-gallery__grid {
        gap: 16px;
    }
}

.nowlb-gallery__grid--three {
    grid-template-columns: 1fr 1fr;
}

.nowlb-gallery__portrait {
    height: 700px;
}

.nowlb-gallery__stack--right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.nowlb-gallery__landscape {
    height: 337px;
}

@media (max-width: 767px) {
    .nowlb-gallery__grid--three {
        grid-template-columns: 1fr;
    }
    .nowlb-gallery__portrait {
        height: 400px;
    }
    .nowlb-gallery__stack--right {
        gap: 16px;
    }
    .nowlb-gallery__landscape {
        height: 195px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .nowlb-gallery__portrait {
        height: 500px;
    }
    .nowlb-gallery__landscape {
        height: 240px;
    }
}

.nowlb-gallery__grid--four {
    grid-template-columns: repeat(2, 1fr);
}

.nowlb-gallery__grid--four .nowlb-gallery__cell {
    height: 400px;
}

@media (min-width: 768px) and (max-width: 1023px) {
    .nowlb-gallery__grid--four .nowlb-gallery__cell {
        height: 350px;
    }
}

@media (max-width: 767px) {
    .nowlb-gallery__grid--four {
        grid-template-columns: 1fr;
    }
    .nowlb-gallery__grid--four .nowlb-gallery__cell {
        height: 400px;
    }
}

.nowlb-gallery--four-column {
    padding: 8px 0 32px;
}

.nowlb-gallery--three-column {
    padding: 24px 0;
}

.nowlb-gallery--six-column {
    padding: 48px 0 64px;
}

.nowlb-gallery__grid--six {
    grid-template-columns: repeat(3, 1fr);
}

.nowlb-gallery__grid--six .nowlb-gallery__cell {
    height: 300px;
}

@media (min-width: 768px) and (max-width: 1023px) {
    .nowlb-gallery__grid--six {
        grid-template-columns: repeat(2, 1fr);
    }
    .nowlb-gallery__grid--six .nowlb-gallery__cell {
        height: 280px;
    }
}

@media (max-width: 767px) {
    .nowlb-gallery__grid--six {
        grid-template-columns: 1fr;
    }
    .nowlb-gallery__grid--six .nowlb-gallery__cell {
        height: 400px;
    }
}

/* RELATED PROJECTS WIDGET */
.nowlb-related {
    background: #F7F7F7;
    padding: 0 0 96px;
}

@media (max-width: 767px) {
    .nowlb-related {
        padding: 0 0 64px;
    }
}

.nowlb-related__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
    margin-bottom: 48px;
}

@media (max-width: 767px) {
    .nowlb-related__title {
        margin-bottom: 32px;
    }
}

.nowlb-related__title-line {
    height: 1px;
    width: 120px;
    background: #E9E9E9;
}

.nowlb-related__title-text {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--nowlb-primary-black);
}

.nowlb-related__grid {
    display: grid;
    grid-template-columns: repeat(var(--nowlb-related-cols, 3), 1fr);
    gap: 24px;
}

@media (max-width: 1023px) {
    .nowlb-related__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .nowlb-related__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* LIGHTBOX 2 */
.nowlb-lightbox2 {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.nowlb-lightbox2.is-open {
    display: block;
}

.nowlb-lightbox2__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.95);
    transition: opacity 300ms ease-out;
}

.nowlb-lightbox2__ui {
    position: absolute;
    inset: 0;
}

.nowlb-lightbox2__top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px;
    z-index: 2;
}

@media (max-width: 767px) {
    .nowlb-lightbox2__top {
        padding: 16px;
    }
}

.nowlb-lightbox2__left {
    display: flex;
    gap: 12px;
}

.nowlb-lightbox2__btn,
.nowlb-lightbox2__close {
    appearance: none;
    border: none;
    background: transparent;
    color: rgba(255,255,255,1);
    cursor: pointer;
    transition: color 300ms ease-out;
    font-family: 'Inter', sans-serif;
}

.nowlb-lightbox2__btn:hover,
.nowlb-lightbox2__close:hover {
    color: rgba(255,255,255,0.8);
}

.nowlb-lightbox2__close {
    font-size: 32px;
    line-height: 1;
}

.nowlb-lightbox2__stage {
    position: absolute;
    inset: 0;
    padding: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 767px) {
    .nowlb-lightbox2__stage {
        padding: 16px;
    }
}

.nowlb-lightbox2__img {
    max-height: 70vh;
    max-width: 92vw;
    object-fit: contain;
    transition: transform 300ms ease-out;
    transform: scale(1);
}

.nowlb-lightbox2.is-zoom .nowlb-lightbox2__img {
    transform: scale(1.5);
}

.nowlb-lightbox2__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: rgba(255,255,255,1);
    font-size: 48px;
    line-height: 1;
    cursor: pointer;
    transition: color 300ms ease-out;
    z-index: 2;
}

.nowlb-lightbox2__nav:hover {
    color: rgba(255,255,255,0.8);
}

.nowlb-lightbox2__nav--prev {
    left: 16px;
}

.nowlb-lightbox2__nav--next {
    right: 16px;
}

.nowlb-lightbox2__bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    z-index: 2;
}

@media (max-width: 767px) {
    .nowlb-lightbox2__bottom {
        padding: 16px;
    }
}

.nowlb-lightbox2__counter {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

.nowlb-lightbox2__dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.nowlb-lightbox2__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: none;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: transform 300ms ease-out, opacity 300ms ease-out;
}

.nowlb-lightbox2__dot:hover {
    transform: scale(1.1);
}

.nowlb-lightbox2__dot.is-active {
    background: rgba(255,255,255,1);
}
