/**
 * Portfolio Plugin Styles
 * Pixel-perfect design matching the reference image exactly
 * 
 * Design Reference:
 * - 3 project cards per row (desktop)
 * - Large project image on top
 * - Project title (bold, larger font)
 * - Category badges (rounded pills, thin border, white background)
 * - Short description (2 lines max)
 * - Sans-serif typography
 * - Equal spacing and alignment
 */

/* ============================================
   RESET & BASE STYLES
   ============================================ */

.portfolio-plugin-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #333;
    line-height: 1.6;
}

.portfolio-plugin-wrapper * {
    box-sizing: border-box;
}

/* ============================================
   ARCHIVE PAGE - PORTFOLIO GRID
   ============================================ */

.portfolio-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
}

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

/* Portfolio Card - Matching image exactly */
.portfolio-card {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}

/* Card Image - Large image on top */
.portfolio-card-image {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding-top: 75%; /* 4:3 aspect ratio matching image */
    background: #f5f5f5;
}

.portfolio-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

/* Hover Effect - Subtle image zoom */
.portfolio-card:hover .portfolio-card-image img {
    transform: scale(1.05);
    opacity: 0.95;
}

.portfolio-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Card Content Area */
.portfolio-card-content {
    padding: 24px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Project Header - Flex container for title and badges */
.portfolio-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

/* Project Title - Bold, larger font */
.portfolio-card-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    color: #1a1a1a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    flex: 1;
    min-width: 0;
}

/* Category Badges - Rounded pills, thin border, white background */
.portfolio-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    flex-shrink: 0;
}

.portfolio-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
    color: #666;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    text-transform: none;
    letter-spacing: 0.2px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Description - 2 lines max */
.portfolio-card-description {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin-top: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400;
}

/* No Results */
.portfolio-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

/* ============================================
   PAGINATION
   ============================================ */

.portfolio-plugin-wrapper .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
    padding: 0 20px;
}

.portfolio-plugin-wrapper .nav-links a,
.portfolio-plugin-wrapper .nav-links span {
    padding: 8px 16px;
    text-decoration: none;
    color: #333;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.portfolio-plugin-wrapper .nav-links a:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.portfolio-plugin-wrapper .nav-links .current {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* ============================================
   SINGLE PROJECT PAGE
   ============================================ */

.portfolio-single {
    background: #fff;
}

/* Professional Modern Bootstrap Carousel Slider */
.portfolio-slider-wrapper {
    width: 80%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    margin-bottom: 80px;
    overflow: visible;
}

.portfolio-carousel {
    width: 100%;
    position: relative;
    background: transparent;
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15), 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.portfolio-carousel .carousel-inner {
    height: 70vh;
    min-height: 500px;
    max-height: 900px;
    border-radius: 20px;
    overflow: hidden;
}

.portfolio-carousel .carousel-item {
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-carousel:hover .carousel-item.active img {
    transform: scale(1.02);
}

/* Clean White Circular Navigation Buttons - Matching Image Design */
.portfolio-carousel-prev,
.portfolio-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    opacity: 1;
}

.portfolio-carousel-prev:hover,
.portfolio-carousel-next:hover {
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.05);
}

.portfolio-carousel-prev:active,
.portfolio-carousel-next:active {
    transform: translateY(-50%) scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.portfolio-carousel-prev .carousel-control-prev-icon,
.portfolio-carousel-next .carousel-control-next-icon {
    width: 24px;
    height: 24px;
    background-size: 24px 24px;
    filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
    transition: transform 0.3s ease;
}

.portfolio-carousel-prev:hover .carousel-control-prev-icon {
    transform: translateX(-1px);
}

.portfolio-carousel-next:hover .carousel-control-next-icon {
    transform: translateX(1px);
}



/* Clean Professional Bootstrap Carousel Indicators - Matching Image Design */

/* Clean Professional Counter - Matching Image Design */
.portfolio-slider-counter {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    z-index: 10;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.3px;
    line-height: 1.4;
}

.portfolio-slider-counter .portfolio-slider-current {
    font-weight: 600;
    font-size: 14px;
    color: #fff;
}

.portfolio-slider-counter .portfolio-slider-total {
    opacity: 0.8;
    font-weight: 500;
}

/* Single Container - Full Width */
.portfolio-single-container-full {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Single Header */
.portfolio-single-header {
    margin-bottom: 40px;
    text-align: center;
    padding: 60px 20px 40px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-single-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    color: #1a1a1a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Single Content Layout */
.portfolio-single-content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.portfolio-single-main {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

.portfolio-single-section {
    margin-bottom: 0;
}

.portfolio-section-title {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 24px 0;
    color: #1a1a1a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.portfolio-section-content {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.portfolio-section-content p {
    margin-bottom: 20px;
}

.portfolio-section-content p:last-child {
    margin-bottom: 0;
}

/* Single Sidebar - Project Info */
.portfolio-single-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.portfolio-single-info {
    background: #f5f5f5;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 0;
}

.portfolio-info-item {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    gap: 16px;
}

.portfolio-info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.portfolio-info-label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-transform: none;
    letter-spacing: 0;
}

.portfolio-info-value {
    font-size: 16px;
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1.4;
    text-align: right;
}

/* Gallery */
.portfolio-single-gallery {
    margin-top: 80px;
    padding-top: 80px;
    border-top: 1px solid #e0e0e0;
}

.portfolio-gallery-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 40px;
    color: #1a1a1a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}


/* Related Projects Section */
.portfolio-related-section {
    width: 100%;
    margin-top: 80px;
    padding-top: 80px;
    border-top: 1px solid #e8e8e8;
    background: #fafafa;
}

.portfolio-related-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.portfolio-related-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 50px;
    color: #1a1a1a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    letter-spacing: -0.5px;
}

/* Related Projects Slider - Modern Professional Design */
.portfolio-related-slider-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0 80px 60px;
}

.portfolio-related-slider {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 24px;
    will-change: transform;
}

.portfolio-related-slide {
    flex: 0 0 calc(33.333% - 16px);
    min-width: 0;
}

.portfolio-related-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

.portfolio-related-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}

.portfolio-related-image {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding-top: 68%;
    background: #f8f8f8;
}

.portfolio-related-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.portfolio-related-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: #e0e0e0;
}

.portfolio-related-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 5;
}

.portfolio-related-badges .portfolio-badge {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    font-size: 11px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #333;
    letter-spacing: 0.3px;
}

.portfolio-related-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.portfolio-related-item-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px 0;
    color: #1a1a1a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    letter-spacing: -0.3px;
    transition: color 0.3s ease;
}

.portfolio-related-item:hover .portfolio-related-item-title {
    color: #000;
}

.portfolio-related-description {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400;
    margin-top: auto;
}

/* Related Slider Navigation - Modern Design */
.portfolio-related-prev,
.portfolio-related-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #1a1a1a;
    font-size: 20px;
    font-weight: 400;
    z-index: 10;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(8px);
}

.portfolio-related-prev:hover,
.portfolio-related-next:hover {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.portfolio-related-prev:active,
.portfolio-related-next:active {
    transform: translateY(-50%) scale(0.95);
}

.portfolio-related-prev {
    left: 0;
}

.portfolio-related-next {
    right: 0;
}

.portfolio-related-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding-top: 20px;
}

.portfolio-related-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #d0d0d0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 0;
}

.portfolio-related-dot.active {
    background: #1a1a1a;
    width: 32px;
    height: 8px;
    border-radius: 4px;
}

.portfolio-related-dot:hover:not(.active) {
    background: #999;
    transform: scale(1.2);
}

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

.portfolio-gallery-item {
    overflow: hidden;
    position: relative;
    padding-top: 75%; /* 4:3 aspect ratio */
    background: #f5f5f5;
}

.portfolio-gallery-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
}

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

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

/* ============================================
   SHORTCODE STYLES
   ============================================ */

.portfolio-shortcode {
    margin: 40px 0;
}

.portfolio-grid-columns-2 {
    grid-template-columns: repeat(2, 1fr) !important;
}

.portfolio-grid-columns-3 {
    grid-template-columns: repeat(3, 1fr) !important;
}

.portfolio-grid-columns-4 {
    grid-template-columns: repeat(4, 1fr) !important;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet: 2 columns */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .portfolio-grid-columns-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .portfolio-single-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .portfolio-single-sidebar {
        position: static;
    }
    
    .portfolio-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-related-slider-wrapper {
        padding: 0 70px 60px;
    }
    
    .portfolio-related-slide {
        flex: 0 0 calc(50% - 12px);
    }
    
    .portfolio-related-prev,
    .portfolio-related-next {
        width: 48px;
        height: 48px;
    }
    
    .portfolio-related-prev {
        left: 0;
    }
    
    .portfolio-related-next {
        right: 0;
    }
    
    .portfolio-slider-wrapper {
        width: 90%;
    }
    
    .portfolio-carousel .carousel-inner {
        height: 50vh;
        min-height: 350px;
        max-height: 600px;
    }
    
    .portfolio-carousel-prev,
    .portfolio-carousel-next {
        width: 52px;
        height: 52px;
    }
    
    .portfolio-carousel-prev .carousel-control-prev-icon,
    .portfolio-carousel-next .carousel-control-next-icon {
        width: 22px;
        height: 22px;
        background-size: 22px 22px;
    }
    
    .portfolio-carousel-prev {
        left: -26px;
    }
    
    .portfolio-carousel-next {
        right: -26px;
    }
    
    .portfolio-slider-counter {
        bottom: 20px;
        right: 20px;
        padding: 6px 14px;
        font-size: 12px;
    }
}

/* Mobile: 1 column */
@media (max-width: 768px) {
    .portfolio-container {
        padding: 40px 15px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .portfolio-slider-wrapper {
        width: 95%;
    }
    
    .portfolio-carousel .carousel-inner {
        height: 40vh;
        min-height: 300px;
        max-height: 500px;
    }
    
    .portfolio-carousel-prev,
    .portfolio-carousel-next {
        width: 48px;
        height: 48px;
    }
    
    .portfolio-carousel-prev .carousel-control-prev-icon,
    .portfolio-carousel-next .carousel-control-next-icon {
        width: 20px;
        height: 20px;
        background-size: 20px 20px;
    }
    
    .portfolio-carousel-prev {
        left: -22px;
    }
    
    .portfolio-carousel-next {
        right: -22px;
    }
    
    .portfolio-slider-counter {
        bottom: 16px;
        right: 16px;
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .portfolio-grid-columns-2,
    .portfolio-grid-columns-3,
    .portfolio-grid-columns-4 {
        grid-template-columns: 1fr !important;
    }
    
    .portfolio-card-content {
        padding: 20px 16px;
    }
    
    .portfolio-card-title {
        font-size: 20px;
    }
    
    .portfolio-single-container {
        padding: 40px 15px;
    }
    
    .portfolio-single-title {
        font-size: 32px;
    }
    
    .portfolio-single-hero {
        margin-bottom: 40px;
    }
    
    .portfolio-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .portfolio-nav-prev {
        left: 10px;
    }
    
    .portfolio-nav-next {
        right: 10px;
    }
    
    .portfolio-carousel .carousel-inner {
        height: 400px;
        min-height: 300px;
    }
    
    .portfolio-carousel-prev,
    .portfolio-carousel-next {
        width: 48px;
        height: 48px;
    }
    
    .portfolio-carousel-prev .carousel-control-prev-icon,
    .portfolio-carousel-next .carousel-control-next-icon {
        width: 18px;
        height: 18px;
        background-size: 18px 18px;
    }
    
    .portfolio-carousel-prev {
        left: -20px;
    }
    
    .portfolio-carousel-next {
        right: -20px;
    }
    
    .portfolio-slider-counter {
        bottom: 14px;
        right: 14px;
        padding: 5px 10px;
        font-size: 10px;
    }
    
    .portfolio-single-content-wrapper {
        gap: 30px;
        padding: 0 15px;
    }
    
    .portfolio-single-info {
        padding: 24px;
    }
    
    .portfolio-info-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .portfolio-info-value {
        text-align: left;
    }
    
    .portfolio-project-images-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .portfolio-gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .portfolio-related-slider-wrapper {
        padding: 0 50px;
    }
    
    .portfolio-related-slider-wrapper {
        padding: 0 60px 50px;
    }
    
    .portfolio-related-slide {
        flex: 0 0 100%;
    }
    
    .portfolio-related-prev,
    .portfolio-related-next {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .portfolio-related-image {
        padding-top: 65%;
    }
    
    .portfolio-related-content {
        padding: 20px;
    }
    
    .portfolio-related-item-title {
        font-size: 18px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .portfolio-container {
        padding: 30px 10px;
    }
    
    .portfolio-card-content {
        padding: 16px 12px;
    }
    
    .portfolio-card-title {
        font-size: 18px;
    }
    
    .portfolio-badge {
        font-size: 10px;
        padding: 3px 10px;
    }
    
    .portfolio-single-container {
        padding: 30px 10px;
    }
    
    .portfolio-single-title {
        font-size: 24px;
    }
}

/* ============================================
   LIGHTBOX
   ============================================ */

.portfolio-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.portfolio-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.portfolio-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

.portfolio-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.portfolio-lightbox-close:hover {
    opacity: 0.7;
}
.portfolio-carousel-next {
    right: 10px !important;
}
.portfolio-carousel-prev {
    left: 10px !important;
}
@media (max-width: 768px) {
    .portfolio-carousel-next {
        right: 20px !important;
    }
}
@media (max-width: 768px) {
    .portfolio-carousel-prev {
        left: 20px !important;
    }
    
}
@media screen and (max-width: 576px) {
    .portfolio-related-next,
    .portfolio-related-prev {
       display: none !important;
    }
}