/* ==========================================================================
   Arch Portfolio & Lightbox Styles (Pure Light Mode Architectural Theme)
   ========================================================================== */

/* Base Wrapper & Container Reset */
.arch-portfolio-wrapper {
    width: 100%;
    position: relative;
    box-sizing: border-box;
    font-family: inherit;
    color: #0f172a;
    padding-bottom: 0;
    margin-bottom: 0;
    clear: both;
    transition: margin-bottom 0.3s ease, padding-bottom 0.3s ease;
}

/* Dynamic Safe Bottom Spacing ONLY when grid is expanded/open */
.arch-portfolio-wrapper.is-expanded {
    padding-bottom: 35px !important;
    margin-bottom: 35px !important;
}



.arch-portfolio-wrapper *, 
.arch-lightbox-overlay * {
    box-sizing: border-box;
}

/* Category Filter Tabs Bar (Matching Exact Image Style - Pure Light Cream Box) */
.arch-portfolio-tabs-container {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    margin-bottom: 0 !important;
    background: transparent;
    padding: 0;
    border: none;
    transition: margin-bottom 0.3s ease;
}

.arch-portfolio-wrapper.is-expanded .arch-portfolio-tabs-container {
    margin-bottom: 35px !important;
}


.arch-portfolio-tabs {
    display: inline-flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    background-color: #f4f1ea !important;
    background: #f4f1ea !important;
    border: 1px solid #e8e3d9 !important;
    border-radius: 6px !important;
    padding: 10px 24px !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03) !important;
    margin: 0 !important;
}


.arch-portfolio-tabs::-webkit-scrollbar {
    height: 3px !important;
}
.arch-portfolio-tabs::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 3px !important;
}

/* Strict Tab Button Reset - Overriding Theme Global Button Backgrounds */
.arch-portfolio-tabs .arch-tab-btn,
button.arch-tab-btn,
.elementor-widget-arch_portfolio_grid button.arch-tab-btn {
    position: relative !important;
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.8px !important;
    color: #1e3a8a !important;
    padding: 8px 14px !important;
    margin: 0 !important;
    border-radius: 0px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1.4 !important;
    height: auto !important;
    min-height: 0 !important;
}

/* Bullet Dot Separator between tabs (e.g. MİMARLIK • TASARIM • UYGULAMA) */
.arch-portfolio-tabs .arch-tab-btn:not(:first-child)::before {
    content: '•' !important;
    display: inline-block !important;
    margin-right: 14px !important;
    margin-left: 2px !important;
    color: #1e3a8a !important;
    font-weight: bold !important;
    opacity: 0.75 !important;
    background: transparent !important;
}

.arch-portfolio-tabs .arch-tab-btn:hover {
    color: #0284c7 !important;
    background: transparent !important;
    opacity: 1 !important;
}

.arch-portfolio-tabs .arch-tab-btn.active {
    color: #0284c7 !important;
    background: transparent !important;
    font-weight: 800 !important;
}

.arch-portfolio-tabs .arch-tab-btn.active::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 14px !important;
    right: 14px !important;
    height: 2px !important;
    background-color: #0284c7 !important;
    border-radius: 0px !important;
}


/* Portfolio Grid System */
.arch-portfolio-grid {
    display: grid;
    width: 100%;
    gap: 30px;
    margin-bottom: 0;
    padding-bottom: 0;
    transition: all 0.3s ease;
}

.arch-portfolio-wrapper.is-expanded .arch-portfolio-grid {
    margin-bottom: 30px !important;
    padding-bottom: 10px !important;
}



.arch-portfolio-grid.col-dt-2 { grid-template-columns: repeat(2, 1fr); }
.arch-portfolio-grid.col-dt-3 { grid-template-columns: repeat(3, 1fr); }
.arch-portfolio-grid.col-dt-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .arch-portfolio-grid.col-tb-1 { grid-template-columns: 1fr; }
    .arch-portfolio-grid.col-tb-2 { grid-template-columns: repeat(2, 1fr); }
    .arch-portfolio-grid.col-tb-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .arch-portfolio-grid.col-mb-1 { grid-template-columns: 1fr; }
    .arch-portfolio-grid.col-mb-2 { grid-template-columns: repeat(2, 1fr); }

    .arch-portfolio-tabs-container {
        width: 100% !important;
        display: flex !important;
        justify-content: flex-start !important;
        margin-bottom: 0 !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 4px !important;
    }

    .arch-portfolio-wrapper.is-expanded .arch-portfolio-tabs-container {
        margin-bottom: 25px !important;
    }


    .arch-portfolio-tabs {
        display: inline-flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        background-color: #f4f1ea !important;
        background: #f4f1ea !important;
        border: 1px solid #e8e3d9 !important;
        border-radius: 4px !important;
        padding: 7px 12px !important;
        max-width: none !important;
        white-space: nowrap !important;
        margin: 0 !important;
    }

    .arch-portfolio-tabs .arch-tab-btn,
    button.arch-tab-btn,
    .elementor-widget-arch_portfolio_grid button.arch-tab-btn {
        font-size: 11px !important;
        font-weight: 700 !important;
        letter-spacing: 0.8px !important;
        padding: 3px 5px !important;
        white-space: nowrap !important;
        line-height: 1.3 !important;
    }

    .arch-portfolio-tabs .arch-tab-btn:not(:first-child)::before {
        content: '•' !important;
        display: inline-block !important;
        margin-right: 7px !important;
        margin-left: 2px !important;
        opacity: 0.75 !important;
    }
}

@media (max-width: 480px) {
    .arch-portfolio-tabs {
        padding: 6px 10px !important;
    }

    .arch-portfolio-tabs .arch-tab-btn,
    button.arch-tab-btn,
    .elementor-widget-arch_portfolio_grid button.arch-tab-btn {
        font-size: 10.5px !important;
        letter-spacing: 0.5px !important;
        padding: 2px 4px !important;
    }

    .arch-portfolio-tabs .arch-tab-btn:not(:first-child)::before {
        margin-right: 5px !important;
        margin-left: 1px !important;
    }
}


}

/* Collapsed Grid Hint Message */
.arch-portfolio-hint {
    text-align: center;
    padding: 24px 20px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 4px;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.arch-portfolio-hint i {
    margin-right: 8px;
    color: #0284c7;
    font-size: 16px;
}


/* Project Card Item (Pure Light Mode) */
.arch-portfolio-item {
    position: relative;
    border-radius: 0px; /* Keskin mimari kenarlar */
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, opacity 0.35s ease;
}

.arch-portfolio-item.arch-filtered-out {
    display: none !important;
}

.arch-portfolio-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
    border-color: #cbd5e1;
}

.arch-item-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Card Image Area */
.arch-item-image {
    position: relative;
    width: 100%;
    padding-top: 68%; /* ~16:11 Aspect ratio */
    overflow: hidden;
    background: #f8fafc;
}

.arch-item-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.arch-portfolio-item:hover .arch-item-image img {
    transform: scale(1.06);
}

/* Hover Zoom Icon Badge */
.arch-item-hover-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 0px;
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.arch-portfolio-item:hover .arch-item-hover-badge {
    opacity: 1;
    transform: scale(1);
}

/* Card Body Content Area */
.arch-item-content {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #ffffff;
}

.arch-item-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #475569;
    background: #f1f5f9;
    padding: 3px 10px;
    border-radius: 0px;
    margin-bottom: 10px;
    width: fit-content;
}

.arch-item-title {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.35;
    color: #0f172a;
    margin: 0 0 16px 0;
    transition: color 0.25s ease;
}

.arch-portfolio-item:hover .arch-item-title {
    color: #0284c7;
}

.arch-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

.arch-arrow-icon {
    transition: transform 0.25s ease;
}

.arch-portfolio-item:hover .arch-arrow-icon {
    transform: translateX(4px);
    color: #0284c7;
}

.arch-no-projects {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    color: #64748b;
    font-size: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0px;
}


/* ==========================================================================
   LIGHTBOX POP-UP MODAL STYLES (Sharp Architectural Corners - Keskin Kenarlar)
   ========================================================================== */

.arch-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.arch-lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.arch-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.arch-lightbox-container {
    position: relative;
    width: 100%;
    max-width: 1120px;
    max-height: 88vh;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0px; /* KESKİN MİMARİ KENARLAR */
    box-shadow: 0 25px 60px -10px rgba(15, 23, 42, 0.25);
    overflow: hidden;
    z-index: 2;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.arch-lightbox-overlay.active .arch-lightbox-container {
    transform: scale(1);
}

/* Lightbox Close Button */
.arch-lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border-radius: 0px; /* Keskin kenar */
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 15;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.arch-lightbox-close:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    transform: rotate(90deg);
}

/* Lightbox Split Layout */
.arch-lightbox-content {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    height: 100%;
    max-height: 88vh;
    overflow: hidden;
}

/* Gallery Section (Left Side) */
.arch-lightbox-gallery {
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    position: relative;
    overflow: hidden;
    border-right: 1px solid #e2e8f0;
}

.arch-slider-stage {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    max-height: 560px;
    overflow: hidden;
}

/* Photo Counter Badge Overlay */
.arch-slider-counter {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e2e8f0;
    color: #0f172a;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 0px; /* Keskin kenar */
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    z-index: 6;
    letter-spacing: 0.5px;
}

.arch-slider-main-img-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arch-slider-main-img-wrap img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 0px; /* Keskin görsel kenarları */
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Gallery Navigation Chevrons */
.arch-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 0px; /* Keskin navigasyon butonları */
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.25s ease;
}

.arch-slider-nav:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.arch-prev-btn { left: 12px; }
.arch-next-btn { right: 12px; }

/* Thumbnails Strip */
.arch-slider-thumbnails {
    display: flex;
    gap: 10px;
    padding-top: 16px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.arch-slider-thumbnails::-webkit-scrollbar {
    height: 4px;
}
.arch-slider-thumbnails::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 0px;
}

.arch-thumb-item {
    position: relative;
    width: 72px;
    height: 54px;
    flex-shrink: 0;
    border-radius: 0px; /* Keskin thumbnail kenarları */
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    transition: all 0.25s ease;
}

.arch-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.arch-thumb-item:hover {
    opacity: 0.9;
    border-color: #cbd5e1;
}

.arch-thumb-item.active {
    opacity: 1;
    border-color: #0f172a;
    transform: scale(1.04);
}

/* Info & Details Section (Right Side - Pure Light Mode) */
.arch-lightbox-info {
    padding: 36px 32px;
    overflow-y: auto;
    color: #334155;
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

.arch-lightbox-info::-webkit-scrollbar {
    width: 5px;
}
.arch-lightbox-info::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 0px;
}

.arch-lightbox-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #0f172a;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 4px 14px;
    border-radius: 0px; /* Keskin etiket kenarları */
    margin-bottom: 14px;
    width: fit-content;
}

.arch-lightbox-title {
    font-size: 25px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

/* Meta Info Grid */
.arch-lightbox-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0px; /* Keskin kart kenarları */
    margin-bottom: 24px;
}

.arch-meta-box {
    display: flex;
    flex-direction: column;
}

.arch-meta-box-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    margin-bottom: 4px;
    font-weight: 600;
}

.arch-meta-box-val {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

/* Description Text */
.arch-lightbox-description {
    font-size: 14px;
    line-height: 1.7;
    color: #475569;
}

.arch-lightbox-description p {
    margin-bottom: 14px;
}

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

/* Mobile Responsive Layout */
@media (max-width: 900px) {
    .arch-lightbox-content {
        grid-template-columns: 1fr;
        max-height: 85vh;
        overflow-y: auto;
    }

    .arch-lightbox-gallery {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding: 18px;
    }

    .arch-slider-stage {
        min-height: 240px;
        max-height: 380px;
    }

    .arch-slider-main-img-wrap img {
        max-height: 340px;
    }

    .arch-lightbox-info {
        padding: 24px 20px;
    }

    .arch-lightbox-title {
        font-size: 22px;
    }
}
