/* Mods */
body, html {
    background-color: #000 !important;
    font-size: 16px;
    line-height: 1.6;
}

/* Portfolio Carousel Styles */
.portfolio-carousel {
    position: relative;
}

.carousel-main-image {
    position: relative;
    display: inline-block;
    width: 100%;
}

.carousel-image {
    transition: opacity 0.3s ease;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow-left {
    left: 20px;
}

.carousel-arrow-right {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: white;
    border-color: white;
}

.carousel-indicator:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.3);
}

/* Thumbnail Carousel/Gallery Styles */
.thumbnail-carousel-container {
    margin-top: 1.5rem;
    padding: 0 1rem;
    width: 100%;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 10;
}

.thumbnail-carousel {
    display: flex !important;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(111, 190, 68, 0.5) transparent;
    padding: 1rem 0;
    position: relative;
    width: 100%;
    min-height: 110px;
}

.thumbnail-carousel::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-carousel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.thumbnail-carousel::-webkit-scrollbar-thumb {
    background: rgba(111, 190, 68, 0.5);
    border-radius: 10px;
}

.thumbnail-carousel::-webkit-scrollbar-thumb:hover {
    background: rgba(111, 190, 68, 0.8);
}

.thumbnail-item {
    position: relative;
    flex-shrink: 0;
    width: 120px;
    height: 90px;
    border: 3px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail-item:hover {
    transform: translateY(-4px);
    border-color: rgba(111, 190, 68, 0.5);
    box-shadow: 0 4px 12px rgba(111, 190, 68, 0.3);
}

.thumbnail-item.active {
    border-color: #6fbe44;
    box-shadow: 0 0 0 2px rgba(111, 190, 68, 0.3), 0 4px 12px rgba(111, 190, 68, 0.4);
    transform: scale(1.05);
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.thumbnail-item:hover .thumbnail-image {
    transform: scale(1.1);
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, transparent 50%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.thumbnail-item:hover .thumbnail-overlay,
.thumbnail-item.active .thumbnail-overlay {
    opacity: 1;
}

.thumbnail-number {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    min-width: 24px;
    text-align: center;
}

.thumbnail-item.active .thumbnail-number {
    background: #6fbe44;
}

/* Mobile Responsive Styles for Thumbnail Carousel */
@media (max-width: 768px) {
    .thumbnail-carousel-container {
        margin-top: 1.5rem;
        padding: 0 0.5rem;
    }

    .thumbnail-carousel {
        gap: 0.75rem;
        padding: 0.75rem 0;
    }

    .thumbnail-item {
        width: 100px;
        height: 75px;
        border-width: 2px;
    }

    .thumbnail-item.active {
        transform: scale(1.08);
    }

    .thumbnail-number {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
}

@media (max-width: 480px) {
    .thumbnail-carousel-container {
        margin-top: 1rem;
        padding: 0 0.25rem;
    }

    .thumbnail-carousel {
        gap: 0.5rem;
        padding: 0.5rem 0;
    }

    .thumbnail-item {
        width: 80px;
        height: 60px;
    }

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

    .thumbnail-item.active {
        transform: scale(1.1);
    }
}

/* Lightbox Styles */
.custom-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.lightbox-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10001;
}

.lightbox-prev,
.lightbox-next {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.lightbox-image-container {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 10001;
}

.lightbox-zoom-indicator {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 10001;
}

/* Loading States */
.image-loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(111, 190, 68, 0.3);
  border-top: 5px solid #6fbe44;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(111, 190, 68, 0.5);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #6fbe44;
    font-size: 16px;
    margin: 0;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .carousel-arrow-left {
        left: 10px;
    }
    
    .carousel-arrow-right {
        right: 10px;
    }
    
    .carousel-indicators {
        bottom: 10px;
    }
    
    .carousel-indicator {
        width: 10px;
        height: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .lightbox-navigation {
        padding: 0 10px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .loading-spinner {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }
    
    .loading-text {
        font-size: 14px;
    }
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    color: #6fbe44;
    line-height: 1.3;
    margin-bottom: 1rem;
}

/* Improved typography for better readability */
p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    color: #e5e5e5;
}

.lead {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #d0d0d0;
}

/* Mobile-first responsive design */
@media (max-width: 768px) {
    .h1, h1 {
        font-size: 2rem;
    }
    .h2, h2 {
        font-size: 1.75rem;
    }
    .h3, h3 {
        font-size: 1.5rem;
    }
    .h4, h4 {
        font-size: 1.25rem;
    }
    .h5, h5 {
        font-size: 1.125rem;
    }
    .h6, h6 {
        font-size: 1rem;
    }
    
    p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .lead {
        font-size: 1rem;
    }
}

.main-menu li a.nav-link {
    padding: 25px 1rem 0 1rem;
}

.navbar-brand img {
    max-width: 360px;
    height: auto;
}

@media (max-width: 768px) {
    .navbar-brand img {
        max-width: 250px;
    }
}

.footer-single-col img {
    max-width: 360px;
    height: auto;
}

@media (max-width: 768px) {
    .footer-single-col img {
        max-width: 250px;
    }
}

.btn-primary {
    background-color: #6fbe44;
    border-color: #6fbe44;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #5ba83a;
    border-color: #5ba83a;
    transform: translateY(-1px);
}

.footer-single-col h3, .footer-single-col .h3 {
    color: #6fbe44;
}

/* Portfolio improvements */
.portfolio-feature-img {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.portfolio-feature-img img {
    object-fit: contain;
    max-height: none;
    width: auto;
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .portfolio-feature-img {
        padding: 0 1rem;
        overflow: visible;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .portfolio-feature-img img {
        max-height: none;
        max-width: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        display: block;
        margin: 0 auto;
    }
}

.react-photo-gallery--gallery {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
}

.react-photo-gallery--gallery img {
    object-fit: contain;
    object-position: center;
    max-width: 100%;
    height: auto;
    border-radius: 0.375rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
}

.react-photo-gallery--gallery img:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .react-photo-gallery--gallery {
        flex-direction: column;
        align-items: center;
        padding: 0 0.5rem;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .react-photo-gallery--gallery img {
        max-width: 100%;
        width: auto;
        height: auto;
        margin-bottom: 1rem;
        object-fit: contain;
        display: block;
    }
}

/* Portfolio details improvements */
.portfolio-deatil-info h3 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.portfolio-deatil-info p {
    margin-bottom: 1rem;
    color: #d0d0d0;
}

@media (max-width: 768px) {
    .portfolio-deatil-info h3 {
        font-size: 1.5rem;
    }
}

/* Video improvements */
.portfolio-videos h4 {
    color: #6fbe44;
    font-weight: 600;
    margin-bottom: 2rem;
}

.videos-container {
    margin-top: 2rem;
}

.video-wrapper {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-player {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background: #000;
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .portfolio-videos h4 {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .video-wrapper {
        margin-bottom: 1.5rem;
        padding: 0 1rem;
        overflow: hidden;
    }
    
    .video-player {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
}

/* Container improvements */
.container {
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 100%;
    overflow-x: hidden;
    width: 100%;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        max-width: 100vw;
        width: 100%;
    }
}

@media (min-width: 576px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Prevent horizontal overflow */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Global overflow prevention */
section, div, img, video {
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    section {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
}

.row {
    margin-left: 0;
    margin-right: 0;
}

.col-12, .col-lg-8, .col-lg-4, .col-md-7, .col-md-5 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

@media (max-width: 768px) {
    .col-12, .col-lg-8, .col-lg-4, .col-md-7, .col-md-5 {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
}

.affix {
    background-color: #000 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Fix for mobile header padding */
body {
    padding-top: 0;
}

/* Detail page header adjustments */
.single-portfolio .affix {
    height: 60px;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.single-portfolio .navbar-brand img {
    max-height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

/* Portfolio images section padding for detail pages */
.single-portfolio .portfolio-images {
    padding-top: 6rem;
}

@media (min-width: 1200px) {
    .single-portfolio .portfolio-images {
        padding-top: 8rem;
    }
}

@media (min-width: 1400px) {
    .single-portfolio .portfolio-images {
        padding-top: 10rem;
    }
}

/* Additional header adjustments for detail pages */
@media (min-width: 992px) {
    .single-portfolio .affix {
        height: 50px;
        padding: 8px 0;
    }
    
    .single-portfolio .navbar-brand img {
        max-height: 35px;
    }
}

@media (min-width: 1200px) {
    .single-portfolio .affix {
        height: 45px;
        padding: 6px 0;
    }
    
    .single-portfolio .navbar-brand img {
        max-height: 32px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }
    
    .affix {
        height: 80px;
        padding: 15px 0;
    }
    
    .navbar-brand img {
        max-height: 50px;
        width: auto;
    }
}

.bg-dark {
    background-color: #000 !important;
}

/* Ensure all sections have black background */
section, .container, .row, .col-12, .col-lg-8, .col-lg-4, .col-md-7, .col-md-5 {
    background-color: #000 !important;
}

/* Override Bootstrap body background */
body {
    background-color: #000 !important;
    background: #000 !important;
}


/* Improved spacing */
.pt-100 {
    padding-top: 4rem;
}

.pb-60 {
    padding-bottom: 3rem;
}

@media (max-width: 768px) {
    .pt-100 {
        padding-top: 2rem;
    }
    
    .pb-60 {
        padding-bottom: 1.5rem;
    }
}

/* List improvements */
.list-unstyled li {
    margin-bottom: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(111, 190, 68, 0.2);
}

.list-unstyled li:last-child {
    border-bottom: none;
}

.list-unstyled h5 {
    color: #6fbe44;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.list-unstyled span {
    color: #d0d0d0;
    font-size: 0.95rem;
}

/* Project info card */
.project-info-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid rgba(111, 190, 68, 0.2);
    backdrop-filter: blur(10px);
}

/* Description bullets */
.description-bullets p {
    position: relative;
    padding-left: 1.5rem;
}

.bullet-point {
    color: #6fbe44;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* Tags styling */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tag {
    background: rgba(111, 190, 68, 0.2);
    color: #6fbe44;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(111, 190, 68, 0.3);
}

.tag-more {
    background: rgba(255, 255, 255, 0.1);
    color: #d0d0d0;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Gallery improvements */
.gallery-container {
    margin-top: 2rem;
    width: 100%;
    max-width: 100%;
}

.simple-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    width: 100%;
}

.gallery-item {
    cursor: pointer;
    transition: transform 0.3s ease;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.gallery-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Custom Lightbox */
.custom-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    touch-action: none;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10010;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

.lightbox-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10010;
}

.lightbox-prev,
.lightbox-next {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10010;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    pointer-events: auto;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0, 0, 0, 0.9);
}

.lightbox-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 80px;
    box-sizing: border-box;
    overflow: hidden;
    z-index: 10000;
    touch-action: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 1rem;
    z-index: 10010;
}

.lightbox-zoom-indicator {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    z-index: 10010;
    font-weight: 600;
}

@media (max-width: 768px) {
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .lightbox-navigation {
        padding: 0 10px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .lightbox-image-container {
        padding: 50px 20px;
    }
    
    .lightbox-counter {
        bottom: 10px;
        font-size: 0.9rem;
        padding: 8px 16px;
    }
    
    .lightbox-zoom-indicator {
        top: 10px;
        left: 10px;
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

@media (max-width: 768px) {
    .gallery-container {
        padding: 0 0.5rem;
        margin-top: 1.5rem;
        width: 100%;
        max-width: 100%;
    }
    
    .simple-gallery {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .gallery-item {
        margin-bottom: 1rem;
    }
    
    /* Mobile modal fixes */
    .react-images__view {
        width: 100vw !important;
        height: 100vh !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .react-images__view-image {
        width: 100vw !important;
        height: 100vh !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .react-images__view-image img {
        max-width: 100vw !important;
        max-height: 100vh !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
    }
}

.portfolio-images h4 {
    color: #6fbe44;
    font-weight: 600;
    margin-bottom: 2rem;
}

/* Additional padding for portfolio images on detail pages */
.single-portfolio .portfolio-images {
    padding: 4rem 0;
}

@media (min-width: 992px) {
    .single-portfolio .portfolio-images {
        padding: 6rem 0;
    }
}

@media (min-width: 1200px) {
    .single-portfolio .portfolio-images {
        padding: 8rem 0;
    }
}

/* Mobile improvements for project info */
@media (max-width: 768px) {
    .project-info-card {
        margin-top: 2rem;
        padding: 1rem;
    }
    
    .tags-container {
        gap: 0.375rem;
    }
    
    .tag, .tag-more {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
    
    .portfolio-images h4 {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }
}