/* ==========================================================================
   Portfolio Page Styles — TheWeddingAnanta (portfolio.html)
   ========================================================================== */

.page-hero {
    position: relative;
    padding: 210px 0 115px;
    background: #0d0b09;
    text-align: center;
    border-bottom: 1px solid rgba(241, 236, 227, 0.08);
    overflow: hidden;
}

.page-hero-video-box {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.page-hero-video-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.35) contrast(1.08);
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(13, 11, 9, 0.45) 0%, rgba(13, 11, 9, 0.92) 100%);
    z-index: 2;
}

.page-hero-content {
    position: relative;
    z-index: 3;
}

.page-hero h1 {
    font-size: clamp(56px, 7vw, 104px);
    line-height: 0.95;
    margin: 16px auto 26px;
    color: #f7f3ec;
}

.page-hero .hero-subtext {
    max-width: 720px;
    margin: 0 auto;
    color: #ded6cc;
    font-size: clamp(19px, 1.8vw, 24px);
    line-height: 1.7;
    font-weight: 300;
    letter-spacing: 0.01em;
}

.portfolio-extended {
    padding: 70px 0 100px;
    background: #0d0b09;
}

/* Horizontal Scroll Bar for Filters (Both Desktop and Mobile) */
.portfolio-filter-bar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    margin-bottom: 50px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding: 8px 16px 14px;
    scrollbar-width: thin;
    scrollbar-color: rgba(184, 147, 92, 0.35) transparent;
}

.portfolio-filter-bar::-webkit-scrollbar {
    height: 4px;
}

.portfolio-filter-bar::-webkit-scrollbar-track {
    background: transparent;
}

.portfolio-filter-bar::-webkit-scrollbar-thumb {
    background: rgba(184, 147, 92, 0.35);
    border-radius: 4px;
}

.portfolio-filter-bar::-webkit-scrollbar-thumb:hover {
    background: var(--gold, #b8935c);
}

.filter-btn {
    flex-shrink: 0;
    scroll-snap-align: start;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #a39b90;
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 10px 22px;
    border-radius: 30px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-btn:hover {
    color: #f7f4ee;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(184, 147, 92, 0.4);
    transform: translateY(-1px);
}

.filter-btn.active {
    color: #120f0c;
    background: var(--gold, #b8935c);
    border-color: var(--gold, #b8935c);
    font-weight: 500;
    box-shadow: 0 4px 18px rgba(184, 147, 92, 0.35);
}

/* Seamless Full-Width Pinterest Masonry Feed (No margins, zero borders, touching each other) */
.pinterest-masonry-container {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    position: relative;
    contain: layout paint;
}

.pinterest-masonry-feed {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
}

.pinterest-col {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
}

/* Seamless Pinterest Card (Zero border, zero border-radius, zero margin, touching each other) */
.pin-card {
    margin: 0;
    padding: 0;
    position: relative;
    border-radius: 0;
    overflow: hidden;
    background: #110f0d;
    border: none;
    outline: none;
    box-shadow: none;
    cursor: pointer;
    display: block;
    width: 100%;
    text-decoration: none;
    transition: opacity 0.4s ease;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.pin-media-box {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #110f0d;
    min-height: 260px;
}

.pin-media-box img,
.pin-media-box video {
    width: 100%;
    height: auto;
    min-height: 260px;
    display: block;
    object-fit: cover;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
    filter: brightness(0.92) contrast(1.02) saturate(0.88);
}

.pin-card:hover .pin-media-box img,
.pin-card:hover .pin-media-box video {
    transform: scale(1.06);
    filter: brightness(1.04) contrast(1.05) saturate(1.06);
}

/* Ambient Dark Vignette & Gold Info Overlay on Hover (Matching Reel Card) */
.pin-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 11, 9, 0.1) 0%, rgba(13, 11, 9, 0.35) 45%, rgba(13, 11, 9, 0.94) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 3;
    pointer-events: none;
}

.pin-card:hover .pin-overlay {
    opacity: 1;
}

/* Video Play Badge for Video Pins */
.pin-video-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(13, 11, 9, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(214, 178, 120, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 11px;
    z-index: 4;
}

/* Video Interactive Control Buttons (Sound & Fullscreen Expand) */
.pin-video-ctrls {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.pin-ctrl-btn {
    background: rgba(13, 11, 9, 0.82);
    border: 1px solid rgba(214, 178, 120, 0.4);
    color: #f7f3ec;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
}

.pin-ctrl-btn:hover {
    background: rgba(184, 147, 92, 0.95);
    color: #0d0b09;
    border-color: #fff;
    transform: scale(1.1);
}

.pin-ctrl-btn svg {
    pointer-events: none;
}

.pin-ctrl-btn.active {
    background: rgba(184, 147, 92, 0.92);
    color: #0d0b09;
    border-color: #f5dfba;
}

/* Content Info in Overlay with Smooth Elevation */
.pin-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    transform: translateY(12px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pin-card:hover .pin-info {
    transform: translateY(0);
}

.pin-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 26px;
    font-weight: 300;
    color: #f7f3ec;
    margin: 0;
    line-height: 1.15;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
    transition: color 0.4s ease, text-shadow 0.4s ease;
}

.pin-card:hover .pin-title {
    color: #fff8ef;
    text-shadow: 0 4px 22px rgba(184, 147, 92, 0.55), 0 2px 10px rgba(0, 0, 0, 0.9);
}

.pin-subtitle {
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold, #b8935c);
    margin: 0;
    transition: letter-spacing 0.4s ease, color 0.4s ease;
}

.pin-card:hover .pin-subtitle {
    color: #f7f3ec;
    letter-spacing: 0.22em;
}

/* Custom Dedicated Fullscreen Cinema Video Lightbox */
.video-cinema-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.video-cinema-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.video-cinema-container {
    position: relative;
    width: 92vw;
    max-width: 1200px;
    height: 82vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-cinema-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
    background: #000;
}

/* Floating Cross Close Button on Top Right */
.video-cinema-close {
    position: absolute;
    top: 24px;
    right: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000000;
}

.video-cinema-close:hover {
    background: rgba(184, 147, 92, 0.95);
    color: #0d0b09;
    border-color: #fff;
    transform: rotate(90deg) scale(1.1);
}

/* Hide native download buttons across all browsers */
video::-internal-media-controls-download-button {
    display: none !important;
}

video::-webkit-media-controls-enclosure {
    overflow: hidden;
}

video::-webkit-media-controls-panel {
    width: calc(100% + 30px);
}