.bg-brand-primary { background-color: #283870; }
.bg-brand-secondary { background-color: #fecd00; }
.text-brand-primary { color: #283870; }
.text-brand-secondary { color: #fecd00; }
.border-brand-primary { border-color: #283870; }
.border-brand-secondary { border-color: #fecd00; }

.bg-blue-600 { background-color: #283870 !important; }
.bg-blue-600:hover { background-color: #1e2a5a !important; }
.bg-blue-700 { background-color: #1e2a5a !important; }

.text-blue-600 { color: #283870 !important; }
.hover\:text-blue-800:hover { color: #1e2a5a !important; }

.swiper-thumbs .swiper-slide-thumb-active {
    border-color: #fecd00 !important;
}

.border-blue-600 { border-color: #283870 !important; }
.text-blue-600 { color: #283870 !important; }


.bg-green-100 {
    background-color: rgba(254, 205, 0, 0.1) !important;
    color: #283870 !important;
}

.bg-red-100 {
    background-color: rgba(254, 205, 0, 0.1) !important;
    color: #283870 !important;
}

input:focus,
select:focus {
    border-color: #fecd00 !important;
    --tw-ring-color: #fecd00 !important;
}

button:focus {
    --tw-ring-color: #fecd00 !important;
}



.bg-white:hover {
    border-color: #fecd00 !important;
}

.hover\:text-blue-600:hover {
    color: #fecd00 !important;
}

.text-gray-400 {
    color: #283870 !important;
}

.text-5xl {
    color: #283870 !important;
}

.swiper {
    width: 100%;
}
.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}
.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.swiper-thumbs .swiper-slide {
    opacity: 0.6;
    cursor: pointer;
    border: 2px solid transparent;
}
.swiper-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border-color: #283870;
}
.swiper-button-next,
.swiper-button-prev {
    color: #283870;
    background: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

/* Style for thumb slider navigation */
.swiper-thumbs .swiper-button-next,
.swiper-thumbs .swiper-button-prev {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.swiper-thumbs .swiper-button-next:after,
.swiper-thumbs .swiper-button-prev:after {
    font-size: 12px;
    color: #374151;
    font-weight: bold;
}

.swiper-thumbs .swiper-button-next {
    right: 5px;

}

.swiper-thumbs .swiper-button-prev {
    left: -20px;
    position: absolute;
}

/* Hide navigation on mobile if needed */
@media (max-width: 768px) {
    .swiper-thumbs .swiper-button-next,
    .swiper-thumbs .swiper-button-prev {
        display: none;
    }
}
/* Modern zoom styles */
.image-gallery__container {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
}

.js-lazy-image__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease-out;
    transform-origin: center center;
}


.magnifier-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 5;
}

.image-gallery__container:hover .magnifier-icon {
    opacity: 1;
}

.swiper {
    width: 80%;
}

/* Improved Lightbox styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    padding: 20px;
    box-sizing: border-box;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

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

.lightbox-swiper {
    width: 100%;
    height: calc(100% - 120px); /* Reserve space for thumbnails */
    flex: 1;
}

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

.lightbox-swiper .swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.lightbox-thumbs {
    width: 100%;
    height: 100px;
    margin-top: 20px;
    padding: 0 50px;
    box-sizing: border-box;
}

.lightbox-thumbs .swiper-slide {
    opacity: 0.4;
    transition: opacity 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
}

.lightbox-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border-color: #3b82f6;
}

.lightbox-thumbs .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Lightbox navigation buttons */
.lightbox-swiper .swiper-button-next,
.lightbox-swiper .swiper-button-prev {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.lightbox-swiper .swiper-button-next:after,
.lightbox-swiper .swiper-button-prev:after {
    font-size: 20px;
    color: #374151;
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .lightbox {
        padding: 10px;
    }

    .lightbox-content {
        max-height: 95vh;
    }

    .lightbox-swiper {
        height: calc(100% - 80px);
    }

    .lightbox-thumbs {
        height: 60px;
        padding: 0 20px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }

    .lightbox-swiper .swiper-button-next,
    .lightbox-swiper .swiper-button-prev {
        width: 40px;
        height: 40px;
    }

    .lightbox-swiper .swiper-button-next:after,
    .lightbox-swiper .swiper-button-prev:after {
        font-size: 16px;
    }
}

/* Selected image outline */
.swiper-thumbs .swiper-slide {
    border: 2px solid transparent;
    border-radius: 8px;
    transition: border-color 0.3s;
}

.swiper-thumbs .swiper-slide-thumb-active {
    border-color: #3b82f6;
}