/* Add your own custom css here */

/* Portfolio Filter Navigation - Dark Mode Fix */
.uk-dark .uk-subnav-pill > :not(.uk-active) > a {
    color: rgba(255, 255, 255, 0.7) !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.uk-dark .uk-subnav-pill > :not(.uk-active) > a:hover {
    color: rgba(255, 255, 255, 0.95) !important;
    background-color: rgba(255, 255, 255, 0.15);
}

.uk-dark .uk-subnav-pill > .uk-active > a {
    color: #fff !important;
    background-color: var(--color-primary);
}

/* Gallery Layout - 3 Column Responsive Grid */
#gallery-grid {
    margin: 0 auto;
}

.gallery-item {
    width: 100%;
    margin-bottom: 16px;
}

.gallery-image-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
    border-radius: 8px;
    background-color: #f5f5f5;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    border-radius: 8px;
}

.gallery-overlay .uk-icon {
    color: white;
}

/* Responsive adjustments */
@media (max-width: 639px) {
    /* Mobile: 1 column */
    .gallery-item {
        margin-bottom: 12px;
    }
    .gallery-image-wrapper {
        padding-bottom: 75%; /* 4:3 aspect ratio */
    }
}

@media (min-width: 640px) and (max-width: 959px) {
    /* Small screens: 2 columns */
    .gallery-item {
        margin-bottom: 14px;
    }
    .gallery-image-wrapper {
        padding-bottom: 75%; /* 4:3 aspect ratio */
    }
}

@media (min-width: 960px) {
    /* Medium+ screens: 3 columns */
    .gallery-item {
        margin-bottom: 16px;
    }
    .gallery-image-wrapper {
        padding-bottom: 75%; /* 4:3 aspect ratio */
    }
}

/* Hover effects */
.gallery-item a {
    display: block;
    text-decoration: none;
}

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

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Lightbox Responsive Styles */
.uk-lightbox {
    background: rgba(0, 0, 0, 0.95);
}

.uk-lightbox-items > * {
    max-width: 100%;
    max-height: 100%;
}

.uk-lightbox-items > * > * {
    max-width: 100vw !important;
    max-height: 100vh !important;
    width: auto !important;
    height: auto !important;
}

.uk-lightbox-items > * > img {
    max-width: 95vw !important;
    max-height: 90vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
}

/* Mobile lightbox adjustments */
@media (max-width: 639px) {
    .uk-lightbox-items > * > img {
        max-width: 100vw !important;
        max-height: 85vh !important;
    }
    
    .uk-lightbox-toolbar {
        padding: 10px;
    }
    
    .uk-lightbox-button {
        width: 40px;
        height: 40px;
    }
}

/* Tablet lightbox adjustments */
@media (min-width: 640px) and (max-width: 959px) {
    .uk-lightbox-items > * > img {
        max-width: 95vw !important;
        max-height: 88vh !important;
    }
}

/* Desktop lightbox adjustments */
@media (min-width: 960px) {
    .uk-lightbox-items > * > img {
        max-width: 90vw !important;
        max-height: 90vh !important;
    }
}

/* Lightbox navigation buttons */
.uk-lightbox-button {
    color: white !important;
}

.uk-lightbox-button:hover {
    color: var(--color-primary) !important;
}

/* Lightbox caption */
.uk-lightbox-caption {
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 20px;
    text-align: center;
}

@media (max-width: 639px) {
    .uk-lightbox-caption {
        padding: 10px 15px;
        font-size: 14px;
    }
}

