.custom-marquee {
    --border-radius: 10px;

    position: relative;
    container-type: inline-size;
    margin-bottom: 30px;
}

.custom-marquee.show-blocks .slide.major {
    position: relative;
}

.custom-marquee .widget-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 8px;
	align-items: start;
}

.custom-marquee .widget-header {
	display: contents;
}

.custom-marquee .title-col,
.custom-marquee .view-all-col {
	width: calc(100% - var(--space-10));
	max-width: calc(var(--width-base) - var(--space-10));
	margin: 0 auto;
}

.custom-marquee .title-col {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
	gap: 10px;
	padding-bottom: var(--space-3);
}

.custom-marquee .widget-title {
	margin: 0;
	font-family: var(--font-dm-serif);
	font-weight: var(--font-weight-normal);
	font-size: 2.25rem;
	letter-spacing: 0.16px;
	line-height: 1.1;
	color: var(--sw-collections-title-color);
    text-align: center;
}

.custom-marquee .widget-subtitle {
	display: block;
	font-weight: var(--font-weight-medium, 500);
	font-size: 0.6em;
}

.custom-marquee .widget-desc {
	margin: 0;
	font-family: var(--font-body);
	font-weight: normal;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--black);
    text-align: center;
}

.custom-marquee .view-all-col {
	display: flex;
	justify-content: center;
	order: 10;
}

.custom-marquee .widget-view-all {
    position: relative;
    display: inline-block;
	margin-top: 20px;
    padding: 10px 12px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    line-height: 1;
    font-weight: var(--font-weight-bold);
    color: var(--sw-button-primary-color);
    text-decoration: none;
    background-color: var(--sw-button-primary-bg);
    transition:
        color var(--transition-appendix),
        background-color var(--transition-appendix);
}

.custom-marquee .widget-view-all::after {
	content: '';
	pointer-events: none;
	display: block;
	position: absolute;
	top: 0;
	right: -12px;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: var(--sw-button-triangle-border-width);
	border-color: var(--sw-button-primary-triangle-border-color);
	transition: border-color var(--transition-appendix);
}

/* all slides */

.custom-marquee .slides {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.custom-marquee .shared-play-button {
    /* left: unset; */
    top: 60px;
    left: 60px;
}

.custom-marquee .slide-top {
    position: relative;
}

.custom-marquee .info-flag.cat {
    display: inline-block;
    padding: 2px 10px;
    font-family: var(--font-archivo-bold);
    font-size: 0.75rem;
    font-weight: var(--font-weight-bold);
    line-height: 1;
    background-color: var(--teal-4f);
    border-radius: 4px;
}

.custom-marquee .content-section .details .info-item {
    font-size: 0.9375rem;
}

.custom-marquee .content-section .details .info-item .icon {
    font-size: 0.75rem;
    color: var(--sw-key-color);
}

.custom-marquee .slide-title {
    font-weight: 700;
    line-height: 1;
    transition: color var(--transition-appendix);
}

.custom-marquee .slide-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2) 20px;
    margin-top: auto;
    font-family: var(--font-body);
}

.custom-marquee .slide-footer button {
    font-family: var(--font-display);
    font-size: 1.125rem;
    line-height: 1;
    font-weight: var(--font-weight-bold, 700);
    color: var(--sw-key-color);
    transition: color var(--transition-appendix);

}
/* major slide */
.custom-marquee .slide.major {
    grid-row: 1;
    grid-column: 1 / span 2;
    margin-bottom: 30px;
}

.custom-marquee .slide.major .inner {
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
}

.custom-marquee .img-cont {
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

.custom-marquee.show-blocks .slide.major .par-img::after {
    content: '';
    pointer-events: none;
    background-image: url(/includes/public/assets/shared/decorations/white-breezeblocks.svg);
    background-size: contain;
    height: 50px;
    width: 100%;
    position: absolute;
    bottom: -3px;
    left: 0;
    z-index: 1;
}

.custom-marquee .slide-img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    object-fit: cover;
}

.custom-marquee .slide-top .credits {
    bottom: unset;
    top: 8px;
}

.custom-marquee .details {
    margin-bottom: 6px;
}

.custom-marquee .info-flag.cat {
    margin-bottom: 10px;
}

.custom-marquee .slide.major .content-section {
    min-width: 340px;
    max-width: 640px;
    margin: -164px 18px 0;
    padding: 16px 20px 20px;
    background-color: var(--green-a6);
    border-radius: var(--border-radius);
    box-shadow: 0px 4px 12px #00000026;
    z-index: 2;
}

.custom-marquee .slide.major .slide-title {
    font-family: var(--font-archivo-cond-semibold);
    font-size: 1.875rem;
}

.custom-marquee .slide.major .slide-desc {
    margin-bottom: 12px;
}

.custom-marquee .slide.major .content-section .read-more {
    position: relative;
    display: inline-block;
    padding: 10px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    line-height: 1;
    font-weight: var(--font-weight-bold);
    color: var(--sw-button-primary-color);
    text-decoration: none;
    background-color: var(--sw-button-primary-bg);
    transition: color var(--transition-appendix), background-color var(--transition-appendix);
}

.custom-marquee .slide.major .content-section .read-more::after {
    content: '';
    pointer-events: none;
    display: block;
    position: absolute;
    top: 0;
    right: -12px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: var(--sw-button-triangle-border-width);
    border-color: var(--sw-button-primary-triangle-border-color);
    transition: border-color var(--transition-appendix);
}

.custom-marquee .slide.major .parallax-cont {
	width: 100%;
}

.custom-marquee .slide.major .parallax-cont .par-img {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    width: 100%;
}

.custom-marquee .slide.major .parallax-cont .tablet,
.custom-marquee .slide.major .parallax-cont .desktop {
	display: none;
}

/* minor slide */
.custom-marquee .slide.minor {
    padding: 0 20px;
    margin-bottom: 18px;
}

.custom-marquee .slide.minor:nth-child(2) {
    grid-row: 2;
    grid-column: 1 / span 2;
}

.custom-marquee .slide.minor:nth-child(3) {
    grid-row: 3;
    grid-column: 1 / span 2;
}

.custom-marquee .slide.minor .inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.custom-marquee .slide.minor .slide-top {
    grid-column: 1;
    grid-row: 1;
}

.custom-marquee .slide.minor .content-section {
    grid-column: 2;
}

.custom-marquee .slide-header {
    margin-bottom: 8px;
}

.custom-marquee .slide.minor .img-cont img {
    box-shadow: 0px 4px 12px #00000026;
    border-radius: var(--border-radius);
}

.custom-marquee .slide.minor .slide-title {
    font-family: var(--font-archivo-bold);
    font-size: 1rem;
}

.custom-marquee .slide.minor .slide-desc {
    display: none;
}

.custom-marquee .slide.minor .content-section .read-more {
    position: relative;
    display: flex;
    gap: 6px;
    align-items: center;
    font-family: var(--font-display);
    font-weight: var(--font-weight-bold);
    font-size: 1.125rem;
    line-height: 1;
    text-decoration: none;
    text-align: center;
    color: var(--sw-collections-read-more-color);
    transition: color var(--transition-appendix), background-color var(--transition-appendix);
}

.custom-marquee .slide.minor .content-section .read-more::before {
    content: '';
    pointer-events: none;
    background-image: url(/includes/public/assets/shared/decorations/lime-star.svg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: block;
    height: 20px;
    width: 20px;
    display: inline-flex;
    transition: rotate var(--transition-appendix);
}

@media screen and (min-width: 40em) {
    /* slides major */
    .custom-marquee .slide.major {
        grid-column: 1 / span 3;
    }

    /* slides minor */
    .custom-marquee .slide.minor:nth-child(2) {
        grid-row: 2;
        grid-column: 1;
    }

    .custom-marquee .slide.minor:nth-child(3) {
        grid-row: 2;
        grid-column: 2;
    }

    .custom-marquee .slide.major .parallax-cont .mobile {
        display: none;
    }
    
    .custom-marquee .slide.major .parallax-cont .tablet {
        display: block;
    }
}

@container (min-width: 64em) {
    .custom-marquee .parallax-desktop {
		width: 100%;
		height: 100%;
		background-attachment: fixed;
		background-size: cover;
		/* aspect-ratio: 2.4 / 1; */
		pointer-events: none;
		background-position: center;
	}

    .custom-marquee .slide.major .parallax-cont .tablet {
        display: none;
    }

    .custom-marquee .slide.major .parallax-cont .desktop {
        display: block;
    }

    .custom-marquee .widget-inner {
		display: block;
	}

	.custom-marquee .widget-header {
		display: flex;
		justify-content: space-between;
		align-items: end;
		flex-wrap: wrap;
		gap: var(--space-5) var(--space-8);
		width: calc(100% - var(--space-10));
		max-width: calc(var(--width-collection-header) - var(--space-5));
		padding-bottom: var(--space-3);
		margin: 0 auto var(--space-6);
	}

	.custom-marquee .title-col,
	.custom-marquee .view-all-col {
		margin: 0;
	}

	.custom-marquee .title-col {
		width: 100%;
		max-width: var(--width-comfortable);
		padding-bottom: 0;
		border-bottom: none;
	}

	.custom-marquee .widget-title {
		font-size: 4.0625rem;
        text-align: left;
	}

    .custom-marquee .widget-desc {
        text-align: left;
    }

	.custom-marquee .view-all-col {
		display: block;
		width: auto;
		max-width: none;
	}

	.custom-marquee .widget-view-all {
		padding: 10px 10.3px;
		font-size: 1.25rem;
	}

	.custom-marquee .widget-view-all::after {
		right: -12px;
		border-width: var(--sw-view-all-triangle-border-width-lg);
	}

    /* all slides */
    .custom-marquee .slides {
        display: grid;
        grid-template-columns: 1fr .78fr .78fr;
        row-gap: 50px;
    }
}

@media screen and (min-width: 64em) {
	.custom-marquee .shared-play-button {
		top: 50%;
		left:50%;
	}
    .custom-marquee {
        margin-bottom: 130px;
    }

    /* all slides */
    .custom-marquee .info-flag.cat {
        font-size: 0.9375rem;
    }

    /* major slides */
    .custom-marquee .slide.major {
        margin-bottom: 0;
    }

    .custom-marquee .slide.major .inner {
        position: relative;
    }

    .custom-marquee .slide.major .content-section {
        position: absolute;
        left: 22px;
        top: calc(100% - 175px);
        margin: 0;
        padding: 60px 40px;
        width: 32%;
        max-width: unset;
    }

    /* minor slides */
    .custom-marquee .slide.minor {
        padding: 0;
        margin-bottom: 0;
        margin-right: 10px;
    }

    .custom-marquee .slide.minor:nth-child(2) {
        grid-row: 2;
        grid-column: 2;
    }

    .custom-marquee .slide.minor:nth-child(3) {
        grid-row: 2;
        grid-column: 3;
    }

    .custom-marquee .slide.minor .slide-top {
        width: unset;
    }

    .custom-marquee .slide.minor .img-cont {
        box-shadow: 0px 4px 12px #00000026;
    }

    .custom-marquee .slide.minor .slide-title {
        font-size: 1.125rem;
    }
}

@media screen and (min-width: 90em) {
    .custom-marquee .slide.major .content-section {
        position: absolute;
        left: 52px;
        margin: 0;
        padding: 60px 40px;
        max-width: 448px;
    }

    .custom-marquee .slide.major .slide-title {
        font-size: 2.625rem;
    }

    .custom-marquee .slide.major .slide-desc {
        font-size: 1.125rem;
    }
}

@media (hover: hover) {
	.custom-marquee .widget-view-all:hover,
    .custom-marquee .slide.major .content-section .read-more:hover {
		text-decoration: none; /*reboot.css override*/
		color: var(--sw-collections-view-all-color-hover);
		background-color: var(--sw-button-primary-bg-hover);
	}

	.custom-marquee .widget-view-all:hover::after,
    .custom-marquee .slide.major .content-section .read-more:hover::after {
		border-color: var(--sw-button-primary-triangle-border-color-hover);
	}

    .custom-marquee .slide .content-section .slide-title:hover,
    .custom-marquee .slide.minor .content-section .read-more:hover,
    .custom-marquee .slide-footer button:hover {
        color: var(--purple-8e);
    }

    .custom-marquee .slide-footer .read-more:hover::before {
        rotate: 360deg;
    }
}