@charset "utf-8";

        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            background: #121212;
            color: white;
        }

.gallery-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 24px;
    z-index: 500;
    position: relative;
    top: 100px; /* <-- adjust this value to move gallery down as needed */
}


.image-item {
    position: relative;
    width: 100%;
    cursor: pointer;
    overflow: hidden;
    border: 2px solid #303030;
    border-radius: 14px;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.3s ease, transform 0.3s ease;
    z-index: 500;
}


.image-item:hover img {
    filter: brightness(1.4);
    transform: scale(1.3);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0); /* Start transparent */
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 50000;
    transition: background-color 0.4s ease; /* Smooth background transition */
}

        .modal .modal-content {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100%;
            width: 100%;
            position: relative;
            touch-action: pan-y;
        }

        .modal img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            border-radius: 10px;
            transition: transform 0.3s ease;
        }

        .modal .prev,
        .modal .next {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            font-size: 2em;
            color: white;
            cursor: pointer;
            background: rgba(0, 0, 0, 0.5);
            padding: 10px;
            border-radius: 50%;
            z-index: 60000;
            display: flex; /* or block, based on your layout */
        }

        .modal .prev {
            left: 10px;
        }

        .modal .next {
            right: 10px;
        }

        .modal .close {
            position: absolute;
            top: 12px;
            right: 32px;
            font-size: 2.5em;
            color: white;
            cursor: pointer;
            z-index: 70000;
        }

/*========================= Screen 5000 X 3840 =========================*/  
@media (max-width: 5000px)
{
    .gallery-container {
    grid-template-columns: repeat(2, 1fr);           
    top: 315px; /* <-- adjust this value to move gallery down as needed */
}

.spacer {
  height: 700px;    
}

}

/*========================= Screen 3840 X 2160 =========================*/  
@media (max-width: 3840px)
{
    .gallery-container {
    grid-template-columns: repeat(2, 1fr);           
    top: 255px; /* <-- adjust this value to move gallery down as needed */
}

.spacer {
  height: 590px;    
}

}

/*========================= Screen 2561 =========================*/  
@media (max-width: 2561px)
{
    .gallery-container {
    grid-template-columns: repeat(2, 1fr);            
    top: 180px; /* <-- adjust this value to move gallery down as needed */
}

.spacer {
  height: 315px;    
}

}

/*========================= Screen 2560=========================*/  

@media (max-width: 2560px)
{
    .gallery-container {
    grid-template-columns: repeat(2, 1fr);          
    top: 128px; /* <-- adjust this value to move gallery down as needed */
}

.spacer {
  height: 250px;    
}

}

/*========================= Screen 1920 X 1080 =========================*/ 
@media (max-width: 1920px)
{
    .gallery-container {
    grid-template-columns: repeat(2, 1fr);         
    top: 108px; /* <-- adjust this value to move gallery down as needed */
}

.spacer {
  height: 230px;    
}

}

/*========================= Screen 1368 X 1024 =========================*/  

@media (max-width: 1368px)
{
    .gallery-container {
    grid-template-columns: repeat(2, 1fr);         
    top: 80px; /* <-- adjust this value to move gallery down as needed */
}

.spacer {
  height: 190px;    
}

}

/*========================= Screen 1340 =========================*/  

@media (max-width: 1340px)
{
    .gallery-container {
    grid-template-columns: repeat(2, 1fr);         
    top: 80px; /* <-- adjust this value to move gallery down as needed */
}

.spacer {
  height: 200px;    
}

}

/*========================= Screen 1280 X 800 =========================*/ 
@media (max-width: 1280px)
{
    .gallery-container {
    grid-template-columns: repeat(2, 1fr);           
    top: 75px; /* <-- adjust this value to move gallery down as needed */
}

.spacer {
  height: 180px;    
}

}

/*========================= Screen 1279 =========================*/ 
@media (max-width: 1279px)
{
    .modal .prev,
    .modal .next {
    display: none !important;
}

    .gallery-container {
    grid-template-columns: repeat(2, 1fr);      
    top: 90px; /* <-- adjust this value to move gallery down as needed */
}

.spacer {
  height: 200px;    
}

}

/*========================= Screen 1024 X 600 =========================*/ 
@media (max-width: 1024px)
{
    .gallery-container {
    grid-template-columns: repeat(2, 1fr);            
    top: 65px; /* <-- adjust this value to move gallery down as needed */
}

.spacer {
  height: 150px;    
}

}

/*========================= Screen 901 =========================*/ 

@media (max-width: 901px)
{
    .gallery-container {
    grid-template-columns: repeat(2, 1fr);      
    top: 102px; /* <-- adjust this value to move gallery down as needed */
}

.spacer {
  height: 200px;    
}


}

/*========================= Screen 900 =========================*/ 

@media (max-width: 900px)
{
    .gallery-container {
    grid-template-columns: repeat(1, 1fr);
    top: 102px; /* <-- adjust this value to move gallery down as needed */
}

.spacer {
  height: 200px;    
}

}

/*========================= Screen 840 =========================*/ 

@media (max-width: 840px)
{
    .gallery-container {
    top: 75px; /* <-- adjust this value to move gallery down as needed */
}

.spacer {
  height: 165px;    
}

}

/*========================= Screen 640 =========================*/ 

@media (max-width: 640px)
{
    .gallery-container {
    top: 75px; /* <-- adjust this value to move gallery down as needed */
}

.spacer {
  height: 165px;    
}

}

/*========================= Screen 540 =========================*/ 

@media (max-width: 540px)
{
    .gallery-container {
    top: 65px; /* <-- adjust this value to move gallery down as needed */
}

.spacer {
  height: 140px;    
}

}

/*========================= Screen 430 x 932 =========================*/ 

@media (max-width: 430px)
{
    .gallery-container {
    top: 53px; /* <-- adjust this value to move gallery down as needed */
}

.spacer {
  height: 130px;    
}

}

/*========================= Screen 414 x 896 =========================*/ 

@media (max-width: 414px)
{
    .gallery-container {
    top: 53px; /* <-- adjust this value to move gallery down as needed */
}

.spacer {
  height: 140px;    
}

}

/*========================= Screen 412 x 915 =========================*/ 

@media (max-width: 412px)
{
    .gallery-container {
    top: 55px; /* <-- adjust this value to move gallery down as needed */
}

.spacer {
  height: 140px;    
}

}


/*========================= Screen 375 x 667 =========================*/ 

@media (max-width: 375px)
{
    .gallery-container {
    top: 48px; /* <-- adjust this value to move gallery down as needed */
}

.spacer {
  height: 120px;    
}

}

/*========================= Screen 360 =========================*/ 

@media (max-width: 360px)
{
    .gallery-container {
    top: 50px; /* <-- adjust this value to move gallery down as needed */
}

.spacer {
  height: 120px;    
}

}