.box {
  position: relative;
  overflow: hidden;
  color: #fff;
}

.grid img {
  position: relative;
  display: block;
  min-height: 100%;
  max-width: 100%;
  opacity: 1;
  transition: opacity 0.5s;
}

.grid:hover img {
  opacity: 1;
  transition: .5s;
}

.grid:hover img {
  opacity: 0.7;
  transition: .5s;
}

@media (min-width: 992px) {
  .grid:hover img {
    opacity: 0.15;
    transition: .5s;
  }
}

.box .title-wrapper {
  position: absolute;
  width: 100%;
  position: absolute;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  transform: scale(1);
  bottom: 0px;
  transition: all 0.4s;
}

@media (min-width: 992px) {
  .box:hover .title-wrapper {
    transform: scale(0);
    transition: all 0.4s;
  }
}

.box .title {
  text-align: center;
  font-size: 18px;
  line-height: 1.2;
  margin-bottom: 0px;
  text-shadow: 1px 1px 1px #000, -1px -1px 1px #000, 1px -1px 1px #000, -1px 1px 1px #000, 2px 2px 2px #000, -2px -2px 2px #000, 2px -2px 2px #000, -2px 2px 2px #000;
}

@media (min-width: 576px) {
  .box .title {
    font-size: 26px;
  }
}

@media (min-width: 1200px) {
  .box .title {
    font-size: 30px;
  }
}

@media (min-width: 1400px) {
  .box .title {
    font-size: 34px;
  }
}

.box .sub-title {
  text-align: center;
  font-size: 17px;
  margin-bottom: 0px;
  text-shadow: 1px 1px 1px #000, -1px -1px 1px #000, 1px -1px 1px #000, -1px 1px 1px #000, 2px 2px 2px #000, -2px -2px 2px #000, 2px -2px 2px #000, -2px 2px 2px #000;
}

@media (min-width: 576px) {
  .box .sub-title {
    font-size: 20px;
  }
}

@media (min-width: 1200px) {
  .box .sub-title {
    font-size: 24px;
  }
}

@media (min-width: 1400px) {
  .box .sub-title {
    font-size: 26px;
  }
}

.box .description {
  display: none;
}

.box .description {
  position: absolute;
  text-align: center;
  opacity: 0;
  padding: 0 15px;
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.4;
  text-shadow: 1px 1px 2px #000;
  transition: all 0.6s;
  transform: scale(0);
}

@media (min-width: 992px) {
  .box .description {
    display: block;
    font-size: 16px;
    padding: 0 10px;
  }
}

@media (min-width: 1200px) {
  .box .description {
    font-size: 18px;
  }
}

@media (min-width: 1400px) {
  .box .description {
    font-size: 20px;
    padding: 0 20px;
  }
}

.box:hover .description {
  opacity: 1;
  transition: all 0.6s;
  transform: scale(1.0);
}

/* Mobile Description Styling */

.mobile-description {
  margin: 15px 5px 0px 5px;
  font-size: 17px;
  line-height: 1.4;
  text-shadow: 1px 1px 2px #000;
  margin-bottom: 0;
}

.toggle-link {
  font-size: 16px;
  display: inline-block;
  margin-top: 4px;
  margin-left: 4px;
  padding: 0;
  text-align: left;
  color: #007bff;
  text-decoration: underline;
  cursor: pointer;
}

.toggle-link:focus, .toggle-link:active, .toggle-link:hover {
  color: #5aa0ff;
  text-decoration: underline;
  box-shadow: none;
}

