.container {
    max-width: 990px;
}

header {
    padding-top: 2rem;
    position: relative;
    z-index: 1;
}

header .logo {
    width: 390px;
}

header .issue {
    width: 150px;
    margin-left: 2rem;
}

header .logo img,
header .issue img {
    max-width: 100%;
    width: auto;
    height: auto;
}

header .logo,
header .issue {
    display: inline-block;
}

header .box-top,
header .box-bottom {
    display: flex;
    margin-left: auto;
}

header .box-bottom {
    margin-top: 3rem;
}

header .box-top {
    width: 145px;
}

header .text a {
    color: #1A1A1A;
    font-size: 0.875em;
    margin-right: 0.5rem;
}

header .size {
    display: inline-block;
    cursor: pointer;
    width: 24px;
    height: 23px;
    margin-left: 5px;
    background-repeat: no-repeat;
    background-position: 0 0;
}

header .size:hover,
header .size.active {
    background-position: 0 -24px;
}

header .size.size1 {
    background-image: url(../images/Web-05.png);
}

header .size.size2 {
    background-image: url(../images/Web-06.png);
}

header .size.size3 {
    background-image: url(../images/Web-07.png);
}

#banner {
    margin-top: -5.5rem;
}

#banner .banner-bg {
    background-image: url(../images/emsd_web_landing.gif);
    width: 100%;
    background-position: top center;
    padding-bottom: 52%;
    background-size: contain;
    background-repeat: no-repeat;
    position: relative;
}

#banner .banner-bg::before,
#banner .banner-bg::after {
    content: '';
    position: absolute;
    width: 160px;
    background-repeat: no-repeat;
    background-size: contain;
}

#banner .banner-bg::before {
    background-image: url(../images/emsd_web_landing_left.jpg);
    right: 100%;
    height: 63.8%;
    bottom: 1px;
}

#banner .banner-bg::after {
    background-image: url(../images/emsd_web_landing_right.jpg);
    left: 100%;
    height: 100%;
    bottom: 0px;
}

.content {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    position: relative;
}

.content::before,
.content::after {
    content: '';
    position: absolute;
    width: 160px;
    background-repeat: no-repeat;
    background-size: contain;
}

.content::before {
    background-image: url(../images/content_left.jpg);
    right: 100%;
    height: 63.8%;
    top: 1.5rem;
}

.content::after {
    background-image: url(../images/content_right.jpg);
    left: calc(100% - 1px);
    height: 100%;
    top: 1.5rem;
}

.grid {
    margin: -0.6%;
}

.grid-item {
    float: left;
    width: 33.33%;
    padding: 0.6%;
    height: 550px;
    /* cursor: pointer; */
}

.grid-item.box {
    height: 171px;
    background-color: #85CFEF;
    box-sizing: border-box;
    width: calc(33.3% - 1.2%);
    
    margin-left: 0.6%;
    margin-top: 0.6%;
    margin-bottom: 0.6%;
}

.grid-item .effect {
    width: 100%;
    height: 100%;
    visibility: hidden;
    overflow: hidden;
}

.grid-item .effect.animate__animated {
    visibility: visible;
}

.grid-item .inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    overflow: hidden;
    text-decoration: none;
}


/* .grid-item:hover .inner {
    transform: rotateY(180deg);
} */

.grid-item .front,
.grid-item .back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* Safari */
}

.grid-item .back {
    transform: rotateY(180deg);
}

.grid-item .img {
    width: 100%;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 50%;
    height: 45%;
    background-size: cover;
    transition: all 0.3s ease-in-out;
}
.grid-item .inner:hover .img{
    transform: scale(1.15);
}
.grid-item .text {
    color: #FFF;
    text-align: left;
    padding: 5% 5% 10%;
    position: relative;
    height: calc(55%);
}

.grid-item .text .logo {
    position: absolute;
    left: 50%;
    margin-top: -70px;
    margin-left: -70px;
    width: auto;
    top: 0;
}


.grid-item .text h2 {
    font-weight: 700;
    margin-bottom: 1%;
    line-height: 120%;
    font-weight: bold;
    text-decoration: none;
}

.grid-item .text p {
    margin: 0;
    line-height: 150%;
}

.grid-item .readmore {
    position: absolute;
    bottom: 5%;
    left: 5%;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.875em;
    line-height: 1.2;
}

.grid-item .readmore::before {
    content: '';
    position: relative;
    width: 18px;
    height: 18px;
    margin-right: 0.3rem;
    background-image: url(../images/readmore.jpg);
    background-repeat: no-repeat;
    background-size: contain;
}

.box-2 {
    background-color: #D0E6F2 !important;
}

.grid-item.box.view {
    padding: 0% 3%;
    font-size: 1.2em;
}

.grid-item.box.view .other_links {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.grid-item.box.view a {
    width: 100%;
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #005586;
    line-height: 140%;
    font-weight: 700;
    text-align: center;
}

.grid-item.box.view a:first-child {
    border-bottom: 1px solid #fff;
}


#con2.main .btn {
    display: flex;
    margin-top: 20px;
}

#con2.main .btn a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #868686;
    font-size: 1.6em;
    font-weight: 700;
}

#con2.main .btn a.right {
    display: flex;
    margin-left: auto;
}

#con2.main .btn a.left img {
    margin-right: 10px;
}

#con2.main .btn a.right img {
    margin-left: 10px;
}

span.decrease {
    display: inline-block;
    background: url('../images/kpl/arrow.png') center center no-repeat;
    width: 20px;
    height: 35px;
    margin-right: 10px;
    background-size: 100% auto;
}

.download {
    position: fixed;
	width: 160px;
	height: 160px;
    right: 0;
    /* top: 38.5%; */

    top: calc(380px + 10%);
    background-color: #00244C;
    text-align: center;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
    z-index: 3;
    box-sizing: border-box;
	z-index: 1;
}
.articles{
	/* top: calc(38.5% - 180px); */

    top: calc(200px + 10%);
}
.articles .popup{
	position: absolute;
	top: 0;
	right: 0;
	transform: translateX(100%);
	background-color: rgba(0,36,76,0.85);
	width: 90vw;
	max-width: 775px;
	height: calc(100vh - 260px);
    max-height: 60vh;
	padding: 1rem;
	/* transition: transform 0.3s ease-in-out; */
	z-index: 1;
}
.articles.active .popup{
	transform: translateX(0);
}
.articles .popup ul{
    padding-top: 3.5rem;
    padding-left: 3rem;
    color: #E4E4E4;
    text-align: left;
    width: calc(100% - 160px);
    padding-right: 10%;
    height: auto;
    max-height: 100%;
    overflow: auto;
}

.articles .popup ul li{
	position: relative;
	margin-bottom: 1rem;
}

.articles .popup ul li a{
	padding: 0;
	display: block;
}
.articles .popup ul li::before{
	content:'';
	display: block;
	position: relative;
	width: 1rem;
	height: 1px;
	background-color: #E4E4E4;
	margin-bottom: 0.8rem;
}
.download img{
	max-height: 50px;
	margin-bottom: 1rem;
}

.download a {
    color: #E4E4E4;
    text-decoration: none;
	position: relative;
	width: 100%;
	height: 100%;
	z-index: 2;
    padding: 10px 15px;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
}

.download a:hover {
    text-decoration: underline;
}

@media only screen and (max-width: 991px) {
    .grid-item {
        width: 48%;
        margin: 1%;
        height: 65vw;
    }
	.grid-item.box {
		
		width: calc(48% - 1.15%);
		margin-left: 1.5%;
		margin-top: 1%;
		margin-bottom: 1%;
		margin-right: 0;
		height: 175px;
	}
    .desktop {
        display: none;
    }

    /*.grid-item.box { display:none; }*/
    #banner .banner .text1 {
        padding-top: 35vw;
    }
	header .issue{
		margin-top: auto;
		margin-left: 1rem;
	}
	header .box-bottom{
		flex-direction: column-reverse;
		margin-top: auto;
	}
	header .box-bottom .font-size{
		display: flex;
		justify-content: flex-end;
	}
	header .text a{
		margin-right: 0rem;
		text-align: end;
	}
	header .box-top img{
		max-width: 100%;
		width: auto;
		height: auto;
	}
	#banner {
		margin-top: 0.5rem;
	}
	#banner .banner-bg::before{
		background-size: cover;
	}

}

@media only screen and (max-width: 660px) {
    .grid-item {
        height: 90vw;
    }
}

@media only screen and (max-width: 610px) {
    .grid-item {
        width: 98%;
        margin: 1%;
        height: 105vw;
    }
	.grid-item.box {
		
		width: calc(98% - 1.15%);
		margin-left: 1.5%;
		margin-top: 1%;
		margin-bottom: 1%;
		margin-right: 0;
		height: 175px;
	}

    section#section1 .main .left,
    section#section1 .main .right {
        float: none;
        width: 100%;
    }

    section#section1 .main .left {
        margin-bottom: 10%;
    }

    section#section1 .main .left img {
        width: 60%;
        display: block;
        margin: 0 auto;
    }

    .desktop2 {
        display: none;
    }
    .articles{
        width: 50vw;
        left: 0;
        bottom: 0;
        top:auto;
    }
    .download{
        width: 50vw;
        right: 0;
        bottom: 0;
        top:auto;
        height: 120px;
    }
    .download img{
        max-height: 45px;
        margin-bottom: 0.5rem;
    }
    .download a{

    padding: 3%;
    }
    .articles .popup {
        position: fixed;
        top: 0;
        left: 0;
        right: auto;
        width: 100vw;
        height: calc(100vh - 120px);
    }
    .articles .popup ul {
        max-height: 100%;
        width: 100%;
    }
}

@media only screen and (max-width: 575.99px) {
    .grid-item:not(.box) {
        height: 100vw;
        min-height: 550px;
        width: 100%;
        margin: 0 0 1%;
    }
	.grid-item .img,
	.grid-item .text{
		height: 50%;
	}
    #con2.main .btn a {
        font-size: 1.4em;
    }
	header .logo{
		width: 100%;
		max-width: 250px;
	}
	header .issue{
		margin-left: 0;
		margin-top: 1rem;
		max-width: 100px;
	}
	header .box-bottom{
		margin-top: auto;
	}
    header .box-top{
        width: 100%;
    }
    header .text a{
        font-size: 0.75em;
        white-space: nowrap;
    }
    #banner .banner-bg {
        padding-bottom: 52.05%;
    }
    #banner .banner-bg::before{
        right: 99.6%;
        height: 63.8%;
        bottom: 0px;
    }
}
