/* Portfolio Gallery Filter Styles */
/* Portfolio Filter Row - Filter and Showing Info on same line */
.portfolio-filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 20px;
    margin-top:60px;
    align-items: end;
}

.portfolio-filter-row .filter-wrapper {
    display: flex;
    flex-direction: row;
    gap: 0;
    min-width: 363px;
    flex-shrink: 0;
    visibility: hidden;
}
.single-portfolio .main-content{
    margin-bottom: 100px;
}
/* Custom Dropdown Styling */
.custom-dropdown {
    position: relative;
    width: 100%;
    background: #F9F9F9;
    cursor: pointer;
    user-select: none;
}

.dropdown-header {
    padding: 20px;
    position: relative;
}

.dropdown-title {
    color: #000;
    margin-bottom: 4px;
    font-family: Inter;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
}

.dropdown-selected {
    color: #A2A2A2;
    font-family: Inter;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
}

.dropdown-arrow {
    position: absolute;
    right: 12px;
    top: calc(50% + 10px);
    transform: translateY(-50%);
    color: #666;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.custom-dropdown.open .dropdown-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    width: 100%;
    background: #F9F9F9;
    border-top: 1px solid #EEE;
    z-index: 10;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-item {
    padding: 10px 20px;
    font-size: 18px;
    color: #000;
    background-color: #F9F9F9;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f8f8f8;
    color: #de232b;
}

.portfolio-filter-row .showing-info {
    color: #000;
    white-space: nowrap;
    font-family: Inter;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
}
.portfolio-filter-row .showing-info .total-count{
    font-weight: 400;
    color: #000;
}
.portfolio-filter-row .showing-info .current-count{
    font-weight: 700;
    color: #000;
}

.portfolio-filter-row .showing-info .showing-bold {
    font-weight: 700;
    color: #000;
}

.portfolio-gallery {
    margin-bottom: 40px;
}

/* Portfolio Listing Styles */
.portfolio-listing {
    margin-bottom: 40px;
}

.portfolio-listing .container {
    display: block;
}



.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    aspect-ratio: 1;
}

.portfolio-item:hover {
    transform: translateY(-2px);
}

.portfolio-item a {
    display: block;
    text-decoration: none;
    height: 100%;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-item .no-image {
    width: 100%;
    height: 100%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
}

.filter-link {
    display: block;
    padding: 8px 12px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 4px;
    font-size: 14px;
    position: relative;
}

.filter-link:hover,
.filter-link.active {
    color: #de232b;
    background-color: #f8f8f8;
}


/* Gallery Filter Dropdown Styles */
.portfolio-gallery .portfolio-filter-dropdown {
    margin-bottom: 30px;
}


/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

/* Hide gallery items initially to prevent flicker */
.gallery-grid .gallery-item {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Show gallery items when JS is ready */
.gallery-grid.ready .gallery-item {
    opacity: 1;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    aspect-ratio: 1;
}


.gallery-link {
    display: block;
    text-decoration: none;
    height: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.2);
}

/* Gallery Pagination */
.gallery-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    padding: 20px 0;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-nav,
.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    margin: 0;
    color: #666;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    background: white;
}
.single-portfolio .page-nav{
    padding: inherit;
}
.page-nav:hover,
.page-numbers:hover {
    border-color: #de232b;
    color: #de232b;
}

.page-numbers.active {
    background-color: #de232b;
    color: white;
    border-color: #de232b;
    font-weight: 500;
}

.page-nav.prev,
.page-nav.next {
    font-weight: 500;
    color: #999;
}

.page-nav.prev:hover,
.page-nav.next:hover {
    color: #de232b;
    border-color: #de232b;
}

/* Disabled state for navigation */
.page-nav.disabled {
    color: #ccc;
    cursor: not-allowed;
    border-color: #f0f0f0;
}

.page-nav.disabled:hover {
    color: #ccc;
    border-color: #f0f0f0;
}

/* Contact Button */
.portfolio-contact {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
}

.contact-btn {
    /* Match submit button styling exactly */
    border-radius: 0;
    -webkit-box-shadow: none;
    box-shadow: none;
    text-decoration: none;
    cursor: pointer;
    font-family: DM Mono;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    color: #000;
    line-height: normal;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    border: 1px solid #1a1a1a;
    background: #fff;
    padding: 19px 39px;
    padding-right: 101px;
    background: #fff url(../images/next.svg) no-repeat center right 40px;
    background-size: 16px;
    -webkit-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    -o-appearance: none;
    appearance: none;
    outline: none;
}

.contact-btn:hover {
    color: #de232b;
    border: 1px solid #de232b;
    background-image: url(../images/next-hover.svg);
}

.contact-btn i {
    display: none; /* Hide the icon since we're using background image */
}

/* Responsive Design */
@media (max-width: 768px) {
    .portfolio-filter-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .portfolio-filter-row .filter-wrapper {
        max-width: 100%;
    }
    
    .portfolio-filter-row .showing-info {
        text-align: center;
        font-size: 13px;
        white-space: normal;
    }
    
    .portfolio-gallery {
        flex-direction: column;
        gap: 20px;
    }
    
    .gallery-filter {
        flex: none;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .gallery-pagination {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .filter-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .filter-list li {
        margin-bottom: 0;
    }
    
    .gallery-filter-link {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    /* Portfolio listing responsive */
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .portfolio-pagination {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .filter-dropdown {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .gallery-pagination {
        margin-top: 30px;
        padding: 15px 0;
    }
    
    .pagination-controls {
        gap: 6px;
    }
    
    .page-nav,
    .page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
    
    .showing-info {
        font-size: 12px;
    }
    
    .contact-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    /* Portfolio listing mobile */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* Lightbox2 Custom Styles - Match Design */
.lb-overlay {
    background-color: rgba(0, 0, 0, 0.85) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 9999 !important;
}
.lb-nav {
    width: 100vw!important;
}
.lb-outerContainer {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    position: fixed !important;
    top: 50% !important;
    left: 0;
    transform: translateY(-50%) !important;
    z-index: 10000 !important;
    width: 100vw!important;
}

.lb-container {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100vw!important;
}

.lb-image {
    border: none !important;
    border-radius: 0 !important;
    max-width: 85vw !important;
    max-height: 85vh !important;
    object-fit: contain !important;
    box-shadow: none !important;
    display: block !important;
    margin: auto;
}

/* Hide all data elements */
/* .lb-dataContainer,
.lb-data,
.lb-details,
.lb-caption,
.lb-number {
    display: none !important;
} */

/* Close button - top right X */
.lb-close {
    position: fixed !important;
    top: 30px !important;
    right: 30px !important;
    width: 50px !important;
    height: 50px !important;
    background: transparent !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 30px !important;
    font-weight: 300 !important;
    color: #333 !important;
    text-decoration: none !important;
    z-index: 10002 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    opacity: 1 !important;
    visibility: visible !important;
    border: none !important;
    outline: none !important;
}

.lb-close:before {
    content: '×' !important;
    line-height: 1 !important;
    display: block !important;
    font-family: Arial, sans-serif !important;
    color: #fff;
}

.lb-close:after {
    display: none !important;
}

.lb-close:hover {
    transform: scale(1.1) !important;
}

/* Force close button to always appear */
html .lb-close {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Navigation arrows */
.lb-nav {
    display: block !important;
}

.lb-nav a.lb-prev {
    position: fixed !important;
    left: 0;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 50px !important;
    height: 50px !important;
    background: transparent !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    font-weight: bold !important;
    color: #333 !important;
    text-decoration: none !important;
    z-index: 10002 !important;
    opacity: 1 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    visibility: visible !important;
}

.lb-nav a.lb-next {
    position: fixed !important;
    right: 0;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 50px !important;
    height: 50px !important;
    background: transparent!important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    font-weight: bold !important;
    color: #333 !important;
    text-decoration: none !important;
    z-index: 10002 !important;
    opacity: 1 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    visibility: visible !important;
}

.lb-nav a.lb-prev:before {
    content: '' !important;
    line-height: 1 !important;
    display: block !important;
    background-image: url('../images/arrow-next.svg');
    transform: rotate(180deg);
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
}

.lb-nav a.lb-next:before {
    content: '' !important;
    line-height: 1 !important;
    display: block !important;
    background-image: url('../images/arrow-next.svg');
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
}

.lb-nav a.lb-prev:hover,
.lb-nav a.lb-next:hover {

    transform: translateY(-50%) scale(1.1) !important;
    color: #333 !important;
}

/* Hide text spans */
.lb-nav a span {
    display: none !important;
}

/* Hide loader */
.lb-loader {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .lb-image {
        max-width: 90vw !important;
        max-height: 75vh !important;
    }
    
    .lb-close {
        top: 20px !important;
        right: 20px !important;
        width: 45px !important;
        height: 45px !important;
        font-size: 25px !important;
    }
    
    .lb-nav a.lb-prev {
        left: 20px !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 25px !important;
    }
    
    .lb-nav a.lb-next {
        right: 20px !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 25px !important;
    }
    .contact-btn{
        background: transparent;
    }
    .contact-btn i{
        display: block;
        margin-left: 10px;
    }
    .wpcf7-list-item {
        position: relative;
        padding-left: 25px;
    }
    .wpcf7-list-item input {
        position: absolute;
        left: 0;
        top: 4px;
    }
}