/*Custom Template Builder Elements*/

.history {
    padding-left: 100px;
    padding-top: 100px;
    position: relative;
}
.history-list > div {
    display: inline-block;
    vertical-align: top;
}
.history-list {
    width: 50000px;
}

.history-list-animate {
    margin-left: -160px;
}
.history-list-width-holder {
    max-width: 100%;
}
.history .history-holder {
    padding-left:10vw;
    overflow: visible;
    max-width: 100%;
}

.history .history-holder-bg {
    background: #F7F7F7;
    padding: 40px;
    padding-right: 0px;
    padding-bottom: 0px;
}

.history .history-holder-title {
    font-size: 2rem;
    font-weight: bold;
    color: #2E2E2E;
    overflow: hidden;
    padding-bottom: 30px;
}

.history-item-1 .history-holder-title {
    max-height: 7em;
}


.history-item-1 {
    cursor:auto;
    height: 33.5vw;
    width: 60vw;
    flex-grow: 1;
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
    background: white;
    margin-right: 2rem;
    -webkit-box-shadow: 0px 9px 27px -8px rgba(0,0,0,0.3);
    -moz-box-shadow: 0px 9px 27px -8px rgba(0,0,0,0.3);
    box-shadow: 0px 9px 27px -8px rgba(0,0,0,0.3);
}

.history-item-1-img {
    box-sizing: border-box;
    flex-grow: 0;
    max-width: calc(40% - 40px);
    flex-basis: calc(40% - 40px); 
    background:  no-repeat center center scroll; 
    background-size: cover;
    height: calc(100% - 40px);
    margin: 20px;

}

.history-item-1-content {
    box-sizing: border-box;
    flex-grow: 0;
    max-width: 60%;
    flex-basis: 60%; 
    padding: 20px;
    position: relative;
}


.history-item-type {
    color: #2E2E2E;
    font-size: 2.5rem;
    font-weight: bold;
    padding-bottom: 26px;
    margin-bottom: 20px;
    position: relative;
    margin-top: 3.6vw;
}

.history-item-type::after {
    position: absolute;
    content: '';
    height: 2px;
    width: 66px;
    background: #E51937;
    bottom: 0;
    left: 0;
}

.history-item-subtype {
    font-size: 1.2rem;
    color: #2E2E2E;
    margin-bottom: 20px;
    font-weight: bold;
}

.history-item-content {
    color: #707070;
    max-height: 12em;
	font-size: 0.8rem;
    line-height: 1.3rem;
}

.history-item-content p {
    margin: 0!important;
}

a.history-see-available-date {
    font-size: 16px;
    font-weight: bold;
    width: 165px;
    position: absolute;
    bottom: 130px;
    right: 10px;
    line-height: 1.2!important;
    color: #2E2E2E;
}

body .history .history-nav {
    padding: 100px 0px 50px;
}
body .history .history-nav a,
body .history .history-nav .avia-button-wrap {
    padding: 0!important;
    background: none!important;
    color: #E51937!important;

}

body .history .history-nav .disabled a,
body .history .history-nav .disabled.avia-button-wrap {
    color: #ADAFB2!important;

}

body .history .history-nav .avia-button-wrap a .avia_button_icon {
    font-size: 24px!important;
}


@media screen and (max-width: 768px) {
	
.history .history-holder-title {
    font-size: 1.2rem;
	}

	.history {
    padding-left: 2%;
    padding-top: 6%;
	}
	.history .history-holder-bg {
    padding: 8%;
	}
	.history-list-animate {
    margin-left: -23% !important;
}
	.history-item-1 {
    height: 65.5vw;
    width: 85vw;
}
	.history-item-type {
    display: none;
}

body .history .history-nav {
    padding: 25px 0px 0;
}


}
@media screen and (min-width: 768px) and (max-width: 1280px) {
.history-item-1 {
    height: 46.5vw;
}
}

@media screen and (max-width: 1280px) {

	
.history-item-1-content {
    padding: 13px 20px 13px 13px;
}

.history-item-subtype {
    font-size: 1rem;
    color: #2E2E2E;
    margin-bottom: 20px;
    font-weight: bold;
    margin-top: 5px;
}
}
@media screen and (max-width: 468px) {
.history-item-1 {
    height: 106vw;
}
}
