.swiper { 
    padding: 0 1.75rem 1.75rem 1.75rem !important;
    margin: 0 !important;
    height: 30rem;
    width: 100%;
}

.swiper-slide {
    display: flex;
    justify-content: center;

    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
    height: auto !important;
    width: 100%;

    transition: 0.2s ease;
    border-radius: 0.75rem;
    text-decoration: none;
    user-select: none;

    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    
    background: linear-gradient(
        315deg,
        rgba(69, 94, 183, 0.35),
        rgba(56, 121, 195, 0.35)
    );
}

/* Only has box-shadow if visible; prevents it from bleeding. */
.swiper-slide.swiper-slide-visible {
    box-shadow: 0.15rem 0.15rem 0.15rem rgba(0, 0, 0, 0.25);
}

.card-container {
    padding: 1rem;
}

.card-image-container {
    width: 100%;
    height: 40%;
    position: relative;
}

.card-image {
    height: 100%;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: 0.2s;
    border-radius: 10px;
    border: 0.1rem solid rgba(0, 0, 0, 0);
    cursor: pointer;
}

.card-image:hover {
    border: 0.1rem solid rgba(0, 0, 0, 0.4);
}

.card-image:hover ~ .card-button > svg {
    width: 1.5rem;
    height: 1.5rem;
}

.card-button {
    position: absolute;
    bottom: 0.75rem;
    left: 0.5rem;

    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
    width: 2.5rem;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50rem;
    border: none;

    /* Ignores cursor to not break card-image's :hover */
    pointer-events: none;
}

.card-button > svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: whitesmoke;
    transition: 0.2s;
}

.card-text {
    font-weight: 200;
    font-size: 24px;
    text-shadow: 0.05rem 0.05rem 0.1rem rgba(255, 255, 255, 0.5);
    white-space: normal;
    word-wrap: break-word;
    text-align: justify;
    line-height: 1;
    color: #ffffff;
}

.card-badge-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin: 0.8rem 0 0.8rem;
    width: 100%;
    gap: 1rem;
}

.card-badge {
    background-color: whitesmoke;
    color: #201D38;
    font-weight: 200;
    font-size: 18px;
    padding: 8px 16px;
    width: fit-content;
    border-radius: 50rem;
    border: none;
}

.swiper-button-prev {
    left: 0rem !important;
}

.swiper-button-next {
    right: 0rem !important;
}

.swiper-button-next,
.swiper-button-prev {
    top: 50% !important;
    z-index: 50;
    color: #5372f0;
    font-size: 30px;
    transition: color 0.3s ease;
    transform: translateY(-50%);
}

.swiper-pagination {
    bottom: 0rem !important;
}

.swiper-pagination-bullet {
    transition: background 0.2s !important;
    background: whitesmoke !important; 
    box-shadow: 0.15rem 0.15rem 0.15rem rgba(0, 0, 0, 0.5);
    width: 0.75rem !important;
    height: 0.75rem !important;
}

.swiper-pagination-bullet:hover {
    background: #5372f0 !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    color: #5372f0 !important;
}

.swiper-button-next,
.swiper-button-prev,
.swiper-pagination {
    z-index: 51; 
}

.swiper-button-next,
.swiper-button-prev {
    color: whitesmoke !important; 
    text-shadow: 0.15rem 0.15rem 0.15rem rgba(0, 0, 0, 0.5);
    user-select: none !important;
}

/* Click to enlarge, added via JS */
.expanded-view {
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    position: fixed;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    visibility: hidden;
}