/* Image Standardization Styles */

/* Listing page thumbnails */
.card-img-top {
    height: 200px;  /* Fixed height for all thumbnails */
    object-fit: cover;  /* Preserves aspect ratio while filling the container */
    width: 100%;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

/* Article detail page featured image */
.article-featured-image {
    max-height: 400px;  /* Maximum height for featured images */
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Related article thumbnails */
.related-article-thumbnail {
    width: 70px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Article component standardization */
.article-image-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.article-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Image hover effects */
.card-img-top:hover,
.article-image:hover {
    transform: scale(1.05);
    transition: transform 0.5s ease;
}

/* Image attribution overlay */
.image-attribution {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 10px;
    padding: 4px 8px;
    border-top-left-radius: 4px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.image-attribution:hover {
    opacity: 1;
}

.image-attribution a {
    color: #a0d9ff;
    text-decoration: none;
}

.image-attribution a:hover {
    text-decoration: underline;
}

/* Card container styling */
.card {
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
