/* Base styles for all screen sizes */
.qr-code {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Mobile small (up to 370px) - 1 column */
@media only screen and (max-width: 370px) {
    .masonry-grid {
        column-count: 1;
    }
    .qr-code {
        display: none;
    }
}

/* Mobile large (371px - 576px) - 2 columns */
@media only screen and (min-width: 371px) and (max-width: 576px) {
    .masonry-grid {
        column-count: 2;
    }
    .qr-code {
        display: none;
    }
}

/* Tablet (577px - 768px) - 2 columns */
@media only screen and (min-width: 577px) and (max-width: 768px) {
    .masonry-grid {
        column-count: 2;
    }
}

/* Laptop (769px - 1200px) - 3 columns */
@media only screen and (min-width: 769px) and (max-width: 1200px) {
    .masonry-grid {
        column-count: 3;
    }

                         .main_alb {
                             margin-top: 50px !important;
                         }

}

/* Desktop (1201px and up) - 4 columns */
@media only screen and (min-width: 1201px) {
    .masonry-grid {
        column-count: 4;
    }


                 .main_alb {
                     margin-top: 50px !important;
                 }
}

@media (max-width: 768px) {


        .main_alb {
                margin-top: 40px !important;
            }

    .nav-button {
    position: absolute;
    height: 100%; /* Matches the height of the parent lightbox-content */
    width: 50px;
    background: rgb(0,0,0, 0.0);
    border-radius: 0px;
    border: none; /* Remove default button border */
    top: 0; /* Align to top of parent */
    transform: none; /* Remove previous centering transform */
    font-size: 24px;
    cursor: pointer;
    color: #000;
    z-index: 1001;
    transition: background 0.2s ease;
    } 

    .nav-button:hover {
    position: absolute;
    height: 100%; /* Matches the height of the parent lightbox-content */
    width: 50px;    
    border-radius: 0px;
    border: none; /* Remove default button border */
    top: 0; /* Align to top of parent */
    transform: none; /* Remove previous centering transform */
    font-size: 24px;
    cursor: pointer;
    color: #000;
    z-index: 1001;
    transition: background 0.2s ease;
}
}


/* Adjust masonry layout for different screen sizes */
@media (max-width: 940px) { /* Below slider width + margins */
    .slider-box {
        flex: 0 0 100%; /* Full width on smaller screens */
        max-width: 920px;
    }
    
    .masonry-wrapper {
        flex: 0 0 100%;
    }
}

@media (min-width: 941px) {
    .masonry-grid {
        column-width: 200px; /* Fixed column width for larger screens */
    }
}


/* Define the Montserrat font */
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/montserrat-regular.ttf') format('truetype');
    font-weight: 400; /* Regular weight */
    font-style: normal;
}
 
 @font-face {
    font-family: 'Cormorant';
    src: url('fonts/cormorant-regular.ttf') format('truetype');
    font-weight: 400; /* Regular weight */
    font-style: normal;
}
 
 /* Base Styles */
body {
    font-family: 'Montserrat' !important;
    margin: 0;
    padding: 0;
    background-color:#fff;
    color: #333;
    overflow-x: hidden;
    line-height: 1.6;
}

.image-container *, 
.image-container *::before, 
.image-container *::after {
  
}


#welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(150deg, #ffb5b5d4, #3c36fff2); // #ffb5b5 <button id="scan-qr-btn" class="fullscreen-btn btn btn-sm btn-outline-light" style="display: block;">Scan QR Code</button>
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;    
    text-align: center;
}



/* Apply the font to #welcome-screen h1 */
#welcome-screen h1 {
    font-family: 'Cormorant';
    font-size: 2.5em;
    color: #fff;
}

#welcome-screen h4 {
    font-family: 'Montserrat';
    font-size: 1.2em;
    color: #f4f4f4;
    margin-top: -15px;
    
}

#welcome-screen.hidden {
    opacity: 0;
    pointer-events: none;
    display: none;
}

.fullscreen-btn {
    transition:background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
     margin-top: 40px;
}

.fullscreen-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Header Styles */
header {
    background: linear-gradient(132deg, #fff, #df08087a);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: fixed;
    width: 100%;
    z-index: 1999;
    top: 0;
    left: 0;
    height: 50px; /* Consistent height */
    display: none; /* Initially hidden */
}

header.visible {
    display: flex;
    justify-content: center; /* Center the button */
    align-items: center;
    background: #ece5cf !important;
}

.btn_home {
    background: rgba(255, 255, 255, 1.0) !important; /* Background for the container */
}

.btn_home button {
    padding: 0px 10px;
    background: rgb(189, 184, 139);
    color: white;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-size: 16px;
}
.ms_title{
    font-family: 'Cormorant';
    color: #333;
  position: absolute;
  text-align: center;
  margin-top: -15px;
  font-size: ;
}

 .main_alb {
    padding: 12px !important; 
    background: linear-gradient(132deg, #c8e3ff7a, #ffffff91);
}

header h1 {
    margin: 0;
    font-size: 2em;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
}
 
/* Footer Styles */
footer {
    background: linear-gradient(132deg, #fff, #df08087a);
    color: #6c5c36;
    text-align: center;
    padding: 15px;
    display: none;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
}

footer.visible {
    display: block;
}
qr-icon-button{
    display:none !important;
}

#status {
    background: #eee;
    padding: 12px;
    border-radius: 8px;
    margin-top: 20px;
    max-height: 200px;
    overflow-y: auto;
    font-size: 0.9em;
    display: none;
    border: 1px solid #ddd;
}

#install-section {
    text-align: left;
    display: none;
}

#install-section.visible {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#install-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin: 5px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#install-btn:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#ios-instructions {
    margin-top: 8px;
    font-size: 0.9em;
    color: #666;
}



/* Navigation buttons for desktop */
.nav-button {
    position: absolute;
    height: 100%;
    width: 50px;
    background: rgb(0,0,0, 0.0);
    border-radius: 0px;
    border: none;
    top: 0;
    transform: none;
    font-size: 24px;
    cursor: pointer;
    color: #555;
    z-index: 1001;
    transition: background 0.2s ease;
}

.prev-button {
    left: 0px;
}

.next-button {
    right: 0px;
}

.prev-button:hover {
    background: linear-gradient(90deg, rgba(0,0,0,0.5662640056022409) 0%, rgba(255,255,255,0) 100%);
}

.next-button:hover {
    background: linear-gradient(-90deg, rgba(0,0,0,0.5662640056022409) 0%, rgba(255,255,255,0) 100%);
}

 /* Modal styling */
  #qrModal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
  }

  #modalContent {
    position: relative;
    width: 90%;
    max-width: 500px;
    background-color: #222;
    border-radius: 10px;
    overflow: hidden;
  }

  #reader {
    width: 100%;
    height: 100%;
  }

  #closeModal {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    z-index: 10;
  }

