/*
	README

	Modify this file as much or as little as needed.

	This file is shared across all CCL widgets in the Header Slideshow family. This enables the ability to
	a family of widgets in a single update without touching the structure of the widget and without needing
	to duplicate efforts across several widget-specific CSS files.
*/

.core-v2-hero-slideshow .img-cont {
	border-radius: 0 0 35px 35px;
}

.core-v2-hero-slideshow .img-cont::before {
	display: block;
}

.core-v2-hero-slideshow.hide-content .img-cont::before {
	display: none;
}

.core-v2-hero-slideshow .overlap-image .content-section {
	background: var(--white);
	border-radius: 25px 25px 0 0;
    padding: var(--space-4) var(--space-5) 0;

    &:has(.info-flag) {
        bottom: calc((var(--text-2xl) + var(--space-5)) * -1); /* Info flag font size + the size of the gap, negatively positioned, to have half the content hang under */
    }

	.content-upper {
		.slide-title,
        .slide-title > a {
			font-size: var(--text-2xl);
			line-height: var(--leading-tight);
			color: var(--black);
			display: flex;
			flex-direction: column-reverse;
			align-items: flex-start;
			gap: var(--space-5);
				
			.info-flag {
				margin: 0;
				font-size: var(--text-2xl);
                font-weight: 700;
				line-height: var(--leading-tight);
				color: var(--black);
			}
		}
	
		.slide-desc {
			font-weight: normal;
			font-size: var(--text-base);
		}
	}

	@media (width >= 40em) {
        left: var(--space-10);
        padding: var(--space-5) var(--space-12) 0;

        &:has(.info-flag) {
            bottom: 0;
        }

		.content-upper {
			.slide-title,
            .slide-title > a {
				font-size: var(--text-2xl);
                flex-direction: row-reverse;
			    justify-content: flex-end;

				.info-flag {
					font-size: var(--text-2xl);
                    font-weight: 500;
				}
			}
		}
	}
}

.core-v2-hero-slideshow .slide-desc {
	font-size: var(--text-base);
	font-weight: normal;
	line-height: var(--leading-normal);
}

.core-v2-hero-slideshow .glide__arrow:hover {
	background: var(--black);
	color: var(--white);
}