.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 50%;
  z-index: 10001;
}

.prev-btn {
  left: -60px;
}

.next-btn {
  right: -60px;
}

@media(max-width:768px){
  .prev-btn { left: 10px; }
  .next-btn { right: 10px; }
}
/* --- Gallery Header & Bubbles --- */
.gallery-header {
    position: relative;
    overflow: hidden;
    background: linear-gradient(to right, #1e3a8a, #f97316); /* Blue to Orange */
    color: white;
    text-align: center;
    padding: 4rem 1rem;
    border-bottom-left-radius: 1.5rem;
    border-bottom-right-radius: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.gallery-header h1 {
    position: relative;
    z-index: 10;
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
}

.bubbles-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.bubble {
    position: absolute;
    bottom: -50px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.689);
    border-radius: 50%;
    animation: floatUp 12s infinite ease-in;
}

/* Bubble random sizes & positions */
.bubble:nth-child(1) { left: 10%; width: 25px; height: 25px; animation-duration: 10s; }
.bubble:nth-child(2) { left: 20%; width: 50px; height: 50px; animation-duration: 14s; }
.bubble:nth-child(3) { left: 30%; width: 20px; height: 20px; animation-duration: 9s; }
.bubble:nth-child(4) { left: 40%; width: 60px; height: 60px; animation-duration: 16s; }
.bubble:nth-child(5) { left: 50%; width: 30px; height: 30px; animation-duration: 11s; }
.bubble:nth-child(6) { left: 60%; width: 45px; height: 45px; animation-duration: 15s; }
.bubble:nth-child(7) { left: 70%; width: 20px; height: 20px; animation-duration: 8s; }
.bubble:nth-child(8) { left: 80%; width: 55px; height: 55px; animation-duration: 17s; }
.bubble:nth-child(9) { left: 90%; width: 25px; height: 25px; animation-duration: 10s; }
.bubble:nth-child(10){ left: 15%; width: 35px; height: 35px; animation-duration: 13s; }

@keyframes floatUp {
    0% { transform: translateY(0); opacity: 2; }
    100% { transform: translateY(-300px); opacity: 0; }
}

/* --- Gallery Grid --- */
.gallery-container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

.gallery-item {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: block;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

/* --- Modal --- */
.modal {
    display: none; /* Hidden by default, toggled via JS */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-height: 90vh;
    max-width: 90vw;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    object-fit: contain;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #9ca3af; /* Gray */
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 1010;
}

.close-btn:hover {
    color: #f87171; /* Red hover */
}

.prev-btn, .next-btn {
    position: absolute;
    color: white;
    font-size: 50px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    user-select: none;
    z-index: 1010;
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

@media (min-width: 768px) {
    .prev-btn { left: 40px; }
    .next-btn { right: 40px; }
}

.prev-btn:hover, .next-btn:hover {
    color: #fb923c; /* Orange hover */
}