.legacy {
    /*padding: 10vw 0 0;*/
    display: grid;
    grid-template-columns: 1em minmax(auto, 1200px) 1em;
    justify-content: center;
    text-align: center;
    background-image: linear-gradient(
        174deg, 
        rgba(59, 59, 59, 0.8) -90%, 
        rgba(0, 0, 0, 0.8) 100%
    ), url(../images/HistoryCover.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;
    color: var(--white);
}

.legacy-container{
	padding-block: 5em;
	margin-bottom: 5em;
}

.legacy h2 {
    grid-row: 1 / 2;
    grid-column: 2 / 3;
    z-index: 4;
}

.storia{
	padding-top: 3em;
}

.legacy-text {
	padding-bottom: 10em;
	margin-bottom: 5em;
}

.legacy span {
    display: inline-block;
}

.legacy-text {
    grid-row: 2 / 3;
    grid-column: 2 / 3;
    /*margin-bottom: 5em;*/
    max-width: 600px;
    justify-self: center;
}

.locations {
    /*padding: 1em 0;*/
    grid-row: 3 / 4;
    grid-column: 1 / 4;
    background-color: var(--arthurMurrayBlue);
    color: var(--white);
    text-align: center;
    position: relative;
	padding-bottom: 4em
}

.locations h2 {
	margin-top: 1em;
}

.locations::before {
    content: "";
    background-image: linear-gradient(
		175deg, 
		rgba(235, 235, 235, 0) 0%, 
		rgba(235, 235, 235, 0) 50%, 
		var(--arthurMurrayBlue) 51%, 
		var(--arthurMurrayBlue) 100%);	
    background-repeat: no-repeat;
    display: block;
	margin-top: -10em;
	height: 10em;
    z-index: 1;
    line-height: 0;
}

.locations a {
    color: var(--lightgray);
    text-decoration: underline;
    transition: all 0.4s ease-out;
}

.location-cards {
    display: grid;
    grid-template-columns: 1;
    grid-template-rows: 3;
    grid-gap: 1em;
    gap: 1em;
    list-style-type: none;
    margin-bottom: 1em;
}

.location-card-item {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(140px, 1fr) auto;
    margin: 0 auto;
    flex-direction: column;
    transition: 0.4s ease-out;
    text-align: center;
    overflow: hidden;
    z-index: 2;
    border: 2px solid transparent;
    max-width: 330px;
    border-radius: 10px;
}

.location-card-item picture {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    filter: brightness(0.8);
    transition: 0.5s;
}

.location-card-item:hover picture {
    filter: brightness(1);
    transition: 0.5s;
}

.location-card-item h3 {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    align-self: end;
    background-color: var(--arthurMurrayYellow);
    padding: 0.5rem 0;
    margin: 0;
    font-size: var(--h5);
    z-index: 10;
    font-weight: 400;
}

.location-cards .location-main-link {
    text-decoration: none;
    display: flex;
    justify-content: center;
    width: 100%;
    color: var(--offwhite);
    transition: 0.5s;
}

.location-cards .btn {
    font-weight: 400;
    font-size: 0.9em;
    border-bottom: none;
    border-radius: 25px;
    letter-spacing: 1px;
    text-align: center;
    margin: 0.5em auto;
    background: var(--offwhite);
    color: var(--arthurMurrayBlue);
    border: 1px solid var(--arthurMurrayBlue);
    padding: 0.3rem 1rem 0.2rem;
    width: 140px;
    transition: all 0.4s ease-out;
    text-decoration: none;
    justify-self: center;
    align-self: flex-end;
}

.location-card-item .btn:hover,
.location-card-item:hover .btn {
    background: var(--arthurMurrayBlue);
    font-weight: 400;
    color: var(--offwhite);
    transition: all 0.4s ease-out;
}

.location-card-item:hover {
    cursor: pointer;
    border: 2px solid var(--arthurMurrayYellow);
}

.location-card-item .location-main-link {
    color: var(--arthurMurrayBlue);
}

.gold-text {
    color: var(--arthurMurrayYellow);
}

.amSeal {
    display: none;
}

@media screen and (min-width: 650px) {
    .location-cards {
        grid-template-columns: repeat(2, minmax(calc(50% - 0.5em), 350px));
        justify-content: center;
    }
    .locations {
        /*padding: 0 0 4em;*/
    }
    .location-card-item {
        max-width: 350px;
        font-size: 80%;
    }
    .location-card-item h3 {
        font-size: var(--h4);
    }
    .legacy-text {
        /*margin-bottom: 7em;*/
    }
    .locations::before {
        /*margin: -6.5em 0 -8vw;*/
    }
}

@media screen and (min-width: 857px) {
    .legacy {
        grid-template-columns: minmax(1em, 1fr) repeat(2, minmax(auto, 600px)) minmax(1em, 1fr);
    }
    .legacy h2 {
        grid-row: 1 / 2;
        grid-column: 2 / 4;
        /*margin: -1em 0 0.3em;*/
    }
    .legacy-text {
        grid-row: 2 / 3;
        grid-column: 2 / 4;
        z-index: 4;
        /*margin-bottom: 8em;*/
    }
    .locations::before {
        /*margin: -7.5em 0 -8vw;*/
    }
    .locations {
        grid-row: 3 / 4;
        grid-column: 1 / 5;
    }
    .location-cards {
        grid-row: 4 / 5;
        grid-column: 2 / 4;
        grid-template-columns: repeat(2, 350px);
        justify-content: center;
        margin-bottom: 1.5em;
    }
    .location-card-item {
        max-width: 350px;
    }
}

@media screen and (min-width: 930px) {
    .legacy {
        text-align: left;
        color: var(--offwhite);
        /*padding: 0 0 2em;*/
    }
    .footprints {
        margin: 0;
        background-repeat: no-repeat;
        /*padding: 9em 0 0;*/
        background-attachment: fixed;
    }
    .legacy h2,
    .legacy-text {
        grid-column: 3 / 4;
    }
    .legacy-text {
        /*margin-bottom: 10em;*/
        /*padding-bottom: 2em;*/
    }
    .locations::before {
        /*margin: -9.5em 0 -8vw;*/
    }
}

@media screen and (min-width: 1050px) {
    .locations {
        background-attachment: fixed;
    }
    .legacy-text {
        /*margin-bottom: 18vw;*/
    }
    .location-cards {
        grid-template-columns: repeat(3, 333px);
    }
    .locations::before {
        /*margin: -20.5vw 0 -10vw;*/
    }
    .amSeal {
        width: 250px;
        height: 250px;
        border-radius: 50%;
        display: block;
    }
}

@media screen and (min-width: 1236px) {
    .legacy {
        /*padding: 5vw 0 10vw;*/
        grid-template-columns: 1fr repeat(2, minmax(auto, 600px)) 1fr;
    }
    .legacy h2,
    .legacy-text {
        /*grid-column: 2 / 3;*/
    }
    .locations::before {
        /*margin: -21vw 0 -10vw;*/
    }
    .location-cards {
        /*grid-template-columns: repeat(2, calc(50% - 1em));*/
    }
}
