.bgimg1 {
  background-image: url('../media/house/DudeAtTheRock.png'); /* Specify the image path */
  background-size: cover; /* Adjust image size to cover the div */
  background-position: center; /* Center the image within the div */
  background-repeat: no-repeat; /* Prevent image repetition */
  transition: 1s ease-in-out;  
}

.bgimg2 {
  background-image: url('../media/house/aWoodwardersJobNeverEnds.png'); /* Specify the image path */
  background-size: cover; /* Adjust image size to cover the div */
  background-position: center; /* Center the image within the div */
  background-repeat: no-repeat; /* Prevent image repetition */
  transition: 1s ease-in-out;  
}

.bgimg3 {
  background-image: url('../media/house/DARCentrystaircase.png'); /* Specify the image path */
  background-size: cover; /* Adjust image size to cover the div */
  background-position: center; /* Center the image within the div */
  background-repeat: no-repeat; /* Prevent image repetition */
  transition: 1s ease-in-out;  
}

.bgimg4 {
  background-image: url('../media/house/affiliates.png'); /* Specify the image path */
  background-size: cover; /* Adjust image size to cover the div */
  background-position: center; /* Center the image within the div */
  background-repeat: no-repeat; /* Prevent image repetition */
  transition: 1s ease-in-out;  
}

.bgimg5 {
  background-image: url('../media/house/DARCrechall1.png'); /* Specify the image path */
  background-size: cover; /* Adjust image size to cover the div */
  background-position: center; /* Center the image within the div */
  background-repeat: no-repeat; /* Prevent image repetition */
  transition: 1s ease-in-out;  
}

.bgimg6 {
  background-image: url('../media/house/DARChittingthebooks.png'); /* Specify the image path */
  background-size: cover; /* Adjust image size to cover the div */
  background-position: center; /* Center the image within the div */
  background-repeat: no-repeat; /* Prevent image repetition */
  transition: 1s ease-in-out;  
}

.bgimg7 {
  background-image: url('../media/house/DARCoffice.png'); /* Specify the image path */
  background-size: cover; /* Adjust image size to cover the div */
  background-position: center; /* Center the image within the div */
  background-repeat: no-repeat; /* Prevent image repetition */
  transition: 1s ease-in-out;  
}

.img-container {
  display: inline-block;
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.img-wrap {
  max-width: 100%;
  position: relative;
  margin: 1rem 1rem;
  border-radius: 15px;
  border: double darkgreen;
}

.img-wrap img {
  max-width: 100%;
  z-index: 1;
  border-radius: 15px; 
}

.img-wrap .caption {
  display: block;
  width: 100%;
  position: absolute;
  bottom: 5px;
  z-index: 2;
  margin: 0 auto;
  padding: 5px 10px;
  text-align: center;
  color: darkseagreen;
  font-family: overlock;
  font-weight: bold;
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.7);
}

.imgcaption {
  padding: 1rem 2rem;
  font-size: .9rem;
  color: #e6ffe6;  
  background-color: rgba(0, 26, 0, .3);  
  vertical-align: middle;
  text-align: center;
  border-radius: 15px;  
  border: 1px solid darkgreen;  
}

/* staff */
.staff_container {
  display: block;
  position: relative;
  width: 75%;
  text-align: center;
  font-size: 1em;
  margin: auto;  
}

.staff_image {
  object-fit: cover;
  height: 600px;
  z-index: 1;
  border-radius: 15px;
}

.staff_overlay {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  background-color: #001a00;
  overflow: hidden;
  width: 100%;
  height: 0;
  transition: .5s ease;
  border-radius: 15px;   
}

.staff_container:hover .staff_overlay {
  bottom: 0;
  height: 100%; 
}

.staff_text {
  white-space: nowrap; 
  font-family: overlock;  
  color: darkseagreen;
  font-size: 1rem;
  padding: 5px;
  text-align: justify;
  text-justify: inter-word;
  position: absolute;
  overflow: hidden;
  top: 20%;
  left: 50%;
  width: 80%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
}

/* gallery */
.gal-container {
  display: table; /* Make the container element behave like a table */
  width: auto;
  margin: 10px auto;
}

.gal-col {
  display: table-cell; /* Make elements inside the container behave like table cells */
  width: 50%;
  margin: 0 auto;
  align-content: center;
}

.gal-img {
  max-width: 100%;
  position: relative;
  margin: 0 50px;
  border-radius: 15px;
  border: double darkgreen;
}

.gal-img img {
  width: 450px;
  max-height: 400px;
  top: 50%;
  left: 50%;
  border-radius: 15px;
  display: block;
  transition: transform .2s ease;  
  z-index: 2;
  cursor: pointer;
}

.gal-img:hover,
.gal-img:focus {
  border-radius: 15px;
  border: double darkgreen;  
  transform: scale(2) ;
  z-index: 1000;
}

.gal-caption {
  height: auto;
  max-width: 450px;
  margin: 5px auto;
  text-align: center;
  color: darkseagreen;
  font-family: overlock;
  font-weight: bold;
  font-size: 1rem;
  background: rgb(0, 26, 0, .5);
}

@media only screen and (max-width: 600px) {
  /* staff */
.staff_container {
  display: block;
  position: relative;
  width: 75%;
  text-align: center;
  font-size: 1em;
  margin: auto;  
}

.staff_image {
  object-fit: cover;
  height: 200px;
  z-index: 1;
  border-radius: 15px;
}

.staff_overlay {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  background-color: #001a00;
  overflow: hidden;
  width: 100%;
  height: 0;
  transition: .5s ease;
}

.staff_container:hover .staff_overlay {
  bottom: 0;
  height: 100%;
}

.staff_text {
  white-space: nowrap; 
  font-family: overlock;  
  color: darkseagreen;
  font-size: .8em;
  text-align: justify;
  text-justify: inter-word;
  position: absolute;
  overflow: hidden;
  top: 20%;
  left: 30%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
}
}