body {
    font-family: 'Montserrat Alternates', sans-serif;
	font-size: 15px;
	background: #f9f9f9;
}

.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 5px 10px;
	/*padding-bottom: 50px;*/
}

 .gallery-image {
    height: 40vh;
    cursor: pointer;
}
 
.gallery-text {
	height: 40vh;
	width: 60vh;
	background: #f5f5f5;
	text-align: center;
	display: flex;
	flex-wrap: nowrap;
	flex-direction: column;
	justify-content: center;
	
}

.gallery-text a {
	color: black;
	text-decoration: none;

}

.gallery-text a:hover {
	text-decoration: underline; /* optional hover effect */
}




.gallery-text--rome22 {
	background: #524C42;
	color: #f9f9f9;
	width: 30vh;
}

.gallery-text--rome22 a {
	color: #f9f9f9;
}




  
.gallery-text--animal {
	background: #B0CE88;
	width: 30vh;
}

 
	
.gallery-text--macro {
	background: #44444E;
	color: #f9f9f9;
	width: 30vh;
}

.gallery-text--macro a {
	color: #f9f9f9;
}


img {
    max-height: 100%;
    min-width: 100%;
    object-fit: contain;
    vertical-align: bottom;
}








.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  z-index: 9999;
}

/* image itself */
.lightbox img {
  min-width: auto;   /* <-- IMPORTANT */
  width: auto;
  max-width: 70%;
  max-height: 70vh;
}

.lightbox-caption {
  color: #fff;
  margin-top: 10px;
  text-align: center;
  font-size: 1rem;
}








/* Contact box */
/* Button */
.open-btn {
    /*padding: 12px 20px;*/
    /*font-size: 16px;*/
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}


.open-btn--rome22 {
    /*padding: 12px 20px;*/
    /*font-size: 16px;*/
    background: #f9f9f9;
    color: #524C42;
}


.open-btn--animal {
    /*padding: 12px 20px;*/
    /*font-size: 16px;*/
    background: #4C763B;
    color: #f9f9f9;
}

.open-btn--macro {
    /*padding: 12px 20px;*/
    /*font-size: 16px;*/
    background: #f9f9f9;
    color: #44444E;
}


 .open-btn:hover {
    background: #1d4ed8;
 }
 
 
.open-btn--rome22:hover {
    background: #C9CDCF;
}

.open-btn--animal:hover {
    background: #043915;
}

.open-btn--macro:hover {
    background: #C9CDCF;
}


  /* Overlay */
  .overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
  }

  /* Modal window */
  .modal {
    background: white;
    padding: 24px;
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    position: relative;
    animation: fadeIn 0.2s ease-in-out;
  }

  /* Close button */
  .close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 20px;
    cursor: pointer;
    background: none;
    border: none;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: scale(0.95);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }










@media (max-width: 800px) {
    .gallery-container {
		flex-direction: row;
	}

	.gallery-image {
		height: auto;
		width:100%;
	}

	.gallery-text {
		height: auto;
		width:100%;
	}

	img {
		width: 100%;
		max-height: 75vh;
		min-width: 0;
		}
}



