/* Custom IP inner */
#inner-page-wrapper > .container {
    max-width: 100%;
    padding: 0;
}

.ip-global-container {
    max-width: 1310px;
    width: 100%;
    padding: 0 15px;
    margin: 0 auto;
}

#inner-page-wrapper {
    padding-bottom: 0;
}

/* Section 1 */
/* ============ FEATURED SLIDESHOW HERO ============ */
.featured {
    position: relative;
    height: 79.366vh;
    min-height: 560px;
    overflow: hidden;
    background: var(--ink);
}
.featured-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.9s ease;
    pointer-events: none;
}
.featured-slide.active {
    opacity: 1;
    pointer-events: auto;
}
.featured-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.featured-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #1E1E1E;
    background: linear-gradient(0deg, rgba(30, 30, 30, 1) 0%, rgba(30, 30, 30, 0) 100%);
}
.featured-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.featured-content .eyebrow {
    color: var(--primary);
}
.featured-content h1 {
    color: #fff;
    font-size: clamp(34px, 4.6vw, 58px);
    line-height: 1.08;
    max-width: 680px;
    margin-bottom: 16px;
}
.featured-content h1 em {
    font-style: normal;
    color: var(--primary);
}
.featured-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13.5px;
}
.featured-meta .dot {
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
}

.featured-dots {
    z-index: 3;
    display: flex;
    gap: 8px;
    margin: 0 0 10px;
}

.featured-dot {
    width: 50px;
    height: 3px;
    background: rgba(255, 255, 255, 1);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease;
}

.featured-dot.active {
    background: var(--primary);
}

.featured-slider-content {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 100;
    padding: 0 0 46px;
}

@media (prefers-reduced-motion: reduce) {
    .featured-slide {
        transition: none;
    }
}

.featured-content .global-title-lg {
    color: #fff;
}

.featured-content .subtxt {
    color: #fff;
    padding: 0 0 0 20px;
    position: relative;
}

.featured-content .subtxt::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    height: 10px;
    width: 10px;
    border-radius: 10px;
    background: var(--primary);
    margin: auto;
}


/* Section head */
.ip-porfolio-sec {
    padding: 90px 0 0;
}

.ip-portfolio-title,
.ip-portfolio-desc {
    width: 50%;
}

.ip-portfolio-desc .global-txt {
    max-width: 425px;
    width: 100%;
    margin: 0 0 0 auto;
    opacity: 0.5;
}


/* ============ INTRO + FILTER ============ */
.browse-head {
    padding: 70px 0 36px;
}
.browse-head-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 34px;
}
.browse-head-top h2 {
    font-size: clamp(26px, 2.8vw, 34px);
    max-width: 460px;
}
.browse-head-top p {
    color: var(--stone);
    font-size: 14.5px;
    max-width: 340px;
}

.pill-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 50px 0 100px;
}
.pill {
    background: transparent;
    border: 1px solid rgba(30, 30, 30, 0.2);
    padding: 13px 25px;
    border-radius: 100px !important;
    font-size: 14px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-weight: 300;
    color: var(--secondary);
    transition: all 0.2s ease;
    cursor: pointer;
}
.pill:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.pill.active {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
}

.coming-soon-panel {
    display: none;
    padding: 80px 0 110px;
}
.coming-soon-inner {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
}
.coming-soon-inner .eyebrow {
    justify-content: center;
}
.coming-soon-inner h2 {
    font-size: clamp(24px, 2.6vw, 30px);
    margin-bottom: 16px;
    font-weight: 400;
}
.coming-soon-inner p {
    color: #919191;
    font-size: 16x;
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: 32px;
}
.coming-soon-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}


/* ============ MASONRY GRID ============ */
.masonry-wrap {
    padding: 0 0 100px;
}
.masonry {
    column-count: 3;
    column-gap: 22px;
}
.m-item {
    break-inside: avoid;
    margin-bottom: 22px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: var(--off-white);
}
.m-item.ar-tall {
    aspect-ratio: 3/4;
}
.m-item.ar-wide {
    aspect-ratio: 4/3;
}
.m-item.ar-square {
    aspect-ratio: 1/1;
}
.m-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.m-item:hover img {
    transform: scale(1.06);
}

.m-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.92);
    padding: 7px 14px;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--ink);
}
.m-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 20px;
    background: linear-gradient(
        180deg,
        rgba(30, 30, 30, 0) 0%,
        rgba(30, 30, 30, 0.82) 100%
    );
    color: #fff;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.m-item:hover .m-overlay {
    opacity: 1;
    transform: translateY(0);
}
.m-overlay h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 3px;
}
.m-overlay .loc {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.72);
}

@media (prefers-reduced-motion: reduce) {
    .m-item img,
    .m-overlay {
        transition: none;
    }
}

/* Bottom Text */
.porfolio-bot-txt {
    max-width: 640px;
    width: 100%;
    margin: 0 auto 100px;
    border-top: 1px solid rgba(30, 30, 30, 0.2);
    padding: 40px 0 0;
    text-align: center;
}

.porfolio-bot-txt p {
    color: #919191;
}

.porfolio-bot-txt p a {
    opacity: 1;
    color: var(--primary);
    text-align: center;
}



/* ============ LIGHTBOX ============ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(20, 20, 20, 0.97);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.lightbox.open {
    display: flex;
}
.lightbox-inner {
    max-width: 1100px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lightbox-photo {
    width: 100%;
    max-height: 64vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #111;
}
.lightbox-photo img {
    width: 100%;
    height: 100%;
    max-height: 64vh;
    object-fit: contain;
}
.lightbox-caption {
    margin-top: 22px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}
.lightbox-caption .lc-meta {
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 6px;
}
.lightbox-caption h3 {
    color: #fff;
    font-size: 19px;
    font-weight: 500;
    margin-bottom: 4px;
}
.lightbox-caption .lc-loc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13.5px;
}
.lightbox-caption .lc-count {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    white-space: nowrap;
}

.lightbox-close {
    position: absolute;
    top: 28px;
    right: 32px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--primary);
    background: transparent;
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease;
}
.lightbox-close:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.lightbox-nav {
    position: absolute;
    top: 44%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: 1px solid var(--primary);
    background: var(--primary);
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease;
    cursor: pointer;
}
.lightbox-nav:hover {
    background: var(--secondary);
    color: var(--primary);
}
.lightbox-prev {
    left: 28px;
}
.lightbox-next {
    right: 28px;
}

.lightbox-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 24px;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
}
.lb-thumb {
    flex: 0 0 auto;
    width: 64px;
    height: 48px;
    overflow: hidden;
    opacity: 0.4;
    cursor: pointer;
    border: 1px solid transparent;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}
.lb-thumb.active {
    opacity: 1;
    border-color: var(--primary);
}
.lb-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 720px) {
    .lightbox {
        padding: 20px;
    }
    .lightbox-nav {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
    .lightbox-prev {
        left: 8px;
    }
    .lightbox-next {
        right: 8px;
    }
    .lightbox-close {
        top: 16px;
        right: 16px;
        width: 38px;
        height: 38px;
    }
    .lightbox-caption {
        flex-direction: column;
        gap: 10px;
    }
    .lightbox-thumbs {
        display: none;
    }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
    .wrap {
        padding-left: 32px;
        padding-right: 32px;
    }
    .masonry {
        column-count: 2;
    }
}
@media (max-width: 640px) {
    .wrap {
        padding-left: 20px;
        padding-right: 20px;
    }

    .masonry {
        column-count: 1;
    }
    .masonry-wrap {
        padding-bottom: 64px;
    }

}



@media only screen and (max-width: 1024px) { 
    #inner-page-wrapper {
        padding-top: 80px;
    }

    .featured-slider-content-main {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .featured-dots {
        margin: 30px 0 0;
    }

    .featured {
        height: auto;
        min-height: 400px;
    }

    .ip-portfolio-title, 
    .ip-portfolio-desc {
        width: 100%;
    }

    .ip-portfolio-desc .global-txt {
        max-width: 100%;
    }
}