#overlay {
    position: fixed;
    display: none;
    flex-direction: column; 
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(255, 252, 244, 0.836);
    z-index: 2;

}
#overlayTop {
    display: flex;
    justify-content: center;
    padding-top: 2rem;
}


.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
}

.arrow.left { left: 10px; }
.arrow.right { right: 10px; }

.arrow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 25px;
  height: 25px;
  border-top: 3px solid var(--main-color);
  border-right: 3px solid var(--main-color);
}

.arrow.left::before {
  transform: translate(-50%, -50%) rotate(-135deg);
}

.arrow.right::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

#closeButton {
    position: fixed;
    top: 20px;        
    right: 20px;     
    width: 40px;      
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 9999;
}

#closeButton::before,
#closeButton::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;      
    height: 2px;      
    background-color: var(--main-color); 
    border-radius: 2px;
    transform-origin: center;
}

#closeButton::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

#closeButton::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

#fsContainer {
    width: 90vw;
    max-height: 80vh;
    min-height: 800px;        
    overflow: hidden;
    margin: 0 auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#fsImage {
    max-width: 100%;         
    max-height: 100%;        
    cursor: zoom-in;
    display: block;
}
#fsContainer.loading::after {
    content: '';
    position: absolute;
    inset: 0;                    
    background-image: url('../assets/images/icons/loading2.gif');
    background-repeat: no-repeat;
    background-position: center;
    z-index: 2;
}

#overlayBottom {
    width: 100%;
    padding: 10px;
    text-align: center;
    color: var(--main-color);
    font-size: 22px;
}

.topInfo {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 10px;
    font-size: 125%;
    margin-bottom: 15px;
    padding: 10px;
}
#title{
    text-align: left;
    font-size: 125%;
}




#gallery {
    display: flex;
    gap: 8px;
}
#container{
    max-width: 2000px;
    width: 90%;
    margin: auto;
}
#container::after{
    background-color: white;
    z-index: 0;
}
#pageContent.fs-blur {
  filter: blur(4px);
}
.column {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.photo img {
    width: 100%;
    height: auto;              
    min-height: 300px;
    border-radius: 2px;
    object-fit: cover;
    display: block;            
    background: transparent;
    cursor: pointer;
}
.photo {
    position: relative;
    border: none;
    margin-bottom: 0; /* not strictly needed if using column gap */
}
.photo.loading::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
  z-index: 1;
}

.photo.loading::after {
    border: none;
    content: "";
    position: absolute;
    width: 54px;
    height: 54px;
    background-image: url('../assets/images/icons/loading2.gif');
    background-size: contain;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}
@media (max-width: 1200px) {   
    .arrow { display: none !important; }
#fsContainer{
        margin-top: 50px;
        min-height: 300px;        
    }
}

@media (max-width: 800px) {    
    #gallery{
        flex-direction: column;
    }
    #overlayBottom{
        font-size: 110%;
    }
    #fsContainer{
        margin-top: 150px;
        min-height: 300px;        
    }
    #closeButton{
        top: 100px;
    }
    #pageContent{
        margin-top: 150px;
    }
    #container{
        width: 100%;
    }
}
