@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@500&display=swap");
.photos-grid-container {
  height: 100%;
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  grid-gap: .5em;
  align-items: start;
}
@media (max-width: 580px) {
  .photos-grid-container {
    grid-template-columns: 1fr;
  }
}
.photos-grid-container .img-box {
  border: none;
  position: relative;
}
.photos-grid-container .img-box:hover .transparent-box {
  background-color: rgba(0, 0, 0, 0.6);
}
.photos-grid-container .img-box:hover .caption {
  transform: translateY(-5px);
}
.photos-grid-container img {
  border-radius: 4px;
  max-width: 100%;
  display: block;
  height: auto;
  box-shadow: 0px 2px 5px 0px #00000030;
}
.photos-grid-container .caption {
  color: white;
  transition: transform 0.3s ease, opacity 0.3s ease;
  font-size: 1.5rem;
}
.photos-grid-container .transparent-box {
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 0;
  left: 0;
  transition: background-color 0.3s ease;
  display: flex !important;
  justify-content: center;
  align-items: center;
}
.photos-grid-container .transparent-box .caption {
  font-size: 5em;
}
.photos-grid-container .main-photo {
  grid-row: 1;
  grid-column: 1;
  height: 100%;
}
.photos-grid-container .main-photo a {
  height: 100%;
}
.photos-grid-container .main-photo a img {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}
.photos-grid-container .sub .img-box:nth-child(2) a img{
  border-top-right-radius: 4px;
}
.photos-grid-container .sub .img-box:nth-child(4) a img{
  border-bottom-right-radius: 4px;
}
.photos-grid-container .sub .img-box:nth-child(4) a .transparent-box{
  border-bottom-right-radius: 4px;
}

.photos-grid-container .sub {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  grid-gap: .5em;
}
.photos-grid-container .sub:nth-child(0) {
  grid-column: 1;
  grid-row: 1;
}
.photos-grid-container .sub:nth-child(1) {
  grid-column: 2;
  grid-row: 1;
}
.photos-grid-container .sub:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
}
.photos-grid-container .sub:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}
.hide-element {
  border: 0;
  clip: rect(1px 1px 1px 1px);
  /* IE6, IE7 */
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}
@media screen and (min-width: 1280px) {
  .container {
    margin: 0 auto;
    width: 1250px;
  }
}

.main-photo img{
    height: 520px !important;
    width: 100%;
    object-fit: cover;
}

.sub img{
    height: 256px !important;
    width: 100%;
    object-fit: cover;
}

@media screen and (max-width: 768px) {
  .main-photo img{
    height: 250px;
    width: 100%;
    object-fit: cover;
  }

  .sub img{
      height: 125px;
      width: 100%;
      object-fit: cover;
  }
}
