/* Product Description Images Styles */

/* Modern Image Showcase Styling */
.product-image-showcase {
    margin: 30px 0;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.product-image-showcase:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.product-image-showcase img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-image-showcase:hover img {
    transform: scale(1.02);
}

.image-caption {
    width: 100%;
    padding: 12px 15px;
    background-color: #f8f9fa;
    color: #6b7280;
    font-size: 15px;
    text-align: center;
    border-top: 1px solid #e5e7eb;
    font-weight: 400;
    font-style: italic;
    transition: all 0.3s ease;
    position: relative;
    line-height: 1.4;
}

.product-image-showcase:hover .image-caption {
    background-color: #f0f7ff;
    color: #4a5568;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .image-caption {
        font-size: 14px;
        padding: 10px 15px;
    }
}

@media (min-width: 1280px) {
    .image-caption {
        font-size: 13px;
        padding: 8px 12px;
    }
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delay animation for multiple images */
.product-image-showcase:nth-of-type(2) {
    animation-delay: 0.3s;
}

.product-image-showcase:nth-of-type(3) {
    animation-delay: 0.6s;
}

.product-image-showcase:nth-of-type(4) {
    animation-delay: 0.9s;
}

/* Removed lightbox effect */

/* Removed lightbox styles */

/* Support for legacy figure/figcaption */
.product-description-content figure {
    margin: 30px 0;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.product-description-content figure:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.product-description-content figure img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-description-content figure:hover img {
    transform: scale(1.02);
}

.product-description-content figcaption {
    width: 100%;
    padding: 12px 15px;
    background-color: #f8f9fa;
    color: #6b7280;
    font-size: 15px;
    text-align: center;
    border-top: 1px solid #e5e7eb;
    font-weight: 400;
    font-style: italic;
    transition: all 0.3s ease;
    position: relative;
    line-height: 1.4;
}

.product-description-content figure:hover figcaption {
    background-color: #f0f7ff;
    color: #4a5568;
}

/* Responsive adjustments for figure/figcaption */
@media (min-width: 768px) {
    .product-description-content figcaption {
        font-size: 14px;
        padding: 10px 15px;
    }
}

@media (min-width: 1280px) {
    .product-description-content figcaption {
        font-size: 13px;
        padding: 8px 12px;
    }
}