/* Grid Container */

.grid-container {
  max-width: 1200px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 20px;
  border-radius: 30px; /* A) FRONT FRAME: give it nice smooth edges */
}

.frame {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.frame-text {
  width: 50%;
  padding: 20px;
}

.frame-image {
  width: 50%;
  padding: 20px;
}

.button-container {
  text-align: center;
}


/* Grid Item */

.grid-item {
  background-color: #fff;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 30px; /* A) FRONT FRAME: give it nice smooth edges */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.grid-item:hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.grid-item-button {
  background-color: #5511F8; /* B) button VIEW PROJECT: background color */
  color: #fff; /* B) button VIEW PROJECT: text font white */
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 10px; /* B) button VIEW PROJECT: nice smooth edges */
  display: block; /* add this */
  margin: 0 auto; /* add this */
  text-align: center; /* add this */
}

.grid-item-button:hover {
  background-color: #5511F8;
  color: #000; /* B) button VIEW PROJECT: text change color to BLACK on hover */
}

.title-text {
  color: #48b6f3; /* C) title text Reptiles and Exotics Dublin: change text color */
}

.full-website {
  font-weight: bold; /* D) Text Full Website: make it bold */
  color: #000; /* D) Text Full Website: change text color to BLACK */
}

/* Modal */

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal.show {
  display: block; /* add this to show the modal when the show class is added */
}

.modal-content {
  width: 300px; /* adjust the width as needed */
  overflow: auto; /* add this to enable scrolling if the content exceeds the height */
  padding: 20px; /* add some padding for better layout */
  border-radius: 30px; /* add a border radius for a rounded corner effect */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); /* add a box shadow for a nice effect */
}

.modal-content {
  background-color: #fff;
  margin: 20% auto;
  padding: 20px;
  border: 1px solid #ddd;
  width: 80%;
  border-radius: 30px; /* add this to give the modal a smooth edge */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); /* add a subtle shadow to give it some depth */
}

.modal-close {
  background-color: #000; /* initial background color */
  color: #8B0A1A; /* initial text color */
  border: none; /* remove default border */
  border-radius: 30px; /* give it a smooth edge */
  padding: 10px 20px; /* add some padding */
  cursor: pointer; /* change cursor on hover */
  margin: 0 10px;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.modal-close:hover {
  background-color: #8B0A1A; /* dark red on hover */
  color: #000; /* black text on hover */
}

.modal-openweb {
  background-color: #48b6f3; /* initial background color */
  color: #ffffff; /* initial text color */
  border: none; /* remove default border */
  border-radius: 30px; /* give it a smooth edge */
  padding: 10px 20px; /* add some padding */
  cursor: pointer; /* change cursor on hover */
  margin: 0 10px;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.modal-openweb:hover {
  background-color: #00FF00; /* dark red on hover */
  color: #000; /* black text on hover */
}

.modal-close:hover,.modal-close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

/* Responsive Design */

@media only screen and (max-width: 768px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (max-width: 480px) {
  .grid-container {
    grid-template-columns: repeat(1, 1fr);
  }
}