/* Visual Studio Formatting Code- Not needed on actual site */

.id7-main-content-area>.id7-main-content, .container {
    padding:0;
    margin:0;
}

main {
    font-family: 'Raleway', sans-serif;
}

hr {
    margin-top: 5px;
    margin-bottom: 5px;
    border: 0;
    border-top: 1px solid #d6d4d4;
}

* Header Image */

div.header-img {
    display:flex;
    height:35vh;
    min-height:250px;
    background-image: url("images/po-main-pic.jpg");
    background-position: center;
    background-size:cover;
}

.header-container {
    display: flex;
    flex-grow: 1;
    align-items: center;
    background:rgba(0,0,0,0.2)
}

.header-caption {
    display:flex;
    color: white;
    font-size:2.5em;
    text-shadow: 2px 2px black;
    font-variant: small-caps;
    text-align:center;
    padding:10px;
}


/*--------------- If Grid is supported --------------*/

@supports (display: grid) { 
    @media screen and (min-width:425px){    
        .card{
            display:grid;
        }

        .card-item a {
            text-decoration:none;
        }
        .card img {
            grid-column:1;
            grid-row:1;
        }

        .caption {
            grid-column: 1;
			grid-row: 1;
			opacity: 1;
			text-transform: uppercase;
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: flex-end;
			transition: 300ms;
			transition-timing-function: ease-out;
			background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0),rgba(0,0,0,0.1), rgba(0,0,0,0.6));
        }

        .caption h4 {
            color: white;
			font-size: 1.8em;
        }

        a:focus .caption,
        a:hover .caption{
            background: rgba(0, 154, 229, 0.8);
        }
    }
}
        

/* Header Img Media Queries */

@media screen and (min-width:200px) {
    .header-img {
		background-image: url("images/po-main-pic.jpg");
		background-position: center;
		display:flex;
		height:35vh;
		min-height:250px;
    }
}

@media screen and (min-width:400px) {
    .header-img {
        background-image: url("images/po-background.jpg");
        background-position: right;
		
    }
}

@media screen and (min-width:768px) {
    .header-container {
        background:none;
        justify-content: center;
        flex: 0 0 65%;
    }   
}

@media screen and (min-width:990px) {
    .header-caption {
        font-size:4em;
    }   
}