#page-intro {
	height: 250px;
    position: relative;
	padding: 0;
}

#page-intro.large {
	height: 400px;
}

#page-intro img {
    position: absolute;
    inset: 0;
    opacity: 1;
    z-index: 1;
	top: 0;
	left: 0;
}

#page-intro.large img.fade-out {
    opacity: 0;
    transition: opacity 1.5s ease-out;
}

#page-intro.large img.active {
    z-index: 3;
}

#page-intro.large img.next {
    z-index: 2;
}

#page-intro .banner {
    position: absolute;
    top: 50px;
    right: 50px;
    display: block;
	width: auto;
    max-width: 90%;
	padding: 15px;
	background-color: rgba(0, 0, 0, 0.6);
    z-index: 5;
}

#page-intro.large .banner {
	backdrop-filter: blur(3px);
    background-color: transparent;
}

@media (min-width: 701px) and (min-height: 501px) {
    #page-intro.large .banner {
        transform: scale(1.5);
        transform-origin: top right;
    }
}

#page-intro .banner h2 {
	color: #f3c201;
	font-size: 20pt;
	font-weight: bold;
    text-align: right;
    margin: 0;
}

#page-intro .banner p {
	font-size: 11pt;
	color: #eee;
    margin: 0;
	margin-top: 10px;
}

#page-intro.std .banner {
    display: grid;
    justify-items: end;
    padding: 0;
    background-color: transparent;
}

#page-intro.std .banner h2 {
    padding: 10px 15px;
    color: #111;
    line-height: 1.1;
    background-color: #f3c201;
}

#page-intro.std .banner p {
    box-sizing: border-box;
    min-width: 100%;
    max-width: 100%;
    padding: 12px 15px;
    border-top: 2px solid #f3c201;
    margin-top: 0;
    background-color: rgba(0, 0, 0, 0.8);
    line-height: 1.4;
    text-align: right;
}

#page-intro.large .banner h2 {
	text-shadow: 0 0 5px black;
}

#page-intro.large .banner p {
	text-shadow: 0 0 3px black;
}

#page-intro.large .banner p strong {
	color: #f3c201;
}

@media (max-width: 1300px) {
    #page-intro.std {
        width: 100%;
        height: auto;
        min-height: 150px;
        aspect-ratio: 130 / 25;
        overflow: hidden;
    }

    #page-intro.large {
        width: 100%;
        height: auto;
        min-height: 200px;
        aspect-ratio: 13 / 4;
        overflow: hidden;
    }

    #page-intro.std .banner {
        top: 50%;
        right: 10px;
        transform: translateY(-50%);

        h2 {
            font-size: 16pt;
        }
    }

    #page-intro.std img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: left center;
    }

    #page-intro.large img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }
}

@media (max-width: 700px) {
    #page-intro.large .banner {
        top: 50%;
        right: 10px;
        transform: translateY(-50%);
    }

    #page-intro.std .banner {
        inset: auto;
        top: 50%;
        right: 10px;
        display: grid;
        width: max-content;
        max-width: calc(100% - 20px);
        transform: translateY(-50%);
    }

    #page-intro.std .banner h2 {
        position: static;
        padding: 7px 10px;
        font-size: 14pt;
    }

    #page-intro.std .banner p {
        position: static;
        width: auto;
        padding: 7px 10px;
        font-size: 10pt;
        line-height: 1.3;
    }
}

@media (max-width: 1300px) and (max-height: 500px) {
    #page-intro.large {
        height: auto;
        min-height: 150px;
        max-height: none;
        aspect-ratio: 130 / 25;
        overflow: hidden;
    }

    #page-intro.large img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }

    #page-intro.large .banner {
        top: 50%;
        right: 10px;
        transform: translateY(-50%);
    }
}
