.image-downloader-hd:after {
  content: "";
  background-image: url("/wp-content/themes/toyota-media/assets/img/icon-download-hd.png");
  background-size: 20px 30px;
  background-position: center;
  background-repeat: no-repeat;
  width: 20px;
  height: 30px;
  position: absolute;
  bottom: 5px;
  left: 5px;
  background-color: #282830;
  padding: 15px;
  cursor: pointer;
  display: block;
}
.image-downloader-hd:hover:after {
  background-color: #f02;
  transition: all 0.3s ease-in-out;
}

.archive-header {position:relative}
.archive-header img {width:100%;height:auto;}
.archive-header h1 {position:absolute;top:20px;left:0px;background-color:#FFF;padding:10px;}

@media only screen and (max-width: 564px) {
.archive-content .vehicles.col-10, .mec-content .vehicles.col-10 {flex: 0 0 100%;max-width: 100%;}
}
@media only screen and (min-width: 565px) {
.archive-content .vehicles.col-sm-6, .mec-content .vehicles.col-sm-6 {flex: 0 0 50%;max-width: 50%;}
}
@media only screen and (min-width: 1000px) {
.archive-content .vehicles.col-xl-3, .mec-content .vehicles.col-xl-3 {flex: 0 0 25%;max-width: 25%;}
}

.archive-listing, .mec-listing {background-color:#ebebeb;text-align:center;padding-bottom:0;}
.archive-listing .entry-header {width:100%;padding-top:0;}
.archive-listing .image-wrapper, .mec-listing .image-wrapper {border:0px;}

@media only screen and (max-width: 564px) {
.archive-listing .image-wrapper.image-wrapper--sm {height:auto;}
}
@media only screen and (min-width: 565px) {
.archive-listing .image-wrapper.image-wrapper--sm {height:160px;}
}
@media only screen and (min-width: 625px) {
.archive-listing .image-wrapper.image-wrapper--sm {height:185px;}
}
@media only screen and (min-width: 690px) {
.archive-listing .image-wrapper.image-wrapper--sm {height:200px;}
}
@media only screen and (min-width: 750px) {
.archive-listing .image-wrapper.image-wrapper--sm {height:220px;}
}
@media only screen and (min-width: 850px) {
.archive-listing .image-wrapper.image-wrapper--sm {height:240px;}
}
@media only screen and (min-width: 900px) {
.archive-listing .image-wrapper.image-wrapper--sm {height:260px;}
}
@media only screen and (min-width: 950px) {
.archive-listing .image-wrapper.image-wrapper--sm {height:290px;}
}
@media only screen and (min-width: 1000px) {
.archive-listing .image-wrapper.image-wrapper--sm {height:140px;}
}
@media only screen and (min-width: 1100px) {
.archive-listing .image-wrapper.image-wrapper--sm {height:160px;}
}
@media only screen and (min-width: 1200px) {
.archive-listing .image-wrapper.image-wrapper--sm {height:180px;}
}
@media only screen and (min-width: 1300px) {
.archive-listing .image-wrapper.image-wrapper--sm {height:200px;}
}
@media only screen and (min-width: 1500px) {
.archive-listing .image-wrapper.image-wrapper--sm {height:220px;}
}
@media only screen and (min-width: 1600px) {
.archive-listing .image-wrapper.image-wrapper--sm {height:250px;}
}
.mec-listing .image-wrapper.image-wrapper--sm {height:auto;}
.archive-listing .image-wrapper.image-wrapper--sm img, .mec-listing .image-wrapper.image-wrapper--sm img {width:100%;}

.archive-link {border:1px solid #FFF;padding:15px 50px;font-weight:bold;display:block;max-width:80%;margin:0 auto;margin-top:20px;}
a:hover.archive-link {background-color:#f50823;color:#FFF;}

.archive-listing-title {max-width:80%;margin:0 auto;border-left:3px solid #f50823;text-align:left;padding-left:10px;}
.archive-listing-title span {display:block;font-family: "ToyotaType-Regular";font-size:0.9em;color:#6f6f73;}

@media only screen and (min-width: 620px) {
  .archive-header h1 {top:50px;}
}
@media only screen and (min-width: 900px) {
  .archive-header h1 {top:100px;}
}

.mega-menu-item-28417 ul.mega-sub-menu .mega-sub-menu .mega-sub-menu li {width:100%!important;}

.wp-block-table table td {border-collapse: collapse;border:0;}


.mec-row-spacing {padding-top:50px;padding-bottom:30px;}
a.mec-button {width:auto;}
.mec-title {padding:10px 0 30px 0;}
.mec-centred {text-align:center;display:block;}
h2.mec-centred {text-align:center;border-bottom:1px solid #ebebeb;display:block;margin-bottom:50px;}
h2.mec-white-line {border-bottom:1px solid #fff;}
.mec-para-top-space {padding-top:0px;}

@media only screen and (max-width: 767px) {
	.mec-para-top-space {padding-top:20px;}
}

.feature__video-container {display: block;overflow: hidden;height:400px;}

@media only screen and (min-width: 800px) {
	.feature__video-container {height:500px;}
}

.feature__video {height: 100%;-o-object-fit: cover;object-fit: cover;width: 100%;}

.mec-header {overflow: hidden;height:600px;}
.mec-header img {position:absolute;height: 100%;-o-object-fit: cover;object-fit: cover;position: absolute;width: 100%;}
.mec-background {padding:20px 30px;}
.mec-background h2 {padding-bottom:20px;}
.mec-para h3 {padding-bottom:20px;}

.mec-programme h2 {padding-bottom:20px;}
.mec-programme-content .bgr-mec {background-color:#f8b05b;}
.mec-programme-content h3 {padding-bottom:0;margin-bottom:0;display:block;width:100%;}
.mec-programme-content p {display:block;width:100%;}

.mec-form {margin-top:30px;}
.mec-form {display: flex;justify-content: center;}
.mec-form form {width: 100%;max-width: 700px; /* adjust to taste */}

/* 1) Make everything size predictably */
.mec-form, .mec-form * { box-sizing: border-box; }

/* 2) Make common “row” wrappers flex (covers lots of plugins/themes) */
.mec-form form p,
.mec-form form .form-row,
.mec-form form .row,
.mec-form form .fields,
.mec-form form .field-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}

/* 3) Make each field wrapper flexible */
.mec-form form p > span,
.mec-form form .form-row > *,
.mec-form form .row > *,
.mec-form form .fields > *,
.mec-form form .field-wrap > * {
  flex: 1 1 260px;   /* grow, shrink, wrap at ~260px */
  min-width: 220px;  /* prevents silly tiny inputs */
}

/* 4) Inputs should fill their wrapper */
.mec-form input[type="text"],
.mec-form input[type="email"],
.mec-form input[type="tel"],
.mec-form input[type="url"],
.mec-form select,
.mec-form textarea {
  width: 100%;
  max-width: 100%;
}

/* 5) Textareas usually want full width */
.mec-form textarea {
  flex-basis: 100%;
  min-height: 140px;
}
.mec-form input[type="submit"],
.mec-form button[type="submit"] {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 20px 0 0 0;
}
/* Make the CF7 wrapper behave properly */
.mec-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}
/* Keep label as a container */
.mec-form label {
  display: block;
}

/* Hide ONLY the label text (without hiding the input inside) */
.mec-form label {
  text-indent: -9999px;
  overflow: hidden;
  white-space: nowrap;
}

/* Bring the input wrapper back into view */
.mec-form label .wpcf7-form-control-wrap {
  display: block;
  text-indent: 0;
  overflow: visible;
  white-space: normal;
  text-align:center;
}

/* Center the entire date field row */
.mec-form .wpcf7-form-control-wrap[data-name="date-492"]{
  display:block;
  margin:0 auto;
  float:center;
  text-align: center;
  width: 100% !important;
}
.mec-form .wpcf7-form-control-wrap[data-name="date-492"] input[type="date"]{
  display: inline-block;
  width: 100% !important;
}

.wpcf7-submit {
  background-color: #f02 !important;
  color: #fff !important;
}
.wpcf7-submit {
  font-size: 13px;
  margin: 20px 0.5rem 0.5rem 0 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0.6em 1.9em;
  border-radius: 100px;
  border:0;
  display: inline-block;
  transition: 0.3s;
  text-align: center;
  text-decoration: none !important;
  -moz-box-shadow: 0em -0.3rem 0em rgba(0, 0, 0, 0.1) inset;
  position: relative;
}

.timeline{
  max-width:720px;
  margin:auto;
  position:relative;
}

/* vertical line */
.timeline::before{
  content:"";
  position:absolute;
  left:139px;
  top:0;
  bottom:0;
  width:2px;
  background:#e10600;
}

.event{
  display:grid;
  grid-template-columns:100px 60px 1fr;
  gap:10px;
  margin-bottom:32px;
  align-items:flex-start;
}

.time{
  text-align:right;
  font-size:14px;
  color:#444;
  margin-top:3px;
  font-weight:bold;
}

.dot{
  width:14px;
  height:14px;
  background:#e10600;
  border-radius:50%;
  margin-left:23px;
  margin-top:7px;
}

.details h3{
  margin:0 0 6px;
}

.details p{
  margin:2px 0;
  color:#555;
}

/* Mobile */
@media (max-width:640px){


}
h2.mec-prog-title span {display:block;font-weight:400 !important;font-size:16px;}

@media (max-width:900px){
 .mec-programme .col-sm-6 {display:block;width:100%;flex: 0 0 100%;max-width: 100%;}
}