 .gallery-container {
     max-width: 1400px;
     margin: 60px auto;
     padding: 0 40px;
 }

 h1 {
     font-size: 48px;
     color: #1d3557;
     margin-bottom: 20px;
     text-align: center;
 }

 .page-intro {
     text-align: center;
     color: #555;
     font-size: 18px;
     margin-bottom: 50px;
     line-height: 1.8;
 }

 /* Filter Buttons */
 .filter-buttons {
     display: flex;
     justify-content: center;
     gap: 15px;
     margin-bottom: 40px;
     flex-wrap: wrap;
 }

 .filter-btn {
     padding: 12px 30px;
     border: 2px solid #457b9d;
     background: white;
     color: #457b9d;
     border-radius: 25px;
     cursor: pointer;
     font-size: 16px;
     font-weight: 600;
     transition: all 0.3s;
 }

 .filter-btn:hover,
 .filter-btn.active {
     background: linear-gradient(135deg, #457b9d 0%, #1d3557 100%);
     color: white;
     transform: translateY(-2px);
     box-shadow: 0 5px 15px rgba(69, 123, 157, 0.4);
 }

 /* Gallery Grid */
 .gallery-grid {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
     gap: 25px;
     margin-bottom: 50px;
 }

 .gallery-item {
     position: relative;
     overflow: hidden;
     border-radius: 10px;
     box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
     cursor: pointer;
     transition: transform 0.3s, box-shadow 0.3s;
     background: white;
 }

 .gallery-item:hover {
     transform: translateY(-5px);
     box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
 }

 .gallery-image {
     width: 100%;
     height: 300px;
     object-fit: cover;
     transition: transform 0.5s;
 }

 .gallery-item:hover .gallery-image {
     /* transform: scale(1.1); Removed to prevent blur */
 }

 .gallery-overlay {
     position: absolute;
     bottom: 0;
     left: 0;
     right: 0;
     background: linear-gradient(to top, rgba(29, 53, 87, 0.95), transparent);
     padding: 20px;
     transform: translateY(100%);
     transition: transform 0.3s;
 }

 .gallery-item:hover .gallery-overlay {
     transform: translateY(0);
 }

 .gallery-title {
     color: white;
     font-size: 18px;
     font-weight: 600;
     margin-bottom: 5px;
 }

 .gallery-description {
     color: rgba(255, 255, 255, 0.9);
     font-size: 14px;
     line-height: 1.4;
     text-align: justify;
 }

 .gallery-category {
     position: absolute;
     top: 15px;
     right: 15px;
     background: rgba(255, 255, 255, 0.95);
     color: #457b9d;
     padding: 6px 15px;
     border-radius: 20px;
     font-size: 13px;
     font-weight: 600;
     z-index: 2;
 }

 /* Modal/Lightbox */
 .modal {
     display: none;
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: rgba(15, 23, 42, 0.95);
     backdrop-filter: blur(8px);
     z-index: 1000;
     justify-content: center;
     align-items: center;
     opacity: 0;
     transition: opacity 0.3s ease;
 }

 .modal.active {
     display: flex;
     opacity: 1;
 }

 .modal-content {
     max-width: 900px;
     max-height: 90vh;
     position: relative;
     display: flex;
     flex-direction: column;
     align-items: center;
     transform: scale(0.9);
     transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
     outline: none;
 }

 .modal.active .modal-content {
     transform: scale(1);
 }

 .modal-image {
     max-width: 100%;
     max-height: 75vh;
     width: auto;
     height: auto;
     object-fit: contain;
     border-radius: 8px;
     box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
     display: block;
     margin: 0 auto;
     border: 2px solid rgba(255, 255, 255, 0.1);
 }

 .modal-info {
     background: rgba(255, 255, 255, 0.95);
     padding: 20px 30px;
     border-radius: 15px;
     max-width: 600px;
     width: 100%;
     margin-top: 20px;
     text-align: center;
     box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
     animation: slideUp 0.4s ease forwards;
 }

 @keyframes slideUp {
     from {
         transform: translateY(20px);
         opacity: 0;
     }

     to {
         transform: translateY(0);
         opacity: 1;
     }
 }

 .modal-info h3 {
     color: #1d3557;
     font-size: 24px;
     margin-bottom: 10px;
 }

 .modal-info p {
     color: #666;
     line-height: 1.6;
     text-align: justify;
 }

 .close-modal {
     position: absolute;
     top: 20px;
     right: 30px;
     background: rgba(255, 255, 255, 0.1);
     color: rgba(255, 255, 255, 0.8);
     width: 45px;
     height: 45px;
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     cursor: pointer;
     font-size: 24px;
     font-weight: 300;
     transition: all 0.3s ease;
     z-index: 1010;
     border: 1px solid rgba(255, 255, 255, 0.1);
     backdrop-filter: blur(4px);
 }

 .close-modal:hover {
     background: #e63946;
     color: white;
     border-color: #e63946;
     transform: rotate(90deg);
     box-shadow: 0 0 15px rgba(230, 57, 70, 0.6);
 }

 .nav-arrow {
     position: absolute;
     top: 50%;
     transform: translateY(-50%);
     background: rgba(255, 255, 255, 0.1);
     color: rgba(255, 255, 255, 0.8);
     width: 50px;
     height: 50px;
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     cursor: pointer;
     font-size: 22px;
     transition: all 0.3s ease;
     z-index: 1010;
     border: 1px solid rgba(255, 255, 255, 0.1);
     backdrop-filter: blur(4px);
 }

 .nav-arrow:hover {
     background: white;
     color: #1d3557;
     transform: translateY(-50%) scale(1.1);
     box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
 }

 .nav-arrow.prev {
     left: 20px;
 }

 .nav-arrow.next {
     right: 20px;
 }

 @media (max-width: 768px) {
     .gallery-grid {
         grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
         gap: 15px;
     }

     .nav-links {
         gap: 20px;
         font-size: 14px;
     }

     h1 {
         font-size: 36px;
     }

     .filter-buttons {
         gap: 10px;
     }

     .filter-btn {
         padding: 10px 20px;
         font-size: 14px;
     }

     .nav-arrow {
         width: 40px;
         height: 40px;
         font-size: 20px;
     }
 }

 /* =========================================
   Category/Folder View Styles
   ========================================= */

 .category-grid {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
     gap: 30px;
     margin-bottom: 50px;
     padding: 10px;
 }

 .folder-item {
     background: #fff;
     border-radius: 12px;
     box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 15px rgba(0, 0, 0, 0.1);
     overflow: hidden;
     cursor: pointer;
     transition: all 0.3s ease;
     border: 1px solid rgba(0, 0, 0, 0.05);
     position: relative;
     display: flex;
     flex-direction: column;
 }

 .folder-item:hover {
     transform: translateY(-8px);
     box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
 }

 .folder-preview {
     height: 200px;
     background: #f1f5f9;
     display: flex;
     align-items: center;
     justify-content: center;
     overflow: hidden;
     position: relative;
 }

 /* Folder tab effect */
 .folder-preview::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.02) 100%);
     z-index: 1;
     pointer-events: none;
 }

 .folder-preview img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
 }

 .folder-item:hover .folder-preview img {
     transform: scale(1.1) rotate(1deg);
 }

 .folder-icon {
     font-size: 64px;
     color: #457b9d;
     opacity: 0.8;
 }

 .folder-info {
     padding: 20px;
     background: white;
     flex-grow: 1;
     display: flex;
     flex-direction: column;
     justify-content: center;
     align-items: center;
     border-top: 1px solid #f0f0f0;
 }

 .folder-info h3 {
     font-size: 20px;
     margin: 0 0 8px;
     color: #1d3557;
     font-weight: 700;
     text-transform: capitalize;
 }

 .folder-info p {
     font-size: 14px;
     color: #64748b;
     margin: 0;
     font-weight: 500;
     background: #f1f5f9;
     padding: 4px 12px;
     border-radius: 12px;
 }

 /* Back Button */
 .back-btn {
     background: white;
     color: #1d3557;
     border: 2px solid #1d3557;
     padding: 8px 20px;
     border-radius: 30px;
     font-size: 15px;
     font-weight: 600;
     cursor: pointer;
     display: inline-flex;
     align-items: center;
     gap: 8px;
     transition: all 0.3s;
 }

 .back-btn i {
     transition: transform 0.3s;
 }

 .back-btn:hover {
     background: #1d3557;
     color: white;
     transform: translateX(-3px);
 }

 .back-btn:hover i {
     transform: translateX(-3px);
 }

 /* Responsive adjustments for new elements */
 @media (max-width: 768px) {
     .category-grid {
         grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
         gap: 20px;
     }

     .folder-preview {
         height: 160px;
     }

     .gallery-header {
         flex-direction: column;
         align-items: flex-start !important;
         gap: 15px;
     }

     .gallery-header h2 {
         margin: 0 !important;
         font-size: 20px !important;
     }
 }