.lines {
  border-right: solid black 1px;
  border-left: solid black 1px;
}
.gallery {
  position: relative;
  width: 800px;
  height: 250px;
  margin: 40px auto;
  left: 50%;
  transform: translateX(-50%);
}

.photo-box {
  position: absolute;
  width: 250px;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease, z-index 0s linear 0.3s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  cursor: pointer;
}

.photo-box:hover {
  transform: scale(1.1);
  z-index: 10;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  transition-delay: 0s;
}

.centered-heading {
  text-align: center;
}

.Lax1 {
  left: 0;
  z-index: 1;
}
.Lax2 {
  left: 150px;
  z-index: 2;
}
.Rugby {
  left: 300px;
  z-index: 3;
}


fieldset {
  border: 2px solid #333;
  padding: 15px;
  margin-bottom: 20px;
}

legend {
  font-size: 1.3em;
  color: #000000;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 10px;
  font-weight: bold;
}

textarea {
  color: rgba(178, 28, 8, 1);
  width: auto;
  height: 100px;
  max-width: 98%;
  box-sizing: border-box;
  border: 2px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  background-color: white;
  background-position: 10px 10px;
}

label {
  font-size: 1em;
  color: #333;
  display: inline-block;
  width: 200px;
  margin-right: 20px;
}

.longlabel {
  width: 25%;
}

.shortlabel {
  width: 5%;
}

.label {
  width: 12%;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"] {
  margin-left: 10px;
  width: 50%;
  box-sizing: border-box;
  border: 2px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  background-color: antiquewhite;
  background-position: 10px 10px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus {
  width: 80%;
}

input:focus,
textarea:focus {
  background-color: aliceblue;
  color: rgba(150, 45, 62, 1);
}

@media (max-width: 600px) {
  .gallery {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .photo-box {
    position: static;
    width: 90%;
    margin: 10px 0;
    transform: none;
  }

  .photo-box:hover {
    transform: scale(1.03);
  }
}