/*
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    //background-color: black;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 10px; 
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    flex: 0 1 calc(50% - 10px); /* 50% width minus gap */ 
    margin-bottom: 10px;  
    display: flex;
    justify-content: center;
    align-items: center;
}


.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    padding: 30px; /* Small padding around the images */
    background-color: white; /* Background color to make the padding visible */
    border: 0px solid #ddd; /* Optional border for better visual separation */
}




@media (max-width: 600px) {
    .gallery-item {
        flex: 0 1 100%; /* Full width for mobile */
    }
}
*/

/*

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    flex: 1 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    padding: 0;
    background-color: white;
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    text-align: center;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

@media (max-width: 600px) {
    .gallery-item {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

*/



* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
/*    font-family: Arial, sans-serif; */
      font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
      font-size: 14px;
}




.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
    max-width: 1000px;
    margin: 0 auto;
}

/* make 50 for 2 col */
.gallery-item {
    position: relative;
    flex: 1 1 calc(90% - 10px);
    max-width: calc(90% - 10px);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    padding: 0;
    background-color: white;
}

   /* sizing of  overlay bar (top/left/bottom ...) */ 
.overlay {
    position: absolute;

    top: 20%;
    left: 0;
    right: 0;
    bottom: 50%;
    
    /*
    display: flex;
    justify-content: center;
    align-items: center;
    */
    display: flex; /* Added */
    flex-direction: column; /* Added */
    justify-content: center; /* Changed from justify-content: flex-start; */
    align-items: center; /* Added */    
    
    
    
    background: rgba(0, 0, 0, 0.5);
    color: white;
    text-align: center;
    padding: 10px;
    opacity: 0;
    /* transition: opacity 0.5s ease; */
    
    
    transform: translateY(100%); /* Added */
    transition: opacity 0.8s ease, transform 0.8s ease;    
    
}

.gallery-item:hover .overlay {
    opacity: 1;
    transform: translateY(0); /* Added */
}

.overlay h3, .overlay p {
    margin: 10px 0;
}

/*
.content-details h3{
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.15em;
  margin-bottom: 0.5em;
  text-transform: uppercase;
}
.content-details p{
  color: green;
  font-size: 0.8em;
}
*/
@media (max-width: 600px) {
    .gallery-item {
        flex: 1 1 100%;
        max-width: 100%;
    }
}
