/* ----------------------------------------------------
   Core Design System & Theme Customizations
   ---------------------------------------------------- */

:root {
    /* Global System Variables */
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.25s ease;
    --transition-bounce: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ----------------------------------------------------
   1. Theme Layout Option 1: Aether Grid (Dark Masonry)
   ---------------------------------------------------- */
body.raynath-layout-aether_grid {
    background-color: #080808;
    color: #e5e5e5;
    font-family: 'Outfit', sans-serif;
    transition: background-color 0.8s ease, color 0.8s ease;
}

body.raynath-layout-aether_grid .site-header {
    background: rgba(8, 8, 8, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.raynath-layout-aether_grid .site-title a {
    color: #ffffff;
    font-weight: 800;
    letter-spacing: -0.05em;
    font-family: 'Outfit', sans-serif;
}

body.raynath-layout-aether_grid .site-description {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
}

body.raynath-layout-aether_grid .main-navigation a {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

body.raynath-layout-aether_grid .main-navigation a:hover,
body.raynath-layout-aether_grid .main-navigation a.active {
    color: #ffffff;
}

/* Masonry Grid Layout */
body.raynath-layout-aether_grid #portfolioItems {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 32px;
    padding: 120px 4% 80px 4%;
    max-width: 1600px;
    margin: 0 auto;
}

/* Staggered Grid Positions for Asymmetry */
body.raynath-layout-aether_grid .portfolio-item {
    grid-column: span 6;
}

@media (min-width: 768px) {
    body.raynath-layout-aether_grid .portfolio-item:nth-child(3n+1) { grid-column: span 7; }
    body.raynath-layout-aether_grid .portfolio-item:nth-child(3n+2) { grid-column: span 5; margin-top: 60px; }
    body.raynath-layout-aether_grid .portfolio-item:nth-child(3n+3) { grid-column: span 4; margin-top: -40px; }
    body.raynath-layout-aether_grid .portfolio-item:nth-child(4n+4) { grid-column: span 8; }
}

body.raynath-layout-aether_grid .portfolio-item .item-inner {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    background-color: #121212;
    aspect-ratio: 4/5;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

body.raynath-layout-aether_grid .portfolio-item:nth-child(2n) .item-inner {
    aspect-ratio: 3/2;
}

body.raynath-layout-aether_grid .portfolio-item .item-media {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body.raynath-layout-aether_grid .portfolio-item .portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
    filter: grayscale(20%) brightness(90%);
}

body.raynath-layout-aether_grid .portfolio-item:hover .portfolio-image {
    transform: scale(1.05);
    filter: grayscale(0%) brightness(100%);
}

/* Caption details overlay */
body.raynath-layout-aether_grid .portfolio-item .item-details {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    opacity: 0;
    transform: translateY(15px);
    transition: var(--transition-smooth);
}

body.raynath-layout-aether_grid .portfolio-item:hover .item-details {
    opacity: 1;
    transform: translateY(0);
}

body.raynath-layout-aether_grid .item-number {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    display: block;
    margin-bottom: 5px;
}

body.raynath-layout-aether_grid .item-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

body.raynath-layout-aether_grid .item-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    justify-content: space-between;
}

/* Hide Split panel under Option 1 */
body.raynath-layout-aether_grid .split-view-panel {
    display: none;
}


/* ----------------------------------------------------
   2. Theme Layout Option 2: Horizon Flow (Horizontal Editorial)
   ---------------------------------------------------- */
body.raynath-layout-horizon_flow {
    background-color: #f7f4ef;
    color: #2b2b2a;
    font-family: 'Playfair Display', serif;
    transition: background-color 0.8s ease, color 0.8s ease;
    overflow-y: hidden; /* Lock scroll to horizontal scrolling */
}

body.raynath-layout-horizon_flow .site-header {
    background: rgba(247, 244, 239, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(43, 43, 42, 0.08);
}

body.raynath-layout-horizon_flow .site-title a {
    color: #2b2b2a;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    letter-spacing: -0.01em;
}

body.raynath-layout-horizon_flow .site-description {
    color: #7a756e;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

body.raynath-layout-horizon_flow .main-navigation a {
    color: rgba(43, 43, 42, 0.6);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.15em;
    font-weight: 600;
}

body.raynath-layout-horizon_flow .main-navigation a:hover,
body.raynath-layout-horizon_flow .main-navigation a.active {
    color: #2b2b2a;
}

/* Horizontal scroll styling */
body.raynath-layout-horizon_flow .portfolio-container {
    height: 100vh;
    display: flex;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

body.raynath-layout-horizon_flow .portfolio-wrapper {
    height: 100%;
    display: flex;
    align-items: center;
}

body.raynath-layout-horizon_flow #portfolioItems {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 80px;
    padding: 0 10vw 0 10vw;
    height: 100%;
}

body.raynath-layout-horizon_flow .portfolio-item {
    flex: 0 0 auto;
    width: 60vh;
    margin-top: 40px;
}

body.raynath-layout-horizon_flow .portfolio-item:nth-child(odd) {
    margin-top: -40px;
}

body.raynath-layout-horizon_flow .portfolio-item .item-inner {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

body.raynath-layout-horizon_flow .portfolio-item .item-media {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    background-color: #eae3d8;
    border-radius: 4px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
}

body.raynath-layout-horizon_flow .portfolio-item .portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

body.raynath-layout-horizon_flow .portfolio-item:hover .item-media {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

body.raynath-layout-horizon_flow .portfolio-item:hover .portfolio-image {
    transform: scale(1.03);
}

/* Narrative metadata style below image */
body.raynath-layout-horizon_flow .portfolio-item .item-details {
    margin-top: 25px;
    text-align: left;
    transition: var(--transition-smooth);
}

body.raynath-layout-horizon_flow .item-number {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-style: italic;
    color: #c0b9af;
    display: block;
    margin-bottom: 2px;
}

body.raynath-layout-horizon_flow .item-title {
    font-size: 24px;
    font-weight: 400;
    color: #2b2b2a;
    line-height: 1.2;
    margin-bottom: 6px;
}

body.raynath-layout-horizon_flow .item-meta {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #8c857c;
    display: flex;
    justify-content: flex-start;
    gap: 15px;
}

body.raynath-layout-horizon_flow .split-view-panel {
    display: none;
}


/* ----------------------------------------------------
   3. Theme Layout Option 3: Zenith Split (Monochrome Split Screen)
   ---------------------------------------------------- */
body.raynath-layout-zenith_split {
    background-color: #ffffff;
    color: #111111;
    font-family: 'Space Grotesk', sans-serif;
    transition: background-color 0.8s ease, color 0.8s ease;
    overflow: hidden; /* Complete viewport lock */
}

body.raynath-layout-zenith_split .site-header {
    background: transparent;
    border-bottom: 1px solid #e5e5e5;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

body.raynath-layout-zenith_split .site-title a {
    color: #111111;
    font-weight: 700;
    text-transform: uppercase;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.05em;
}

body.raynath-layout-zenith_split .site-description {
    color: #888888;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.15em;
}

body.raynath-layout-zenith_split .main-navigation a {
    color: #888888;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

body.raynath-layout-zenith_split .main-navigation a:hover,
body.raynath-layout-zenith_split .main-navigation a.active {
    color: #111111;
}

/* Hide standard items grid in Zenith Split */
body.raynath-layout-zenith_split #portfolioItems {
    display: none;
}

/* Split Panel Styling */
body.raynath-layout-zenith_split .split-view-panel {
    display: flex;
    height: 100vh;
    width: 100vw;
    padding-top: 80px; /* Header height offset */
}

body.raynath-layout-zenith_split .split-list {
    width: 45%;
    height: 100%;
    overflow-y: auto;
    padding: 40px 4% 120px 4%;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e5e5e5;
    scroll-behavior: smooth;
}

/* Split Left Navigation Items */
body.raynath-layout-zenith_split .split-nav-item {
    display: flex;
    align-items: center;
    padding: 25px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #666666;
    transition: var(--transition-fast);
    cursor: pointer;
}

body.raynath-layout-zenith_split .split-nav-item:hover,
body.raynath-layout-zenith_split .split-nav-item.active {
    color: #000000;
    border-bottom-color: #111111;
    transform: translateX(10px);
}

body.raynath-layout-zenith_split .split-nav-num {
    font-size: 12px;
    font-weight: 500;
    width: 50px;
    color: #888888;
}

body.raynath-layout-zenith_split .split-nav-item:hover .split-nav-num,
body.raynath-layout-zenith_split .split-nav-item.active .split-nav-num {
    color: #0070f3; /* Electric Blue Accent */
}

body.raynath-layout-zenith_split .split-nav-title {
    font-size: 22px;
    font-weight: 500;
    flex-grow: 1;
    letter-spacing: -0.02em;
}

body.raynath-layout-zenith_split .split-nav-meta {
    font-size: 12px;
    color: #999;
}

/* Split Right Display Panel */
body.raynath-layout-zenith_split .split-display {
    width: 55%;
    height: 100%;
    background-color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

body.raynath-layout-zenith_split .split-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

body.raynath-layout-zenith_split .split-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(10%) contrast(105%);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
}

body.raynath-layout-zenith_split .split-main-image.loaded {
    opacity: 1;
}

body.raynath-layout-zenith_split .split-image-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 2px solid rgba(255,255,255,0.1);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: splitSpinner 0.8s linear infinite;
    z-index: 5;
    display: none;
}

body.raynath-layout-zenith_split .split-image-loader.active {
    display: block;
}

@keyframes splitSpinner {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

body.raynath-layout-zenith_split .split-display-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%);
    pointer-events: none;
}

body.raynath-layout-zenith_split .split-display-details {
    position: absolute;
    bottom: 40px;
    left: 40px;
    color: #fff;
    z-index: 10;
    pointer-events: none;
}

body.raynath-layout-zenith_split .split-num {
    font-size: 14px;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.5);
    display: block;
    margin-bottom: 5px;
}

body.raynath-layout-zenith_split .split-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 5px;
}

body.raynath-layout-zenith_split .split-category {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #0070f3;
}


/* ----------------------------------------------------
   4. Header & Navigation Global Layout styles
   ---------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    display: flex;
    align-items: center;
    z-index: 99;
    padding: 0 4%;
    transition: var(--transition-smooth);
}

.header-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    flex-direction: column;
}

.site-title {
    font-size: 20px;
}

.site-title a {
    text-decoration: none;
}

.site-description {
    font-size: 10px;
    margin-top: 2px;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-navigation a {
    text-decoration: none;
    transition: var(--transition-fast);
}

.portfolio-container {
    margin-top: 0;
}

.site-footer {
    padding: 40px 4%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 12px;
    background: #000;
}

body.raynath-layout-horizon_flow .site-footer,
body.raynath-layout-zenith_split .site-footer {
    display: none; /* Hide footer in scroll locked views */
}

.footer-container {
    display: flex;
    justify-content: space-between;
    color: rgba(255,255,255,0.4);
}

.footer-container a {
    color: inherit;
    text-decoration: none;
}


/* ----------------------------------------------------
   5. Interactive Floating Design Switcher (Widget)
   ---------------------------------------------------- */
.design-switcher-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.switcher-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: var(--transition-bounce);
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

body.raynath-layout-horizon_flow .switcher-toggle-btn {
    background: rgba(43, 43, 42, 0.08);
    color: #2b2b2a;
    border-color: rgba(43, 43, 42, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

body.raynath-layout-zenith_split .switcher-toggle-btn {
    background: #000000;
    color: #ffffff;
    border-color: #111111;
    border-radius: 4px;
}

.switcher-toggle-btn:hover {
    transform: scale(1.05);
}

.switcher-toggle-btn svg {
    transition: transform 1s ease;
}

.switcher-toggle-btn:hover svg {
    transform: rotate(90deg);
}

.switcher-options {
    position: absolute;
    bottom: calc(100% + 12px);
    background: rgba(18, 18, 18, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 8px;
    width: 240px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.9) translateY(10px);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-bounce);
}

body.raynath-layout-horizon_flow .switcher-options {
    background: rgba(247, 244, 239, 0.95);
    border-color: rgba(43, 43, 42, 0.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

body.raynath-layout-zenith_split .switcher-options {
    background: #ffffff;
    border: 1px solid #111111;
    border-radius: 0;
    box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.15);
}

.design-switcher-widget.active .switcher-options {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.switcher-opt-btn {
    background: transparent;
    border: none;
    padding: 10px 14px;
    width: 100%;
    text-align: left;
    color: #d1d1d1;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-fast);
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

body.raynath-layout-horizon_flow .switcher-opt-btn {
    color: #4a453f;
}

body.raynath-layout-zenith_split .switcher-opt-btn {
    color: #333333;
    border-radius: 0;
}

.switcher-opt-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

body.raynath-layout-horizon_flow .switcher-opt-btn:hover {
    background: rgba(43, 43, 42, 0.05);
    color: #2b2b2a;
}

body.raynath-layout-zenith_split .switcher-opt-btn:hover {
    background: #f0f0f0;
    color: #000000;
}

.switcher-opt-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

body.raynath-layout-horizon_flow .switcher-opt-btn.active {
    background: #2b2b2a;
    color: #ffffff;
}

body.raynath-layout-zenith_split .switcher-opt-btn.active {
    background: #111111;
    color: #ffffff;
}

.switcher-opt-btn .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.grid-dot { background-color: #ff3366; }
.flow-dot { background-color: #ff9900; }
.split-dot { background-color: #0070f3; }


/* ----------------------------------------------------
   6. Image Lightbox Overlay Style
   ---------------------------------------------------- */
.portfolio-lightbox {
    position: fixed;
    inset: 0;
    background-color: rgba(6, 6, 6, 0.95);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.portfolio-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 44px;
    cursor: pointer;
    font-weight: 200;
    transition: var(--transition-fast);
    line-height: 1;
}

.lightbox-close:hover {
    transform: scale(1.1) rotate(90deg);
}

.lightbox-content {
    display: flex;
    flex-direction: row;
    max-width: 90%;
    max-height: 85%;
    gap: 40px;
    align-items: center;
    position: relative;
}

@media (max-width: 900px) {
    .lightbox-content {
        flex-direction: column;
        gap: 20px;
    }
}

.lightbox-image {
    max-width: 70vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    transform: scale(0.95);
    transition: var(--transition-smooth);
    opacity: 0;
}

.portfolio-lightbox.active .lightbox-image {
    transform: scale(1);
    opacity: 1;
}

.lightbox-caption {
    width: 250px;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.lightbox-num {
    font-size: 13px;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 8px;
}

.lightbox-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
}

.lightbox-meta {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 12px;
}

.lightbox-desc {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 300;
}

body.raynath-layout-zenith_split .lightbox-desc {
    font-family: 'Space Grotesk', sans-serif;
}

.lightbox-desc p {
    margin-bottom: 12px;
}

.lightbox-desc p:last-child {
    margin-bottom: 0;
}

/* Lightbox Navigation Buttons */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-bounce);
    backdrop-filter: blur(5px);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-50%) scale(1.05);
}

.lightbox-prev { left: 40px; }
.lightbox-next { right: 40px; }

@media (max-width: 1000px) {
    .lightbox-nav { display: none; }
}


/* ----------------------------------------------------
   7. Typography overrides for mobile responsive
   ---------------------------------------------------- */
@media (max-width: 768px) {
    body.raynath-layout-aether_grid #portfolioItems {
        grid-template-columns: 1fr;
        padding-top: 100px;
        gap: 20px;
    }
    body.raynath-layout-aether_grid .portfolio-item {
        grid-column: span 1 !important;
        margin-top: 0 !important;
    }
    
    body.raynath-layout-horizon_flow {
        overflow-y: auto; /* Fallback to vertical on mobile flow */
    }
    body.raynath-layout-horizon_flow .portfolio-container {
        height: auto;
        overflow-y: visible;
        overflow-x: hidden;
    }
    body.raynath-layout-horizon_flow #portfolioItems {
        flex-direction: column;
        padding-top: 100px;
        gap: 40px;
        width: 100%;
        height: auto;
    }
    body.raynath-layout-horizon_flow .portfolio-item {
        width: 90vw !important;
        margin-top: 0 !important;
    }
    
    body.raynath-layout-zenith_split .split-view-panel {
        flex-direction: column;
        overflow-y: auto;
    }
    body.raynath-layout-zenith_split .split-list {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #e5e5e5;
        padding-bottom: 20px;
    }
    body.raynath-layout-zenith_split .split-display {
        width: 100%;
        height: 60vh;
    }
    body.raynath-layout-zenith_split .split-display-details {
        bottom: 20px;
        left: 20px;
    }
    body.raynath-layout-zenith_split .split-title {
        font-size: 24px;
    }
}

/* ----------------------------------------------------
   8. WordPress Admin Bar Offsets (Fixed Header Adjustments)
   ---------------------------------------------------- */
.admin-bar .site-header {
    top: 32px !important;
}

body.raynath-layout-zenith_split.admin-bar .split-view-panel {
    padding-top: 112px; /* 80px header height + 32px admin bar */
    height: calc(100vh - 32px);
}

.admin-bar .lightbox-close {
    top: 62px !important; /* 30px close offset + 32px admin bar */
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px !important; /* WordPress Admin Bar height on mobile */
    }
    
    body.raynath-layout-zenith_split.admin-bar .split-view-panel {
        padding-top: 126px; /* 80px header height + 46px admin bar */
        height: calc(100vh - 46px);
    }

    .admin-bar .lightbox-close {
        top: 76px !important; /* 30px close offset + 46px admin bar */
    }
}

/* ----------------------------------------------------
   9. PicUpload Front-End Studio Dashboard Styling
   ---------------------------------------------------- */
body.raynath-picupload-page {
    background-color: #050508 !important;
    color: #f3f3f6 !important;
    overflow-y: auto !important;
}

body.raynath-picupload-page #primary {
    max-width: 100%;
}

.picupload-container-wrapper {
    background-color: #050508;
    color: #e5e5e5;
    font-family: 'Space Grotesk', sans-serif;
    min-height: 100vh;
    padding: 120px 4% 80px 4%;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
}

.picupload-glass-card {
    background: rgba(13, 13, 21, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 680px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-sizing: border-box;
}

.picupload-glass-card.list-card {
    max-width: 800px;
    margin-top: -10px;
}

.picupload-header {
    margin-bottom: 30px;
}

.picupload-title {
    font-size: 26px;
    font-weight: 500;
    letter-spacing: -0.03em;
    margin: 0;
    color: #ffffff;
}

.picupload-title.font-secondary {
    font-size: 20px;
    letter-spacing: -0.02em;
}

/* Form layout */
.picupload-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.5);
}

.form-control {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    padding: 14px 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    width: 100%;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.form-control:focus {
    outline: none;
    border-color: #0070f3;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 112, 243, 0.2);
}

.textarea-control {
    resize: vertical;
    min-height: 110px;
}

/* Upload Dropzone styling */
.picupload-dropzone {
    border: 1.5px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 45px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.01);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.picupload-dropzone:hover,
.picupload-dropzone.dragover {
    border-color: #0070f3;
    background: rgba(0, 112, 243, 0.02);
    box-shadow: inset 0 0 20px rgba(0, 112, 243, 0.08);
}

.picupload-file-input {
    display: none;
}

.dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.upload-icon-wrapper {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
}

.picupload-dropzone:hover .upload-icon-wrapper {
    background: rgba(0, 112, 243, 0.08);
    color: #0070f3;
    transform: translateY(-2px);
}

.dropzone-primary-text {
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    margin: 0;
}

.dropzone-secondary-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    margin: 0;
}

/* Image selection preview */
.preview-container {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.upload-preview-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.preview-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.preview-filename {
    color: #ffffff;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 80%;
    font-family: monospace;
}

.preview-remove-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    font-size: 18px;
    height: 28px;
    line-height: 24px;
    text-align: center;
    width: 28px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-remove-btn:hover {
    background: rgba(255, 60, 60, 0.85);
    transform: scale(1.1);
}

/* Submit Button & Spinner */
.form-actions {
    margin-top: 10px;
}

.submit-btn {
    background: linear-gradient(135deg, #0052d4, #4364f7, #6fb1fc);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 16px;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(67, 100, 247, 0.3);
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 100, 247, 0.5);
}

.submit-btn:active:not(:disabled) {
    transform: translateY(1px);
}

.submit-btn:disabled {
    background: #181822;
    color: rgba(255, 255, 255, 0.2);
    cursor: not-allowed;
    box-shadow: none;
}

.btn-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: btnSpin 0.8s linear infinite;
    display: inline-block;
}

@keyframes btnSpin {
    to { transform: rotate(360deg); }
}

/* Alert Boxes */
.picupload-alert {
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.picupload-alert p {
    margin: 0;
    font-weight: 400;
}

.alert-icon {
    font-size: 16px;
    font-weight: 700;
}

.alert-success {
    background: rgba(7, 148, 85, 0.12);
    border: 1px solid rgba(7, 148, 85, 0.25);
    color: #46d391;
}

.alert-info {
    background: rgba(0, 112, 243, 0.12);
    border: 1px solid rgba(0, 112, 243, 0.25);
    color: #6fb1fc;
}

.alert-error {
    background: rgba(224, 60, 60, 0.12);
    border: 1px solid rgba(224, 60, 60, 0.25);
    color: #ff6b6b;
}

/* List card & Management Grid */
.list-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.pics-count-badge {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.04);
    padding: 5px 12px;
    border-radius: 12px;
}

.user-pics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.user-pic-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-pic-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.03);
}

.card-media {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #000;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.user-pic-card:hover .card-media img {
    transform: scale(1.04);
}

.card-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    opacity: 0;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
}

.user-pic-card:hover .card-delete-btn {
    opacity: 1;
}

.card-delete-btn:hover {
    background: rgba(224, 60, 60, 0.9);
    color: #ffffff;
    border-color: transparent;
    transform: scale(1.08);
}

.card-info {
    padding: 12px;
}

.card-title {
    font-size: 13px;
    font-weight: 500;
    margin: 0 0 4px 0;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-date {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.35);
}

.no-pics-placeholder {
    padding: 60px 20px;
    text-align: center;
    border: 1.5px dashed rgba(255, 255, 255, 0.04);
    border-radius: 12px;
}

.placeholder-text {
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
    margin: 0;
}

/* Lightbox Location Badge styles */
.lightbox-location-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0070f3;
    margin-bottom: 20px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
}

.lightbox-location-badge strong {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    margin-right: 4px;
}

/* Navigation Menu highlight for PicUpload */
.main-navigation .picupload-link a {
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 14px !important;
    border-radius: 20px;
    transition: all 0.3s ease;
    margin-left: 5px;
}

.main-navigation .picupload-link a:hover {
    border-color: #0070f3 !important;
    background: rgba(0, 112, 243, 0.06) !important;
    box-shadow: 0 0 10px rgba(0, 112, 243, 0.2) !important;
    color: #ffffff !important;
}

body.raynath-layout-zenith_split .main-navigation .picupload-link a {
    border-color: rgba(0, 0, 0, 0.15);
    color: #111111;
}

body.raynath-layout-zenith_split .main-navigation .picupload-link a:hover {
    border-color: #0070f3 !important;
    background: rgba(0, 112, 243, 0.06) !important;
    color: #0070f3 !important;
}

/* ----------------------------------------------------
   10. Mobile Responsive Navigation & Layout Adjustments
   ---------------------------------------------------- */
@media (max-width: 768px) {
    .site-header {
        height: auto;
        padding: 15px 4% !important;
        position: absolute !important;
    }
    
    .header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .site-branding {
        align-items: flex-start;
    }
    
    .main-navigation ul {
        gap: 15px;
        padding-left: 0;
        margin: 0;
        flex-wrap: wrap;
    }
    
    .main-navigation .picupload-link a {
        padding: 4px 10px !important;
        margin-left: 0;
    }
    
    /* Zenith Split mobile offsets */
    body.raynath-layout-zenith_split .split-view-panel {
        padding-top: 140px !important;
        height: 100vh !important;
        box-sizing: border-box;
    }
    
    body.raynath-layout-zenith_split.admin-bar .split-view-panel {
        padding-top: 186px !important;
        height: 100vh !important;
        box-sizing: border-box;
    }

    body.raynath-picupload-page .picupload-container-wrapper {
        padding: 180px 4% 80px 4% !important;
    }
}

@media (max-width: 480px) {
    .site-description {
        display: none !important;
    }
    
    .main-navigation a {
        font-size: 11px !important;
        letter-spacing: 0.05em !important;
    }
}


