.image-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    transition: filter 0.3s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0) 30%,
        rgba(0, 0, 0, 0) 70%,
        rgba(0, 0, 0, 0.7) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px;
}

.image-overlay.visible {
    opacity: 1;
}

.image-alt-display {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
    max-width: 100%;
    word-wrap: break-word;
    backdrop-filter: blur(4px);
    align-self: flex-start;
    margin-top: auto;
}

.image-download-btn,
.image-fullscreen-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #333;
    backdrop-filter: blur(4px);
}

.image-download-btn:hover,
.image-fullscreen-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.image-download-btn {
    position: absolute;
    top: 12px;
    right: 12px;
}

.image-fullscreen-btn {
    position: absolute;
    top: 12px;
    right: 56px;
}

.image-fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-fullscreen-modal.visible {
    opacity: 1;
}

.image-fullscreen-modal.closing {
    opacity: 0;
}

.fullscreen-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(4px);
}

.fullscreen-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
}

.fullscreen-image {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #333;
}

.fullscreen-close:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.fullscreen-caption {
    margin-top: 20px;
    color: white;
    text-align: center;
    font-size: 16px;
    line-height: 1.5;
    max-width: 600px;
    background: rgba(0, 0, 0, 0.6);
    padding: 12px 20px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
}

/* Image Carousel Styles */
.image-carousel-container {
    margin: 24px 0;
    clip-path:  var(--clip-path-squircle-36);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.image-carousel .swiper-slide{
	background: transparent !important;
}

.carousel-title {
    margin: 0;
    padding: 20px 20px 8px;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.carousel-description {
    margin: 0;
    padding: 0 20px 16px;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.image-carousel {
    position: relative;
    width: 100%;
    height: 400px;
}

.image-carousel .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.image-carousel .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

/* Swiper Navigation Buttons */
.image-carousel .swiper-button-next,
.image-carousel .swiper-button-prev {
    color: white;
    background: rgba(0, 0, 0, 0.5);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin-top: -22px;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.image-carousel .swiper-button-next:hover,
.image-carousel .swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.image-carousel .swiper-button-next::after,
.image-carousel .swiper-button-prev::after {
    font-size: 16px;
    font-weight: bold;
}

.image-carousel .swiper-button-next {
    right: 16px;
}

.image-carousel .swiper-button-prev {
    left: 16px;
}

/* Swiper Pagination */
.image-carousel .swiper-pagination {
    bottom: 16px;
}

.image-carousel .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all 0.3s ease;
}

.image-carousel .swiper-pagination-bullet-active {
    background: white;
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .image-carousel {
        height: 300px;
    }

    .carousel-title {
        font-size: 18px;
        padding: 16px 16px 6px;
    }

    .carousel-description {
        padding: 0 16px 12px;
        font-size: 13px;
    }

    .image-carousel .swiper-button-next,
    .image-carousel .swiper-button-prev {
        width: 36px;
        height: 36px;
        margin-top: -18px;
    }

    .image-carousel .swiper-button-next::after,
    .image-carousel .swiper-button-prev::after {
        font-size: 14px;
    }

    .image-carousel .swiper-button-next {
        right: 12px;
    }

    .image-carousel .swiper-button-prev {
        left: 12px;
    }

    .fullscreen-content {
        padding: 16px;
    }

    .fullscreen-image {
        max-width: 95%;
        max-height: 85%;
    }

    .fullscreen-close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }

    .fullscreen-caption {
        font-size: 14px;
        margin-top: 16px;
        padding: 10px 16px;
    }

    .image-alt-display {
        font-size: 13px;
        padding: 6px 10px;
    }

    .image-download-btn,
    .image-fullscreen-btn {
        width: 32px;
        height: 32px;
    }

    .image-fullscreen-btn {
        right: 48px;
    }
}

@media (max-width: 480px) {
    .image-carousel {
        height: 250px;
    }

    .image-carousel .swiper-button-next,
    .image-carousel .swiper-button-prev {
        width: 32px;
        height: 32px;
        margin-top: -16px;
    }

    .image-carousel .swiper-button-next::after,
    .image-carousel .swiper-button-prev::after {
        font-size: 12px;
    }
}

.image-carousel-container {
        background: #ffffff0f !important;
}

.carousel-title {
        color: #e0e0e0;
}

.carousel-description {
        color: #b0b0b0;
}

