/* * {
  box-sizing: border-box;
  margin: 0%;
  padding: 0%;
} */
.tagName {
  display: none;
}
.tagLabel {
  margin: 9px 18px 9px 18px;
  font-size: 20px;
  font-family: "trajan-pro-regular", "serif";
  text-transform: uppercase;
  color: #fff;
  padding: 15px 20px 15px 20px;
  display: inline-block;
  border: 1px solid #fff;
  cursor: pointer;
  -webkit-transition: background 0.5s cubic-bezier(0.165, 0.84, 0.44, 1),
    color 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  transition: background 0.5s cubic-bezier(0.165, 0.84, 0.44, 1),
    color 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.tagLabel:hover {
  background-color: #fff;
  color: #193a83;
}

.selected {
  background-color: #fff;
  color: #193a83;
}
#tagTitle {
  /* display: none; */
  /* padding-top: 100px; */
  text-align: center;
  text-transform: uppercase;
  color: #004b99;
  font-family: "trajan-pro-regular", "serif";
  font-size: 55px;
  font-weight: normal;
  line-height: 74px;
}
.magGridWrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 95%;
  margin: auto;
  margin-top: 100px;
  margin-bottom: 100px;
}
a {
  text-decoration: none;
  cursor: pointer;
}
.magItem {
  display: flex;
  background-color: #f0f0f0;
  min-height: 340px;
  overflow: hidden;
}
.magVidItem {
  flex-direction: column;
  position: relative;
  height: 700px;
}
.magItemContainer {
  position: relative;
}
.magItemImage {
  width: 50%;
  overflow: hidden;
  position: relative;
  -webkit-transition: -webkit-transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
  transition: -webkit-transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1),
    -webkit-transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.videoImg {
  height: 300px;
  width: 100%;
  margin: auto;
}

.magItemImage > img {
  /* width: 100%;
  height: 100%; */
  /* -webkit-transition: -webkit-transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
  transition: -webkit-transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1),
    -webkit-transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1); */
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}
.magVid {
  width: auto;
  margin: auto;
}
.magVid > img {
  position: static;
  transform: translate(0%, 0%);
  margin: auto;
  width: 100%;
  height: 300px;
  object-fit: contain;
}

.magItemImage:hover {
  transform: scale(1.08);
}
.playBtn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 100%;
  background-color: #fff;
}
.playIcon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-style: solid;
  box-sizing: border-box;
  width: 5px;
  height: 5px;
  border-width: 37px 0px 37px 74px;
  border-width: 5.5px 0 5.5px 6px;
  border-color: transparent transparent transparent #193a83;
  background-color: transparent;
  margin-left: 6px;
}
.magItemContent {
  color: #004b99;
  width: 60%;
  padding: 48px;
  padding-bottom: 30px;
}
.title {
  font-size: 20px;
  line-height: 26px;
  max-width: 380px;
  margin-bottom: 10px;
  font-family: "trajan-pro-regular", "serif";
  font-weight: normal;
  text-transform: uppercase;
}
.vidTitle {
  font-size: 35px;
  line-height: 40px;
  max-width: 380px;
  margin-bottom: 20px;
  color: #004b99;
  font-family: "trajan-pro-regular", "serif";
  font-weight: normal;
}
.text {
  font-size: 13px;
  line-height: 22px;
  font-family: "avenir-medium-regular", "sans-serif";
}

.magTagContent {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
}
.tagText {
  padding: 5px 10px 5px 10px;
  border: 1px solid #c8ccdc;
  margin-right: 2px;
  margin-bottom: 2px;
}
.vidContent {
  width: 80%;
}
.showTag {
  padding-top: 100px;
}

@media (max-width: 1024px) {
  .magGridWrapper {
    grid-template-columns: 100%;
    /* width: 85%; */
    margin-top: 50px;
  }
  #tagTitle {
    font-size: 20px;
    line-height: 30px;
  }
  .showTag {
    padding-top: 50px;
  }

  .magItem {
    min-height: auto;
    flex-direction: column;
    width: 90%;
    margin: auto;
  }
  .magItemImage,
  .magItemContent {
    width: auto;
  }
  .magItemImage > img {
    position: unset;
    transform: translate(0, 0);
    width: -webkit-fill-available;
  }
  .magItemContent {
    padding: 26px;
  }
  .title {
    font-size: 25px !important;
    line-height: 25px !important;
  }
  .text {
    font-size: 15px;
    line-height: 25px;
  }
  .magVidItem {
    height: 650px;
  }
  .magVid > img {
    object-fit: cover;
  }
}
.magItem,
.tagLabel,
.showTag {
  position: relative;
  animation-name: floatup;
  animation-duration: 2s;
}

@keyframes floatup {
  from {
    bottom: -100px;
  }
  to {
    bottom: 0px;
  }
}
